Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
2,100 Geometry
Holders
538
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GeometryLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x8aCF7E96...9e676b84c The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Geometries
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.7; import "hardhat/console.sol"; import "erc721a/contracts/ERC721A.sol"; import "@thirdweb-dev/contracts/extension/Ownable.sol"; import "@thirdweb-dev/contracts/extension/Royalty.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /** * @title Geometries contract * * @notice Smart Contract provides ERC721 functionality with public and private sales options. */ contract Geometries is Ownable, Royalty, ERC721A { // Use safeMath library for doing arithmetic with uint256 and uint8 numbers using SafeMath for uint256; using SafeMath for uint8; // Use String library for string formatting using Strings for uint256; // Artwork data type with fixed geometry and edition numbers struct Artwork { uint256 geometry ; uint256 edition; } // max edition for every Geometries uint256 constant maxEdition = 100; // geometriesCount maximum available Geometry of Collection uint256 constant geometriesCount = 22; // geometriesCount maximum available Geometry for Public and Private sales uint256 constant geometriesForSale = 20; // permanent royalty BPS value for collection uint256 constant royaltyBPS = 10_00; // price of a single token in wei uint256 private _artworkPrice; // address to withdraw funds from contract address payable private _withdrawAddress; // base uri for token metadata string private _baseTokenURI; // is collection is freeze bool private freeze; // private sale current status - active or not bool private _privateSale; // public sale current status - active or not bool private _publicSale; // maximum available editions limit for sale uint256 private _maxSaleEdition; // Allowlisted addresses that can participate in the // private sale event and how many tokens could be minted for this address mapping(address => uint8) private _allowList; // geometry => already minted editions for geometry mapping(uint256 => uint256) private _geometriesEditions; // tokenID => Artwork data mapping mapping(uint256 => Artwork) private _artworkEditions; // mapping denyListed operators (marketplaces, wallets, etc...) mapping(address => bool) private _operatorsDenyList; // event that emits when private sale changes state event privateSaleState(bool active); // event that emits when public sale changes state event publicSaleState(bool active); /** * @dev Emitted when `tokenId` token with specific `edition` and `geometry` is minted to `to`. */ event Minted(address indexed to, uint256 indexed tokenId, uint256 geometry, uint256 edition); /** * @dev contract constructor * * @param name is contract name * @param symbol is contract basic symbol * @param baseTokenURI is base (default) tokenURI with metadata * @param artworkPrice is a price for single artwork * @param withDrawAddress is a recipient address for sales and royalty * @param maxSaleEditions maximum available editions limit for sale */ constructor( string memory name, string memory symbol, string memory baseTokenURI, uint256 artworkPrice, address payable withDrawAddress, uint256 maxSaleEditions ) ERC721A(name,symbol) { _setupOwner(msg.sender); _withdrawAddress = withDrawAddress; _baseTokenURI = baseTokenURI; _artworkPrice = artworkPrice; _maxSaleEdition = maxSaleEditions; _setupDefaultRoyaltyInfo(withDrawAddress, royaltyBPS); } /** * @dev set price for one token * * @param price is a new price for token */ function setArtworkPrice(uint256 price) external onlyOwner { require(!freeze, "Collection is frozen!"); require(!_privateSale, "Private sale is active!"); require(!_publicSale, "Public sale is active!"); _artworkPrice = price; } /** * @dev check if collection is freeze now * * @return bool if collection is freeze */ function isCollectionFreeze() public view virtual returns (bool) { return freeze; } /** * @dev freeze collection */ function freezeCollection() external onlyOwner { require(!_privateSale, "Private sale is active!"); require(!_publicSale, "Public sale is active!"); freeze = true; } /** * @dev set new _baseTokenURI for collection */ function setBaseURI(string memory _newBaseURI) external onlyOwner { require(!freeze, "Collection is frozen!"); _baseTokenURI = _newBaseURI; } /** * @dev check if private sale is active now * * @return bool if private sale active */ function isPrivateSaleActive() public view virtual returns (bool) { return _privateSale; } /** * @dev check if public sale is active now * * @return bool if public sale active */ function isPublicSaleActive() public view virtual returns (bool) { return _publicSale; } /** * @dev switch private sale state */ function flipPrivateSaleState() external onlyOwner { require(!freeze, "Collection is frozen!"); require(!_publicSale, "Public sale is active!"); _privateSale = !_privateSale; emit privateSaleState(_privateSale); } /** * @dev switch public sale state */ function flipPublicSaleState() external onlyOwner { require(!freeze, "Collection is frozen!"); require(!_privateSale, "Private sale is active!"); _publicSale = !_publicSale; emit publicSaleState(_publicSale); } /** * @dev show maximum available edition for sale * * @return uint of maximum available edition for sale */ function maxSaleEdition() public view virtual returns (uint256) { return _maxSaleEdition; } /** * @dev set maximum available edition for sale */ function setMaxSaleEdition(uint256 maxSaleEditions) external onlyOwner { require(!freeze, "Collection is frozen!"); _maxSaleEdition = maxSaleEditions; } /** * @dev set new withdraw address */ function setWithdrawAddress(address payable withdrawAddress) external onlyOwner { _withdrawAddress = withdrawAddress; } /** * @dev add ETH addresses to allowlist * * Requirements: * - private sale must be inactive * * @param addresses address[] array of ETH addresses that need to be Allowlisted */ function addAllowlistAddresses(address[] calldata addresses) external onlyOwner { require(!_privateSale, "Private sale is now running!!!"); require(!freeze, "Collection is frozen!"); for (uint256 i = 0; i < addresses.length; i++) { if (addresses[i] != address(0)) { _allowList[addresses[i]] = 1; } } } /** * @dev remove ETH addresses from allowlist * * Requirements: * - private sale must be inactive * * @param addresses address[] array of ETH addresses that need to be removed from allowlist */ function removeAllowlistAddresses(address[] calldata addresses) external onlyOwner { require(!_privateSale, "Private sale is now running!!!"); require(!freeze, "Collection is frozen!"); for (uint256 i = 0; i < addresses.length; i++) { delete _allowList[addresses[i]]; } } /** * @dev check if address Allowlisted * * @param _address address ETH address to check * @return bool allowlist status */ function isAllowlisted(address _address) public view returns (bool) { return _allowList[_address] > 0 ? true : false; } /** * @dev add ETH operator addresses to denyList * * * @param operators address[] array of ETH operators addresses that need to be DenyListed */ function addDenyListOperators(address[] calldata operators) external onlyOwner { for (uint256 i = 0; i < operators.length; i++) { if (operators[i] != address(0)) { _operatorsDenyList[operators[i]] = true; } } } /** * @dev remove ETH operator addresses from denyList * * * @param operators address[] array of ETH operators addresses that need to be removed from DenyListed */ function removeDenyListOperators(address[] calldata operators) external onlyOwner { for (uint256 i = 0; i < operators.length; i++) { delete _operatorsDenyList[operators[i]]; } } /** * @dev check if operator address DenyListed * * @param _operator address ETH operator address to check * @return bool DenyListed status */ function isDenyListed(address _operator) public view returns (bool) { return _operatorsDenyList[_operator]; } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `to` address must be not DenyListed. * - `tokenId` must exist. */ function approve(address to, uint256 tokenId) public virtual override { require(!isDenyListed(to), "Operator address DenyListed!"); super.approve(to, tokenId); } /** * @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: * * - `operator` address must be not DenyListed. * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(!isDenyListed(operator), "Operator address DenyListed!"); super.setApprovalForAll(operator, approved); } /** * @dev mint new Artwork to sender on public sale * * @param geometry selected Geometry by user */ function mint(uint256 geometry) public payable { require(_publicSale || _privateSale, "publicSale or privateSale must be active!"); require(geometry <= geometriesForSale, "Geometry should less than maximum available Geometry for sale!"); require(_artworkPrice == msg.value, "Ether value sent is not correct!"); if (_privateSale) { require(_allowList[msg.sender] > 0, "Address not Allowlisted or sender private sale limit have reached!"); _allowList[msg.sender] = uint8(_allowList[msg.sender].sub(1)); } _mintTo(geometry, msg.sender); payable(_withdrawAddress).transfer(msg.value); } /** * @dev mint new Artwork to address * * @param geometry selected Geometry by user * @param to mint Artwork to provided address */ function mintTo(uint256 geometry, address to) external onlyOwner { require(geometry <= geometriesCount, "Geometry should less than maximum available Geometry!"); if (_privateSale) { require(_allowList[to] > 0, "Address not Allowlisted or sender private sale limit have reached!"); _allowList[to] = uint8(_allowList[to].sub(1)); } _mintTo(geometry, to); } /** * @dev mint new Artwork to address * * @param geometry selected Geometry by user * @param to mint Artwork to provided address */ function _mintTo(uint256 geometry, address to) internal { require(!freeze, "Collection is frozen!"); require(geometry > 0, "Geometry should not be 0!"); require(_geometriesEditions[geometry].add(1) <= maxEdition, "Geometry has already maximum numbers of editions!"); require(_geometriesEditions[geometry].add(1) <= _maxSaleEdition, "Maximum editions for this sale state reached!"); _safeMint(to, 1); _artworkEditions[_nextTokenId().sub(1)] = Artwork({ geometry: geometry, edition: _geometriesEditions[geometry].add(1) }); _geometriesEditions[geometry] = _geometriesEditions[geometry].add(1); emit Minted(to, _nextTokenId().sub(1), geometry, _geometriesEditions[geometry]); } /** * @dev mint every Geometry edition to address * * @param to mint Collection to provided address */ function mintCollectionTo(address to) external onlyOwner { require(!freeze, "Collection is frozen!"); require(!_publicSale, "Public sale is active!"); require(!_privateSale, "Private sale is active!"); uint256 startIndex = _nextTokenId(); _safeMint(to , geometriesCount); for (uint256 g = 1; g <= geometriesCount; g++) { _artworkEditions[startIndex] = Artwork({ geometry: g, edition: _geometriesEditions[g].add(1) }); _geometriesEditions[g] = _geometriesEditions[g].add(1); emit Minted(to, startIndex, g, _geometriesEditions[g]); startIndex = startIndex.add(1); } } /** * @dev Returns the URI for a given tokenId. */ function tokenURI(uint256 _tokenId) public view override returns (string memory) { if (!_exists(_tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenMetadataIndex(_tokenId)))) : ''; } /** * @dev Return Geometry number for provided tokenID */ function tokenGeometry(uint256 tokenId) public view returns (uint256) { return _artworkEditions[tokenId].geometry; } /** * @dev Return Edition number for provided tokenID */ function tokenEdition(uint256 tokenId) public view returns (uint256) { return _artworkEditions[tokenId].edition; } /** * @dev return Metadata index for provided tokenID */ function tokenMetadataIndex(uint256 tokenId) internal view returns (uint256) { return tokenGeometry(tokenId).sub(1).mul(maxEdition).add(tokenEdition(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`. */ function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /** * @dev Returns whether owner can be set in the given execution context. */ function _canSetOwner() internal view virtual override returns (bool) { return msg.sender == owner(); } /** * @dev Returns the starting token ID. */ function _startTokenId() internal view virtual override returns (uint256) { return 1; } /** * @dev This function returns who is authorized to set royalty info for contract. */ function _canSetRoyaltyInfo() internal view virtual override returns(bool){ return msg.sender == owner(); } /** * @dev See ERC 165 */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC165) returns (bool) { return super.supportsInterface(interfaceId) || type(IERC2981).interfaceId == interfaceId; } }
// 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(int256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int256)", p0)); } function logUint(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", 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(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", 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(uint256 p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1)); } function log(uint256 p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1)); } function log(uint256 p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1)); } function log(uint256 p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1)); } function log(string memory p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256)", 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, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", 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, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256)", 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(uint256 p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2)); } function log(uint256 p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2)); } function log(uint256 p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2)); } function log(uint256 p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2)); } function log(uint256 p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2)); } function log(uint256 p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2)); } function log(uint256 p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2)); } function log(uint256 p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2)); } function log(uint256 p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2)); } function log(uint256 p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2)); } function log(uint256 p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2)); } function log(uint256 p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2)); } function log(uint256 p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2)); } function log(string memory p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2)); } function log(string memory p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2)); } function log(string memory p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2)); } function log(string memory p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", 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, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2)); } function log(bool p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2)); } function log(bool p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2)); } function log(bool p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", 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, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2)); } function log(address p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2)); } function log(address p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2)); } function log(address p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", 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(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", 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, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", 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, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", 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 // 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: Apache-2.0 pragma solidity ^0.8.0; import "./interface/IOwnable.sol"; /** * @title Ownable * @notice Thirdweb's `Ownable` is a contract extension to be used with any base contract. It exposes functions for setting and reading * who the 'owner' of the inheriting smart contract is, and lets the inheriting contract perform conditional logic that uses * information about who the contract's owner is. */ abstract contract Ownable is IOwnable { /// @dev Owner of the contract (purpose: OpenSea compatibility) address private _owner; /// @dev Reverts if caller is not the owner. modifier onlyOwner() { if (msg.sender != _owner) { revert("Not authorized"); } _; } /** * @notice Returns the owner of the contract. */ function owner() public view override returns (address) { return _owner; } /** * @notice Lets an authorized wallet set a new owner for the contract. * @param _newOwner The address to set as the new owner of the contract. */ function setOwner(address _newOwner) external override { if (!_canSetOwner()) { revert("Not authorized"); } _setupOwner(_newOwner); } /// @dev Lets a contract admin set a new owner for the contract. The new owner must be a contract admin. function _setupOwner(address _newOwner) internal { address _prevOwner = _owner; _owner = _newOwner; emit OwnerUpdated(_prevOwner, _newOwner); } /// @dev Returns whether owner can be set in the given execution context. function _canSetOwner() internal view virtual returns (bool); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; import "./interface/IRoyalty.sol"; /** * @title Royalty * @notice Thirdweb's `Royalty` is a contract extension to be used with any base contract. It exposes functions for setting and reading * the recipient of royalty fee and the royalty fee basis points, and lets the inheriting contract perform conditional logic * that uses information about royalty fees, if desired. * * @dev The `Royalty` contract is ERC2981 compliant. */ abstract contract Royalty is IRoyalty { /// @dev The (default) address that receives all royalty value. address private royaltyRecipient; /// @dev The (default) % of a sale to take as royalty (in basis points). uint16 private royaltyBps; /// @dev Token ID => royalty recipient and bps for token mapping(uint256 => RoyaltyInfo) private royaltyInfoForToken; /** * @notice View royalty info for a given token and sale price. * @dev Returns royalty amount and recipient for `tokenId` and `salePrice`. * @param tokenId The tokenID of the NFT for which to query royalty info. * @param salePrice Sale price of the token. * * @return receiver Address of royalty recipient account. * @return royaltyAmount Royalty amount calculated at current royaltyBps value. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view virtual override returns (address receiver, uint256 royaltyAmount) { (address recipient, uint256 bps) = getRoyaltyInfoForToken(tokenId); receiver = recipient; royaltyAmount = (salePrice * bps) / 10_000; } /** * @notice View royalty info for a given token. * @dev Returns royalty recipient and bps for `_tokenId`. * @param _tokenId The tokenID of the NFT for which to query royalty info. */ function getRoyaltyInfoForToken(uint256 _tokenId) public view override returns (address, uint16) { RoyaltyInfo memory royaltyForToken = royaltyInfoForToken[_tokenId]; return royaltyForToken.recipient == address(0) ? (royaltyRecipient, uint16(royaltyBps)) : (royaltyForToken.recipient, uint16(royaltyForToken.bps)); } /** * @notice Returns the defualt royalty recipient and BPS for this contract's NFTs. */ function getDefaultRoyaltyInfo() external view override returns (address, uint16) { return (royaltyRecipient, uint16(royaltyBps)); } /** * @notice Updates default royalty recipient and bps. * @dev Caller should be authorized to set royalty info. * See {_canSetRoyaltyInfo}. * Emits {DefaultRoyalty Event}; See {_setupDefaultRoyaltyInfo}. * * @param _royaltyRecipient Address to be set as default royalty recipient. * @param _royaltyBps Updated royalty bps. */ function setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) external override { if (!_canSetRoyaltyInfo()) { revert("Not authorized"); } _setupDefaultRoyaltyInfo(_royaltyRecipient, _royaltyBps); } /// @dev Lets a contract admin update the default royalty recipient and bps. function _setupDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) internal { if (_royaltyBps > 10_000) { revert("Exceeds max bps"); } royaltyRecipient = _royaltyRecipient; royaltyBps = uint16(_royaltyBps); emit DefaultRoyalty(_royaltyRecipient, _royaltyBps); } /** * @notice Updates default royalty recipient and bps for a particular token. * @dev Sets royalty info for `_tokenId`. Caller should be authorized to set royalty info. * See {_canSetRoyaltyInfo}. * Emits {RoyaltyForToken Event}; See {_setupRoyaltyInfoForToken}. * * @param _recipient Address to be set as royalty recipient for given token Id. * @param _bps Updated royalty bps for the token Id. */ function setRoyaltyInfoForToken( uint256 _tokenId, address _recipient, uint256 _bps ) external override { if (!_canSetRoyaltyInfo()) { revert("Not authorized"); } _setupRoyaltyInfoForToken(_tokenId, _recipient, _bps); } /// @dev Lets a contract admin set the royalty recipient and bps for a particular token Id. function _setupRoyaltyInfoForToken( uint256 _tokenId, address _recipient, uint256 _bps ) internal { if (_bps > 10_000) { revert("Exceeds max bps"); } royaltyInfoForToken[_tokenId] = RoyaltyInfo({ recipient: _recipient, bps: _bps }); emit RoyaltyForToken(_tokenId, _recipient, _bps); } /// @dev Returns whether royalty info can be set in the given execution context. function _canSetRoyaltyInfo() internal view virtual returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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 // 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); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /** * Thirdweb's `Ownable` is a contract extension to be used with any base contract. It exposes functions for setting and reading * who the 'owner' of the inheriting smart contract is, and lets the inheriting contract perform conditional logic that uses * information about who the contract's owner is. */ interface IOwnable { /// @dev Returns the owner of the contract. function owner() external view returns (address); /// @dev Lets a module admin set a new owner for the contract. The new owner must be a module admin. function setOwner(address _newOwner) external; /// @dev Emitted when a new Owner is set. event OwnerUpdated(address indexed prevOwner, address indexed newOwner); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; import "../../eip/interface/IERC2981.sol"; /** * Thirdweb's `Royalty` is a contract extension to be used with any base contract. It exposes functions for setting and reading * the recipient of royalty fee and the royalty fee basis points, and lets the inheriting contract perform conditional logic * that uses information about royalty fees, if desired. * * The `Royalty` contract is ERC2981 compliant. */ interface IRoyalty is IERC2981 { struct RoyaltyInfo { address recipient; uint256 bps; } /// @dev Returns the royalty recipient and fee bps. function getDefaultRoyaltyInfo() external view returns (address, uint16); /// @dev Lets a module admin update the royalty bps and recipient. function setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) external; /// @dev Lets a module admin set the royalty recipient for a particular token Id. function setRoyaltyInfoForToken( uint256 tokenId, address recipient, uint256 bps ) external; /// @dev Returns the royalty recipient for a particular token Id. function getRoyaltyInfoForToken(uint256 tokenId) external view returns (address, uint16); /// @dev Emitted when royalty info is updated. event DefaultRoyalty(address indexed newRoyaltyRecipient, uint256 newRoyaltyBps); /// @dev Emitted when royalty recipient for tokenId is set event RoyaltyForToken(uint256 indexed tokenId, address indexed royaltyRecipient, uint256 royaltyBps); }
// SPDX-License-Identifier: Apache 2.0 pragma solidity ^0.8.0; import "./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 payed 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/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * [EIP](https://eips.ethereum.org/EIPS/eip-165). * * 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 * [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 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"uint256","name":"artworkPrice","type":"uint256"},{"internalType":"address payable","name":"withDrawAddress","type":"address"},{"internalType":"uint256","name":"maxSaleEditions","type":"uint256"}],"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":"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":"newRoyaltyRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"newRoyaltyBps","type":"uint256"}],"name":"DefaultRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"geometry","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"edition","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"prevOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"royaltyRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"royaltyBps","type":"uint256"}],"name":"RoyaltyForToken","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":false,"internalType":"bool","name":"active","type":"bool"}],"name":"privateSaleState","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"publicSaleState","type":"event"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addAllowlistAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"operators","type":"address[]"}],"name":"addDenyListOperators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPrivateSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPublicSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDefaultRoyaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getRoyaltyInfoForToken","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isAllowlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isCollectionFreeze","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"isDenyListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPrivateSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSaleEdition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"geometry","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mintCollectionTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"geometry","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeAllowlistAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"operators","type":"address[]"}],"name":"removeDenyListOperators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setArtworkPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"uint256","name":"_royaltyBps","type":"uint256"}],"name":"setDefaultRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSaleEditions","type":"uint256"}],"name":"setMaxSaleEdition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_bps","type":"uint256"}],"name":"setRoyaltyInfoForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"withdrawAddress","type":"address"}],"name":"setWithdrawAddress","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":"tokenEdition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenGeometry","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005bbb38038062005bbb83398181016040528101906200003791906200043f565b8585816005908051906020019062000051929190620002e3565b5080600690805190602001906200006a929190620002e3565b506200007b6200011c60201b60201c565b600381905550505062000094336200012560201b60201c565b81600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600d9080519060200190620000ed929190620002e3565b5082600b8190555080600f8190555062000110826103e8620001e960201b60201c565b505050505050620007df565b60006001905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a35050565b61271081111562000231576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002289062000570565b60405180910390fd5b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160146101000a81548161ffff021916908361ffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f90d7ec04bcb8978719414f82e52e4cb651db41d0e6f8cea6118c2191e6183adb82604051620002d7919062000592565b60405180910390a25050565b828054620002f19062000693565b90600052602060002090601f01602090048101928262000315576000855562000361565b82601f106200033057805160ff191683800117855562000361565b8280016001018555821562000361579182015b828111156200036057825182559160200191906001019062000343565b5b50905062000370919062000374565b5090565b5b808211156200038f57600081600090555060010162000375565b5090565b6000620003aa620003a484620005d8565b620005af565b905082815260208101848484011115620003c957620003c862000762565b5b620003d68482856200065d565b509392505050565b600081519050620003ef81620007ab565b92915050565b600082601f8301126200040d576200040c6200075d565b5b81516200041f84826020860162000393565b91505092915050565b6000815190506200043981620007c5565b92915050565b60008060008060008060c087890312156200045f576200045e6200076c565b5b600087015167ffffffffffffffff81111562000480576200047f62000767565b5b6200048e89828a01620003f5565b965050602087015167ffffffffffffffff811115620004b257620004b162000767565b5b620004c089828a01620003f5565b955050604087015167ffffffffffffffff811115620004e457620004e362000767565b5b620004f289828a01620003f5565b94505060606200050589828a0162000428565b93505060806200051889828a01620003de565b92505060a06200052b89828a0162000428565b9150509295509295509295565b600062000547600f836200060e565b9150620005548262000782565b602082019050919050565b6200056a8162000653565b82525050565b600060208201905081810360008301526200058b8162000538565b9050919050565b6000602082019050620005a960008301846200055f565b92915050565b6000620005bb620005ce565b9050620005c98282620006c9565b919050565b6000604051905090565b600067ffffffffffffffff821115620005f657620005f56200072e565b5b620006018262000771565b9050602081019050919050565b600082825260208201905092915050565b60006200062c8262000633565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156200067d57808201518184015260208101905062000660565b838111156200068d576000848401525b50505050565b60006002820490506001821680620006ac57607f821691505b60208210811415620006c357620006c2620006ff565b5b50919050565b620006d48262000771565b810181811067ffffffffffffffff82111715620006f657620006f56200072e565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f45786365656473206d6178206270730000000000000000000000000000000000600082015250565b620007b6816200061f565b8114620007c257600080fd5b50565b620007d08162000653565b8114620007dc57600080fd5b50565b6153cc80620007ef6000396000f3fe60806040526004361061025c5760003560e01c80636f1095c711610144578063a2adb3a3116100b6578063c0499dfc1161007a578063c0499dfc146108e6578063c49576191461090f578063c87b56dd14610938578063d8a9e1e914610975578063dcdbcb9f146109a0578063e985e9c5146109c95761025c565b8063a2adb3a314610814578063b24f2d391461083f578063b5a6a72c1461086b578063b723b34e14610894578063b88d4fde146108bd5761025c565b80638ec1d651116101085780638ec1d6511461074d57806395d89b41146107645780639bcf7a151461078f578063a0712d68146107b8578063a10866ef146107d4578063a22cb465146107eb5761025c565b80636f1095c71461062e57806370a082311461066b57806372f26b9c146106a8578063755ca5bc146106e55780638da5cb5b146107225761025c565b806323b872dd116101dd57806342842e0e116101a157806342842e0e1461050f5780634cc157df1461053857806355f804b314610576578063600dd5ea1461059f5780636352211e146105c85780636beeedb8146106055761025c565b806323b872dd1461043d578063254fb422146104665780632a55205a146104915780633719e3b0146104cf5780633ab1a494146104e65761025c565b8063122aefe311610224578063122aefe31461036c57806313af40351461039557806318160ddd146103be5780631bc656e4146103e95780631e84c413146104125761025c565b806301ffc9a71461026157806305a3b8091461029e57806306fdde03146102db578063081812fc14610306578063095ea7b314610343575b600080fd5b34801561026d57600080fd5b506102886004803603810190610283919061436a565b610a06565b60405161029591906148d6565b60405180910390f35b3480156102aa57600080fd5b506102c560048036038101906102c0919061412d565b610a80565b6040516102d291906148d6565b60405180910390f35b3480156102e757600080fd5b506102f0610ae9565b6040516102fd91906148f1565b60405180910390f35b34801561031257600080fd5b5061032d6004803603810190610328919061440d565b610b7b565b60405161033a919061481d565b60405180910390f35b34801561034f57600080fd5b5061036a600480360381019061036591906142dd565b610bfa565b005b34801561037857600080fd5b50610393600480360381019061038e919061440d565b610c51565b005b3480156103a157600080fd5b506103bc60048036038101906103b7919061412d565b610d39565b005b3480156103ca57600080fd5b506103d3610d8c565b6040516103e09190614af3565b60405180910390f35b3480156103f557600080fd5b50610410600480360381019061040b919061412d565b610da3565b005b34801561041e57600080fd5b5061042761107c565b60405161043491906148d6565b60405180910390f35b34801561044957600080fd5b50610464600480360381019061045f91906141c7565b611093565b005b34801561047257600080fd5b5061047b6113b8565b60405161048891906148d6565b60405180910390f35b34801561049d57600080fd5b506104b860048036038101906104b391906144cd565b6113cf565b6040516104c69291906148ad565b60405180910390f35b3480156104db57600080fd5b506104e461140d565b005b3480156104f257600080fd5b5061050d6004803603810190610508919061415a565b6115ad565b005b34801561051b57600080fd5b50610536600480360381019061053191906141c7565b61167f565b005b34801561054457600080fd5b5061055f600480360381019061055a919061440d565b61169f565b60405161056d929190614884565b60405180910390f35b34801561058257600080fd5b5061059d600480360381019061059891906143c4565b6117aa565b005b3480156105ab57600080fd5b506105c660048036038101906105c191906142dd565b6118a2565b005b3480156105d457600080fd5b506105ef60048036038101906105ea919061440d565b6118f7565b6040516105fc919061481d565b60405180910390f35b34801561061157600080fd5b5061062c6004803603810190610627919061440d565b611909565b005b34801561063a57600080fd5b506106556004803603810190610650919061412d565b611a91565b60405161066291906148d6565b60405180910390f35b34801561067757600080fd5b50610692600480360381019061068d919061412d565b611ae7565b60405161069f9190614af3565b60405180910390f35b3480156106b457600080fd5b506106cf60048036038101906106ca919061440d565b611ba0565b6040516106dc9190614af3565b60405180910390f35b3480156106f157600080fd5b5061070c6004803603810190610707919061440d565b611bc0565b6040516107199190614af3565b60405180910390f35b34801561072e57600080fd5b50610737611be0565b604051610744919061481d565b60405180910390f35b34801561075957600080fd5b50610762611c09565b005b34801561077057600080fd5b50610779611d54565b60405161078691906148f1565b60405180910390f35b34801561079b57600080fd5b506107b660048036038101906107b1919061447a565b611de6565b005b6107d260048036038101906107cd919061440d565b611e3d565b005b3480156107e057600080fd5b506107e9612103565b005b3480156107f757600080fd5b50610812600480360381019061080d919061429d565b6122a3565b005b34801561082057600080fd5b506108296122fa565b6040516108369190614af3565b60405180910390f35b34801561084b57600080fd5b50610854612304565b604051610862929190614884565b60405180910390f35b34801561087757600080fd5b50610892600480360381019061088d919061431d565b612343565b005b3480156108a057600080fd5b506108bb60048036038101906108b6919061443a565b61250d565b005b3480156108c957600080fd5b506108e460048036038101906108df919061421a565b61274f565b005b3480156108f257600080fd5b5061090d6004803603810190610908919061431d565b6127c2565b005b34801561091b57600080fd5b506109366004803603810190610931919061431d565b6129f2565b005b34801561094457600080fd5b5061095f600480360381019061095a919061440d565b612b1c565b60405161096c91906148f1565b60405180910390f35b34801561098157600080fd5b5061098a612bc3565b60405161099791906148d6565b60405180910390f35b3480156109ac57600080fd5b506109c760048036038101906109c2919061431d565b612bda565b005b3480156109d557600080fd5b506109f060048036038101906109eb9190614187565b612d69565b6040516109fd91906148d6565b60405180910390f35b6000610a1182612dfd565b80610a795750817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600080601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1611610adf576000610ae2565b60015b9050919050565b606060058054610af890614dec565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2490614dec565b8015610b715780601f10610b4657610100808354040283529160200191610b71565b820191906000526020600020905b815481529060010190602001808311610b5457829003601f168201915b5050505050905090565b6000610b8682612e8f565b610bbc576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610c0382611a91565b15610c43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3a906149f3565b60405180910390fd5b610c4d8282612eee565b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd690614ad3565b60405180910390fd5b600e60009054906101000a900460ff1615610d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2690614993565b60405180910390fd5b80600f8190555050565b610d41613032565b610d80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7790614ad3565b60405180910390fd5b610d898161306f565b50565b6000610d96613133565b6004546003540303905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2890614ad3565b60405180910390fd5b600e60009054906101000a900460ff1615610e81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7890614993565b60405180910390fd5b600e60029054906101000a900460ff1615610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec890614953565b60405180910390fd5b600e60019054906101000a900460ff1615610f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1890614a13565b60405180910390fd5b6000610f2b61313c565b9050610f38826016613146565b6000600190505b60168111611077576040518060400160405280828152602001610f7f6001601160008681526020019081526020016000205461316490919063ffffffff16565b815250601260008481526020019081526020016000206000820151816000015560208201518160010155905050610fd36001601160008481526020019081526020016000205461316490919063ffffffff16565b6011600083815260200190815260200160002081905550818373ffffffffffffffffffffffffffffffffffffffff167f5a3358a3d27a5373c0df2604662088d37894d56b7cfd27f315770440f4e0d919836011600086815260200190815260200160002054604051611046929190614b0e565b60405180910390a361106260018361316490919063ffffffff16565b9150808061106f90614e4f565b915050610f3f565b505050565b6000600e60029054906101000a900460ff16905090565b600061109e8261317a565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611105576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061111184613248565b91509150611127818761112261326f565b613277565b6111735761113c8661113761326f565b612d69565b611172576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156111da576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111e786868660016132bb565b80156111f257600082555b600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506112c08561129c8888876132c1565b7c0200000000000000000000000000000000000000000000000000000000176132e9565b600760008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611348576000600185019050600060076000838152602001908152602001600020541415611346576003548114611345578360076000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113b08686866001613314565b505050505050565b6000600e60009054906101000a900460ff16905090565b6000806000806113de8661169f565b61ffff169150915081935061271081866113f89190614c88565b6114029190614c57565b925050509250929050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461149b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149290614ad3565b60405180910390fd5b600e60009054906101000a900460ff16156114eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e290614993565b60405180910390fd5b600e60029054906101000a900460ff161561153b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153290614953565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff0219169083151502179055507fc08856a2421028bf2a88be7559541c7087eb189d1518a79356b4ace74b5252c9600e60019054906101000a900460ff166040516115a391906148d6565b60405180910390a1565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461163b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163290614ad3565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61169a8383836040518060200160405280600081525061274f565b505050565b6000806000600260008581526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461176b57806000015181602001516117a0565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160149054906101000a900461ffff165b9250925050915091565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182f90614ad3565b60405180910390fd5b600e60009054906101000a900460ff1615611888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187f90614993565b60405180910390fd5b80600d908051906020019061189e929190613ed6565b5050565b6118aa61331a565b6118e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e090614ad3565b60405180910390fd5b6118f38282613357565b5050565b60006119028261317a565b9050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611997576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198e90614ad3565b60405180910390fd5b600e60009054906101000a900460ff16156119e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119de90614993565b60405180910390fd5b600e60019054906101000a900460ff1615611a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2e90614a13565b60405180910390fd5b600e60029054906101000a900460ff1615611a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7e90614953565b60405180910390fd5b80600b8190555050565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b4f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600060126000838152602001908152602001600020600001549050919050565b600060126000838152602001908152602001600020600101549050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8e90614ad3565b60405180910390fd5b600e60019054906101000a900460ff1615611ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cde90614a13565b60405180910390fd5b600e60029054906101000a900460ff1615611d37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2e90614953565b60405180910390fd5b6001600e60006101000a81548160ff021916908315150217905550565b606060068054611d6390614dec565b80601f0160208091040260200160405190810160405280929190818152602001828054611d8f90614dec565b8015611ddc5780601f10611db157610100808354040283529160200191611ddc565b820191906000526020600020905b815481529060010190602001808311611dbf57829003601f168201915b5050505050905090565b611dee61331a565b611e2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2490614ad3565b60405180910390fd5b611e3883838361344c565b505050565b600e60029054906101000a900460ff1680611e645750600e60019054906101000a900460ff165b611ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9a90614a53565b60405180910390fd5b6014811115611ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ede906149b3565b60405180910390fd5b34600b5414611f2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f22906149d3565b60405180910390fd5b600e60019054906101000a900460ff161561208d576000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1611611fd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc990614973565b60405180910390fd5b6120356001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1661357790919063ffffffff16565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505b612097813361358d565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156120ff573d6000803e3d6000fd5b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218890614ad3565b60405180910390fd5b600e60009054906101000a900460ff16156121e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d890614993565b60405180910390fd5b600e60019054906101000a900460ff1615612231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222890614a13565b60405180910390fd5b600e60029054906101000a900460ff1615600e60026101000a81548160ff0219169083151502179055507fd9bc49251edd474a55897591c0b750b4f5b2609a950c788f8ef8d44b45b0f718600e60029054906101000a900460ff1660405161229991906148d6565b60405180910390a1565b6122ac82611a91565b156122ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e3906149f3565b60405180910390fd5b6122f6828261383f565b5050565b6000600f54905090565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160149054906101000a900461ffff16915091509091565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146123d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c890614ad3565b60405180910390fd5b600e60019054906101000a900460ff1615612421576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241890614ab3565b60405180910390fd5b600e60009054906101000a900460ff1615612471576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246890614993565b60405180910390fd5b60005b82829050811015612508576010600084848481811061249657612495614f25565b5b90506020020160208101906124ab919061412d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff0219169055808061250090614e4f565b915050612474565b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461259b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259290614ad3565b60405180910390fd5b60168211156125df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d690614a33565b60405180910390fd5b600e60019054906101000a900460ff1615612741576000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1611612686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267d90614973565b60405180910390fd5b6126e96001601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1661357790919063ffffffff16565b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505b61274b828261358d565b5050565b61275a848484611093565b60008373ffffffffffffffffffffffffffffffffffffffff163b146127bc57612785848484846139b7565b6127bb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612850576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284790614ad3565b60405180910390fd5b600e60019054906101000a900460ff16156128a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289790614ab3565b60405180910390fd5b600e60009054906101000a900460ff16156128f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e790614993565b60405180910390fd5b60005b828290508110156129ed57600073ffffffffffffffffffffffffffffffffffffffff1683838381811061292957612928614f25565b5b905060200201602081019061293e919061412d565b73ffffffffffffffffffffffffffffffffffffffff16146129da5760016010600085858581811061297257612971614f25565b5b9050602002016020810190612987919061412d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505b80806129e590614e4f565b9150506128f3565b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7790614ad3565b60405180910390fd5b60005b82829050811015612b175760136000848484818110612aa557612aa4614f25565b5b9050602002016020810190612aba919061412d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690558080612b0f90614e4f565b915050612a83565b505050565b6060612b2782612e8f565b612b5d576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612b67613b17565b9050600081511415612b885760405180602001604052806000815250612bbb565b80612b9a612b9585613ba9565b613bfb565b604051602001612bab9291906147f9565b6040516020818303038152906040525b915050919050565b6000600e60019054906101000a900460ff16905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5f90614ad3565b60405180910390fd5b60005b82829050811015612d6457600073ffffffffffffffffffffffffffffffffffffffff16838383818110612ca157612ca0614f25565b5b9050602002016020810190612cb6919061412d565b73ffffffffffffffffffffffffffffffffffffffff1614612d5157600160136000858585818110612cea57612ce9614f25565b5b9050602002016020810190612cff919061412d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b8080612d5c90614e4f565b915050612c6b565b505050565b6000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e5857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e885750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600081612e9a613133565b11158015612ea9575060035482105b8015612ee7575060007c0100000000000000000000000000000000000000000000000000000000600760008581526020019081526020016000205416145b9050919050565b6000612ef9826118f7565b90508073ffffffffffffffffffffffffffffffffffffffff16612f1a61326f565b73ffffffffffffffffffffffffffffffffffffffff1614612f7d57612f4681612f4161326f565b612d69565b612f7c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826009600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061303c611be0565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a35050565b60006001905090565b6000600354905090565b613160828260405180602001604052806000815250613c4b565b5050565b600081836131729190614c01565b905092915050565b60008082905080613189613133565b11613211576003548110156132105760006007600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216141561320e575b60008114156132045760076000836001900393508381526020019081526020016000205490506131d9565b8092505050613243565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006009600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86132d8868684613ce9565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000613324611be0565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b61271081111561339c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339390614a93565b60405180910390fd5b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160146101000a81548161ffff021916908361ffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f90d7ec04bcb8978719414f82e52e4cb651db41d0e6f8cea6118c2191e6183adb826040516134409190614af3565b60405180910390a25050565b612710811115613491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161348890614a93565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001828152506002600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050508173ffffffffffffffffffffffffffffffffffffffff16837f7365cf4122f072a3365c20d54eff9b38d73c096c28e1892ec8f5b0e403a0f12d8360405161356a9190614af3565b60405180910390a3505050565b600081836135859190614ce2565b905092915050565b600e60009054906101000a900460ff16156135dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d490614993565b60405180910390fd5b60008211613620576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161361790614a73565b60405180910390fd5b60646136496001601160008681526020019081526020016000205461316490919063ffffffff16565b111561368a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161368190614933565b60405180910390fd5b600f546136b46001601160008681526020019081526020016000205461316490919063ffffffff16565b11156136f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136ec90614913565b60405180910390fd5b613700816001613146565b60405180604001604052808381526020016137386001601160008781526020019081526020016000205461316490919063ffffffff16565b8152506012600061375a600161374c61313c565b61357790919063ffffffff16565b815260200190815260200160002060008201518160000155602082015181600101559050506137a66001601160008581526020019081526020016000205461316490919063ffffffff16565b60116000848152602001908152602001600020819055506137d860016137ca61313c565b61357790919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f5a3358a3d27a5373c0df2604662088d37894d56b7cfd27f315770440f4e0d919846011600087815260200190815260200160002054604051613833929190614b0e565b60405180910390a35050565b61384761326f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156138ac576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60006138b961326f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661396661326f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516139ab91906148d6565b60405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026139dd61326f565b8786866040518563ffffffff1660e01b81526004016139ff9493929190614838565b602060405180830381600087803b158015613a1957600080fd5b505af1925050508015613a4a57506040513d601f19601f82011682018060405250810190613a479190614397565b60015b613ac4573d8060008114613a7a576040519150601f19603f3d011682016040523d82523d6000602084013e613a7f565b606091505b50600081511415613abc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054613b2690614dec565b80601f0160208091040260200160405190810160405280929190818152602001828054613b5290614dec565b8015613b9f5780601f10613b7457610100808354040283529160200191613b9f565b820191906000526020600020905b815481529060010190602001808311613b8257829003601f168201915b5050505050905090565b6000613bf4613bb783611bc0565b613be66064613bd86001613bca88611ba0565b61357790919063ffffffff16565b613cf290919063ffffffff16565b61316490919063ffffffff16565b9050919050565b606060806040510190508060405280825b600115613c3757600183039250600a81066030018353600a8104905080613c3257613c37565b613c0c565b508181036020830392508083525050919050565b613c558383613d08565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613ce45760006003549050600083820390505b613c9660008683806001019450866139b7565b613ccc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110613c83578160035414613ce157600080fd5b50505b505050565b60009392505050565b60008183613d009190614c88565b905092915050565b600060035490506000821415613d4a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613d5760008483856132bb565b600160406001901b178202600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613dce83613dbf60008660006132c1565b613dc885613ec6565b176132e9565b6007600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613e6f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613e34565b506000821415613eab576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806003819055505050613ec16000848385613314565b505050565b60006001821460e11b9050919050565b828054613ee290614dec565b90600052602060002090601f016020900481019282613f045760008555613f4b565b82601f10613f1d57805160ff1916838001178555613f4b565b82800160010185558215613f4b579182015b82811115613f4a578251825591602001919060010190613f2f565b5b509050613f589190613f5c565b5090565b5b80821115613f75576000816000905550600101613f5d565b5090565b6000613f8c613f8784614b5c565b614b37565b905082815260208101848484011115613fa857613fa7614f92565b5b613fb3848285614daa565b509392505050565b6000613fce613fc984614b8d565b614b37565b905082815260208101848484011115613fea57613fe9614f92565b5b613ff5848285614daa565b509392505050565b60008135905061400c81615323565b92915050565b6000813590506140218161533a565b92915050565b60008083601f84011261403d5761403c614f88565b5b8235905067ffffffffffffffff81111561405a57614059614f83565b5b60208301915083602082028301111561407657614075614f8d565b5b9250929050565b60008135905061408c81615351565b92915050565b6000813590506140a181615368565b92915050565b6000815190506140b681615368565b92915050565b600082601f8301126140d1576140d0614f88565b5b81356140e1848260208601613f79565b91505092915050565b600082601f8301126140ff576140fe614f88565b5b813561410f848260208601613fbb565b91505092915050565b6000813590506141278161537f565b92915050565b60006020828403121561414357614142614f9c565b5b600061415184828501613ffd565b91505092915050565b6000602082840312156141705761416f614f9c565b5b600061417e84828501614012565b91505092915050565b6000806040838503121561419e5761419d614f9c565b5b60006141ac85828601613ffd565b92505060206141bd85828601613ffd565b9150509250929050565b6000806000606084860312156141e0576141df614f9c565b5b60006141ee86828701613ffd565b93505060206141ff86828701613ffd565b925050604061421086828701614118565b9150509250925092565b6000806000806080858703121561423457614233614f9c565b5b600061424287828801613ffd565b945050602061425387828801613ffd565b935050604061426487828801614118565b925050606085013567ffffffffffffffff81111561428557614284614f97565b5b614291878288016140bc565b91505092959194509250565b600080604083850312156142b4576142b3614f9c565b5b60006142c285828601613ffd565b92505060206142d38582860161407d565b9150509250929050565b600080604083850312156142f4576142f3614f9c565b5b600061430285828601613ffd565b925050602061431385828601614118565b9150509250929050565b6000806020838503121561433457614333614f9c565b5b600083013567ffffffffffffffff81111561435257614351614f97565b5b61435e85828601614027565b92509250509250929050565b6000602082840312156143805761437f614f9c565b5b600061438e84828501614092565b91505092915050565b6000602082840312156143ad576143ac614f9c565b5b60006143bb848285016140a7565b91505092915050565b6000602082840312156143da576143d9614f9c565b5b600082013567ffffffffffffffff8111156143f8576143f7614f97565b5b614404848285016140ea565b91505092915050565b60006020828403121561442357614422614f9c565b5b600061443184828501614118565b91505092915050565b6000806040838503121561445157614450614f9c565b5b600061445f85828601614118565b925050602061447085828601613ffd565b9150509250929050565b60008060006060848603121561449357614492614f9c565b5b60006144a186828701614118565b93505060206144b286828701613ffd565b92505060406144c386828701614118565b9150509250925092565b600080604083850312156144e4576144e3614f9c565b5b60006144f285828601614118565b925050602061450385828601614118565b9150509250929050565b61451681614d16565b82525050565b61452581614d3a565b82525050565b600061453682614bbe565b6145408185614bd4565b9350614550818560208601614db9565b61455981614fa1565b840191505092915050565b600061456f82614bc9565b6145798185614be5565b9350614589818560208601614db9565b61459281614fa1565b840191505092915050565b60006145a882614bc9565b6145b28185614bf6565b93506145c2818560208601614db9565b80840191505092915050565b60006145db602d83614be5565b91506145e682614fb2565b604082019050919050565b60006145fe603183614be5565b915061460982615001565b604082019050919050565b6000614621601683614be5565b915061462c82615050565b602082019050919050565b6000614644604283614be5565b915061464f82615079565b606082019050919050565b6000614667601583614be5565b9150614672826150ee565b602082019050919050565b600061468a603e83614be5565b915061469582615117565b604082019050919050565b60006146ad602083614be5565b91506146b882615166565b602082019050919050565b60006146d0601c83614be5565b91506146db8261518f565b602082019050919050565b60006146f3601783614be5565b91506146fe826151b8565b602082019050919050565b6000614716603583614be5565b9150614721826151e1565b604082019050919050565b6000614739602983614be5565b915061474482615230565b604082019050919050565b600061475c601983614be5565b91506147678261527f565b602082019050919050565b600061477f600f83614be5565b915061478a826152a8565b602082019050919050565b60006147a2601e83614be5565b91506147ad826152d1565b602082019050919050565b60006147c5600e83614be5565b91506147d0826152fa565b602082019050919050565b6147e481614d72565b82525050565b6147f381614da0565b82525050565b6000614805828561459d565b9150614811828461459d565b91508190509392505050565b6000602082019050614832600083018461450d565b92915050565b600060808201905061484d600083018761450d565b61485a602083018661450d565b61486760408301856147ea565b8181036060830152614879818461452b565b905095945050505050565b6000604082019050614899600083018561450d565b6148a660208301846147db565b9392505050565b60006040820190506148c2600083018561450d565b6148cf60208301846147ea565b9392505050565b60006020820190506148eb600083018461451c565b92915050565b6000602082019050818103600083015261490b8184614564565b905092915050565b6000602082019050818103600083015261492c816145ce565b9050919050565b6000602082019050818103600083015261494c816145f1565b9050919050565b6000602082019050818103600083015261496c81614614565b9050919050565b6000602082019050818103600083015261498c81614637565b9050919050565b600060208201905081810360008301526149ac8161465a565b9050919050565b600060208201905081810360008301526149cc8161467d565b9050919050565b600060208201905081810360008301526149ec816146a0565b9050919050565b60006020820190508181036000830152614a0c816146c3565b9050919050565b60006020820190508181036000830152614a2c816146e6565b9050919050565b60006020820190508181036000830152614a4c81614709565b9050919050565b60006020820190508181036000830152614a6c8161472c565b9050919050565b60006020820190508181036000830152614a8c8161474f565b9050919050565b60006020820190508181036000830152614aac81614772565b9050919050565b60006020820190508181036000830152614acc81614795565b9050919050565b60006020820190508181036000830152614aec816147b8565b9050919050565b6000602082019050614b0860008301846147ea565b92915050565b6000604082019050614b2360008301856147ea565b614b3060208301846147ea565b9392505050565b6000614b41614b52565b9050614b4d8282614e1e565b919050565b6000604051905090565b600067ffffffffffffffff821115614b7757614b76614f54565b5b614b8082614fa1565b9050602081019050919050565b600067ffffffffffffffff821115614ba857614ba7614f54565b5b614bb182614fa1565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614c0c82614da0565b9150614c1783614da0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c4c57614c4b614e98565b5b828201905092915050565b6000614c6282614da0565b9150614c6d83614da0565b925082614c7d57614c7c614ec7565b5b828204905092915050565b6000614c9382614da0565b9150614c9e83614da0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614cd757614cd6614e98565b5b828202905092915050565b6000614ced82614da0565b9150614cf883614da0565b925082821015614d0b57614d0a614e98565b5b828203905092915050565b6000614d2182614d80565b9050919050565b6000614d3382614d80565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614dd7578082015181840152602081019050614dbc565b83811115614de6576000848401525b50505050565b60006002820490506001821680614e0457607f821691505b60208210811415614e1857614e17614ef6565b5b50919050565b614e2782614fa1565b810181811067ffffffffffffffff82111715614e4657614e45614f54565b5b80604052505050565b6000614e5a82614da0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e8d57614e8c614e98565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4d6178696d756d2065646974696f6e7320666f7220746869732073616c65207360008201527f7461746520726561636865642100000000000000000000000000000000000000602082015250565b7f47656f6d657472792068617320616c7265616479206d6178696d756d206e756d60008201527f62657273206f662065646974696f6e7321000000000000000000000000000000602082015250565b7f5075626c69632073616c65206973206163746976652100000000000000000000600082015250565b7f41646472657373206e6f7420416c6c6f776c6973746564206f722073656e646560008201527f7220707269766174652073616c65206c696d697420686176652072656163686560208201527f6421000000000000000000000000000000000000000000000000000000000000604082015250565b7f436f6c6c656374696f6e2069732066726f7a656e210000000000000000000000600082015250565b7f47656f6d657472792073686f756c64206c657373207468616e206d6178696d7560008201527f6d20617661696c61626c652047656f6d6574727920666f722073616c65210000602082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637421600082015250565b7f4f70657261746f7220616464726573732044656e794c69737465642100000000600082015250565b7f507269766174652073616c652069732061637469766521000000000000000000600082015250565b7f47656f6d657472792073686f756c64206c657373207468616e206d6178696d7560008201527f6d20617661696c61626c652047656f6d65747279210000000000000000000000602082015250565b7f7075626c696353616c65206f72207072697661746553616c65206d757374206260008201527f6520616374697665210000000000000000000000000000000000000000000000602082015250565b7f47656f6d657472792073686f756c64206e6f7420626520302100000000000000600082015250565b7f45786365656473206d6178206270730000000000000000000000000000000000600082015250565b7f507269766174652073616c65206973206e6f772072756e6e696e672121210000600082015250565b7f4e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b61532c81614d16565b811461533757600080fd5b50565b61534381614d28565b811461534e57600080fd5b50565b61535a81614d3a565b811461536557600080fd5b50565b61537181614d46565b811461537c57600080fd5b50565b61538881614da0565b811461539357600080fd5b5056fea26469706673582212202c5b36a1590b1ae71077a0b35d4fc74aa9451dfabe2ba8eaeb92acee10b4b88364736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000004064976a8dd00000000000000000000000000001299f820ad7db91d6b3f2e6faaa66c05b254eb17000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000000000000000000000000000000000000000000174672616e6b205374656c6c612047656f6d657472696573000000000000000000000000000000000000000000000000000000000000000000000000000000000847656f6d657472790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6561377634326a566f456a4b346852575a347a584552746948634c39324c37525646485a5254344d6b6274642f00000000000000000000
Deployed Bytecode
0x60806040526004361061025c5760003560e01c80636f1095c711610144578063a2adb3a3116100b6578063c0499dfc1161007a578063c0499dfc146108e6578063c49576191461090f578063c87b56dd14610938578063d8a9e1e914610975578063dcdbcb9f146109a0578063e985e9c5146109c95761025c565b8063a2adb3a314610814578063b24f2d391461083f578063b5a6a72c1461086b578063b723b34e14610894578063b88d4fde146108bd5761025c565b80638ec1d651116101085780638ec1d6511461074d57806395d89b41146107645780639bcf7a151461078f578063a0712d68146107b8578063a10866ef146107d4578063a22cb465146107eb5761025c565b80636f1095c71461062e57806370a082311461066b57806372f26b9c146106a8578063755ca5bc146106e55780638da5cb5b146107225761025c565b806323b872dd116101dd57806342842e0e116101a157806342842e0e1461050f5780634cc157df1461053857806355f804b314610576578063600dd5ea1461059f5780636352211e146105c85780636beeedb8146106055761025c565b806323b872dd1461043d578063254fb422146104665780632a55205a146104915780633719e3b0146104cf5780633ab1a494146104e65761025c565b8063122aefe311610224578063122aefe31461036c57806313af40351461039557806318160ddd146103be5780631bc656e4146103e95780631e84c413146104125761025c565b806301ffc9a71461026157806305a3b8091461029e57806306fdde03146102db578063081812fc14610306578063095ea7b314610343575b600080fd5b34801561026d57600080fd5b506102886004803603810190610283919061436a565b610a06565b60405161029591906148d6565b60405180910390f35b3480156102aa57600080fd5b506102c560048036038101906102c0919061412d565b610a80565b6040516102d291906148d6565b60405180910390f35b3480156102e757600080fd5b506102f0610ae9565b6040516102fd91906148f1565b60405180910390f35b34801561031257600080fd5b5061032d6004803603810190610328919061440d565b610b7b565b60405161033a919061481d565b60405180910390f35b34801561034f57600080fd5b5061036a600480360381019061036591906142dd565b610bfa565b005b34801561037857600080fd5b50610393600480360381019061038e919061440d565b610c51565b005b3480156103a157600080fd5b506103bc60048036038101906103b7919061412d565b610d39565b005b3480156103ca57600080fd5b506103d3610d8c565b6040516103e09190614af3565b60405180910390f35b3480156103f557600080fd5b50610410600480360381019061040b919061412d565b610da3565b005b34801561041e57600080fd5b5061042761107c565b60405161043491906148d6565b60405180910390f35b34801561044957600080fd5b50610464600480360381019061045f91906141c7565b611093565b005b34801561047257600080fd5b5061047b6113b8565b60405161048891906148d6565b60405180910390f35b34801561049d57600080fd5b506104b860048036038101906104b391906144cd565b6113cf565b6040516104c69291906148ad565b60405180910390f35b3480156104db57600080fd5b506104e461140d565b005b3480156104f257600080fd5b5061050d6004803603810190610508919061415a565b6115ad565b005b34801561051b57600080fd5b50610536600480360381019061053191906141c7565b61167f565b005b34801561054457600080fd5b5061055f600480360381019061055a919061440d565b61169f565b60405161056d929190614884565b60405180910390f35b34801561058257600080fd5b5061059d600480360381019061059891906143c4565b6117aa565b005b3480156105ab57600080fd5b506105c660048036038101906105c191906142dd565b6118a2565b005b3480156105d457600080fd5b506105ef60048036038101906105ea919061440d565b6118f7565b6040516105fc919061481d565b60405180910390f35b34801561061157600080fd5b5061062c6004803603810190610627919061440d565b611909565b005b34801561063a57600080fd5b506106556004803603810190610650919061412d565b611a91565b60405161066291906148d6565b60405180910390f35b34801561067757600080fd5b50610692600480360381019061068d919061412d565b611ae7565b60405161069f9190614af3565b60405180910390f35b3480156106b457600080fd5b506106cf60048036038101906106ca919061440d565b611ba0565b6040516106dc9190614af3565b60405180910390f35b3480156106f157600080fd5b5061070c6004803603810190610707919061440d565b611bc0565b6040516107199190614af3565b60405180910390f35b34801561072e57600080fd5b50610737611be0565b604051610744919061481d565b60405180910390f35b34801561075957600080fd5b50610762611c09565b005b34801561077057600080fd5b50610779611d54565b60405161078691906148f1565b60405180910390f35b34801561079b57600080fd5b506107b660048036038101906107b1919061447a565b611de6565b005b6107d260048036038101906107cd919061440d565b611e3d565b005b3480156107e057600080fd5b506107e9612103565b005b3480156107f757600080fd5b50610812600480360381019061080d919061429d565b6122a3565b005b34801561082057600080fd5b506108296122fa565b6040516108369190614af3565b60405180910390f35b34801561084b57600080fd5b50610854612304565b604051610862929190614884565b60405180910390f35b34801561087757600080fd5b50610892600480360381019061088d919061431d565b612343565b005b3480156108a057600080fd5b506108bb60048036038101906108b6919061443a565b61250d565b005b3480156108c957600080fd5b506108e460048036038101906108df919061421a565b61274f565b005b3480156108f257600080fd5b5061090d6004803603810190610908919061431d565b6127c2565b005b34801561091b57600080fd5b506109366004803603810190610931919061431d565b6129f2565b005b34801561094457600080fd5b5061095f600480360381019061095a919061440d565b612b1c565b60405161096c91906148f1565b60405180910390f35b34801561098157600080fd5b5061098a612bc3565b60405161099791906148d6565b60405180910390f35b3480156109ac57600080fd5b506109c760048036038101906109c2919061431d565b612bda565b005b3480156109d557600080fd5b506109f060048036038101906109eb9190614187565b612d69565b6040516109fd91906148d6565b60405180910390f35b6000610a1182612dfd565b80610a795750817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600080601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1611610adf576000610ae2565b60015b9050919050565b606060058054610af890614dec565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2490614dec565b8015610b715780601f10610b4657610100808354040283529160200191610b71565b820191906000526020600020905b815481529060010190602001808311610b5457829003601f168201915b5050505050905090565b6000610b8682612e8f565b610bbc576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610c0382611a91565b15610c43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3a906149f3565b60405180910390fd5b610c4d8282612eee565b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd690614ad3565b60405180910390fd5b600e60009054906101000a900460ff1615610d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2690614993565b60405180910390fd5b80600f8190555050565b610d41613032565b610d80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7790614ad3565b60405180910390fd5b610d898161306f565b50565b6000610d96613133565b6004546003540303905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2890614ad3565b60405180910390fd5b600e60009054906101000a900460ff1615610e81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7890614993565b60405180910390fd5b600e60029054906101000a900460ff1615610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec890614953565b60405180910390fd5b600e60019054906101000a900460ff1615610f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1890614a13565b60405180910390fd5b6000610f2b61313c565b9050610f38826016613146565b6000600190505b60168111611077576040518060400160405280828152602001610f7f6001601160008681526020019081526020016000205461316490919063ffffffff16565b815250601260008481526020019081526020016000206000820151816000015560208201518160010155905050610fd36001601160008481526020019081526020016000205461316490919063ffffffff16565b6011600083815260200190815260200160002081905550818373ffffffffffffffffffffffffffffffffffffffff167f5a3358a3d27a5373c0df2604662088d37894d56b7cfd27f315770440f4e0d919836011600086815260200190815260200160002054604051611046929190614b0e565b60405180910390a361106260018361316490919063ffffffff16565b9150808061106f90614e4f565b915050610f3f565b505050565b6000600e60029054906101000a900460ff16905090565b600061109e8261317a565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611105576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061111184613248565b91509150611127818761112261326f565b613277565b6111735761113c8661113761326f565b612d69565b611172576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156111da576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111e786868660016132bb565b80156111f257600082555b600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506112c08561129c8888876132c1565b7c0200000000000000000000000000000000000000000000000000000000176132e9565b600760008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611348576000600185019050600060076000838152602001908152602001600020541415611346576003548114611345578360076000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113b08686866001613314565b505050505050565b6000600e60009054906101000a900460ff16905090565b6000806000806113de8661169f565b61ffff169150915081935061271081866113f89190614c88565b6114029190614c57565b925050509250929050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461149b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149290614ad3565b60405180910390fd5b600e60009054906101000a900460ff16156114eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e290614993565b60405180910390fd5b600e60029054906101000a900460ff161561153b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153290614953565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff0219169083151502179055507fc08856a2421028bf2a88be7559541c7087eb189d1518a79356b4ace74b5252c9600e60019054906101000a900460ff166040516115a391906148d6565b60405180910390a1565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461163b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163290614ad3565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61169a8383836040518060200160405280600081525061274f565b505050565b6000806000600260008581526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820154815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461176b57806000015181602001516117a0565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160149054906101000a900461ffff165b9250925050915091565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182f90614ad3565b60405180910390fd5b600e60009054906101000a900460ff1615611888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187f90614993565b60405180910390fd5b80600d908051906020019061189e929190613ed6565b5050565b6118aa61331a565b6118e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e090614ad3565b60405180910390fd5b6118f38282613357565b5050565b60006119028261317a565b9050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611997576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198e90614ad3565b60405180910390fd5b600e60009054906101000a900460ff16156119e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119de90614993565b60405180910390fd5b600e60019054906101000a900460ff1615611a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2e90614a13565b60405180910390fd5b600e60029054906101000a900460ff1615611a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7e90614953565b60405180910390fd5b80600b8190555050565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b4f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600060126000838152602001908152602001600020600001549050919050565b600060126000838152602001908152602001600020600101549050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8e90614ad3565b60405180910390fd5b600e60019054906101000a900460ff1615611ce7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cde90614a13565b60405180910390fd5b600e60029054906101000a900460ff1615611d37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2e90614953565b60405180910390fd5b6001600e60006101000a81548160ff021916908315150217905550565b606060068054611d6390614dec565b80601f0160208091040260200160405190810160405280929190818152602001828054611d8f90614dec565b8015611ddc5780601f10611db157610100808354040283529160200191611ddc565b820191906000526020600020905b815481529060010190602001808311611dbf57829003601f168201915b5050505050905090565b611dee61331a565b611e2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2490614ad3565b60405180910390fd5b611e3883838361344c565b505050565b600e60029054906101000a900460ff1680611e645750600e60019054906101000a900460ff165b611ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9a90614a53565b60405180910390fd5b6014811115611ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ede906149b3565b60405180910390fd5b34600b5414611f2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f22906149d3565b60405180910390fd5b600e60019054906101000a900460ff161561208d576000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1611611fd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc990614973565b60405180910390fd5b6120356001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1661357790919063ffffffff16565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505b612097813361358d565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156120ff573d6000803e3d6000fd5b5050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218890614ad3565b60405180910390fd5b600e60009054906101000a900460ff16156121e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d890614993565b60405180910390fd5b600e60019054906101000a900460ff1615612231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222890614a13565b60405180910390fd5b600e60029054906101000a900460ff1615600e60026101000a81548160ff0219169083151502179055507fd9bc49251edd474a55897591c0b750b4f5b2609a950c788f8ef8d44b45b0f718600e60029054906101000a900460ff1660405161229991906148d6565b60405180910390a1565b6122ac82611a91565b156122ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e3906149f3565b60405180910390fd5b6122f6828261383f565b5050565b6000600f54905090565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160149054906101000a900461ffff16915091509091565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146123d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c890614ad3565b60405180910390fd5b600e60019054906101000a900460ff1615612421576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241890614ab3565b60405180910390fd5b600e60009054906101000a900460ff1615612471576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246890614993565b60405180910390fd5b60005b82829050811015612508576010600084848481811061249657612495614f25565b5b90506020020160208101906124ab919061412d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff0219169055808061250090614e4f565b915050612474565b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461259b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259290614ad3565b60405180910390fd5b60168211156125df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d690614a33565b60405180910390fd5b600e60019054906101000a900460ff1615612741576000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1611612686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267d90614973565b60405180910390fd5b6126e96001601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1661357790919063ffffffff16565b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505b61274b828261358d565b5050565b61275a848484611093565b60008373ffffffffffffffffffffffffffffffffffffffff163b146127bc57612785848484846139b7565b6127bb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612850576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284790614ad3565b60405180910390fd5b600e60019054906101000a900460ff16156128a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289790614ab3565b60405180910390fd5b600e60009054906101000a900460ff16156128f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e790614993565b60405180910390fd5b60005b828290508110156129ed57600073ffffffffffffffffffffffffffffffffffffffff1683838381811061292957612928614f25565b5b905060200201602081019061293e919061412d565b73ffffffffffffffffffffffffffffffffffffffff16146129da5760016010600085858581811061297257612971614f25565b5b9050602002016020810190612987919061412d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505b80806129e590614e4f565b9150506128f3565b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7790614ad3565b60405180910390fd5b60005b82829050811015612b175760136000848484818110612aa557612aa4614f25565b5b9050602002016020810190612aba919061412d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690558080612b0f90614e4f565b915050612a83565b505050565b6060612b2782612e8f565b612b5d576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612b67613b17565b9050600081511415612b885760405180602001604052806000815250612bbb565b80612b9a612b9585613ba9565b613bfb565b604051602001612bab9291906147f9565b6040516020818303038152906040525b915050919050565b6000600e60019054906101000a900460ff16905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5f90614ad3565b60405180910390fd5b60005b82829050811015612d6457600073ffffffffffffffffffffffffffffffffffffffff16838383818110612ca157612ca0614f25565b5b9050602002016020810190612cb6919061412d565b73ffffffffffffffffffffffffffffffffffffffff1614612d5157600160136000858585818110612cea57612ce9614f25565b5b9050602002016020810190612cff919061412d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b8080612d5c90614e4f565b915050612c6b565b505050565b6000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e5857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e885750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600081612e9a613133565b11158015612ea9575060035482105b8015612ee7575060007c0100000000000000000000000000000000000000000000000000000000600760008581526020019081526020016000205416145b9050919050565b6000612ef9826118f7565b90508073ffffffffffffffffffffffffffffffffffffffff16612f1a61326f565b73ffffffffffffffffffffffffffffffffffffffff1614612f7d57612f4681612f4161326f565b612d69565b612f7c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826009600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600061303c611be0565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a35050565b60006001905090565b6000600354905090565b613160828260405180602001604052806000815250613c4b565b5050565b600081836131729190614c01565b905092915050565b60008082905080613189613133565b11613211576003548110156132105760006007600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216141561320e575b60008114156132045760076000836001900393508381526020019081526020016000205490506131d9565b8092505050613243565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006009600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86132d8868684613ce9565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000613324611be0565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b61271081111561339c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339390614a93565b60405180910390fd5b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160146101000a81548161ffff021916908361ffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f90d7ec04bcb8978719414f82e52e4cb651db41d0e6f8cea6118c2191e6183adb826040516134409190614af3565b60405180910390a25050565b612710811115613491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161348890614a93565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001828152506002600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050508173ffffffffffffffffffffffffffffffffffffffff16837f7365cf4122f072a3365c20d54eff9b38d73c096c28e1892ec8f5b0e403a0f12d8360405161356a9190614af3565b60405180910390a3505050565b600081836135859190614ce2565b905092915050565b600e60009054906101000a900460ff16156135dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d490614993565b60405180910390fd5b60008211613620576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161361790614a73565b60405180910390fd5b60646136496001601160008681526020019081526020016000205461316490919063ffffffff16565b111561368a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161368190614933565b60405180910390fd5b600f546136b46001601160008681526020019081526020016000205461316490919063ffffffff16565b11156136f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136ec90614913565b60405180910390fd5b613700816001613146565b60405180604001604052808381526020016137386001601160008781526020019081526020016000205461316490919063ffffffff16565b8152506012600061375a600161374c61313c565b61357790919063ffffffff16565b815260200190815260200160002060008201518160000155602082015181600101559050506137a66001601160008581526020019081526020016000205461316490919063ffffffff16565b60116000848152602001908152602001600020819055506137d860016137ca61313c565b61357790919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f5a3358a3d27a5373c0df2604662088d37894d56b7cfd27f315770440f4e0d919846011600087815260200190815260200160002054604051613833929190614b0e565b60405180910390a35050565b61384761326f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156138ac576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60006138b961326f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661396661326f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516139ab91906148d6565b60405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026139dd61326f565b8786866040518563ffffffff1660e01b81526004016139ff9493929190614838565b602060405180830381600087803b158015613a1957600080fd5b505af1925050508015613a4a57506040513d601f19601f82011682018060405250810190613a479190614397565b60015b613ac4573d8060008114613a7a576040519150601f19603f3d011682016040523d82523d6000602084013e613a7f565b606091505b50600081511415613abc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054613b2690614dec565b80601f0160208091040260200160405190810160405280929190818152602001828054613b5290614dec565b8015613b9f5780601f10613b7457610100808354040283529160200191613b9f565b820191906000526020600020905b815481529060010190602001808311613b8257829003601f168201915b5050505050905090565b6000613bf4613bb783611bc0565b613be66064613bd86001613bca88611ba0565b61357790919063ffffffff16565b613cf290919063ffffffff16565b61316490919063ffffffff16565b9050919050565b606060806040510190508060405280825b600115613c3757600183039250600a81066030018353600a8104905080613c3257613c37565b613c0c565b508181036020830392508083525050919050565b613c558383613d08565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613ce45760006003549050600083820390505b613c9660008683806001019450866139b7565b613ccc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110613c83578160035414613ce157600080fd5b50505b505050565b60009392505050565b60008183613d009190614c88565b905092915050565b600060035490506000821415613d4a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613d5760008483856132bb565b600160406001901b178202600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613dce83613dbf60008660006132c1565b613dc885613ec6565b176132e9565b6007600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613e6f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613e34565b506000821415613eab576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806003819055505050613ec16000848385613314565b505050565b60006001821460e11b9050919050565b828054613ee290614dec565b90600052602060002090601f016020900481019282613f045760008555613f4b565b82601f10613f1d57805160ff1916838001178555613f4b565b82800160010185558215613f4b579182015b82811115613f4a578251825591602001919060010190613f2f565b5b509050613f589190613f5c565b5090565b5b80821115613f75576000816000905550600101613f5d565b5090565b6000613f8c613f8784614b5c565b614b37565b905082815260208101848484011115613fa857613fa7614f92565b5b613fb3848285614daa565b509392505050565b6000613fce613fc984614b8d565b614b37565b905082815260208101848484011115613fea57613fe9614f92565b5b613ff5848285614daa565b509392505050565b60008135905061400c81615323565b92915050565b6000813590506140218161533a565b92915050565b60008083601f84011261403d5761403c614f88565b5b8235905067ffffffffffffffff81111561405a57614059614f83565b5b60208301915083602082028301111561407657614075614f8d565b5b9250929050565b60008135905061408c81615351565b92915050565b6000813590506140a181615368565b92915050565b6000815190506140b681615368565b92915050565b600082601f8301126140d1576140d0614f88565b5b81356140e1848260208601613f79565b91505092915050565b600082601f8301126140ff576140fe614f88565b5b813561410f848260208601613fbb565b91505092915050565b6000813590506141278161537f565b92915050565b60006020828403121561414357614142614f9c565b5b600061415184828501613ffd565b91505092915050565b6000602082840312156141705761416f614f9c565b5b600061417e84828501614012565b91505092915050565b6000806040838503121561419e5761419d614f9c565b5b60006141ac85828601613ffd565b92505060206141bd85828601613ffd565b9150509250929050565b6000806000606084860312156141e0576141df614f9c565b5b60006141ee86828701613ffd565b93505060206141ff86828701613ffd565b925050604061421086828701614118565b9150509250925092565b6000806000806080858703121561423457614233614f9c565b5b600061424287828801613ffd565b945050602061425387828801613ffd565b935050604061426487828801614118565b925050606085013567ffffffffffffffff81111561428557614284614f97565b5b614291878288016140bc565b91505092959194509250565b600080604083850312156142b4576142b3614f9c565b5b60006142c285828601613ffd565b92505060206142d38582860161407d565b9150509250929050565b600080604083850312156142f4576142f3614f9c565b5b600061430285828601613ffd565b925050602061431385828601614118565b9150509250929050565b6000806020838503121561433457614333614f9c565b5b600083013567ffffffffffffffff81111561435257614351614f97565b5b61435e85828601614027565b92509250509250929050565b6000602082840312156143805761437f614f9c565b5b600061438e84828501614092565b91505092915050565b6000602082840312156143ad576143ac614f9c565b5b60006143bb848285016140a7565b91505092915050565b6000602082840312156143da576143d9614f9c565b5b600082013567ffffffffffffffff8111156143f8576143f7614f97565b5b614404848285016140ea565b91505092915050565b60006020828403121561442357614422614f9c565b5b600061443184828501614118565b91505092915050565b6000806040838503121561445157614450614f9c565b5b600061445f85828601614118565b925050602061447085828601613ffd565b9150509250929050565b60008060006060848603121561449357614492614f9c565b5b60006144a186828701614118565b93505060206144b286828701613ffd565b92505060406144c386828701614118565b9150509250925092565b600080604083850312156144e4576144e3614f9c565b5b60006144f285828601614118565b925050602061450385828601614118565b9150509250929050565b61451681614d16565b82525050565b61452581614d3a565b82525050565b600061453682614bbe565b6145408185614bd4565b9350614550818560208601614db9565b61455981614fa1565b840191505092915050565b600061456f82614bc9565b6145798185614be5565b9350614589818560208601614db9565b61459281614fa1565b840191505092915050565b60006145a882614bc9565b6145b28185614bf6565b93506145c2818560208601614db9565b80840191505092915050565b60006145db602d83614be5565b91506145e682614fb2565b604082019050919050565b60006145fe603183614be5565b915061460982615001565b604082019050919050565b6000614621601683614be5565b915061462c82615050565b602082019050919050565b6000614644604283614be5565b915061464f82615079565b606082019050919050565b6000614667601583614be5565b9150614672826150ee565b602082019050919050565b600061468a603e83614be5565b915061469582615117565b604082019050919050565b60006146ad602083614be5565b91506146b882615166565b602082019050919050565b60006146d0601c83614be5565b91506146db8261518f565b602082019050919050565b60006146f3601783614be5565b91506146fe826151b8565b602082019050919050565b6000614716603583614be5565b9150614721826151e1565b604082019050919050565b6000614739602983614be5565b915061474482615230565b604082019050919050565b600061475c601983614be5565b91506147678261527f565b602082019050919050565b600061477f600f83614be5565b915061478a826152a8565b602082019050919050565b60006147a2601e83614be5565b91506147ad826152d1565b602082019050919050565b60006147c5600e83614be5565b91506147d0826152fa565b602082019050919050565b6147e481614d72565b82525050565b6147f381614da0565b82525050565b6000614805828561459d565b9150614811828461459d565b91508190509392505050565b6000602082019050614832600083018461450d565b92915050565b600060808201905061484d600083018761450d565b61485a602083018661450d565b61486760408301856147ea565b8181036060830152614879818461452b565b905095945050505050565b6000604082019050614899600083018561450d565b6148a660208301846147db565b9392505050565b60006040820190506148c2600083018561450d565b6148cf60208301846147ea565b9392505050565b60006020820190506148eb600083018461451c565b92915050565b6000602082019050818103600083015261490b8184614564565b905092915050565b6000602082019050818103600083015261492c816145ce565b9050919050565b6000602082019050818103600083015261494c816145f1565b9050919050565b6000602082019050818103600083015261496c81614614565b9050919050565b6000602082019050818103600083015261498c81614637565b9050919050565b600060208201905081810360008301526149ac8161465a565b9050919050565b600060208201905081810360008301526149cc8161467d565b9050919050565b600060208201905081810360008301526149ec816146a0565b9050919050565b60006020820190508181036000830152614a0c816146c3565b9050919050565b60006020820190508181036000830152614a2c816146e6565b9050919050565b60006020820190508181036000830152614a4c81614709565b9050919050565b60006020820190508181036000830152614a6c8161472c565b9050919050565b60006020820190508181036000830152614a8c8161474f565b9050919050565b60006020820190508181036000830152614aac81614772565b9050919050565b60006020820190508181036000830152614acc81614795565b9050919050565b60006020820190508181036000830152614aec816147b8565b9050919050565b6000602082019050614b0860008301846147ea565b92915050565b6000604082019050614b2360008301856147ea565b614b3060208301846147ea565b9392505050565b6000614b41614b52565b9050614b4d8282614e1e565b919050565b6000604051905090565b600067ffffffffffffffff821115614b7757614b76614f54565b5b614b8082614fa1565b9050602081019050919050565b600067ffffffffffffffff821115614ba857614ba7614f54565b5b614bb182614fa1565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614c0c82614da0565b9150614c1783614da0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c4c57614c4b614e98565b5b828201905092915050565b6000614c6282614da0565b9150614c6d83614da0565b925082614c7d57614c7c614ec7565b5b828204905092915050565b6000614c9382614da0565b9150614c9e83614da0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614cd757614cd6614e98565b5b828202905092915050565b6000614ced82614da0565b9150614cf883614da0565b925082821015614d0b57614d0a614e98565b5b828203905092915050565b6000614d2182614d80565b9050919050565b6000614d3382614d80565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614dd7578082015181840152602081019050614dbc565b83811115614de6576000848401525b50505050565b60006002820490506001821680614e0457607f821691505b60208210811415614e1857614e17614ef6565b5b50919050565b614e2782614fa1565b810181811067ffffffffffffffff82111715614e4657614e45614f54565b5b80604052505050565b6000614e5a82614da0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e8d57614e8c614e98565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4d6178696d756d2065646974696f6e7320666f7220746869732073616c65207360008201527f7461746520726561636865642100000000000000000000000000000000000000602082015250565b7f47656f6d657472792068617320616c7265616479206d6178696d756d206e756d60008201527f62657273206f662065646974696f6e7321000000000000000000000000000000602082015250565b7f5075626c69632073616c65206973206163746976652100000000000000000000600082015250565b7f41646472657373206e6f7420416c6c6f776c6973746564206f722073656e646560008201527f7220707269766174652073616c65206c696d697420686176652072656163686560208201527f6421000000000000000000000000000000000000000000000000000000000000604082015250565b7f436f6c6c656374696f6e2069732066726f7a656e210000000000000000000000600082015250565b7f47656f6d657472792073686f756c64206c657373207468616e206d6178696d7560008201527f6d20617661696c61626c652047656f6d6574727920666f722073616c65210000602082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637421600082015250565b7f4f70657261746f7220616464726573732044656e794c69737465642100000000600082015250565b7f507269766174652073616c652069732061637469766521000000000000000000600082015250565b7f47656f6d657472792073686f756c64206c657373207468616e206d6178696d7560008201527f6d20617661696c61626c652047656f6d65747279210000000000000000000000602082015250565b7f7075626c696353616c65206f72207072697661746553616c65206d757374206260008201527f6520616374697665210000000000000000000000000000000000000000000000602082015250565b7f47656f6d657472792073686f756c64206e6f7420626520302100000000000000600082015250565b7f45786365656473206d6178206270730000000000000000000000000000000000600082015250565b7f507269766174652073616c65206973206e6f772072756e6e696e672121210000600082015250565b7f4e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b61532c81614d16565b811461533757600080fd5b50565b61534381614d28565b811461534e57600080fd5b50565b61535a81614d3a565b811461536557600080fd5b50565b61537181614d46565b811461537c57600080fd5b50565b61538881614da0565b811461539357600080fd5b5056fea26469706673582212202c5b36a1590b1ae71077a0b35d4fc74aa9451dfabe2ba8eaeb92acee10b4b88364736f6c63430008070033
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.