ERC-721
Overview
Max Total Supply
200 VXIN
Holders
71
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 VXINLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GFFCERC721A
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./MGYERC721A.sol"; contract GFFCERC721A is MGYERC721A{ constructor ( string memory _name, string memory _symbol ) MGYERC721A (_name,_symbol) { } //disabled function setSBTMode(bool) external virtual override onlyOwner { isSBTEnabled = false; } //widraw ETH from this contract.only owner. function withdraw() external payable override virtual onlyOwner nonReentrant { // This will payout the owner 100% of the contract balance. // Do not remove this otherwise you will not be able to withdraw the funds. // ============================================================================= address wallet = payable(0x5b7717f46809C684fc11A0004AB07eAfbd82D344); bool os; (os, ) = payable(wallet).call{value: address(this).balance}(""); require(os); // ============================================================================= } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "erc721a/contracts/extensions/ERC4907A.sol"; import "hardhat/console.sol"; contract MGYERC721A is Ownable,ERC4907A, ReentrancyGuard, ERC2981{ //Project Settings uint256 public wlMintPrice;//wl.price. uint256 public psMintPrice;//publicSale. price. uint256 public maxMintsPerWL;//wl.max mint num per wallet. uint256 public maxMintsPerWL1;//wl1.max mint num per wallet. uint256 public maxMintsPerWL2;//wl2.max mint num per wallet. uint256 public maxMintsPerPS;//publicSale.max mint num per wallet. uint256 public maxSupply;//max supply address payable internal _withdrawWallet;//withdraw wallet bool public isSBTEnabled;//SBT(can not transfer.only owner) mode enable. //URI mapping(uint256 => string) internal _revealUri;//by Season mapping(uint256 => string) internal _baseTokenURI;//by Season //flags bool public isWlEnabled;//WL enable. bool public isPsEnabled;//PublicSale enable. mapping(uint256 => bool) internal _isRevealed;//reveal enable.by Season. //mint records. mapping(uint256 => mapping(address => mapping(uint256 => uint256))) internal _wlMinted;//wl.mint num by wallet.by Season.by reset index mapping(uint256 => mapping(address => uint256)) internal _psMinted;//PublicSale.mint num by wallet.by Season. uint256 internal _wlResetIndex; //_wlMinted value reset index. //Season value. uint256 internal _seasonCounter; //Season Counter. mapping(uint256 => uint256) public seasonStartTokenId;//Start tokenid by Season. //contract status.for UI/UX frontend. uint256 internal _contractStatus; //merkleRoot bytes32 internal _merkleRoot;//whitelist bytes32 internal _merkleRoot1;//whitelist1 bytes32 internal _merkleRoot2;//whitelist2 //custom token uri mapping(uint256 => string) internal _customTokenURI;//custom tokenURI by tokenid //metadata file extention string internal _extension; constructor ( string memory _name, string memory _symbol ) ERC721A (_name,_symbol) { seasonStartTokenId[_seasonCounter] = _startTokenId(); } //start from 1.adjust for bueno. function _startTokenId() internal view virtual override returns (uint256) { return 1; } //set Default Royalty._feeNumerator 500 = 5% Royalty function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) external virtual onlyOwner { _setDefaultRoyalty(_receiver, _feeNumerator); } //for ERC2981,ERC721A.ERC4907A function supportsInterface(bytes4 interfaceId) public view virtual override(ERC4907A, ERC2981) returns (bool) { return( ERC721A.supportsInterface(interfaceId) || ERC4907A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId) ); } //for ERC2981 Opensea function contractURI() external view virtual returns (string memory) { return _formatContractURI(); } //make contractURI function _formatContractURI() internal view returns (string memory) { (address receiver, uint256 royaltyFraction) = royaltyInfo(0,_feeDenominator());//tokenid=0 return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{"seller_fee_basis_points":', Strings.toString(royaltyFraction), ', "fee_recipient":"', Strings.toHexString(uint256(uint160(receiver)), 20), '"}' ) ) ) ) ); } //set owner's wallet.withdraw to this wallet.only owner. function setWithdrawWallet(address _owner) external virtual onlyOwner { _withdrawWallet = payable(_owner); } //set maxSupply.only owner. function setMaxSupply(uint256 _maxSupply) external virtual onlyOwner { require(totalSupply() <= _maxSupply, "Lower than _currentIndex."); maxSupply = _maxSupply; } //set wl price.only owner. function setWlPrice(uint256 newPrice) external virtual onlyOwner { wlMintPrice = newPrice; } //set public Sale price.only owner. function setPsPrice(uint256 newPrice) external virtual onlyOwner { psMintPrice = newPrice; } //set reveal.only owner.current season. function setReveal(bool bool_) external virtual onlyOwner { _isRevealed[_seasonCounter] = bool_; } //set reveal.only owner.by season. function setRevealBySeason(bool bool_,uint256 _season) external virtual onlyOwner { _isRevealed[_season] = bool_; } //return _isRevealed.current season. function isRevealed() external view virtual returns (bool){ return _isRevealed[_seasonCounter]; } //return _isRevealed.by season. function isRevealedBySeason(uint256 _season) external view virtual returns (bool){ return _isRevealed[_season]; } //return _wlMinted.current season. function wlMinted(address _address) external view virtual returns (uint256){ return _wlMinted[_seasonCounter][_address][_wlResetIndex]; } //return _wlMinted.by season. function wlMintedBySeason(address _address,uint256 _season) external view virtual returns (uint256){ return _wlMinted[_season][_address][_wlResetIndex]; } //return _psMinted.current season. function psMinted(address _address) external view virtual returns (uint256){ return _psMinted[_seasonCounter][_address]; } //return _psMinted.by season. function psMintedBySeason(address _address,uint256 _season) external view virtual returns (uint256){ return _psMinted[_season][_address]; } //set wl's max mint num.only owner. function setWlMaxMints(uint256 _max) external virtual onlyOwner { maxMintsPerWL = _max; } //set wl's max mint num.only owner. function setWlMaxMints1(uint256 _max) external virtual onlyOwner { maxMintsPerWL1 = _max; } //set wl's max mint num.only owner. function setWlMaxMints2(uint256 _max) external virtual onlyOwner { maxMintsPerWL2 = _max; } //set PublicSale's max mint num.only owner. function setPsMaxMints(uint256 _max) external virtual onlyOwner { maxMintsPerPS = _max; } //set WLsale.only owner. function setWhitelistSale(bool bool_) external virtual onlyOwner { isWlEnabled = bool_; } //set Publicsale.only owner. function setPublicSale(bool bool_) external virtual onlyOwner { isPsEnabled = bool_; } //set MerkleRoot.only owner. function setMerkleRoot(bytes32 merkleRoot_) external virtual onlyOwner { _merkleRoot = merkleRoot_; } //set MerkleRoot.only owner. function setMerkleRoot1(bytes32 merkleRoot_) external virtual onlyOwner { _merkleRoot1 = merkleRoot_; } //set MerkleRoot.only owner. function setMerkleRoot2(bytes32 merkleRoot_) external virtual onlyOwner { _merkleRoot2 = merkleRoot_; } //isWhitelisted function isWhitelisted(address address_, bytes32[] memory proof_, bytes32[] memory proof1_, bytes32[] memory proof2_) external view virtual returns (bool) { return(_isWhitelisted(address_,proof_,proof1_,proof2_)); } function _isWhitelisted(address address_, bytes32[] memory proof_, bytes32[] memory proof1_, bytes32[] memory proof2_) internal view returns (bool) { bytes32 _leaf = keccak256(abi.encodePacked(address_)); return( _hasWhitelistedOneWL(proof_,_leaf) || _hasWhitelistedOneWL1(proof1_,_leaf) || _hasWhitelistedOneWL2(proof2_,_leaf) ); } //get WL maxMints sum. function getWhitelistedMaxMints(address address_, bytes32[] memory proof_, bytes32[] memory proof1_, bytes32[] memory proof2_) external view virtual returns (uint256) { return(_getWhitelistedMaxMints(address_, proof_, proof1_, proof2_)); } function _getWhitelistedMaxMints(address address_, bytes32[] memory proof_, bytes32[] memory proof1_, bytes32[] memory proof2_) internal view returns (uint256) { bytes32 _leaf = keccak256(abi.encodePacked(address_)); uint256 num = 0; if(_hasWhitelistedOneWL(proof_,_leaf)) {unchecked {num += maxMintsPerWL;}} if(_hasWhitelistedOneWL1(proof1_,_leaf)) {unchecked {num += maxMintsPerWL1;}} if(_hasWhitelistedOneWL2(proof2_,_leaf)) {unchecked {num += maxMintsPerWL2;}} return(num); } //have you WL? function hasWhitelistedOneWL(address address_,bytes32[] memory proof_) external view virtual returns (bool) { bytes32 _leaf = keccak256(abi.encodePacked(address_)); return(_hasWhitelistedOneWL(proof_,_leaf)); } function _hasWhitelistedOneWL(bytes32[] memory proof_,bytes32 leaf_ ) internal view returns (bool) { return(_merkleRoot != 0x0 && MerkleProof.verify(proof_,_merkleRoot,leaf_)); } //have you WL1? function hasWhitelistedOneWL1(address address_,bytes32[] memory proof_) external view virtual returns (bool) { bytes32 _leaf = keccak256(abi.encodePacked(address_)); return(_hasWhitelistedOneWL1(proof_,_leaf)); } function _hasWhitelistedOneWL1(bytes32[] memory proof_,bytes32 leaf_ ) internal view returns (bool) { return(_merkleRoot1 != 0x0 && MerkleProof.verify(proof_,_merkleRoot1,leaf_)); } //have you WL2? function hasWhitelistedOneWL2(address address_,bytes32[] memory proof_) external view virtual returns (bool) { bytes32 _leaf = keccak256(abi.encodePacked(address_)); return(_hasWhitelistedOneWL2(proof_,_leaf)); } function _hasWhitelistedOneWL2(bytes32[] memory proof_,bytes32 leaf_ ) internal view returns (bool) { return(_merkleRoot2 != 0x0 && MerkleProof.verify(proof_,_merkleRoot2,leaf_)); } //set SBT mode Enable. only owner.Noone can transfer. only contract owner can transfer. function setSBTMode(bool bool_) external virtual onlyOwner { isSBTEnabled = bool_; } //override for SBT mode.only owner can transfer. or mint or burn. function _beforeTokenTransfers(address from_,address to_,uint256 startTokenId_,uint256 quantity_) internal virtual override { require(!isSBTEnabled || msg.sender == owner() || from_ == address(0) || to_ == address(0) ,"SBT mode Enabled: token transfer while paused."); super._beforeTokenTransfers(from_, to_, startTokenId_, quantity_); } //set HiddenBaseURI.only owner.current season. function setHiddenBaseURI(string memory uri_) external virtual onlyOwner { _revealUri[_seasonCounter] = uri_; } //set HiddenBaseURI.only owner.by season. function setHiddenBaseURIBySeason(string memory uri_,uint256 _season) external virtual onlyOwner { _revealUri[_season] = uri_; } //return _nextTokenId function getCurrentIndex() external view virtual returns (uint256){ return _nextTokenId(); } //return status. function getContractStatus() external view virtual returns (uint256){ return _contractStatus; } //set status.only owner. function setContractStatus(uint256 status_) external virtual onlyOwner { _contractStatus = status_; } //return wlResetIndex. function getWlResetIndex() external view virtual returns (uint256){ return _wlResetIndex; } //reset _wlMinted.only owner. function resetWlMinted() external virtual onlyOwner { _wlResetIndex++; } //return Season. function getSeason() external view virtual returns (uint256){ return _seasonCounter; } //increment next Season.only owner. function incrementSeason() external virtual onlyOwner { //pause all sale isWlEnabled = false; isPsEnabled = false; //reset tree _merkleRoot = 0x0; _merkleRoot1 = 0x0; _merkleRoot2 = 0x0; //increment season _seasonCounter++; seasonStartTokenId[_seasonCounter] = _nextTokenId();//set start tonkenid for next Season. } //return season by tokenid. function getSeasonByTokenId(uint256 _tokenId) external view virtual returns(uint256){ return _getSeasonByTokenId(_tokenId); } //return season by tokenid. function _getSeasonByTokenId(uint256 _tokenId) internal view returns(uint256){ require(_exists(_tokenId), "Season query for nonexistent token"); uint256 nextStartTokenId = 10000000000;//start tokenid for next season.set big tokenid. for (uint256 i = _seasonCounter; i >= 0; i--) { if(seasonStartTokenId[i] <= _tokenId && _tokenId < nextStartTokenId) return i; nextStartTokenId = seasonStartTokenId[i]; } return 0;//can not reach here. } //set BaseURI at after reveal. only owner.current season. function setBaseURI(string memory uri_) external virtual onlyOwner { _baseTokenURI[_seasonCounter] = uri_; } //set BaseURI at after reveal. only owner.by season. function setBaseURIBySeason(string memory uri_,uint256 _season) external virtual onlyOwner { _baseTokenURI[_season] = uri_; } //set custom tokenURI at after reveal. only owner. function setCustomTokenURI(uint256 _tokenId,string memory uri_) external virtual onlyOwner { require(_exists(_tokenId), "URI query for nonexistent token"); _customTokenURI[_tokenId] = uri_; } function getCustomTokenURI(uint256 _tokenId) external view virtual returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); return(_customTokenURI[_tokenId]); } //retuen BaseURI.internal.current season. function _currentBaseURI(uint256 _season) internal view returns (string memory){ return _baseTokenURI[_season]; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); uint256 _season = _getSeasonByTokenId(_tokenId);//get season. if(_isRevealed[_season] == false) return _revealUri[_season]; if(bytes(_customTokenURI[_tokenId]).length != 0) return _customTokenURI[_tokenId];//custom URI return string(abi.encodePacked(_currentBaseURI(_season), Strings.toString(_tokenId), _extension)); } //common mint.transfer to _address. function _commonMint(address _address,uint256 _amount) internal virtual { require((_amount + totalSupply()) <= (maxSupply), "No more NFTs"); _safeMint(_address, _amount); } //owner mint.transfer to _address.only owner. function ownerMint(uint256 _amount, address _address) external virtual onlyOwner { _commonMint(_address, _amount); } //WL mint. function whitelistMint(uint256 _amount, bytes32[] memory proof_, bytes32[] memory proof1_, bytes32[] memory proof2_) external payable virtual nonReentrant { _whitelistMintCheck(_amount, proof_, proof1_, proof2_); _whitelistMintCheckValue(_amount); unchecked{ _wlMinted[_seasonCounter][msg.sender][_wlResetIndex] += _amount; } _commonMint(msg.sender, _amount); } //WL check.except value. function _whitelistMintCheck(uint256 _amount, bytes32[] memory proof_, bytes32[] memory proof1_, bytes32[] memory proof2_) internal virtual { require(isWlEnabled, "whitelistMint is Paused"); require(_isWhitelisted(msg.sender, proof_, proof1_, proof2_), "You are not whitelisted!"); uint256 maxMints = _getWhitelistedMaxMints(msg.sender, proof_, proof1_, proof2_); require(maxMints >= _amount, "whitelistMint: Over max mints per wallet"); require(maxMints >= _wlMinted[_seasonCounter][msg.sender][_wlResetIndex] + _amount, "You have no whitelistMint left"); } //WL check.Only Value.for optional free mint. function _whitelistMintCheckValue(uint256 _amount) internal virtual { require(msg.value == wlMintPrice * _amount, "ETH value is not correct"); } //Public mint. function publicMint(uint256 _amount) external payable virtual nonReentrant { require(isPsEnabled, "publicMint is Paused"); require(maxMintsPerPS >= _amount, "publicMint: Over max mints per wallet"); require(maxMintsPerPS >= _psMinted[_seasonCounter][msg.sender] + _amount, "You have no publicMint left"); require(msg.value == psMintPrice * _amount, "ETH value is not correct"); unchecked{ _psMinted[_seasonCounter][msg.sender] += _amount; } _commonMint(msg.sender, _amount); } //burn function burn(uint256 tokenId) external virtual { _burn(tokenId, true); } //widraw ETH from this contract.only owner. function withdraw() external payable virtual onlyOwner nonReentrant{ // This will payout the owner 100% of the contract balance. // Do not remove this otherwise you will not be able to withdraw the funds. // ============================================================================= bool os; if(_withdrawWallet != address(0)){//if _withdrawWallet has. (os, ) = payable(_withdrawWallet).call{value: address(this).balance}(""); }else{ (os, ) = payable(owner()).call{value: address(this).balance}(""); } require(os); // ============================================================================= } //return wallet owned tokenids.it used high gas and running time. function walletOfOwner(address owner) external view virtual returns (uint256[] memory) { //copy from tokensOfOwner in ERC721AQueryable.sol unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) 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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC4907A.sol'; import '../ERC721A.sol'; /** * @title ERC4907A * * @dev [ERC4907](https://eips.ethereum.org/EIPS/eip-4907) compliant * extension of ERC721A, which allows owners and authorized addresses * to add a time-limited role with restricted permissions to ERC721 tokens. */ abstract contract ERC4907A is ERC721A, IERC4907A { // The bit position of `expires` in packed user info. uint256 private constant _BITPOS_EXPIRES = 160; // Mapping from token ID to user info. // // Bits Layout: // - [0..159] `user` // - [160..223] `expires` mapping(uint256 => uint256) private _packedUserInfo; /** * @dev Sets the `user` and `expires` for `tokenId`. * The zero address indicates there is no user. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function setUser( uint256 tokenId, address user, uint64 expires ) public virtual override { // Require the caller to be either the token owner or an approved operator. address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) if (getApproved(tokenId) != _msgSenderERC721A()) revert SetUserCallerNotOwnerNorApproved(); _packedUserInfo[tokenId] = (uint256(expires) << _BITPOS_EXPIRES) | uint256(uint160(user)); emit UpdateUser(tokenId, user, expires); } /** * @dev Returns the user address for `tokenId`. * The zero address indicates that there is no user or if the user is expired. */ function userOf(uint256 tokenId) public view virtual override returns (address) { uint256 packed = _packedUserInfo[tokenId]; assembly { // Branchless `packed *= (block.timestamp <= expires ? 1 : 0)`. // If the `block.timestamp == expires`, the `lt` clause will be true // if there is a non-zero user address in the lower 160 bits of `packed`. packed := mul( packed, // `block.timestamp <= expires ? 1 : 0`. lt(shl(_BITPOS_EXPIRES, timestamp()), packed) ) } return address(uint160(packed)); } /** * @dev Returns the user's expires of `tokenId`. */ function userExpires(uint256 tokenId) public view virtual override returns (uint256) { return _packedUserInfo[tokenId] >> _BITPOS_EXPIRES; } /** * @dev Override of {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC721A) returns (bool) { // The interface ID for ERC4907 is `0xad092b5c`, // as defined in [ERC4907](https://eips.ethereum.org/EIPS/eip-4907). return super.supportsInterface(interfaceId) || interfaceId == 0xad092b5c; } /** * @dev Returns the user address for `tokenId`, ignoring the expiry status. */ function _explicitUserOf(uint256 tokenId) internal view virtual returns (address) { return address(uint160(_packedUserInfo[tokenId])); } }
// 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) 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 // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC4907A. */ interface IERC4907A is IERC721A { /** * The caller must own the token or be an approved operator. */ error SetUserCallerNotOwnerNorApproved(); /** * @dev Emitted when the `user` of an NFT or the `expires` of the `user` is changed. * The zero address for user indicates that there is no user address. */ event UpdateUser(uint256 indexed tokenId, address indexed user, uint64 expires); /** * @dev Sets the `user` and `expires` for `tokenId`. * The zero address indicates there is no user. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function setUser( uint256 tokenId, address user, uint64 expires ) external; /** * @dev Returns the user address for `tokenId`. * The zero address indicates that there is no user or if the user is expired. */ function userOf(uint256 tokenId) external view returns (address); /** * @dev Returns the user's expires of `tokenId`. */ function userExpires(uint256 tokenId) external view returns (uint256); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": true, "runs": 1 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SetUserCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint64","name":"expires","type":"uint64"}],"name":"UpdateUser","type":"event"},{"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":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"getContractStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getCustomTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSeason","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getSeasonByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof1_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof2_","type":"bytes32[]"}],"name":"getWhitelistedMaxMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWlResetIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"hasWhitelistedOneWL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"hasWhitelistedOneWL1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"hasWhitelistedOneWL2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incrementSeason","outputs":[],"stateMutability":"nonpayable","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":"isPsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"isRevealedBySeason","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSBTEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof1_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof2_","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWlEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerWL1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerWL2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"psMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"psMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"psMintedBySeason","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetWlMinted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"uint256","name":"","type":"uint256"}],"name":"seasonStartTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"setBaseURIBySeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"status_","type":"uint256"}],"name":"setContractStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"uri_","type":"string"}],"name":"setCustomTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setHiddenBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"setHiddenBaseURIBySeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setPsMaxMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPsPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"setRevealBySeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"","type":"bool"}],"name":"setSBTMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint64","name":"expires","type":"uint64"}],"name":"setUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setWithdrawWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setWlMaxMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setWlMaxMints1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setWlMaxMints2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setWlPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"userExpires","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"userOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof1_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof2_","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"wlMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"wlMintedBySeason","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003eae38038062003eae833981016040819052620000349162000263565b818181816200004333620000a0565b815162000058906003906020850190620000f0565b5080516200006e906004906020840190620000f0565b506001808155600a5550620000839050600190565b601c546000908152601d6020526040902055506200030a92505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620000fe90620002cd565b90600052602060002090601f0160209004810192826200012257600085556200016d565b82601f106200013d57805160ff19168380011785556200016d565b828001600101855582156200016d579182015b828111156200016d57825182559160200191906001019062000150565b506200017b9291506200017f565b5090565b5b808211156200017b576000815560010162000180565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001be57600080fd5b81516001600160401b0380821115620001db57620001db62000196565b604051601f8301601f19908116603f0116810190828211818310171562000206576200020662000196565b816040528381526020925086838588010111156200022357600080fd5b600091505b8382101562000247578582018301518183018401529082019062000228565b83821115620002595760008385830101525b9695505050505050565b600080604083850312156200027757600080fd5b82516001600160401b03808211156200028f57600080fd5b6200029d86838701620001ac565b93506020850151915080821115620002b457600080fd5b50620002c385828601620001ac565b9150509250929050565b600181811c90821680620002e257607f821691505b602082108114156200030457634e487b7160e01b600052602260045260246000fd5b50919050565b613b94806200031a6000396000f3fe60806040526004361061038e5760003560e01c80630163561b1461039357806301ffc9a7146103bc57806304634d8d146103ec578063062cb3011461040e57806306fdde0314610450578063081812fc14610472578063095ea7b3146104aa5780630c2254e3146104ca5780630d9005ae146104ea5780630f9eef09146104ff578063142957741461052057806318160ddd146105405780631a09cfe2146105555780631b82cf151461056b57806320ac68501461057e57806323b872dd1461059e5780632a3f300c146105be5780632a55205a146105de5780632c4e9fc61461061d5780632cf7f9c8146106335780632db115441461065357806331e2d959146106665780633ccfd60b1461067b57806342454db91461068357806342842e0e1461069957806342966c68146106b9578063438b6300146106d957806353c12e9f1461070657806354214f691461072657806354c9d2731461074d57806355f804b31461076257806359b89ca7146107825780635aca1bb6146107af578063605cc418146107cf5780636352211e146107ef5780636f8b44b01461080f57806370a082311461082f578063715018a61461084f578063719eaef814610864578063753f45421461088457806378a923801461089a5780637cb64759146108e8578063813779ef1461090857806383bedeb514610928578063851fc4b6146109585780638da5cb5b146109785780638dd07d0f1461098d5780638fc88c48146109ad57806390a667be146109dd5780639373f432146109fd578063942958f414610a1d578063945b8c7014610a6157806395d89b4114610a815780639970cc2914610a965780639a0f310014610aac5780639c9a943014610acc578063a22cb46514610ae6578063a8b9e64614610b06578063b1d3864d14610b1b578063b88d4fde14610b67578063bbc31d2f14610b87578063bd45f0f514610ba7578063bd57e5e914610bc7578063bd9ebe8b14610be7578063c032846b14610c07578063c1a5e08014610c1c578063c2f1f14a14610c3c578063c87b56dd14610c70578063ca7ce3ec14610c90578063ce7e3f5a14610cb0578063d52c57e014610cd0578063d5abeb0114610cf0578063d78be71c14610d06578063e030565e14610d26578063e8a3d48514610d46578063e8fa494e14610d5b578063e9186bce14610d70578063e985e9c514610d8f578063eb27ccb914610dd8578063ec5566b314610df8578063f2fde38b14610e18575b600080fd5b34801561039f57600080fd5b506103a960115481565b6040519081526020015b60405180910390f35b3480156103c857600080fd5b506103dc6103d73660046130dd565b610e38565b60405190151581526020016103b3565b3480156103f857600080fd5b5061040c610407366004613116565b610e67565b005b34801561041a57600080fd5b506103a9610429366004613159565b6000908152601a602090815260408083206001600160a01b03949094168352929052205490565b34801561045c57600080fd5b50610465610e7d565b6040516103b391906131db565b34801561047e57600080fd5b5061049261048d3660046131ee565b610f0f565b6040516001600160a01b0390911681526020016103b3565b3480156104b657600080fd5b5061040c6104c5366004613159565b610f53565b3480156104d657600080fd5b5061040c6104e53660046132c4565b610ff3565b3480156104f657600080fd5b506103a961101f565b34801561050b57600080fd5b506014546103dc90600160a01b900460ff1681565b34801561052c57600080fd5b5061040c61053b3660046131ee565b61102f565b34801561054c57600080fd5b506103a961103c565b34801561056157600080fd5b506103a960125481565b61040c610579366004613387565b61104a565b34801561058a57600080fd5b5061040c610599366004613418565b6110d4565b3480156105aa57600080fd5b5061040c6105b936600461344c565b6110fe565b3480156105ca57600080fd5b5061040c6105d9366004613498565b611294565b3480156105ea57600080fd5b506105fe6105f93660046134b3565b6112be565b604080516001600160a01b0390931683526020830191909152016103b3565b34801561062957600080fd5b506103a9600d5481565b34801561063f57600080fd5b506103dc61064e3660046134d5565b61136a565b61040c6106613660046131ee565b6113a8565b34801561067257600080fd5b50601b546103a9565b61040c611556565b34801561068f57600080fd5b506103a9600e5481565b3480156106a557600080fd5b5061040c6106b436600461344c565b6115fc565b3480156106c557600080fd5b5061040c6106d43660046131ee565b611617565b3480156106e557600080fd5b506106f96106f4366004613522565b611625565b6040516103b3919061353d565b34801561071257600080fd5b5061040c610721366004613575565b611712565b34801561073257600080fd5b50601c5460009081526018602052604090205460ff166103dc565b34801561075957600080fd5b50601c546103a9565b34801561076e57600080fd5b5061040c61077d366004613418565b611739565b34801561078e57600080fd5b506103a961079d3660046131ee565b601d6020526000908152604090205481565b3480156107bb57600080fd5b5061040c6107ca366004613498565b611763565b3480156107db57600080fd5b5061040c6107ea3660046131ee565b611785565b3480156107fb57600080fd5b5061049261080a3660046131ee565b611792565b34801561081b57600080fd5b5061040c61082a3660046131ee565b61179d565b34801561083b57600080fd5b506103a961084a366004613522565b6117fd565b34801561085b57600080fd5b5061040c61184b565b34801561087057600080fd5b5061040c61087f3660046131ee565b61185f565b34801561089057600080fd5b506103a960105481565b3480156108a657600080fd5b506103a96108b5366004613522565b601c5460009081526019602090815260408083206001600160a01b039094168352928152828220601b5483529052205490565b3480156108f457600080fd5b5061040c6109033660046131ee565b61186c565b34801561091457600080fd5b5061040c6109233660046131ee565b611879565b34801561093457600080fd5b506103dc6109433660046131ee565b60009081526018602052604090205460ff1690565b34801561096457600080fd5b5061040c610973366004613591565b611886565b34801561098457600080fd5b506104926118d2565b34801561099957600080fd5b5061040c6109a83660046131ee565b6118e1565b3480156109b957600080fd5b506103a96109c83660046131ee565b60009081526009602052604090205460a01c90565b3480156109e957600080fd5b5061040c6109f83660046132c4565b6118ee565b348015610a0957600080fd5b5061040c610a18366004613522565b611915565b348015610a2957600080fd5b506103a9610a38366004613522565b601c546000908152601a602090815260408083206001600160a01b039094168352929052205490565b348015610a6d57600080fd5b506103dc610a7c3660046135cd565b61193f565b348015610a8d57600080fd5b50610465611956565b348015610aa257600080fd5b506103a9600f5481565b348015610ab857600080fd5b5061040c610ac7366004613498565b611965565b348015610ad857600080fd5b506017546103dc9060ff1681565b348015610af257600080fd5b5061040c610b01366004613608565b61197d565b348015610b1257600080fd5b5061040c611a13565b348015610b2757600080fd5b506103a9610b36366004613159565b60009081526019602090815260408083206001600160a01b03949094168352928152828220601b5483529052205490565b348015610b7357600080fd5b5061040c610b8236600461363b565b611a32565b348015610b9357600080fd5b506103a9610ba23660046135cd565b611a7c565b348015610bb357600080fd5b50610465610bc23660046131ee565b611a8a565b348015610bd357600080fd5b506103a9610be23660046131ee565b611b4f565b348015610bf357600080fd5b5061040c610c023660046131ee565b611b5a565b348015610c1357600080fd5b50601e546103a9565b348015610c2857600080fd5b506103dc610c373660046134d5565b611b67565b348015610c4857600080fd5b50610492610c573660046131ee565b6000908152600960205260409020544260a01b81110290565b348015610c7c57600080fd5b50610465610c8b3660046131ee565b611b9d565b348015610c9c57600080fd5b5061040c610cab366004613498565b611cfd565b348015610cbc57600080fd5b5061040c610ccb3660046131ee565b611d18565b348015610cdc57600080fd5b5061040c610ceb3660046136aa565b611d25565b348015610cfc57600080fd5b506103a960135481565b348015610d1257600080fd5b5061040c610d213660046131ee565b611d37565b348015610d3257600080fd5b5061040c610d413660046136cd565b611d44565b348015610d5257600080fd5b50610465611e13565b348015610d6757600080fd5b5061040c611e1d565b348015610d7c57600080fd5b506017546103dc90610100900460ff1681565b348015610d9b57600080fd5b506103dc610daa366004613719565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610de457600080fd5b506103dc610df33660046134d5565b611e6b565b348015610e0457600080fd5b5061040c610e133660046131ee565b611ea1565b348015610e2457600080fd5b5061040c610e33366004613522565b611eae565b6000610e4382611f24565b80610e525750610e5282611f72565b80610e615750610e6182611f9a565b92915050565b610e6f611fcf565b610e79828261202e565b5050565b606060038054610e8c90613743565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb890613743565b8015610f055780601f10610eda57610100808354040283529160200191610f05565b820191906000526020600020905b815481529060010190602001808311610ee857829003601f168201915b5050505050905090565b6000610f1a82612127565b610f37576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610f5e82611792565b9050336001600160a01b03821614610f9757610f7a8133610daa565b610f97576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610ffb611fcf565b6000818152601660209081526040909120835161101a92850190613007565b505050565b600061102a60015490565b905090565b611037611fcf565b602155565b600254600154036000190190565b6002600a5414156110765760405162461bcd60e51b815260040161106d9061377e565b60405180910390fd5b6002600a556110878484848461215c565b611090846122f4565b601c54600090815260196020908152604080832033808552908352818420601b5485529092529091208054860190556110c99085612320565b50506001600a555050565b6110dc611fcf565b601c5460009081526015602090815260409091208251610e7992840190613007565b60006111098261237c565b9050836001600160a01b0316816001600160a01b03161461113c5760405162a1148160e81b815260040160405180910390fd5b600082815260076020526040902080546111688187335b6001600160a01b039081169116811491141790565b611193576111768633610daa565b61119357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166111ba57604051633a954ecd60e21b815260040160405180910390fd5b6111c786868660016123ec565b80156111d257600082555b6001600160a01b0386811660009081526006602052604080822080546000190190559187168152208054600101905561120f85600160e11b6124a9565b600085815260056020526040902055600160e11b831661125d576001840160008181526005602052604090205461125b57600154811461125b5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020613b3f83398151915260405160405180910390a4505050505050565b61129c611fcf565b601c546000908152601860205260409020805460ff1916911515919091179055565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291611333575060408051808201909152600b546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611352906001600160601b0316876137cb565b61135c9190613800565b915196919550909350505050565b6000808360405160200161137e9190613814565b6040516020818303038152906040528051906020012090506113a083826124be565b949350505050565b6002600a5414156113cb5760405162461bcd60e51b815260040161106d9061377e565b6002600a55601754610100900460ff1661141e5760405162461bcd60e51b81526020600482015260146024820152731c1d589b1a58d35a5b9d081a5cc814185d5cd95960621b604482015260640161106d565b80601254101561147e5760405162461bcd60e51b815260206004820152602560248201527f7075626c69634d696e743a204f766572206d6178206d696e7473207065722077604482015264185b1b195d60da1b606482015260840161106d565b601c546000908152601a602090815260408083203384529091529020546114a690829061382c565b60125410156114f55760405162461bcd60e51b815260206004820152601b60248201527a165bdd481a185d99481b9bc81c1d589b1a58d35a5b9d081b19599d602a1b604482015260640161106d565b80600e5461150391906137cb565b34146115215760405162461bcd60e51b815260040161106d90613844565b601c546000908152601a6020908152604080832033808552925290912080548301905561154e9082612320565b506001600a55565b61155e611fcf565b6002600a5414156115815760405162461bcd60e51b815260040161106d9061377e565b6002600a55604051735b7717f46809c684fc11a0004ab07eafbd82d34490600090829047908381818185875af1925050503d80600081146115de576040519150601f19603f3d011682016040523d82523d6000602084013e6115e3565b606091505b505080915050806115f357600080fd5b50506001600a55565b61101a83838360405180602001604052806000815250611a32565b6116228160016124da565b50565b60606000806000611635856117fd565b90506000816001600160401b0381111561165157611651613207565b60405190808252806020026020018201604052801561167a578160200160208202803683370190505b50905061168561308b565b60015b8386146117065761169881612614565b91508160400151156116a9576116fe565b81516001600160a01b0316156116be57815194505b876001600160a01b0316856001600160a01b031614156116fe57808387806001019850815181106116f1576116f1613876565b6020026020010181815250505b600101611688565b50909695505050505050565b61171a611fcf565b6000908152601860205260409020805460ff1916911515919091179055565b611741611fcf565b601c5460009081526016602090815260409091208251610e7992840190613007565b61176b611fcf565b601780549115156101000261ff0019909216919091179055565b61178d611fcf565b601055565b6000610e618261237c565b6117a5611fcf565b806117ae61103c565b11156117f85760405162461bcd60e51b81526020600482015260196024820152782637bbb2b9103a3430b7102fb1bab93932b73a24b73232bc1760391b604482015260640161106d565b601355565b60006001600160a01b038216611826576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b611853611fcf565b61185d6000612634565b565b611867611fcf565b600f55565b611874611fcf565b601f55565b611881611fcf565b601255565b61188e611fcf565b61189782612127565b6118b35760405162461bcd60e51b815260040161106d9061388c565b6000828152602260209081526040909120825161101a92840190613007565b6000546001600160a01b031690565b6118e9611fcf565b600d55565b6118f6611fcf565b6000818152601560209081526040909120835161101a92850190613007565b61191d611fcf565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b600061194d85858585612684565b95945050505050565b606060048054610e8c90613743565b61196d611fcf565b506014805460ff60a01b19169055565b6001600160a01b0382163314156119a75760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a1b611fcf565b601b8054906000611a2b836138c3565b9190505550565b611a3d8484846110fe565b6001600160a01b0383163b15611a7657611a59848484846126e4565b611a76576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600061194d858585856127d8565b6060611a9582612127565b611ab15760405162461bcd60e51b815260040161106d9061388c565b60008281526022602052604090208054611aca90613743565b80601f0160208091040260200160405190810160405280929190818152602001828054611af690613743565b8015611b435780601f10611b1857610100808354040283529160200191611b43565b820191906000526020600020905b815481529060010190602001808311611b2657829003601f168201915b50505050509050919050565b6000610e618261284b565b611b62611fcf565b602055565b60008083604051602001611b7b9190613814565b6040516020818303038152906040528051906020012090506113a08382612904565b6060611ba882612127565b611bc45760405162461bcd60e51b815260040161106d9061388c565b6000611bcf8361284b565b60008181526018602052604090205490915060ff16611c875760008181526015602052604090208054611c0190613743565b80601f0160208091040260200160405190810160405280929190818152602001828054611c2d90613743565b8015611c7a5780601f10611c4f57610100808354040283529160200191611c7a565b820191906000526020600020905b815481529060010190602001808311611c5d57829003601f168201915b5050505050915050919050565b60008381526022602052604090208054611ca090613743565b159050611cc05760008381526022602052604090208054611c0190613743565b611cc981612920565b611cd28461293d565b6023604051602001611ce6939291906138de565b604051602081830303815290604052915050919050565b611d05611fcf565b6017805460ff1916911515919091179055565b611d20611fcf565b601155565b611d2d611fcf565b610e798183612320565b611d3f611fcf565b600e55565b6000611d4f84611792565b9050336001600160a01b03821614611da057611d6b8133610daa565b611da05733611d7985610f0f565b6001600160a01b031614611da0576040516309e3bb1d60e31b815260040160405180910390fd5b6000848152600960209081526040918290206001600160a01b03861660a086901b600160a01b600160e01b0316811790915591516001600160401b038516815286917f4e06b4e7000e659094299b3533b47b6aa8ad048e95e872d23d1f4ee55af89cfe910160405180910390a350505050565b606061102a612a3a565b611e25611fcf565b6017805461ffff191690556000601f81905560208190556021819055601c805491611e4f836138c3565b9091555050600154601c546000908152601d6020526040902055565b60008083604051602001611e7f9190613814565b6040516020818303038152906040528051906020012090506113a08382612aba565b611ea9611fcf565b601e55565b611eb6611fcf565b6001600160a01b038116611f1b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161106d565b61162281612634565b60006301ffc9a760e01b6001600160e01b031983161480611f5557506380ac58cd60e01b6001600160e01b03198316145b80610e615750506001600160e01b031916635b5e139f60e01b1490565b6000611f7d82611f24565b80610e615750506001600160e01b031916632b424ad760e21b1490565b60006001600160e01b0319821663152a902d60e11b1480610e6157506301ffc9a760e01b6001600160e01b0319831614610e61565b33611fd86118d2565b6001600160a01b03161461185d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161106d565b6127106001600160601b038216111561209c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161106d565b6001600160a01b0382166120ee5760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b604482015260640161106d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600b55565b60008160011115801561213b575060015482105b8015610e61575050600090815260056020526040902054600160e01b161590565b60175460ff166121a85760405162461bcd60e51b81526020600482015260176024820152761dda1a5d195b1a5cdd135a5b9d081a5cc814185d5cd959604a1b604482015260640161106d565b6121b433848484612684565b6121fb5760405162461bcd60e51b8152602060048201526018602482015277596f7520617265206e6f742077686974656c69737465642160401b604482015260640161106d565b6000612209338585856127d8565b90508481101561226c5760405162461bcd60e51b815260206004820152602860248201527f77686974656c6973744d696e743a204f766572206d6178206d696e74732070656044820152671c881dd85b1b195d60c21b606482015260840161106d565b601c5460009081526019602090815260408083203384528252808320601b54845290915290205461229e90869061382c565b8110156122ed5760405162461bcd60e51b815260206004820152601e60248201527f596f752068617665206e6f2077686974656c6973744d696e74206c6566740000604482015260640161106d565b5050505050565b80600d5461230291906137cb565b34146116225760405162461bcd60e51b815260040161106d90613844565b60135461232b61103c565b612335908361382c565b11156123725760405162461bcd60e51b815260206004820152600c60248201526b4e6f206d6f7265204e46547360a01b604482015260640161106d565b610e798282612ad6565b600081806001116123d3576001548110156123d357600081815260056020526040902054600160e01b81166123d1575b806123ca5750600019016000818152600560205260409020546123ac565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b601454600160a01b900460ff16158061241d57506124086118d2565b6001600160a01b0316336001600160a01b0316145b8061242f57506001600160a01b038416155b8061244157506001600160a01b038316155b6124a45760405162461bcd60e51b815260206004820152602e60248201527f534254206d6f646520456e61626c65643a20746f6b656e207472616e7366657260448201526d103bb434b632903830bab9b2b21760911b606482015260840161106d565b611a76565b4260a01b176001600160a01b03919091161790565b602154600090158015906123ca57506123ca8360215484612af0565b60006124e58361237c565b90508060008061250386600090815260076020526040902080549091565b91509150841561254357612518818433611153565b612543576125268333610daa565b61254357604051632ce44b5f60e11b815260040160405180910390fd5b6125518360008860016123ec565b801561255c57600082555b6001600160a01b038316600090815260066020526040902080546001600160801b0301905561258f83600360e01b6124a9565b600087815260056020526040902055600160e11b84166125dd57600186016000818152600560205260409020546125db5760015481146125db5760008181526005602052604090208590555b505b60405186906000906001600160a01b03861690600080516020613b3f833981519152908390a4505060028054600101905550505050565b61261c61308b565b600082815260056020526040902054610e6190612b06565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080856040516020016126989190613814565b6040516020818303038152906040528051906020012090506126ba8582612aba565b806126ca57506126ca8482612904565b806126da57506126da83826124be565b9695505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906127199033908990889088906004016139a2565b602060405180830381600087803b15801561273357600080fd5b505af1925050508015612763575060408051601f3d908101601f19168201909252612760918101906139d5565b60015b6127be573d808015612791576040519150601f19603f3d011682016040523d82523d6000602084013e612796565b606091505b5080516127b6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113a0565b600080856040516020016127ec9190613814565b60405160208183030381529060405280519060200120905060006128108683612aba565b1561281a57600f54015b6128248583612904565b1561282e57601054015b61283884836124be565b156126da57601154019695505050505050565b600061285682612127565b6128ad5760405162461bcd60e51b815260206004820152602260248201527f536561736f6e20717565727920666f72206e6f6e6578697374656e7420746f6b60448201526132b760f11b606482015260840161106d565b601c546402540be400905b6000818152601d602052604090205484108015906128d557508184105b156128e1579392505050565b6000818152601d60205260409020549150806128fc816139f2565b9150506128b8565b602054600090158015906123ca57506123ca8360205484612af0565b6000818152601660205260409020805460609190611aca90613743565b6060816129615750506040805180820190915260018152600360fc1b602082015290565b8160005b811561298b5780612975816138c3565b91506129849050600a83613800565b9150612965565b6000816001600160401b038111156129a5576129a5613207565b6040519080825280601f01601f1916602001820160405280156129cf576020820181803683370190505b5090505b84156113a0576129e4600183613a09565b91506129f1600a86613a20565b6129fc90603061382c565b60f81b818381518110612a1157612a11613876565b60200101906001600160f81b031916908160001a905350612a33600a86613800565b94506129d3565b6060600080612a4b816127106112be565b91509150612a94612a5b8261293d565b612a6f846001600160a01b03166014612b49565b604051602001612a80929190613a34565b604051602081830303815290604052612ce4565b604051602001612aa49190613ab9565b6040516020818303038152906040529250505090565b601f54600090158015906123ca57506123ca83601f5484612af0565b610e79828260405180602001604052806000815250612e37565b600082612afd8584612e9d565b14949350505050565b612b0e61308b565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b82161515604082015260e89190911c606082015290565b60606000612b588360026137cb565b612b6390600261382c565b6001600160401b03811115612b7a57612b7a613207565b6040519080825280601f01601f191660200182016040528015612ba4576020820181803683370190505b509050600360fc1b81600081518110612bbf57612bbf613876565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612bee57612bee613876565b60200101906001600160f81b031916908160001a9053506000612c128460026137cb565b612c1d90600161382c565b90505b6001811115612c95576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612c5157612c51613876565b1a60f81b828281518110612c6757612c67613876565b60200101906001600160f81b031916908160001a90535060049490941c93612c8e816139f2565b9050612c20565b5083156123ca5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161106d565b6060815160001415612d0457505060408051602081019091526000815290565b6000604051806060016040528060408152602001613aff6040913990506000600384516002612d33919061382c565b612d3d9190613800565b612d489060046137cb565b6001600160401b03811115612d5f57612d5f613207565b6040519080825280601f01601f191660200182016040528015612d89576020820181803683370190505b509050600182016020820185865187015b80821015612df5576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612d9a565b5050600386510660018114612e115760028114612e2457612e2c565b603d6001830353603d6002830353612e2c565b603d60018303535b509195945050505050565b612e418383612eea565b6001600160a01b0383163b1561101a576001548281035b612e6b60008683806001019450866126e4565b612e88576040516368d2bf6b60e11b815260040160405180910390fd5b818110612e585781600154146122ed57600080fd5b600081815b8451811015612ee257612ece82868381518110612ec157612ec1613876565b6020026020010151612fd8565b915080612eda816138c3565b915050612ea2565b509392505050565b60015481612f0b5760405163b562e8dd60e01b815260040160405180910390fd5b612f1860008483856123ec565b6001600160a01b038316600090815260066020526040902080546001600160401b018402019055612f4f836001841460e11b6124a9565b6000828152600560205260408120919091556001600160a01b038416908383019083908390600080516020613b3f8339815191528180a4600183015b818114612fb15780836000600080516020613b3f833981519152600080a4600101612f8b565b5081612fcf57604051622e076360e81b815260040160405180910390fd5b60015550505050565b6000818310612ff45760008281526020849052604090206123ca565b60008381526020839052604090206123ca565b82805461301390613743565b90600052602060002090601f016020900481019282613035576000855561307b565b82601f1061304e57805160ff191683800117855561307b565b8280016001018555821561307b579182015b8281111561307b578251825591602001919060010190613060565b506130879291506130b2565b5090565b60408051608081018252600080825260208201819052918101829052606081019190915290565b5b8082111561308757600081556001016130b3565b6001600160e01b03198116811461162257600080fd5b6000602082840312156130ef57600080fd5b81356123ca816130c7565b80356001600160a01b038116811461311157600080fd5b919050565b6000806040838503121561312957600080fd5b613132836130fa565b915060208301356001600160601b038116811461314e57600080fd5b809150509250929050565b6000806040838503121561316c57600080fd5b613175836130fa565b946020939093013593505050565b60005b8381101561319e578181015183820152602001613186565b83811115611a765750506000910152565b600081518084526131c7816020860160208601613183565b601f01601f19169290920160200192915050565b6020815260006123ca60208301846131af565b60006020828403121561320057600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561324557613245613207565b604052919050565b60006001600160401b0383111561326657613266613207565b613279601f8401601f191660200161321d565b905082815283838301111561328d57600080fd5b828260208301376000602084830101529392505050565b600082601f8301126132b557600080fd5b6123ca8383356020850161324d565b600080604083850312156132d757600080fd5b82356001600160401b038111156132ed57600080fd5b6132f9858286016132a4565b95602094909401359450505050565b600082601f83011261331957600080fd5b813560206001600160401b0382111561333457613334613207565b8160051b61334382820161321d565b928352848101820192828101908785111561335d57600080fd5b83870192505b8483101561337c57823582529183019190830190613363565b979650505050505050565b6000806000806080858703121561339d57600080fd5b8435935060208501356001600160401b03808211156133bb57600080fd5b6133c788838901613308565b945060408701359150808211156133dd57600080fd5b6133e988838901613308565b935060608701359150808211156133ff57600080fd5b5061340c87828801613308565b91505092959194509250565b60006020828403121561342a57600080fd5b81356001600160401b0381111561344057600080fd5b6113a0848285016132a4565b60008060006060848603121561346157600080fd5b61346a846130fa565b9250613478602085016130fa565b9150604084013590509250925092565b8035801515811461311157600080fd5b6000602082840312156134aa57600080fd5b6123ca82613488565b600080604083850312156134c657600080fd5b50508035926020909101359150565b600080604083850312156134e857600080fd5b6134f1836130fa565b915060208301356001600160401b0381111561350c57600080fd5b61351885828601613308565b9150509250929050565b60006020828403121561353457600080fd5b6123ca826130fa565b6020808252825182820181905260009190848201906040850190845b8181101561170657835183529284019291840191600101613559565b6000806040838503121561358857600080fd5b61317583613488565b600080604083850312156135a457600080fd5b8235915060208301356001600160401b038111156135c157600080fd5b613518858286016132a4565b600080600080608085870312156135e357600080fd5b6135ec856130fa565b935060208501356001600160401b03808211156133bb57600080fd5b6000806040838503121561361b57600080fd5b613624836130fa565b915061363260208401613488565b90509250929050565b6000806000806080858703121561365157600080fd5b61365a856130fa565b9350613668602086016130fa565b92506040850135915060608501356001600160401b0381111561368a57600080fd5b8501601f8101871361369b57600080fd5b61340c8782356020840161324d565b600080604083850312156136bd57600080fd5b82359150613632602084016130fa565b6000806000606084860312156136e257600080fd5b833592506136f2602085016130fa565b915060408401356001600160401b038116811461370e57600080fd5b809150509250925092565b6000806040838503121561372c57600080fd5b613735836130fa565b9150613632602084016130fa565b600181811c9082168061375757607f821691505b6020821081141561377857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156137e5576137e56137b5565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261380f5761380f6137ea565b500490565b60609190911b6001600160601b031916815260140190565b6000821982111561383f5761383f6137b5565b500190565b602080825260189082015277115512081d985b1d59481a5cc81b9bdd0818dbdc9c9958dd60421b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604082015260600190565b60006000198214156138d7576138d76137b5565b5060010190565b6000845160206138f18285838a01613183565b8551918401916139048184848a01613183565b8554920191600090600181811c908083168061392157607f831692505b85831081141561393f57634e487b7160e01b85526022600452602485fd5b808015613953576001811461396457613991565b60ff19851688528388019550613991565b60008b81526020902060005b858110156139895781548a820152908401908801613970565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126da908301846131af565b6000602082840312156139e757600080fd5b81516123ca816130c7565b600081613a0157613a016137b5565b506000190190565b600082821015613a1b57613a1b6137b5565b500390565b600082613a2f57613a2f6137ea565b500690565b7a3d9139b2b63632b92fb332b2afb130b9b4b9afb837b4b73a39911d60291b81528251600090613a6b81601b850160208801613183565b721610113332b2afb932b1b4b834b2b73a111d1160691b601b918401918201528351613a9e81602e840160208801613183565b61227d60f01b602e9290910191820152603001949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613af181601d850160208701613183565b91909101601d019291505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220805b40ca993917ff9e6d885d1aceaa51e0497c04f5a657c2d5f7e0cde05480fb64736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f5658494e20436f6c6c656374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045658494e00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061038e5760003560e01c80630163561b1461039357806301ffc9a7146103bc57806304634d8d146103ec578063062cb3011461040e57806306fdde0314610450578063081812fc14610472578063095ea7b3146104aa5780630c2254e3146104ca5780630d9005ae146104ea5780630f9eef09146104ff578063142957741461052057806318160ddd146105405780631a09cfe2146105555780631b82cf151461056b57806320ac68501461057e57806323b872dd1461059e5780632a3f300c146105be5780632a55205a146105de5780632c4e9fc61461061d5780632cf7f9c8146106335780632db115441461065357806331e2d959146106665780633ccfd60b1461067b57806342454db91461068357806342842e0e1461069957806342966c68146106b9578063438b6300146106d957806353c12e9f1461070657806354214f691461072657806354c9d2731461074d57806355f804b31461076257806359b89ca7146107825780635aca1bb6146107af578063605cc418146107cf5780636352211e146107ef5780636f8b44b01461080f57806370a082311461082f578063715018a61461084f578063719eaef814610864578063753f45421461088457806378a923801461089a5780637cb64759146108e8578063813779ef1461090857806383bedeb514610928578063851fc4b6146109585780638da5cb5b146109785780638dd07d0f1461098d5780638fc88c48146109ad57806390a667be146109dd5780639373f432146109fd578063942958f414610a1d578063945b8c7014610a6157806395d89b4114610a815780639970cc2914610a965780639a0f310014610aac5780639c9a943014610acc578063a22cb46514610ae6578063a8b9e64614610b06578063b1d3864d14610b1b578063b88d4fde14610b67578063bbc31d2f14610b87578063bd45f0f514610ba7578063bd57e5e914610bc7578063bd9ebe8b14610be7578063c032846b14610c07578063c1a5e08014610c1c578063c2f1f14a14610c3c578063c87b56dd14610c70578063ca7ce3ec14610c90578063ce7e3f5a14610cb0578063d52c57e014610cd0578063d5abeb0114610cf0578063d78be71c14610d06578063e030565e14610d26578063e8a3d48514610d46578063e8fa494e14610d5b578063e9186bce14610d70578063e985e9c514610d8f578063eb27ccb914610dd8578063ec5566b314610df8578063f2fde38b14610e18575b600080fd5b34801561039f57600080fd5b506103a960115481565b6040519081526020015b60405180910390f35b3480156103c857600080fd5b506103dc6103d73660046130dd565b610e38565b60405190151581526020016103b3565b3480156103f857600080fd5b5061040c610407366004613116565b610e67565b005b34801561041a57600080fd5b506103a9610429366004613159565b6000908152601a602090815260408083206001600160a01b03949094168352929052205490565b34801561045c57600080fd5b50610465610e7d565b6040516103b391906131db565b34801561047e57600080fd5b5061049261048d3660046131ee565b610f0f565b6040516001600160a01b0390911681526020016103b3565b3480156104b657600080fd5b5061040c6104c5366004613159565b610f53565b3480156104d657600080fd5b5061040c6104e53660046132c4565b610ff3565b3480156104f657600080fd5b506103a961101f565b34801561050b57600080fd5b506014546103dc90600160a01b900460ff1681565b34801561052c57600080fd5b5061040c61053b3660046131ee565b61102f565b34801561054c57600080fd5b506103a961103c565b34801561056157600080fd5b506103a960125481565b61040c610579366004613387565b61104a565b34801561058a57600080fd5b5061040c610599366004613418565b6110d4565b3480156105aa57600080fd5b5061040c6105b936600461344c565b6110fe565b3480156105ca57600080fd5b5061040c6105d9366004613498565b611294565b3480156105ea57600080fd5b506105fe6105f93660046134b3565b6112be565b604080516001600160a01b0390931683526020830191909152016103b3565b34801561062957600080fd5b506103a9600d5481565b34801561063f57600080fd5b506103dc61064e3660046134d5565b61136a565b61040c6106613660046131ee565b6113a8565b34801561067257600080fd5b50601b546103a9565b61040c611556565b34801561068f57600080fd5b506103a9600e5481565b3480156106a557600080fd5b5061040c6106b436600461344c565b6115fc565b3480156106c557600080fd5b5061040c6106d43660046131ee565b611617565b3480156106e557600080fd5b506106f96106f4366004613522565b611625565b6040516103b3919061353d565b34801561071257600080fd5b5061040c610721366004613575565b611712565b34801561073257600080fd5b50601c5460009081526018602052604090205460ff166103dc565b34801561075957600080fd5b50601c546103a9565b34801561076e57600080fd5b5061040c61077d366004613418565b611739565b34801561078e57600080fd5b506103a961079d3660046131ee565b601d6020526000908152604090205481565b3480156107bb57600080fd5b5061040c6107ca366004613498565b611763565b3480156107db57600080fd5b5061040c6107ea3660046131ee565b611785565b3480156107fb57600080fd5b5061049261080a3660046131ee565b611792565b34801561081b57600080fd5b5061040c61082a3660046131ee565b61179d565b34801561083b57600080fd5b506103a961084a366004613522565b6117fd565b34801561085b57600080fd5b5061040c61184b565b34801561087057600080fd5b5061040c61087f3660046131ee565b61185f565b34801561089057600080fd5b506103a960105481565b3480156108a657600080fd5b506103a96108b5366004613522565b601c5460009081526019602090815260408083206001600160a01b039094168352928152828220601b5483529052205490565b3480156108f457600080fd5b5061040c6109033660046131ee565b61186c565b34801561091457600080fd5b5061040c6109233660046131ee565b611879565b34801561093457600080fd5b506103dc6109433660046131ee565b60009081526018602052604090205460ff1690565b34801561096457600080fd5b5061040c610973366004613591565b611886565b34801561098457600080fd5b506104926118d2565b34801561099957600080fd5b5061040c6109a83660046131ee565b6118e1565b3480156109b957600080fd5b506103a96109c83660046131ee565b60009081526009602052604090205460a01c90565b3480156109e957600080fd5b5061040c6109f83660046132c4565b6118ee565b348015610a0957600080fd5b5061040c610a18366004613522565b611915565b348015610a2957600080fd5b506103a9610a38366004613522565b601c546000908152601a602090815260408083206001600160a01b039094168352929052205490565b348015610a6d57600080fd5b506103dc610a7c3660046135cd565b61193f565b348015610a8d57600080fd5b50610465611956565b348015610aa257600080fd5b506103a9600f5481565b348015610ab857600080fd5b5061040c610ac7366004613498565b611965565b348015610ad857600080fd5b506017546103dc9060ff1681565b348015610af257600080fd5b5061040c610b01366004613608565b61197d565b348015610b1257600080fd5b5061040c611a13565b348015610b2757600080fd5b506103a9610b36366004613159565b60009081526019602090815260408083206001600160a01b03949094168352928152828220601b5483529052205490565b348015610b7357600080fd5b5061040c610b8236600461363b565b611a32565b348015610b9357600080fd5b506103a9610ba23660046135cd565b611a7c565b348015610bb357600080fd5b50610465610bc23660046131ee565b611a8a565b348015610bd357600080fd5b506103a9610be23660046131ee565b611b4f565b348015610bf357600080fd5b5061040c610c023660046131ee565b611b5a565b348015610c1357600080fd5b50601e546103a9565b348015610c2857600080fd5b506103dc610c373660046134d5565b611b67565b348015610c4857600080fd5b50610492610c573660046131ee565b6000908152600960205260409020544260a01b81110290565b348015610c7c57600080fd5b50610465610c8b3660046131ee565b611b9d565b348015610c9c57600080fd5b5061040c610cab366004613498565b611cfd565b348015610cbc57600080fd5b5061040c610ccb3660046131ee565b611d18565b348015610cdc57600080fd5b5061040c610ceb3660046136aa565b611d25565b348015610cfc57600080fd5b506103a960135481565b348015610d1257600080fd5b5061040c610d213660046131ee565b611d37565b348015610d3257600080fd5b5061040c610d413660046136cd565b611d44565b348015610d5257600080fd5b50610465611e13565b348015610d6757600080fd5b5061040c611e1d565b348015610d7c57600080fd5b506017546103dc90610100900460ff1681565b348015610d9b57600080fd5b506103dc610daa366004613719565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610de457600080fd5b506103dc610df33660046134d5565b611e6b565b348015610e0457600080fd5b5061040c610e133660046131ee565b611ea1565b348015610e2457600080fd5b5061040c610e33366004613522565b611eae565b6000610e4382611f24565b80610e525750610e5282611f72565b80610e615750610e6182611f9a565b92915050565b610e6f611fcf565b610e79828261202e565b5050565b606060038054610e8c90613743565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb890613743565b8015610f055780601f10610eda57610100808354040283529160200191610f05565b820191906000526020600020905b815481529060010190602001808311610ee857829003601f168201915b5050505050905090565b6000610f1a82612127565b610f37576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610f5e82611792565b9050336001600160a01b03821614610f9757610f7a8133610daa565b610f97576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610ffb611fcf565b6000818152601660209081526040909120835161101a92850190613007565b505050565b600061102a60015490565b905090565b611037611fcf565b602155565b600254600154036000190190565b6002600a5414156110765760405162461bcd60e51b815260040161106d9061377e565b60405180910390fd5b6002600a556110878484848461215c565b611090846122f4565b601c54600090815260196020908152604080832033808552908352818420601b5485529092529091208054860190556110c99085612320565b50506001600a555050565b6110dc611fcf565b601c5460009081526015602090815260409091208251610e7992840190613007565b60006111098261237c565b9050836001600160a01b0316816001600160a01b03161461113c5760405162a1148160e81b815260040160405180910390fd5b600082815260076020526040902080546111688187335b6001600160a01b039081169116811491141790565b611193576111768633610daa565b61119357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166111ba57604051633a954ecd60e21b815260040160405180910390fd5b6111c786868660016123ec565b80156111d257600082555b6001600160a01b0386811660009081526006602052604080822080546000190190559187168152208054600101905561120f85600160e11b6124a9565b600085815260056020526040902055600160e11b831661125d576001840160008181526005602052604090205461125b57600154811461125b5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020613b3f83398151915260405160405180910390a4505050505050565b61129c611fcf565b601c546000908152601860205260409020805460ff1916911515919091179055565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291611333575060408051808201909152600b546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611352906001600160601b0316876137cb565b61135c9190613800565b915196919550909350505050565b6000808360405160200161137e9190613814565b6040516020818303038152906040528051906020012090506113a083826124be565b949350505050565b6002600a5414156113cb5760405162461bcd60e51b815260040161106d9061377e565b6002600a55601754610100900460ff1661141e5760405162461bcd60e51b81526020600482015260146024820152731c1d589b1a58d35a5b9d081a5cc814185d5cd95960621b604482015260640161106d565b80601254101561147e5760405162461bcd60e51b815260206004820152602560248201527f7075626c69634d696e743a204f766572206d6178206d696e7473207065722077604482015264185b1b195d60da1b606482015260840161106d565b601c546000908152601a602090815260408083203384529091529020546114a690829061382c565b60125410156114f55760405162461bcd60e51b815260206004820152601b60248201527a165bdd481a185d99481b9bc81c1d589b1a58d35a5b9d081b19599d602a1b604482015260640161106d565b80600e5461150391906137cb565b34146115215760405162461bcd60e51b815260040161106d90613844565b601c546000908152601a6020908152604080832033808552925290912080548301905561154e9082612320565b506001600a55565b61155e611fcf565b6002600a5414156115815760405162461bcd60e51b815260040161106d9061377e565b6002600a55604051735b7717f46809c684fc11a0004ab07eafbd82d34490600090829047908381818185875af1925050503d80600081146115de576040519150601f19603f3d011682016040523d82523d6000602084013e6115e3565b606091505b505080915050806115f357600080fd5b50506001600a55565b61101a83838360405180602001604052806000815250611a32565b6116228160016124da565b50565b60606000806000611635856117fd565b90506000816001600160401b0381111561165157611651613207565b60405190808252806020026020018201604052801561167a578160200160208202803683370190505b50905061168561308b565b60015b8386146117065761169881612614565b91508160400151156116a9576116fe565b81516001600160a01b0316156116be57815194505b876001600160a01b0316856001600160a01b031614156116fe57808387806001019850815181106116f1576116f1613876565b6020026020010181815250505b600101611688565b50909695505050505050565b61171a611fcf565b6000908152601860205260409020805460ff1916911515919091179055565b611741611fcf565b601c5460009081526016602090815260409091208251610e7992840190613007565b61176b611fcf565b601780549115156101000261ff0019909216919091179055565b61178d611fcf565b601055565b6000610e618261237c565b6117a5611fcf565b806117ae61103c565b11156117f85760405162461bcd60e51b81526020600482015260196024820152782637bbb2b9103a3430b7102fb1bab93932b73a24b73232bc1760391b604482015260640161106d565b601355565b60006001600160a01b038216611826576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b611853611fcf565b61185d6000612634565b565b611867611fcf565b600f55565b611874611fcf565b601f55565b611881611fcf565b601255565b61188e611fcf565b61189782612127565b6118b35760405162461bcd60e51b815260040161106d9061388c565b6000828152602260209081526040909120825161101a92840190613007565b6000546001600160a01b031690565b6118e9611fcf565b600d55565b6118f6611fcf565b6000818152601560209081526040909120835161101a92850190613007565b61191d611fcf565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b600061194d85858585612684565b95945050505050565b606060048054610e8c90613743565b61196d611fcf565b506014805460ff60a01b19169055565b6001600160a01b0382163314156119a75760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a1b611fcf565b601b8054906000611a2b836138c3565b9190505550565b611a3d8484846110fe565b6001600160a01b0383163b15611a7657611a59848484846126e4565b611a76576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600061194d858585856127d8565b6060611a9582612127565b611ab15760405162461bcd60e51b815260040161106d9061388c565b60008281526022602052604090208054611aca90613743565b80601f0160208091040260200160405190810160405280929190818152602001828054611af690613743565b8015611b435780601f10611b1857610100808354040283529160200191611b43565b820191906000526020600020905b815481529060010190602001808311611b2657829003601f168201915b50505050509050919050565b6000610e618261284b565b611b62611fcf565b602055565b60008083604051602001611b7b9190613814565b6040516020818303038152906040528051906020012090506113a08382612904565b6060611ba882612127565b611bc45760405162461bcd60e51b815260040161106d9061388c565b6000611bcf8361284b565b60008181526018602052604090205490915060ff16611c875760008181526015602052604090208054611c0190613743565b80601f0160208091040260200160405190810160405280929190818152602001828054611c2d90613743565b8015611c7a5780601f10611c4f57610100808354040283529160200191611c7a565b820191906000526020600020905b815481529060010190602001808311611c5d57829003601f168201915b5050505050915050919050565b60008381526022602052604090208054611ca090613743565b159050611cc05760008381526022602052604090208054611c0190613743565b611cc981612920565b611cd28461293d565b6023604051602001611ce6939291906138de565b604051602081830303815290604052915050919050565b611d05611fcf565b6017805460ff1916911515919091179055565b611d20611fcf565b601155565b611d2d611fcf565b610e798183612320565b611d3f611fcf565b600e55565b6000611d4f84611792565b9050336001600160a01b03821614611da057611d6b8133610daa565b611da05733611d7985610f0f565b6001600160a01b031614611da0576040516309e3bb1d60e31b815260040160405180910390fd5b6000848152600960209081526040918290206001600160a01b03861660a086901b600160a01b600160e01b0316811790915591516001600160401b038516815286917f4e06b4e7000e659094299b3533b47b6aa8ad048e95e872d23d1f4ee55af89cfe910160405180910390a350505050565b606061102a612a3a565b611e25611fcf565b6017805461ffff191690556000601f81905560208190556021819055601c805491611e4f836138c3565b9091555050600154601c546000908152601d6020526040902055565b60008083604051602001611e7f9190613814565b6040516020818303038152906040528051906020012090506113a08382612aba565b611ea9611fcf565b601e55565b611eb6611fcf565b6001600160a01b038116611f1b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161106d565b61162281612634565b60006301ffc9a760e01b6001600160e01b031983161480611f5557506380ac58cd60e01b6001600160e01b03198316145b80610e615750506001600160e01b031916635b5e139f60e01b1490565b6000611f7d82611f24565b80610e615750506001600160e01b031916632b424ad760e21b1490565b60006001600160e01b0319821663152a902d60e11b1480610e6157506301ffc9a760e01b6001600160e01b0319831614610e61565b33611fd86118d2565b6001600160a01b03161461185d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161106d565b6127106001600160601b038216111561209c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161106d565b6001600160a01b0382166120ee5760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b604482015260640161106d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600b55565b60008160011115801561213b575060015482105b8015610e61575050600090815260056020526040902054600160e01b161590565b60175460ff166121a85760405162461bcd60e51b81526020600482015260176024820152761dda1a5d195b1a5cdd135a5b9d081a5cc814185d5cd959604a1b604482015260640161106d565b6121b433848484612684565b6121fb5760405162461bcd60e51b8152602060048201526018602482015277596f7520617265206e6f742077686974656c69737465642160401b604482015260640161106d565b6000612209338585856127d8565b90508481101561226c5760405162461bcd60e51b815260206004820152602860248201527f77686974656c6973744d696e743a204f766572206d6178206d696e74732070656044820152671c881dd85b1b195d60c21b606482015260840161106d565b601c5460009081526019602090815260408083203384528252808320601b54845290915290205461229e90869061382c565b8110156122ed5760405162461bcd60e51b815260206004820152601e60248201527f596f752068617665206e6f2077686974656c6973744d696e74206c6566740000604482015260640161106d565b5050505050565b80600d5461230291906137cb565b34146116225760405162461bcd60e51b815260040161106d90613844565b60135461232b61103c565b612335908361382c565b11156123725760405162461bcd60e51b815260206004820152600c60248201526b4e6f206d6f7265204e46547360a01b604482015260640161106d565b610e798282612ad6565b600081806001116123d3576001548110156123d357600081815260056020526040902054600160e01b81166123d1575b806123ca5750600019016000818152600560205260409020546123ac565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b601454600160a01b900460ff16158061241d57506124086118d2565b6001600160a01b0316336001600160a01b0316145b8061242f57506001600160a01b038416155b8061244157506001600160a01b038316155b6124a45760405162461bcd60e51b815260206004820152602e60248201527f534254206d6f646520456e61626c65643a20746f6b656e207472616e7366657260448201526d103bb434b632903830bab9b2b21760911b606482015260840161106d565b611a76565b4260a01b176001600160a01b03919091161790565b602154600090158015906123ca57506123ca8360215484612af0565b60006124e58361237c565b90508060008061250386600090815260076020526040902080549091565b91509150841561254357612518818433611153565b612543576125268333610daa565b61254357604051632ce44b5f60e11b815260040160405180910390fd5b6125518360008860016123ec565b801561255c57600082555b6001600160a01b038316600090815260066020526040902080546001600160801b0301905561258f83600360e01b6124a9565b600087815260056020526040902055600160e11b84166125dd57600186016000818152600560205260409020546125db5760015481146125db5760008181526005602052604090208590555b505b60405186906000906001600160a01b03861690600080516020613b3f833981519152908390a4505060028054600101905550505050565b61261c61308b565b600082815260056020526040902054610e6190612b06565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080856040516020016126989190613814565b6040516020818303038152906040528051906020012090506126ba8582612aba565b806126ca57506126ca8482612904565b806126da57506126da83826124be565b9695505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906127199033908990889088906004016139a2565b602060405180830381600087803b15801561273357600080fd5b505af1925050508015612763575060408051601f3d908101601f19168201909252612760918101906139d5565b60015b6127be573d808015612791576040519150601f19603f3d011682016040523d82523d6000602084013e612796565b606091505b5080516127b6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113a0565b600080856040516020016127ec9190613814565b60405160208183030381529060405280519060200120905060006128108683612aba565b1561281a57600f54015b6128248583612904565b1561282e57601054015b61283884836124be565b156126da57601154019695505050505050565b600061285682612127565b6128ad5760405162461bcd60e51b815260206004820152602260248201527f536561736f6e20717565727920666f72206e6f6e6578697374656e7420746f6b60448201526132b760f11b606482015260840161106d565b601c546402540be400905b6000818152601d602052604090205484108015906128d557508184105b156128e1579392505050565b6000818152601d60205260409020549150806128fc816139f2565b9150506128b8565b602054600090158015906123ca57506123ca8360205484612af0565b6000818152601660205260409020805460609190611aca90613743565b6060816129615750506040805180820190915260018152600360fc1b602082015290565b8160005b811561298b5780612975816138c3565b91506129849050600a83613800565b9150612965565b6000816001600160401b038111156129a5576129a5613207565b6040519080825280601f01601f1916602001820160405280156129cf576020820181803683370190505b5090505b84156113a0576129e4600183613a09565b91506129f1600a86613a20565b6129fc90603061382c565b60f81b818381518110612a1157612a11613876565b60200101906001600160f81b031916908160001a905350612a33600a86613800565b94506129d3565b6060600080612a4b816127106112be565b91509150612a94612a5b8261293d565b612a6f846001600160a01b03166014612b49565b604051602001612a80929190613a34565b604051602081830303815290604052612ce4565b604051602001612aa49190613ab9565b6040516020818303038152906040529250505090565b601f54600090158015906123ca57506123ca83601f5484612af0565b610e79828260405180602001604052806000815250612e37565b600082612afd8584612e9d565b14949350505050565b612b0e61308b565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b82161515604082015260e89190911c606082015290565b60606000612b588360026137cb565b612b6390600261382c565b6001600160401b03811115612b7a57612b7a613207565b6040519080825280601f01601f191660200182016040528015612ba4576020820181803683370190505b509050600360fc1b81600081518110612bbf57612bbf613876565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612bee57612bee613876565b60200101906001600160f81b031916908160001a9053506000612c128460026137cb565b612c1d90600161382c565b90505b6001811115612c95576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612c5157612c51613876565b1a60f81b828281518110612c6757612c67613876565b60200101906001600160f81b031916908160001a90535060049490941c93612c8e816139f2565b9050612c20565b5083156123ca5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161106d565b6060815160001415612d0457505060408051602081019091526000815290565b6000604051806060016040528060408152602001613aff6040913990506000600384516002612d33919061382c565b612d3d9190613800565b612d489060046137cb565b6001600160401b03811115612d5f57612d5f613207565b6040519080825280601f01601f191660200182016040528015612d89576020820181803683370190505b509050600182016020820185865187015b80821015612df5576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612d9a565b5050600386510660018114612e115760028114612e2457612e2c565b603d6001830353603d6002830353612e2c565b603d60018303535b509195945050505050565b612e418383612eea565b6001600160a01b0383163b1561101a576001548281035b612e6b60008683806001019450866126e4565b612e88576040516368d2bf6b60e11b815260040160405180910390fd5b818110612e585781600154146122ed57600080fd5b600081815b8451811015612ee257612ece82868381518110612ec157612ec1613876565b6020026020010151612fd8565b915080612eda816138c3565b915050612ea2565b509392505050565b60015481612f0b5760405163b562e8dd60e01b815260040160405180910390fd5b612f1860008483856123ec565b6001600160a01b038316600090815260066020526040902080546001600160401b018402019055612f4f836001841460e11b6124a9565b6000828152600560205260408120919091556001600160a01b038416908383019083908390600080516020613b3f8339815191528180a4600183015b818114612fb15780836000600080516020613b3f833981519152600080a4600101612f8b565b5081612fcf57604051622e076360e81b815260040160405180910390fd5b60015550505050565b6000818310612ff45760008281526020849052604090206123ca565b60008381526020839052604090206123ca565b82805461301390613743565b90600052602060002090601f016020900481019282613035576000855561307b565b82601f1061304e57805160ff191683800117855561307b565b8280016001018555821561307b579182015b8281111561307b578251825591602001919060010190613060565b506130879291506130b2565b5090565b60408051608081018252600080825260208201819052918101829052606081019190915290565b5b8082111561308757600081556001016130b3565b6001600160e01b03198116811461162257600080fd5b6000602082840312156130ef57600080fd5b81356123ca816130c7565b80356001600160a01b038116811461311157600080fd5b919050565b6000806040838503121561312957600080fd5b613132836130fa565b915060208301356001600160601b038116811461314e57600080fd5b809150509250929050565b6000806040838503121561316c57600080fd5b613175836130fa565b946020939093013593505050565b60005b8381101561319e578181015183820152602001613186565b83811115611a765750506000910152565b600081518084526131c7816020860160208601613183565b601f01601f19169290920160200192915050565b6020815260006123ca60208301846131af565b60006020828403121561320057600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561324557613245613207565b604052919050565b60006001600160401b0383111561326657613266613207565b613279601f8401601f191660200161321d565b905082815283838301111561328d57600080fd5b828260208301376000602084830101529392505050565b600082601f8301126132b557600080fd5b6123ca8383356020850161324d565b600080604083850312156132d757600080fd5b82356001600160401b038111156132ed57600080fd5b6132f9858286016132a4565b95602094909401359450505050565b600082601f83011261331957600080fd5b813560206001600160401b0382111561333457613334613207565b8160051b61334382820161321d565b928352848101820192828101908785111561335d57600080fd5b83870192505b8483101561337c57823582529183019190830190613363565b979650505050505050565b6000806000806080858703121561339d57600080fd5b8435935060208501356001600160401b03808211156133bb57600080fd5b6133c788838901613308565b945060408701359150808211156133dd57600080fd5b6133e988838901613308565b935060608701359150808211156133ff57600080fd5b5061340c87828801613308565b91505092959194509250565b60006020828403121561342a57600080fd5b81356001600160401b0381111561344057600080fd5b6113a0848285016132a4565b60008060006060848603121561346157600080fd5b61346a846130fa565b9250613478602085016130fa565b9150604084013590509250925092565b8035801515811461311157600080fd5b6000602082840312156134aa57600080fd5b6123ca82613488565b600080604083850312156134c657600080fd5b50508035926020909101359150565b600080604083850312156134e857600080fd5b6134f1836130fa565b915060208301356001600160401b0381111561350c57600080fd5b61351885828601613308565b9150509250929050565b60006020828403121561353457600080fd5b6123ca826130fa565b6020808252825182820181905260009190848201906040850190845b8181101561170657835183529284019291840191600101613559565b6000806040838503121561358857600080fd5b61317583613488565b600080604083850312156135a457600080fd5b8235915060208301356001600160401b038111156135c157600080fd5b613518858286016132a4565b600080600080608085870312156135e357600080fd5b6135ec856130fa565b935060208501356001600160401b03808211156133bb57600080fd5b6000806040838503121561361b57600080fd5b613624836130fa565b915061363260208401613488565b90509250929050565b6000806000806080858703121561365157600080fd5b61365a856130fa565b9350613668602086016130fa565b92506040850135915060608501356001600160401b0381111561368a57600080fd5b8501601f8101871361369b57600080fd5b61340c8782356020840161324d565b600080604083850312156136bd57600080fd5b82359150613632602084016130fa565b6000806000606084860312156136e257600080fd5b833592506136f2602085016130fa565b915060408401356001600160401b038116811461370e57600080fd5b809150509250925092565b6000806040838503121561372c57600080fd5b613735836130fa565b9150613632602084016130fa565b600181811c9082168061375757607f821691505b6020821081141561377857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156137e5576137e56137b5565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261380f5761380f6137ea565b500490565b60609190911b6001600160601b031916815260140190565b6000821982111561383f5761383f6137b5565b500190565b602080825260189082015277115512081d985b1d59481a5cc81b9bdd0818dbdc9c9958dd60421b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604082015260600190565b60006000198214156138d7576138d76137b5565b5060010190565b6000845160206138f18285838a01613183565b8551918401916139048184848a01613183565b8554920191600090600181811c908083168061392157607f831692505b85831081141561393f57634e487b7160e01b85526022600452602485fd5b808015613953576001811461396457613991565b60ff19851688528388019550613991565b60008b81526020902060005b858110156139895781548a820152908401908801613970565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126da908301846131af565b6000602082840312156139e757600080fd5b81516123ca816130c7565b600081613a0157613a016137b5565b506000190190565b600082821015613a1b57613a1b6137b5565b500390565b600082613a2f57613a2f6137ea565b500690565b7a3d9139b2b63632b92fb332b2afb130b9b4b9afb837b4b73a39911d60291b81528251600090613a6b81601b850160208801613183565b721610113332b2afb932b1b4b834b2b73a111d1160691b601b918401918201528351613a9e81602e840160208801613183565b61227d60f01b602e9290910191820152603001949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613af181601d850160208701613183565b91909101601d019291505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220805b40ca993917ff9e6d885d1aceaa51e0497c04f5a657c2d5f7e0cde05480fb64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f5658494e20436f6c6c656374696f6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045658494e00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): VXIN Collection
Arg [1] : _symbol (string): VXIN
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 5658494e20436f6c6c656374696f6e0000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 5658494e00000000000000000000000000000000000000000000000000000000
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.