Overview
TokenID
133
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MetropolisWorldGenesis
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.1; import "hardhat/console.sol"; // import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; //access control import "@openzeppelin/contracts/access/AccessControl.sol"; // Helper functions OpenZeppelin provides. import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; import "./AddingData.sol"; struct PropertyAttributes { uint256 id; uint256 propertyIndex; string name; string description; string image; Properties properties; uint16 extensionCount; uint256[] extensionIds; } struct Properties { string tower; string district; string neighborhood; string primary_type; string sub_type_1; string sub_type_2; string structure; string feature_1; string feature_2; string feature_3; string feature_4; string tier; } interface DataInterface { function price(uint16 nftId) external view returns (uint256); function nftProperties(uint16 nftId) external view returns (PropertyAttributes memory); function getMintStatus(uint16 nftId) external view returns (bool); function changeMintStatus(uint16 nftId) external; function addExtensionToMetadata(uint16 nftId, uint extId)external; function removeExtensionFromMetadata(uint16 nftId, uint extId)external; function checkOwnershipOfExtension(uint16 propId, uint extTokenId)external view returns(bool); } interface WLContractInter{ function checkPassportHasWLSpot(uint passportId, string calldata city, uint32 buildingId)external view returns(bool); function removeCityWlSpot(uint passportId, string calldata city, uint32 buildingId)external; } interface PassportInterface{ // function confirmCityWl(uint passId, string calldata city, uint buildingId)external returns(bool); function ownerOf(uint256 tokenId)external view returns(address); function detachCityWLSpot(uint passportId, uint index)external; } interface TokenUriInterface{ function getTokenUri(uint16 nftId)external view returns(string memory); } contract MetropolisWorldGenesis is ERC721Enumerable, AccessControl { address public DATA_CONTRACT; DataInterface DataContract; address public PASSPORT_CONTRACT; PassportInterface PassContract; address public TOKENURI_CONTRACT; TokenUriInterface TokContract; address private WL_CONTRCAT; WLContractInter WlContract; //defining the access roles bytes32 public constant UPDATER_ROLE = keccak256("UPDATER_ROLE"); bytes32 public constant CONTRACT_ROLE = keccak256("CONTRACT_ROLE"); bytes32 public constant BALANCE_ROLE = keccak256("BALANCE_ROLE"); // The tokenId is the NFTs unique identifier, it's just a number that goes // 0, 1, 2, 3, etc. using Counters for Counters.Counter; Counters.Counter private _tokenIds; string private _contractURI; // string private _passportContract; address payable private _paymentSplit; //map the nft tokenid to the atributes via property id //Property ID is used to get data from data contract mapping(uint256 => uint16) public nftHolderAttributes; mapping(uint16 => uint) propIdToTokenId; uint16[] public mintedIds; constructor() ERC721("Metropolis World - City of Celeste", "METC") { // I increment _tokenIds here so that my first NFT has an ID of 1. _tokenIds.increment(); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(UPDATER_ROLE, msg.sender); _setupRole(CONTRACT_ROLE, msg.sender); _setupRole(BALANCE_ROLE, msg.sender); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } function contractURI() public view returns (string memory) { return _contractURI; } /** *@dev sets up the interface so this contract can call the passport contract *@param passportContract the contract address of the passport contract. */ function setInterfaceContracts(address passportContract, address wlContract, address tokContract, address dataContract)external onlyRole(UPDATER_ROLE){ require(passportContract != address(0), "Please enter valid contract address"); require(wlContract != address(0), "Please enter valid contract address"); require(tokContract != address(0), "Please enter valid contract address"); require(dataContract != address(0), "Please enter valid contract address"); PASSPORT_CONTRACT = passportContract; PassContract = PassportInterface(PASSPORT_CONTRACT); WL_CONTRCAT = wlContract; WlContract = WLContractInter(WL_CONTRCAT); TOKENURI_CONTRACT = tokContract; TokContract = TokenUriInterface(TOKENURI_CONTRACT); DATA_CONTRACT = dataContract; DataContract = DataInterface(DATA_CONTRACT); } function addPaymentSplitContract(address payable paymentSplit)external onlyRole(UPDATER_ROLE){ require(paymentSplit != address(0), "Please enter valid contract address"); _paymentSplit = paymentSplit; } function getMintedIds()external view returns(uint16[] memory){ return mintedIds; } /** *@dev sets the CONTRACT_ROLE so that the extensions contract can call functions *@param extAddress the contract address of the extensions contract. */ function setContractRole(address extAddress)external onlyRole(UPDATER_ROLE){ require(extAddress != address(0), "Please enter valid contract address"); _grantRole(CONTRACT_ROLE, extAddress); } /** *@dev returns the price of a specific NFT *@param nftId the property Id of the nft you want to get the price for. */ function priceOfNft(uint16 nftId) external view returns (uint256) { uint256 price = DataContract.price(nftId); return price; } /** *@dev returns all the metadata for a specific NFT before or after minting *@param nftId the property ID of the speific NFT you want the metadata for. */ function metaData(uint16 nftId)public view returns (PropertyAttributes memory){ PropertyAttributes memory x = DataContract.nftProperties(nftId); return x; } /** *@dev used to view the metadata of a property nft *@param tokenId the token id of the nft you want to get the metadata for. */ function getNftData(uint tokenId)public view returns (PropertyAttributes memory){ uint16 nftId = nftHolderAttributes[tokenId]; return metaData(nftId); } /** @dev used by the front end to verify the wallet holda property and there for allow certain access @param owner the wallet address to be checked against */ function checkOwnsProperty(address owner)external view returns(PropertyAttributes[] memory){ uint256 bal = balanceOf(owner); PropertyAttributes[] memory x = new PropertyAttributes[](bal); for (uint256 i = 0; i < bal; i++) { uint tokenId = tokenOfOwnerByIndex(owner,i); x[i] = getNftData(tokenId); } return x; } /** *@dev returns the mint status of a specificed property, ie is it minted yet *@param nftId the id of the property in question. */ function mintStatus(uint16 nftId)public view returns(bool){ return DataContract.getMintStatus(nftId); } /** *@dev a function to chnage a properties mint status to true, effectivleyl making it unmintable *@notice This may well be removed as is risky and perhaps better not having this option. */ function setMintStatus(uint16 nftId)public onlyRole(UPDATER_ROLE){ DataContract.changeMintStatus(nftId); } /** *@dev the internal function used to process mints */ function _internalMint(uint passId, uint16 nftId, address to)internal { uint256 newItemId = _tokenIds.current(); if (passId != 0){ //check wl spot require(WlContract.checkPassportHasWLSpot(passId, 'city1', nftId), "no wl spot"); } //check if minted yet require(DataContract.getMintStatus(nftId)==false, "This has already been minted"); _safeMint(to, newItemId); nftHolderAttributes[newItemId] = nftId; propIdToTokenId[nftId] = newItemId; //set minted to true DataContract.changeMintStatus(nftId); mintedIds.push(nftId); //Increment the tokenId for the next person that uses it. _tokenIds.increment(); if (passId != 0){ WlContract.removeCityWlSpot(passId, "city1", nftId); //PassContract.detachCityWLSpot(passId, 0); } //send money to payments contract. if (address(this).balance > 0){ withdraw(); } } /** * @dev the standard mint procees to get a property * @notice will check against your passport to make sure you are on the WL for this property * @param passId the tokenID of the passport the user holds * @param nftId the id of the property the user is trying to mint @param to wallet where the NFT is going to be minted to */ function paidMint(uint passId, uint16 nftId, address to)external payable{ //check you owwn this passport. require(passId > 0, "Not a valid passport ID"); require(PassContract.ownerOf(passId) == to, 'You must be the owner of this passport'); require(msg.value >= DataContract.price(nftId), "Not paid enough, sorry"); _internalMint(passId, nftId, to); if (msg.value > DataContract.price(nftId)){ Address.sendValue(payable(msg.sender), (msg.value - DataContract.price(nftId))); } } /** * @dev the free mint functiion used for winners and partners requires role * @notice if you pass in 0 for the passport id it will not check the WL * @notice requires the wallet to have the UPDATER_ROLE * @param passId the tokenID of the passport the user holds * @param nftId the id of the property the user is trying to mint */ function freeMint(uint16 passId, uint16 nftId, address to)public onlyRole(UPDATER_ROLE){ //passing 0 into passID value will not check against WL //used for founding citizens and other giveaways _internalMint(passId, nftId, to); } /** *@dev function called by the extension contract to attach the extension to a building *@notice this can only be called by the CONTRACT_ROLE *@param propTokenId the token id of the property the extension is attached to *@param extTokenId the id of the extention being added *@param owner the wallet address of the property owner, we verify the owner to ensure added to correct property */ function attachExtension(uint propTokenId, uint extTokenId, address owner)external onlyRole(CONTRACT_ROLE){ require(ownerOf(propTokenId) == owner, "not the owner"); uint16 nftId = nftHolderAttributes[propTokenId]; console.log("NFT ID is: ", nftId); DataContract.addExtensionToMetadata(nftId, extTokenId); } /** *@dev the function used to detach the extension from the property *@notice can only be called by the contract role *@param propId the token Id of the property the extentsion is being detached from *@param extTokenId the token id of the extension to be removed *@param owner the address of the property owner. */ function detachExtension(uint propId, uint extTokenId, address owner)external onlyRole(CONTRACT_ROLE){ require(ownerOf(propId) == owner, "not the owner"); console.log("prop contract detahc extentions"); uint16 nftId = nftHolderAttributes[propId]; DataContract.removeExtensionFromMetadata(nftId, extTokenId); console.log("detach semt to data contract"); } /** *@dev used to check who owns and extension. Primarily to verify that the user can attach or detach it *@param propTokenId the token id of the property *@param extTokenId the id of the extension id to be checked */ function checkExtensionOwnership(uint propTokenId, uint extTokenId)external view onlyRole(CONTRACT_ROLE) returns(bool){ uint16 propId = nftHolderAttributes[propTokenId]; return DataContract.checkOwnershipOfExtension(propId, extTokenId); } /** @dev function to allow us to use the internal property id to find the owner @param propId the internal id of the property */ function whoOwnsIt(uint16 propId)external view returns(address){ return ownerOf(propIdToTokenId[propId]); } /** *@dev used to return the tokenURI which is dynamically generated, mostly for opensea etc. *@notice the leg work is done on the tokenURI contract *@param _tokenId token id of the property NFT */ function tokenURI(uint256 _tokenId) public view override returns (string memory) { uint16 nftId = nftHolderAttributes[_tokenId]; return TokContract.getTokenUri(nftId); } /** *@dev set the contrct URI data for the contract to meet requirements of markets which follow the standard. *@param name name of the contract *@param desc descirption of the contract *@param image image to represent the contract *@param link link to be associated with the contract *@param royalty about to collected as royalty 100 = 1% */ function setContractURI( string memory name, string memory desc, string memory image, string memory link, uint256 royalty ) public onlyRole(UPDATER_ROLE) { string memory x = Base64.encode( abi.encodePacked( '{"name": "', name, '", "description": "', desc, '", "image": "', image, '", "external_link": "', link, '","seller_fee_basis_points":"', royalty, // 100 Indicates a 1% seller fee '", "fee_recipient": "0xA97F337c39cccE66adfeCB2BF99C1DdC54C2D721" }' // Where seller fees will be paid to.} ) ); _contractURI = string( abi.encodePacked("data:application/json;base64,", x) ); } /** *@dev withdraws eth from the contract to the payment split contract */ function withdraw() public { uint256 balance = address(this).balance; Address.sendValue(_paymentSplit, balance); } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.1; import "hardhat/console.sol"; //access control import "@openzeppelin/contracts/access/AccessControl.sol"; // Helper functions OpenZeppelin provides. import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./MetropolisWorldGenesis.sol"; interface ExtInter { function extensionNameList(uint256[] calldata exts)external view returns (bytes memory); } //holds the data for the NFT's done this way to reduce gas for the user when they mint and maintain everything on chain. contract AddingData is AccessControl { address public EXT_CONTRACT; ExtInter ExtContract; //other contracts //MetropolisWorldGenesis mg; //defining the access roles bytes32 public constant UPDATER_ROLE = keccak256("UPDATER_ROLE"); bytes32 public constant CONTRACT_ROLE = keccak256("CONTRACT_ROLE"); uint16 public addedNamesCount = 0; uint16 public addedFeaturesCount = 0; // uint16[] private idsAdded; //store a list of all the NFT's available to mint. //this is built on when the constructor is called. mapping(uint => PropertyAttributes) public defaultProperties; //store which has been minted. mapping(uint256 => bool) public MintedNfts; //store mint prices mapping(uint16 => uint256) public MintPrice; constructor() { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(UPDATER_ROLE, msg.sender); //mg = MetropolisWorldGenesis(_t); } function addContractRoles(address cityContract)external onlyRole(UPDATER_ROLE){ require(cityContract != address(0), "Please enter valid contract address"); _grantRole(CONTRACT_ROLE, cityContract); } function setUpExtensionContractInterface(address extContract)external onlyRole(UPDATER_ROLE){ EXT_CONTRACT = extContract; ExtContract = ExtInter(EXT_CONTRACT); } /** * @dev adding the first part of the metadata to the contract * @notice data is split into 2 halves so we can deploy it all and maintian on chain not 3rd party ipfs * @param ids the key element is this array which matches with other half */ function addNameDescImagePricesTowers( uint16[] memory ids, string[] memory propertyNames, uint256[] memory prices, string[] memory descs, string[] memory images, string[] memory towers, string[] memory districts ) external onlyRole(UPDATER_ROLE) { uint16 count = addedNamesCount; for (uint16 i = 0; i < ids.length; i++) { uint16 mapNo = ids[i]; defaultProperties[mapNo] = PropertyAttributes({ id: ids[i], propertyIndex: ids[i], name: propertyNames[i], description: descs[i], image: images[i], properties: Properties({ tower: towers[i], district: districts[i], neighborhood: "", //neighborhoods[i], primary_type: "", //primeTypes[i], sub_type_1: "", //subType1[i], sub_type_2: "", //subType2[i], structure: "", //structures[i], feature_1: "", //feature1[i], feature_2: "", //feature2[i], feature_3: "", //feature3[i], feature_4: "", //feature4[i], tier: "" //raritys[i] }), extensionCount: 0, extensionIds: new uint256[](0) }); //created minted list with all false MintedNfts[ids[i]] = false; //record the mint price MintPrice[ids[i]] = prices[i]; count ++; } addedNamesCount = count; } /** * @dev adding the second part of the metadata to the contract * @notice data is split into 2 halves so we can deploy it all and maintian on chain not 3rd party ipfs * @param ids the key element is this array which matches with other half */ function addNftData( uint16[] memory ids, string[] memory neighs, string[] memory primes, string[] memory subs1, string[] memory subs2, string[] memory structures, string[] memory fets1, string[] memory fets2, string[] memory fets3, string[] memory fets4, string[] memory tiers ) external onlyRole(UPDATER_ROLE) { uint16 fetCount = addedFeaturesCount; for (uint16 i = 0; i < ids.length; i++) { uint16 id = ids[i]; PropertyAttributes memory x = defaultProperties[id]; x.properties.neighborhood = neighs[i]; x.properties.primary_type = primes[i]; x.properties.sub_type_1 = subs1[i]; x.properties.sub_type_2 = subs2[i]; x.properties.structure = structures[i]; x.properties.feature_1 = fets1[i]; x.properties.feature_2 = fets2[i]; x.properties.feature_3 = fets3[i]; x.properties.feature_4 = fets4[i]; x.properties.tier = tiers[i]; defaultProperties[id] = x; fetCount++; } addedFeaturesCount = fetCount; } /** @dev function to allow us to change the image at a later date if needed. @param propId the id we use to referance the property taken from master sheet @param image string of the new image address. */ function changeImage(uint16 propId, string calldata image) external onlyRole(UPDATER_ROLE) { defaultProperties[propId].image = image; } /** @dev function to allow us to adjust price of individual properties @param propId the id we use to referance the property taken from master sheet @param newPrice the new price to charge. */ function changePrice(uint16 propId, uint256 newPrice) external onlyRole(UPDATER_ROLE) { MintPrice[propId] = newPrice; } /** *@dev returns the price of a property NFT *@param nftId the id of the property id you want the price for. */ function price(uint16 nftId) external view returns (uint256) { return MintPrice[nftId]; } /** * @dev returns the metadata for a given property NFT * @param nftId the id of the property nft you want the metadata for. */ function nftProperties(uint16 nftId) external view returns (PropertyAttributes memory) { return defaultProperties[nftId]; } /** *@dev returns a bool to indicate if a property has been minted yet. *@notice we use mint status to avoid properties being minted more then once. *@param nftId the id of the property you want to chaeck mint status of */ function getMintStatus(uint16 nftId) external view returns (bool) { return MintedNfts[nftId]; } /** *@dev sets mint status to true, used by main contract in minting process *@param nftId the id of the property you want to change the mint status of */ function changeMintStatus(uint16 nftId) external onlyRole(CONTRACT_ROLE) { MintedNfts[nftId] = true; } /** *@dev used to add an extension NFT to the property *@notice called by the extension contract @param nftId the internal id of the property NFT @param extId the token id of the extension NFT */ function addExtensionToMetadata(uint16 nftId, uint256 extId)external onlyRole(CONTRACT_ROLE){ //PropertyAttributes memory x = defaultProperties[nftId]; console.log("starting addExtensionToMetadata"); defaultProperties[nftId].extensionCount += 1; defaultProperties[nftId].extensionIds.push(extId); console.log("added extention in data contract"); } /** *@dev used to remove the extension from the property *@notice only called by the extnesions contract *@param nftId the internal id of the property nft *@param extId the ID of the extension NFT */ function removeExtensionFromMetadata(uint16 nftId, uint256 extId)external onlyRole(CONTRACT_ROLE){ console.log("starting removeExtensionFromMetadata"); for (uint16 i = 0; i < defaultProperties[nftId].extensionIds.length; i++) { if (defaultProperties[nftId].extensionIds[i] == extId) { defaultProperties[nftId].extensionIds[i] = defaultProperties[nftId].extensionIds[defaultProperties[nftId].extensionIds.length - 1]; defaultProperties[nftId].extensionIds.pop(); defaultProperties[nftId].extensionCount -= 1; console.log("removed it "); } } } /** @dev used by the other contracts to verify of the user owns the extension. @param propId the internal ID of the propety nft @param extTokenId the token ID of the extension. */ function checkOwnershipOfExtension(uint16 propId, uint256 extTokenId)external view onlyRole(CONTRACT_ROLE) returns (bool){ for (uint16 i = 0; i < defaultProperties[propId].extensionIds.length; i++) { if (defaultProperties[propId].extensionIds[i] == extTokenId) { return true; } } return false; } function sectionOne(uint16 propId) external view returns (bytes memory) { bytes memory dataURI = abi.encodePacked( '{"name": "', defaultProperties[propId].name, '", "description": "', defaultProperties[propId].description, '", "image": "', defaultProperties[propId].image ); return dataURI; } function sectionTwo(uint16 propId) external view returns (bytes memory) { bytes memory dataURI = abi.encodePacked( '", "attributes": [{ "trait_type": "Tower", "value": "', defaultProperties[propId].properties.tower, '"},{"trait_type": "District", "value": "', defaultProperties[propId].properties.district, '"},{"trait_type": "Neighborhood", "value": "', defaultProperties[propId].properties.neighborhood, '"},{"trait_type": "Primary Type", "value": "', defaultProperties[propId].properties.primary_type ); return dataURI; } function sectionThree(uint16 propId) external view returns (bytes memory) { bytes memory dataURI = abi.encodePacked( '"},{"trait_type": "Sub Type 1", "value": "', defaultProperties[propId].properties.sub_type_1, '"},{"trait_type": "Sub Type 2", "value": "', defaultProperties[propId].properties.sub_type_2, '"},{"trait_type": "Structure", "value": "', defaultProperties[propId].properties.structure, '"},{"trait_type": "Feature 1", "value": "', defaultProperties[propId].properties.feature_1, '"},{"trait_type": "Feature 2", "value": "', defaultProperties[propId].properties.feature_2, '"},{"trait_type": "Feature 3", "value": "', defaultProperties[propId].properties.feature_3 ); return dataURI; } function extensionNames(uint16 propId) internal view returns (bytes memory) { if (defaultProperties[propId].extensionCount > 0) { return ExtContract.extensionNameList(defaultProperties[propId].extensionIds); } else { bytes memory st = abi.encodePacked( '"},{"trait_type": "Extensions", "value": "', "None" ); return st; } } function sectionFour(uint16 propId) external view returns (bytes memory) { bytes memory dataURI = abi.encodePacked( '"},{"trait_type": "Feature 4", "value": "', defaultProperties[propId].properties.feature_4, '"},{"trait_type": "Tier", "value": "', defaultProperties[propId].properties.tier, extensionNames(propId), '"},{ "display_type": "boost_number","trait_type": "Extensions", "value":"', Strings.toString(defaultProperties[propId].extensionCount), '"}]}' ); return dataURI; } } // genesis // add all the id to the mapping of minted nbfts with false // for (uint i = 0; i < propertyNames.length; i ++){ // defaultProperties.push( // PropertyAttributes({ // id: i+1, // propertyIndex: i, // name: propertyNames[i], // description: '',//description[i], // image:'',//imageURIs[i], // properties: Properties( { // tower: '',//towers[i], // district: '',//districts[i], // neighborhood: '',//neighborhoods[i], // primary_type: '',//primeTypes[i], // sub_type_1: '',//subType1[i], // sub_type_2: '',//subType2[i], // structure: '',//structures[i], // feature_1: '',//feature1[i], // feature_2: '',//feature2[i], // feature_3: '',//feature3[i], // feature_4: '',//feature4[i], // feature_5: '',//feature5[i], // rarity: ''//raritys[i] // }), // extensionCount: 0 // //extentions: [ex] // }) // ); // //created minted list with all false // MintedNfts[i] = false; // //record the mint price // MintPrice[i] = prices[i] * (1 ether); // //PropertyAttributes memory p = defaultProperties[i]; // //console.log("Done initializing %s w/ HP %s, img %s", p.name, p.description, p.image); // } // //TODO: add NFT as extention // function addNFTExtension(string memory cat, string memory name, string memory contractId, string memory tokenId, uint propId) public{ // Extension memory ex = Extension({ // catergory: cat, // name: name, // contractId: contractId, // tokenId: tokenId // }); // uint _propertyIndex = propId - 1; // uint _tokenId = PropertyIndexTotokenId[_propertyIndex]; // //update the mapping to include the extension // prop_extensions[_tokenId].extentions_list.push(ex); // } // //TODO: sell with NFT extensions // //TODO: sell without NFT extensions // struct PropertyAttributes { // uint256 id; // uint256 propertyIndex; // string name; // string description; // string image; // Properties properties; // uint256 extensionCount; // } // struct Properties { // string tower; // string district; // string neighborhood; // string primary_type; // string sub_type_1; // string sub_type_2; // string structure; // string feature_1; // string feature_2; // string feature_3; // string feature_4; // string feature_5; // string feature_6; // }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @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 have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BALANCE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONTRACT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DATA_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PASSPORT_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKENURI_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPDATER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"paymentSplit","type":"address"}],"name":"addPaymentSplitContract","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":"uint256","name":"propTokenId","type":"uint256"},{"internalType":"uint256","name":"extTokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"attachExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"propTokenId","type":"uint256"},{"internalType":"uint256","name":"extTokenId","type":"uint256"}],"name":"checkExtensionOwnership","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"checkOwnsProperty","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"propertyIndex","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"image","type":"string"},{"components":[{"internalType":"string","name":"tower","type":"string"},{"internalType":"string","name":"district","type":"string"},{"internalType":"string","name":"neighborhood","type":"string"},{"internalType":"string","name":"primary_type","type":"string"},{"internalType":"string","name":"sub_type_1","type":"string"},{"internalType":"string","name":"sub_type_2","type":"string"},{"internalType":"string","name":"structure","type":"string"},{"internalType":"string","name":"feature_1","type":"string"},{"internalType":"string","name":"feature_2","type":"string"},{"internalType":"string","name":"feature_3","type":"string"},{"internalType":"string","name":"feature_4","type":"string"},{"internalType":"string","name":"tier","type":"string"}],"internalType":"struct Properties","name":"properties","type":"tuple"},{"internalType":"uint16","name":"extensionCount","type":"uint16"},{"internalType":"uint256[]","name":"extensionIds","type":"uint256[]"}],"internalType":"struct PropertyAttributes[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"propId","type":"uint256"},{"internalType":"uint256","name":"extTokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"detachExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"passId","type":"uint16"},{"internalType":"uint16","name":"nftId","type":"uint16"},{"internalType":"address","name":"to","type":"address"}],"name":"freeMint","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":"getMintedIds","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getNftData","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"propertyIndex","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"image","type":"string"},{"components":[{"internalType":"string","name":"tower","type":"string"},{"internalType":"string","name":"district","type":"string"},{"internalType":"string","name":"neighborhood","type":"string"},{"internalType":"string","name":"primary_type","type":"string"},{"internalType":"string","name":"sub_type_1","type":"string"},{"internalType":"string","name":"sub_type_2","type":"string"},{"internalType":"string","name":"structure","type":"string"},{"internalType":"string","name":"feature_1","type":"string"},{"internalType":"string","name":"feature_2","type":"string"},{"internalType":"string","name":"feature_3","type":"string"},{"internalType":"string","name":"feature_4","type":"string"},{"internalType":"string","name":"tier","type":"string"}],"internalType":"struct Properties","name":"properties","type":"tuple"},{"internalType":"uint16","name":"extensionCount","type":"uint16"},{"internalType":"uint256[]","name":"extensionIds","type":"uint256[]"}],"internalType":"struct PropertyAttributes","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","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":[{"internalType":"uint16","name":"nftId","type":"uint16"}],"name":"metaData","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"propertyIndex","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"image","type":"string"},{"components":[{"internalType":"string","name":"tower","type":"string"},{"internalType":"string","name":"district","type":"string"},{"internalType":"string","name":"neighborhood","type":"string"},{"internalType":"string","name":"primary_type","type":"string"},{"internalType":"string","name":"sub_type_1","type":"string"},{"internalType":"string","name":"sub_type_2","type":"string"},{"internalType":"string","name":"structure","type":"string"},{"internalType":"string","name":"feature_1","type":"string"},{"internalType":"string","name":"feature_2","type":"string"},{"internalType":"string","name":"feature_3","type":"string"},{"internalType":"string","name":"feature_4","type":"string"},{"internalType":"string","name":"tier","type":"string"}],"internalType":"struct Properties","name":"properties","type":"tuple"},{"internalType":"uint16","name":"extensionCount","type":"uint16"},{"internalType":"uint256[]","name":"extensionIds","type":"uint256[]"}],"internalType":"struct PropertyAttributes","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"nftId","type":"uint16"}],"name":"mintStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintedIds","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftHolderAttributes","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"uint256","name":"passId","type":"uint256"},{"internalType":"uint16","name":"nftId","type":"uint16"},{"internalType":"address","name":"to","type":"address"}],"name":"paidMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"nftId","type":"uint16"}],"name":"priceOfNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","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":"address","name":"extAddress","type":"address"}],"name":"setContractRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"desc","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"link","type":"string"},{"internalType":"uint256","name":"royalty","type":"uint256"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"passportContract","type":"address"},{"internalType":"address","name":"wlContract","type":"address"},{"internalType":"address","name":"tokContract","type":"address"},{"internalType":"address","name":"dataContract","type":"address"}],"name":"setInterfaceContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"nftId","type":"uint16"}],"name":"setMintStatus","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"propId","type":"uint16"}],"name":"whoOwnsIt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405180606001604052806022815260200162004c6860229139604051806040016040528060048152602001634d45544360e01b815250816000908051906020019062000061929190620001e5565b50805162000077906001906020840190620001e5565b5050506200009160136200012860201b620021261760201c565b6200009e60003362000131565b620000ca7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab3362000131565b620000f67f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c3362000131565b620001227f2b2b412161ec0933900b291234acfe3df145fb0977a8123fa6a749788de585673362000131565b620002c8565b80546001019055565b6200013d828262000141565b5050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff166200013d576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001a13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620001f3906200028b565b90600052602060002090601f01602090048101928262000217576000855562000262565b82601f106200023257805160ff191683800117855562000262565b8280016001018555821562000262579182015b828111156200026257825182559160200191906001019062000245565b506200027092915062000274565b5090565b5b8082111562000270576000815560010162000275565b600181811c90821680620002a057607f821691505b60208210811415620002c257634e487b7160e01b600052602260045260246000fd5b50919050565b61499080620002d86000396000f3fe60806040526004361061031e5760003560e01c80637c408bd0116101a5578063b88d4fde116100ec578063e671625a11610095578063f084f4de1161006f578063f084f4de14610999578063f4f6c91d146109b9578063f777b4f2146109d9578063f8686ba2146109f957600080fd5b8063e671625a1461091b578063e8a3d4851461093b578063e985e9c51461095057600080fd5b8063d00639fe116100c6578063d00639fe146108ae578063d547741f146108db578063e522eb9c146108fb57600080fd5b8063b88d4fde1461084e578063c059b8251461086e578063c87b56dd1461088e57600080fd5b8063a17ce1d51161014e578063a802d82b11610128578063a802d82b146107e1578063a89e96441461080e578063a937b76f1461082e57600080fd5b8063a17ce1d51461078c578063a217fddf146107ac578063a22cb465146107c157600080fd5b806395d89b411161017f57806395d89b4114610726578063984fca091461073b57806398da4c951461075b57600080fd5b80637c408bd0146106a057806391d14854146106c057806394a2d1631461070657600080fd5b806339391f77116102695780636352211e116102125780636dcfd092116101ec5780636dcfd0921461061957806370a082311461064d5780637b60fa3f1461066d57600080fd5b80636352211e146105b7578063693c6062146105d757806369a58daa146105f957600080fd5b806347e633801161024357806347e63380146105505780634f6ccce714610584578063555bddae146105a457600080fd5b806339391f77146104fb5780633ccfd60b1461051b57806342842e0e1461053057600080fd5b806318160ddd116102cb5780632f2ff15d116102a55780632f2ff15d1461049b5780632f745c59146104bb57806336568abe146104db57600080fd5b806318160ddd1461043657806323b872dd1461044b578063248a9ca31461046b57600080fd5b8063081812fc116102fc578063081812fc146103bc578063095ea7b3146103f45780631005b5201461041657600080fd5b806301ffc9a71461032357806303fe46ab1461035857806306fdde031461039a575b600080fd5b34801561032f57600080fd5b5061034361033e366004613df0565b610a19565b60405190151581526020015b60405180910390f35b34801561036457600080fd5b5061038c7f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c81565b60405190815260200161034f565b3480156103a657600080fd5b506103af610a2a565b60405161034f91906146af565b3480156103c857600080fd5b506103dc6103d7366004613db4565b610abc565b6040516001600160a01b03909116815260200161034f565b34801561040057600080fd5b5061041461040f366004613d6d565b610ae3565b005b34801561042257600080fd5b50610414610431366004614042565b610c1a565b34801561044257600080fd5b5060085461038c565b34801561045757600080fd5b50610414610466366004613c83565b610c59565b34801561047757600080fd5b5061038c610486366004613db4565b6000908152600a602052604090206001015490565b3480156104a757600080fd5b506104146104b6366004613dcc565b610ce0565b3480156104c757600080fd5b5061038c6104d6366004613d6d565b610d05565b3480156104e757600080fd5b506104146104f6366004613dcc565b610dad565b34801561050757600080fd5b50610414610516366004613bb8565b610e39565b34801561052757600080fd5b50610414610ee8565b34801561053c57600080fd5b5061041461054b366004613c83565b610f03565b34801561055c57600080fd5b5061038c7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab81565b34801561059057600080fd5b5061038c61059f366004613db4565b610f1e565b6104146105b23660046140a4565b610fd0565b3480156105c357600080fd5b506103dc6105d2366004613db4565b611326565b3480156105e357600080fd5b506105ec61138b565b60405161034f9190614667565b34801561060557600080fd5b506103dc610614366004614026565b61140a565b34801561062557600080fd5b5061038c7f2b2b412161ec0933900b291234acfe3df145fb0977a8123fa6a749788de5856781565b34801561065957600080fd5b5061038c610668366004613bb8565b611427565b34801561067957600080fd5b5061068d610688366004613db4565b6114c1565b60405161ffff909116815260200161034f565b3480156106ac57600080fd5b50600b546103dc906001600160a01b031681565b3480156106cc57600080fd5b506103436106db366004613dcc565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561071257600080fd5b50610414610721366004614026565b6114f9565b34801561073257600080fd5b506103af611587565b34801561074757600080fd5b50600d546103dc906001600160a01b031681565b34801561076757600080fd5b5061068d610776366004613db4565b60166020526000908152604090205461ffff1681565b34801561079857600080fd5b506103436107a73660046140ca565b611596565b3480156107b857600080fd5b5061038c600081565b3480156107cd57600080fd5b506104146107dc366004613d40565b61167c565b3480156107ed57600080fd5b506108016107fc366004613db4565b611687565b60405161034f91906146e4565b34801561081a57600080fd5b506104146108293660046140eb565b6116b2565b34801561083a57600080fd5b50610414610849366004613e5b565b61184b565b34801561085a57600080fd5b50610414610869366004613cc3565b6118e8565b34801561087a57600080fd5b50610343610889366004614026565b611970565b34801561089a57600080fd5b506103af6108a9366004613db4565b6119f0565b3480156108ba57600080fd5b506108ce6108c9366004613bb8565b611aa4565b60405161034f9190614606565b3480156108e757600080fd5b506104146108f6366004613dcc565b611b81565b34801561090757600080fd5b506104146109163660046140eb565b611ba6565b34801561092757600080fd5b50610801610936366004614026565b611d07565b34801561094757600080fd5b506103af611dac565b34801561095c57600080fd5b5061034361096b366004613bf0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109a557600080fd5b506104146109b4366004613bb8565b611dbb565b3480156109c557600080fd5b5061038c6109d4366004614026565b611e71565b3480156109e557600080fd5b50600f546103dc906001600160a01b031681565b348015610a0557600080fd5b50610414610a14366004613c28565b611ef5565b6000610a248261212f565b92915050565b606060008054610a399061484f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a659061484f565b8015610ab25780601f10610a8757610100808354040283529160200191610ab2565b820191906000526020600020905b815481529060010190602001808311610a9557829003601f168201915b5050505050905090565b6000610ac78261216d565b506000908152600460205260409020546001600160a01b031690565b6000610aee82611326565b9050806001600160a01b0316836001600160a01b03161415610b7d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610b995750610b99813361096b565b610c0b5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b74565b610c1583836121d1565b505050565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab610c448161223f565b610c538461ffff168484612249565b50505050565b610c6333826125e3565b610cd55760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610b74565b610c15838383612662565b6000828152600a6020526040902060010154610cfb8161223f565b610c15838361283a565b6000610d1083611427565b8210610d845760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b74565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b0381163314610e2b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610b74565b610e3582826128dc565b5050565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab610e638161223f565b6001600160a01b038216610ec55760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b50601580546001600160a01b0319166001600160a01b0392909216919091179055565b6015544790610f00906001600160a01b03168261295f565b50565b610c15838383604051806020016040528060008152506118e8565b6000610f2960085490565b8210610f9d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b74565b60088281548110610fbe57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600083116110205760405162461bcd60e51b815260206004820152601760248201527f4e6f7420612076616c69642070617373706f72742049440000000000000000006044820152606401610b74565b600e546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b03838116921690636352211e9060240160206040518083038186803b15801561107f57600080fd5b505afa158015611093573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b79190613bd4565b6001600160a01b0316146111335760405162461bcd60e51b815260206004820152602660248201527f596f75206d75737420626520746865206f776e6572206f66207468697320706160448201527f7373706f727400000000000000000000000000000000000000000000000000006064820152608401610b74565b600c5460405163172b769f60e31b815261ffff841660048201526001600160a01b039091169063b95bb4f89060240160206040518083038186803b15801561117a57600080fd5b505afa15801561118e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b2919061408c565b3410156112015760405162461bcd60e51b815260206004820152601660248201527f4e6f74207061696420656e6f7567682c20736f727279000000000000000000006044820152606401610b74565b61120c838383612249565b600c5460405163172b769f60e31b815261ffff841660048201526001600160a01b039091169063b95bb4f89060240160206040518083038186803b15801561125357600080fd5b505afa158015611267573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128b919061408c565b341115610c1557600c5460405163172b769f60e31b815261ffff84166004820152610c159133916001600160a01b039091169063b95bb4f89060240160206040518083038186803b1580156112df57600080fd5b505afa1580156112f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611317919061408c565b61132190346147f5565b61295f565b6000818152600260205260408120546001600160a01b031680610a245760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b74565b60606018805480602002602001604051908101604052809291908181526020018280548015610ab257602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116113c85790505050505050905090565b61ffff8116600090815260176020526040812054610a2490611326565b60006001600160a01b0382166114a55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b74565b506001600160a01b031660009081526003602052604090205490565b601881815481106114d157600080fd5b9060005260206000209060109182820401919006600202915054906101000a900461ffff1681565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab6115238161223f565b600c546040516219d52360e81b815261ffff841660048201526001600160a01b03909116906319d5230090602401600060405180830381600087803b15801561156b57600080fd5b505af115801561157f573d6000803e3d6000fd5b505050505050565b606060018054610a399061484f565b60007f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c6115c28161223f565b6000848152601660205260409081902054600c5491517feb2825a300000000000000000000000000000000000000000000000000000000815261ffff9091166004820181905260248201869052916001600160a01b03169063eb2825a39060440160206040518083038186803b15801561163b57600080fd5b505afa15801561164f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116739190613d98565b95945050505050565b610e35338383612a78565b61168f61375c565b60008281526016602052604090205461ffff166116ab81611d07565b9392505050565b7f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c6116dc8161223f565b816001600160a01b03166116ef85611326565b6001600160a01b0316146117355760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b6044820152606401610b74565b6117736040518060400160405280601f81526020017f70726f7020636f6e74726163742064657461686320657874656e74696f6e7300815250612b47565b6000848152601660205260409081902054600c5491517f4886b9b100000000000000000000000000000000000000000000000000000000815261ffff9091166004820181905260248201869052916001600160a01b031690634886b9b190604401600060405180830381600087803b1580156117ee57600080fd5b505af1158015611802573d6000803e3d6000fd5b505050506118446040518060400160405280601c81526020017f6465746163682073656d7420746f206461746120636f6e747261637400000000815250612b47565b5050505050565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab6118758161223f565b60006118a7878787878760405160200161189395949392919061436b565b604051602081830303815290604052612bb8565b9050806040516020016118ba919061450e565b604051602081830303815290604052601490805190602001906118de929190613803565b5050505050505050565b6118f233836125e3565b6119645760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610b74565b610c5384848484612d1a565b600c54604051632bd9103b60e21b815261ffff831660048201526000916001600160a01b03169063af6440ec9060240160206040518083038186803b1580156119b857600080fd5b505afa1580156119cc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a249190613d98565b600081815260166020526040908190205460105491517f7a2b9e2c00000000000000000000000000000000000000000000000000000000815261ffff9091166004820181905260609290916001600160a01b0390911690637a2b9e2c9060240160006040518083038186803b158015611a6857600080fd5b505afa158015611a7c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116ab9190810190613e28565b60606000611ab183611427565b905060008167ffffffffffffffff811115611adc57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611b1557816020015b611b0261375c565b815260200190600190039081611afa5790505b50905060005b82811015611b79576000611b2f8683610d05565b9050611b3a81611687565b838381518110611b5a57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250508080611b719061488a565b915050611b1b565b509392505050565b6000828152600a6020526040902060010154611b9c8161223f565b610c1583836128dc565b7f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c611bd08161223f565b816001600160a01b0316611be385611326565b6001600160a01b031614611c295760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b6044820152606401610b74565b600084815260166020908152604091829020548251808401909352600b83527f4e46542049442069733a200000000000000000000000000000000000000000009183019190915261ffff1690611c7f9082612d98565b600c546040517f8146cf8e00000000000000000000000000000000000000000000000000000000815261ffff83166004820152602481018690526001600160a01b0390911690638146cf8e90604401600060405180830381600087803b158015611ce857600080fd5b505af1158015611cfc573d6000803e3d6000fd5b505050505050505050565b611d0f61375c565b600c546040517f34922bcb00000000000000000000000000000000000000000000000000000000815261ffff841660048201526000916001600160a01b0316906334922bcb9060240160006040518083038186803b158015611d7057600080fd5b505afa158015611d84573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116ab9190810190613f0b565b606060148054610a399061484f565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab611de58161223f565b6001600160a01b038216611e475760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b610e357f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c8361283a565b600c5460405163172b769f60e31b815261ffff8316600482015260009182916001600160a01b039091169063b95bb4f89060240160206040518083038186803b158015611ebd57600080fd5b505afa158015611ed1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ab919061408c565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab611f1f8161223f565b6001600160a01b038516611f815760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b6001600160a01b038416611fe35760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b6001600160a01b0383166120455760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b6001600160a01b0382166120a75760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b50600d80546001600160a01b039586166001600160a01b03199182168117909255600e805482169092179091556011805494861694821685179055601280548216909417909355600f805492851692841683179055601080548416909217909155600b8054919093169082168117909255600c80549091169091179055565b80546001019055565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610a245750610a2482612e0b565b6000818152600260205260409020546001600160a01b0316610f005760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b74565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061220682611326565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610f008133612e49565b600061225460135490565b90508315612363576012546040517f83acfeb400000000000000000000000000000000000000000000000000000000815260048101869052606060248201526005606482015264636974793160d81b608482015261ffff851660448201526001600160a01b03909116906383acfeb49060a40160206040518083038186803b1580156122df57600080fd5b505afa1580156122f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123179190613d98565b6123635760405162461bcd60e51b815260206004820152600a60248201527f6e6f20776c2073706f74000000000000000000000000000000000000000000006044820152606401610b74565b600c54604051632bd9103b60e21b815261ffff851660048201526001600160a01b039091169063af6440ec9060240160206040518083038186803b1580156123aa57600080fd5b505afa1580156123be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123e29190613d98565b1561242f5760405162461bcd60e51b815260206004820152601c60248201527f546869732068617320616c7265616479206265656e206d696e746564000000006044820152606401610b74565b6124398282612ec9565b6000818152601660209081526040808320805461ffff191661ffff8816908117909155808452601790925291829020839055600c5491516219d52360e81b815260048101919091526001600160a01b03909116906319d5230090602401600060405180830381600087803b1580156124b057600080fd5b505af11580156124c4573d6000803e3d6000fd5b505060188054600181018255600091909152601081047fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e01805461ffff8089166002600f909516949094026101000a93840293021916919091179055506125319050601380546001019055565b83156125d5576012546040517fa22b1c5800000000000000000000000000000000000000000000000000000000815260048101869052606060248201526005606482015264636974793160d81b608482015261ffff851660448201526001600160a01b039091169063a22b1c589060a401600060405180830381600087803b1580156125bc57600080fd5b505af11580156125d0573d6000803e3d6000fd5b505050505b4715610c5357610c53610ee8565b6000806125ef83611326565b9050806001600160a01b0316846001600160a01b0316148061263657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061265a5750836001600160a01b031661264f84610abc565b6001600160a01b0316145b949350505050565b826001600160a01b031661267582611326565b6001600160a01b0316146126f15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b74565b6001600160a01b03821661276c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b74565b612777838383612ee3565b6127826000826121d1565b6001600160a01b03831660009081526003602052604081208054600192906127ab9084906147f5565b90915550506001600160a01b03821660009081526003602052604081208054600192906127d990849061479e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16610e35576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556128983390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff1615610e35576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b804710156129af5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b74565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146129fc576040519150601f19603f3d011682016040523d82523d6000602084013e612a01565b606091505b5050905080610c155760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b74565b816001600160a01b0316836001600160a01b03161415612ada5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b74565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610f0081604051602401612b5b91906146af565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f41304fac00000000000000000000000000000000000000000000000000000000179052612f9b565b6060815160001415612bd857505060408051602081019091526000815290565b600060405180606001604052806040815260200161491b6040913990506000600384516002612c07919061479e565b612c1191906147b6565b612c1c9060046147d6565b67ffffffffffffffff811115612c4257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c6c576020820181803683370190505b509050600182016020820185865187015b80821015612cd8576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612c7d565b5050600386510660018114612cf45760028114612d0757612d0f565b603d6001830353603d6002830353612d0f565b603d60018303535b509195945050505050565b612d25848484612662565b612d3184848484612fbc565b610c535760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b74565b610e358282604051602401612dae9291906146c2565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f9710a9d000000000000000000000000000000000000000000000000000000000179052612f9b565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610a245750610a2482613114565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16610e3557612e87816001600160a01b031660146131af565b612e928360206131af565b604051602001612ea3929190614553565b60408051601f198184030181529082905262461bcd60e51b8252610b74916004016146af565b610e358282604051806020016040528060008152506133d6565b6001600160a01b038316612f3e57612f3981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f61565b816001600160a01b0316836001600160a01b031614612f6157612f618382613454565b6001600160a01b038216612f7857610c15816134f1565b826001600160a01b0316826001600160a01b031614610c1557610c1582826135ca565b80516a636f6e736f6c652e6c6f67602083016000808483855afa5050505050565b60006001600160a01b0384163b1561310957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906130009033908990889088906004016145d4565b602060405180830381600087803b15801561301a57600080fd5b505af192505050801561304a575060408051601f3d908101601f1916820190925261304791810190613e0c565b60015b6130ef573d808015613078576040519150601f19603f3d011682016040523d82523d6000602084013e61307d565b606091505b5080516130e75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b74565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061265a565b506001949350505050565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061317757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a2457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a24565b606060006131be8360026147d6565b6131c990600261479e565b67ffffffffffffffff8111156131ef57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613219576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061325e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106132b757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006132db8460026147d6565b6132e690600161479e565b90505b6001811115613387577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061333557634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061335957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361338081614838565b90506132e9565b5083156116ab5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b74565b6133e0838361360e565b6133ed6000848484612fbc565b610c155760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b74565b6000600161346184611427565b61346b91906147f5565b6000838152600760205260409020549091508082146134be576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613503906001906147f5565b6000838152600960205260408120546008805493945090928490811061353957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061356857634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806135ae57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006135d583611427565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166136645760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b74565b6000818152600260205260409020546001600160a01b0316156136c95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b74565b6136d560008383612ee3565b6001600160a01b03821660009081526003602052604081208054600192906136fe90849061479e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60405180610100016040528060008152602001600081526020016060815260200160608152602001606081526020016137ef6040518061018001604052806060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b815260006020820152606060409091015290565b82805461380f9061484f565b90600052602060002090601f0160209004810192826138315760008555613877565b82601f1061384a57805160ff1916838001178555613877565b82800160010185558215613877579182015b8281111561387757825182559160200191906001019061385c565b50613883929150613887565b5090565b5b808211156138835760008155600101613888565b60006138af6138aa84614776565b614745565b90508281528383830111156138c357600080fd5b828260208301376000602084830101529392505050565b600082601f8301126138ea578081fd5b8151602067ffffffffffffffff821115613906576139066148bb565b8160051b613915828201614745565b83815282810190868401838801850189101561392f578687fd5b8693505b85841015613951578051835260019390930192918401918401613933565b50979650505050505050565b600082601f83011261396d578081fd5b6116ab8383356020850161389c565b600082601f83011261398c578081fd5b815161399a6138aa82614776565b8181528460208386010111156139ae578283fd5b61265a82602083016020870161480c565b600061018082840312156139d1578081fd5b6139d96146f7565b9050815167ffffffffffffffff808211156139f357600080fd5b6139ff8583860161397c565b83526020840151915080821115613a1557600080fd5b613a218583860161397c565b60208401526040840151915080821115613a3a57600080fd5b613a468583860161397c565b60408401526060840151915080821115613a5f57600080fd5b613a6b8583860161397c565b60608401526080840151915080821115613a8457600080fd5b613a908583860161397c565b608084015260a0840151915080821115613aa957600080fd5b613ab58583860161397c565b60a084015260c0840151915080821115613ace57600080fd5b613ada8583860161397c565b60c084015260e0840151915080821115613af357600080fd5b613aff8583860161397c565b60e084015261010091508184015181811115613b1a57600080fd5b613b268682870161397c565b838501525061012091508184015181811115613b4157600080fd5b613b4d8682870161397c565b838501525061014091508184015181811115613b6857600080fd5b613b748682870161397c565b838501525061016091508184015181811115613b8f57600080fd5b613b9b8682870161397c565b8385015250505092915050565b8051613bb38161490a565b919050565b600060208284031215613bc9578081fd5b81356116ab816148d1565b600060208284031215613be5578081fd5b81516116ab816148d1565b60008060408385031215613c02578081fd5b8235613c0d816148d1565b91506020830135613c1d816148d1565b809150509250929050565b60008060008060808587031215613c3d578182fd5b8435613c48816148d1565b93506020850135613c58816148d1565b92506040850135613c68816148d1565b91506060850135613c78816148d1565b939692955090935050565b600080600060608486031215613c97578081fd5b8335613ca2816148d1565b92506020840135613cb2816148d1565b929592945050506040919091013590565b60008060008060808587031215613cd8578182fd5b8435613ce3816148d1565b93506020850135613cf3816148d1565b925060408501359150606085013567ffffffffffffffff811115613d15578182fd5b8501601f81018713613d25578182fd5b613d348782356020840161389c565b91505092959194509250565b60008060408385031215613d52578182fd5b8235613d5d816148d1565b91506020830135613c1d816148e6565b60008060408385031215613d7f578182fd5b8235613d8a816148d1565b946020939093013593505050565b600060208284031215613da9578081fd5b81516116ab816148e6565b600060208284031215613dc5578081fd5b5035919050565b60008060408385031215613dde578182fd5b823591506020830135613c1d816148d1565b600060208284031215613e01578081fd5b81356116ab816148f4565b600060208284031215613e1d578081fd5b81516116ab816148f4565b600060208284031215613e39578081fd5b815167ffffffffffffffff811115613e4f578182fd5b61265a8482850161397c565b600080600080600060a08688031215613e72578283fd5b853567ffffffffffffffff80821115613e89578485fd5b613e9589838a0161395d565b96506020880135915080821115613eaa578485fd5b613eb689838a0161395d565b95506040880135915080821115613ecb578485fd5b613ed789838a0161395d565b94506060880135915080821115613eec578283fd5b50613ef98882890161395d565b95989497509295608001359392505050565b600060208284031215613f1c578081fd5b815167ffffffffffffffff80821115613f33578283fd5b908301906101008286031215613f47578283fd5b613f4f614721565b8251815260208301516020820152604083015182811115613f6e578485fd5b613f7a8782860161397c565b604083015250606083015182811115613f91578485fd5b613f9d8782860161397c565b606083015250608083015182811115613fb4578485fd5b613fc08782860161397c565b60808301525060a083015182811115613fd7578485fd5b613fe3878286016139bf565b60a083015250613ff560c08401613ba8565b60c082015260e08301518281111561400b578485fd5b614017878286016138da565b60e08301525095945050505050565b600060208284031215614037578081fd5b81356116ab8161490a565b600080600060608486031215614056578081fd5b83356140618161490a565b925060208401356140718161490a565b91506040840135614081816148d1565b809150509250925092565b60006020828403121561409d578081fd5b5051919050565b6000806000606084860312156140b8578081fd5b8335925060208401356140718161490a565b600080604083850312156140dc578182fd5b50508035926020909101359150565b6000806000606084860312156140ff578081fd5b83359250602084013591506040840135614081816148d1565b6000815180845260208085019450808401835b838110156141475781518752958201959082019060010161412b565b509495945050505050565b6000815180845261416a81602086016020860161480c565b601f01601f19169290920160200192915050565b6000610180825181855261419482860182614152565b915050602083015184820360208601526141ae8282614152565b915050604083015184820360408601526141c88282614152565b915050606083015184820360608601526141e28282614152565b915050608083015184820360808601526141fc8282614152565b91505060a083015184820360a08601526142168282614152565b91505060c083015184820360c08601526142308282614152565b91505060e083015184820360e086015261424a8282614152565b91505061010080840151858303828701526142658382614152565b9250505061012080840151858303828701526142818382614152565b92505050610140808401518583038287015261429d8382614152565b9250505061016080840151858303828701526142b98382614152565b9695505050505050565b6000610100825184526020830151602085015260408301518160408601526142ed82860182614152565b915050606083015184820360608601526143078282614152565b915050608083015184820360808601526143218282614152565b91505060a083015184820360a086015261433b828261417e565b91505060c083015161435360c086018261ffff169052565b5060e083015184820360e08601526116738282614118565b7f7b226e616d65223a2022000000000000000000000000000000000000000000008152600086516143a381600a850160208b0161480c565b7f222c20226465736372697074696f6e223a202200000000000000000000000000600a9184019182015286516143e081601d840160208b0161480c565b7f222c2022696d616765223a202200000000000000000000000000000000000000601d9290910191820152855161441e81602a840160208a0161480c565b7f222c202265787465726e616c5f6c696e6b223a20220000000000000000000000602a9290910191820152845161445c81603f84016020890161480c565b7f222c2273656c6c65725f6665655f62617369735f706f696e7473223a22000000603f9290910191820152605c81019390935250507f222c20226665655f726563697069656e74223a20223078413937463333376333607c8201527f3963636345363661646665434232424639394331446443353443324437323122609c8201527f207d00000000000000000000000000000000000000000000000000000000000060bc82015260be01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161454681601d85016020870161480c565b91909101601d0192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161458b81601785016020880161480c565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516145c881602884016020880161480c565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142b96080830184614152565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b8281101561465a57603f198886030184526146488583516142c3565b9450928501929085019060010161462c565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156146a357835161ffff1683529284019291840191600101614683565b50909695505050505050565b6020815260006116ab6020830184614152565b6040815260006146d56040830185614152565b90508260208301529392505050565b6020815260006116ab60208301846142c3565b604051610180810167ffffffffffffffff8111828210171561471b5761471b6148bb565b60405290565b604051610100810167ffffffffffffffff8111828210171561471b5761471b6148bb565b604051601f8201601f1916810167ffffffffffffffff8111828210171561476e5761476e6148bb565b604052919050565b600067ffffffffffffffff821115614790576147906148bb565b50601f01601f191660200190565b600082198211156147b1576147b16148a5565b500190565b6000826147d157634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156147f0576147f06148a5565b500290565b600082821015614807576148076148a5565b500390565b60005b8381101561482757818101518382015260200161480f565b83811115610c535750506000910152565b600081614847576148476148a5565b506000190190565b600181811c9082168061486357607f821691505b6020821081141561488457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561489e5761489e6148a5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f0057600080fd5b8015158114610f0057600080fd5b6001600160e01b031981168114610f0057600080fd5b61ffff81168114610f0057600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c61d10266838ab4d890acebcf8e9fcaf11fe55fafa05f58b17ea03a0bf681a2464736f6c634300080400334d6574726f706f6c697320576f726c64202d2043697479206f662043656c65737465
Deployed Bytecode
0x60806040526004361061031e5760003560e01c80637c408bd0116101a5578063b88d4fde116100ec578063e671625a11610095578063f084f4de1161006f578063f084f4de14610999578063f4f6c91d146109b9578063f777b4f2146109d9578063f8686ba2146109f957600080fd5b8063e671625a1461091b578063e8a3d4851461093b578063e985e9c51461095057600080fd5b8063d00639fe116100c6578063d00639fe146108ae578063d547741f146108db578063e522eb9c146108fb57600080fd5b8063b88d4fde1461084e578063c059b8251461086e578063c87b56dd1461088e57600080fd5b8063a17ce1d51161014e578063a802d82b11610128578063a802d82b146107e1578063a89e96441461080e578063a937b76f1461082e57600080fd5b8063a17ce1d51461078c578063a217fddf146107ac578063a22cb465146107c157600080fd5b806395d89b411161017f57806395d89b4114610726578063984fca091461073b57806398da4c951461075b57600080fd5b80637c408bd0146106a057806391d14854146106c057806394a2d1631461070657600080fd5b806339391f77116102695780636352211e116102125780636dcfd092116101ec5780636dcfd0921461061957806370a082311461064d5780637b60fa3f1461066d57600080fd5b80636352211e146105b7578063693c6062146105d757806369a58daa146105f957600080fd5b806347e633801161024357806347e63380146105505780634f6ccce714610584578063555bddae146105a457600080fd5b806339391f77146104fb5780633ccfd60b1461051b57806342842e0e1461053057600080fd5b806318160ddd116102cb5780632f2ff15d116102a55780632f2ff15d1461049b5780632f745c59146104bb57806336568abe146104db57600080fd5b806318160ddd1461043657806323b872dd1461044b578063248a9ca31461046b57600080fd5b8063081812fc116102fc578063081812fc146103bc578063095ea7b3146103f45780631005b5201461041657600080fd5b806301ffc9a71461032357806303fe46ab1461035857806306fdde031461039a575b600080fd5b34801561032f57600080fd5b5061034361033e366004613df0565b610a19565b60405190151581526020015b60405180910390f35b34801561036457600080fd5b5061038c7f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c81565b60405190815260200161034f565b3480156103a657600080fd5b506103af610a2a565b60405161034f91906146af565b3480156103c857600080fd5b506103dc6103d7366004613db4565b610abc565b6040516001600160a01b03909116815260200161034f565b34801561040057600080fd5b5061041461040f366004613d6d565b610ae3565b005b34801561042257600080fd5b50610414610431366004614042565b610c1a565b34801561044257600080fd5b5060085461038c565b34801561045757600080fd5b50610414610466366004613c83565b610c59565b34801561047757600080fd5b5061038c610486366004613db4565b6000908152600a602052604090206001015490565b3480156104a757600080fd5b506104146104b6366004613dcc565b610ce0565b3480156104c757600080fd5b5061038c6104d6366004613d6d565b610d05565b3480156104e757600080fd5b506104146104f6366004613dcc565b610dad565b34801561050757600080fd5b50610414610516366004613bb8565b610e39565b34801561052757600080fd5b50610414610ee8565b34801561053c57600080fd5b5061041461054b366004613c83565b610f03565b34801561055c57600080fd5b5061038c7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab81565b34801561059057600080fd5b5061038c61059f366004613db4565b610f1e565b6104146105b23660046140a4565b610fd0565b3480156105c357600080fd5b506103dc6105d2366004613db4565b611326565b3480156105e357600080fd5b506105ec61138b565b60405161034f9190614667565b34801561060557600080fd5b506103dc610614366004614026565b61140a565b34801561062557600080fd5b5061038c7f2b2b412161ec0933900b291234acfe3df145fb0977a8123fa6a749788de5856781565b34801561065957600080fd5b5061038c610668366004613bb8565b611427565b34801561067957600080fd5b5061068d610688366004613db4565b6114c1565b60405161ffff909116815260200161034f565b3480156106ac57600080fd5b50600b546103dc906001600160a01b031681565b3480156106cc57600080fd5b506103436106db366004613dcc565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561071257600080fd5b50610414610721366004614026565b6114f9565b34801561073257600080fd5b506103af611587565b34801561074757600080fd5b50600d546103dc906001600160a01b031681565b34801561076757600080fd5b5061068d610776366004613db4565b60166020526000908152604090205461ffff1681565b34801561079857600080fd5b506103436107a73660046140ca565b611596565b3480156107b857600080fd5b5061038c600081565b3480156107cd57600080fd5b506104146107dc366004613d40565b61167c565b3480156107ed57600080fd5b506108016107fc366004613db4565b611687565b60405161034f91906146e4565b34801561081a57600080fd5b506104146108293660046140eb565b6116b2565b34801561083a57600080fd5b50610414610849366004613e5b565b61184b565b34801561085a57600080fd5b50610414610869366004613cc3565b6118e8565b34801561087a57600080fd5b50610343610889366004614026565b611970565b34801561089a57600080fd5b506103af6108a9366004613db4565b6119f0565b3480156108ba57600080fd5b506108ce6108c9366004613bb8565b611aa4565b60405161034f9190614606565b3480156108e757600080fd5b506104146108f6366004613dcc565b611b81565b34801561090757600080fd5b506104146109163660046140eb565b611ba6565b34801561092757600080fd5b50610801610936366004614026565b611d07565b34801561094757600080fd5b506103af611dac565b34801561095c57600080fd5b5061034361096b366004613bf0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109a557600080fd5b506104146109b4366004613bb8565b611dbb565b3480156109c557600080fd5b5061038c6109d4366004614026565b611e71565b3480156109e557600080fd5b50600f546103dc906001600160a01b031681565b348015610a0557600080fd5b50610414610a14366004613c28565b611ef5565b6000610a248261212f565b92915050565b606060008054610a399061484f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a659061484f565b8015610ab25780601f10610a8757610100808354040283529160200191610ab2565b820191906000526020600020905b815481529060010190602001808311610a9557829003601f168201915b5050505050905090565b6000610ac78261216d565b506000908152600460205260409020546001600160a01b031690565b6000610aee82611326565b9050806001600160a01b0316836001600160a01b03161415610b7d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610b995750610b99813361096b565b610c0b5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b74565b610c1583836121d1565b505050565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab610c448161223f565b610c538461ffff168484612249565b50505050565b610c6333826125e3565b610cd55760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610b74565b610c15838383612662565b6000828152600a6020526040902060010154610cfb8161223f565b610c15838361283a565b6000610d1083611427565b8210610d845760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610b74565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b0381163314610e2b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610b74565b610e3582826128dc565b5050565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab610e638161223f565b6001600160a01b038216610ec55760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b50601580546001600160a01b0319166001600160a01b0392909216919091179055565b6015544790610f00906001600160a01b03168261295f565b50565b610c15838383604051806020016040528060008152506118e8565b6000610f2960085490565b8210610f9d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b74565b60088281548110610fbe57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600083116110205760405162461bcd60e51b815260206004820152601760248201527f4e6f7420612076616c69642070617373706f72742049440000000000000000006044820152606401610b74565b600e546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b03838116921690636352211e9060240160206040518083038186803b15801561107f57600080fd5b505afa158015611093573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b79190613bd4565b6001600160a01b0316146111335760405162461bcd60e51b815260206004820152602660248201527f596f75206d75737420626520746865206f776e6572206f66207468697320706160448201527f7373706f727400000000000000000000000000000000000000000000000000006064820152608401610b74565b600c5460405163172b769f60e31b815261ffff841660048201526001600160a01b039091169063b95bb4f89060240160206040518083038186803b15801561117a57600080fd5b505afa15801561118e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b2919061408c565b3410156112015760405162461bcd60e51b815260206004820152601660248201527f4e6f74207061696420656e6f7567682c20736f727279000000000000000000006044820152606401610b74565b61120c838383612249565b600c5460405163172b769f60e31b815261ffff841660048201526001600160a01b039091169063b95bb4f89060240160206040518083038186803b15801561125357600080fd5b505afa158015611267573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128b919061408c565b341115610c1557600c5460405163172b769f60e31b815261ffff84166004820152610c159133916001600160a01b039091169063b95bb4f89060240160206040518083038186803b1580156112df57600080fd5b505afa1580156112f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611317919061408c565b61132190346147f5565b61295f565b6000818152600260205260408120546001600160a01b031680610a245760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b74565b60606018805480602002602001604051908101604052809291908181526020018280548015610ab257602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116113c85790505050505050905090565b61ffff8116600090815260176020526040812054610a2490611326565b60006001600160a01b0382166114a55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b74565b506001600160a01b031660009081526003602052604090205490565b601881815481106114d157600080fd5b9060005260206000209060109182820401919006600202915054906101000a900461ffff1681565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab6115238161223f565b600c546040516219d52360e81b815261ffff841660048201526001600160a01b03909116906319d5230090602401600060405180830381600087803b15801561156b57600080fd5b505af115801561157f573d6000803e3d6000fd5b505050505050565b606060018054610a399061484f565b60007f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c6115c28161223f565b6000848152601660205260409081902054600c5491517feb2825a300000000000000000000000000000000000000000000000000000000815261ffff9091166004820181905260248201869052916001600160a01b03169063eb2825a39060440160206040518083038186803b15801561163b57600080fd5b505afa15801561164f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116739190613d98565b95945050505050565b610e35338383612a78565b61168f61375c565b60008281526016602052604090205461ffff166116ab81611d07565b9392505050565b7f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c6116dc8161223f565b816001600160a01b03166116ef85611326565b6001600160a01b0316146117355760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b6044820152606401610b74565b6117736040518060400160405280601f81526020017f70726f7020636f6e74726163742064657461686320657874656e74696f6e7300815250612b47565b6000848152601660205260409081902054600c5491517f4886b9b100000000000000000000000000000000000000000000000000000000815261ffff9091166004820181905260248201869052916001600160a01b031690634886b9b190604401600060405180830381600087803b1580156117ee57600080fd5b505af1158015611802573d6000803e3d6000fd5b505050506118446040518060400160405280601c81526020017f6465746163682073656d7420746f206461746120636f6e747261637400000000815250612b47565b5050505050565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab6118758161223f565b60006118a7878787878760405160200161189395949392919061436b565b604051602081830303815290604052612bb8565b9050806040516020016118ba919061450e565b604051602081830303815290604052601490805190602001906118de929190613803565b5050505050505050565b6118f233836125e3565b6119645760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610b74565b610c5384848484612d1a565b600c54604051632bd9103b60e21b815261ffff831660048201526000916001600160a01b03169063af6440ec9060240160206040518083038186803b1580156119b857600080fd5b505afa1580156119cc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a249190613d98565b600081815260166020526040908190205460105491517f7a2b9e2c00000000000000000000000000000000000000000000000000000000815261ffff9091166004820181905260609290916001600160a01b0390911690637a2b9e2c9060240160006040518083038186803b158015611a6857600080fd5b505afa158015611a7c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116ab9190810190613e28565b60606000611ab183611427565b905060008167ffffffffffffffff811115611adc57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611b1557816020015b611b0261375c565b815260200190600190039081611afa5790505b50905060005b82811015611b79576000611b2f8683610d05565b9050611b3a81611687565b838381518110611b5a57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250508080611b719061488a565b915050611b1b565b509392505050565b6000828152600a6020526040902060010154611b9c8161223f565b610c1583836128dc565b7f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c611bd08161223f565b816001600160a01b0316611be385611326565b6001600160a01b031614611c295760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b6044820152606401610b74565b600084815260166020908152604091829020548251808401909352600b83527f4e46542049442069733a200000000000000000000000000000000000000000009183019190915261ffff1690611c7f9082612d98565b600c546040517f8146cf8e00000000000000000000000000000000000000000000000000000000815261ffff83166004820152602481018690526001600160a01b0390911690638146cf8e90604401600060405180830381600087803b158015611ce857600080fd5b505af1158015611cfc573d6000803e3d6000fd5b505050505050505050565b611d0f61375c565b600c546040517f34922bcb00000000000000000000000000000000000000000000000000000000815261ffff841660048201526000916001600160a01b0316906334922bcb9060240160006040518083038186803b158015611d7057600080fd5b505afa158015611d84573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116ab9190810190613f0b565b606060148054610a399061484f565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab611de58161223f565b6001600160a01b038216611e475760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b610e357f364d3d7565c7a8300c96fd53e065d19b65848d7b23b3191adcd55621c744223c8361283a565b600c5460405163172b769f60e31b815261ffff8316600482015260009182916001600160a01b039091169063b95bb4f89060240160206040518083038186803b158015611ebd57600080fd5b505afa158015611ed1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ab919061408c565b7f73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab611f1f8161223f565b6001600160a01b038516611f815760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b6001600160a01b038416611fe35760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b6001600160a01b0383166120455760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b6001600160a01b0382166120a75760405162461bcd60e51b815260206004820152602360248201527f506c6561736520656e7465722076616c696420636f6e7472616374206164647260448201526265737360e81b6064820152608401610b74565b50600d80546001600160a01b039586166001600160a01b03199182168117909255600e805482169092179091556011805494861694821685179055601280548216909417909355600f805492851692841683179055601080548416909217909155600b8054919093169082168117909255600c80549091169091179055565b80546001019055565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610a245750610a2482612e0b565b6000818152600260205260409020546001600160a01b0316610f005760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b74565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061220682611326565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610f008133612e49565b600061225460135490565b90508315612363576012546040517f83acfeb400000000000000000000000000000000000000000000000000000000815260048101869052606060248201526005606482015264636974793160d81b608482015261ffff851660448201526001600160a01b03909116906383acfeb49060a40160206040518083038186803b1580156122df57600080fd5b505afa1580156122f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123179190613d98565b6123635760405162461bcd60e51b815260206004820152600a60248201527f6e6f20776c2073706f74000000000000000000000000000000000000000000006044820152606401610b74565b600c54604051632bd9103b60e21b815261ffff851660048201526001600160a01b039091169063af6440ec9060240160206040518083038186803b1580156123aa57600080fd5b505afa1580156123be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123e29190613d98565b1561242f5760405162461bcd60e51b815260206004820152601c60248201527f546869732068617320616c7265616479206265656e206d696e746564000000006044820152606401610b74565b6124398282612ec9565b6000818152601660209081526040808320805461ffff191661ffff8816908117909155808452601790925291829020839055600c5491516219d52360e81b815260048101919091526001600160a01b03909116906319d5230090602401600060405180830381600087803b1580156124b057600080fd5b505af11580156124c4573d6000803e3d6000fd5b505060188054600181018255600091909152601081047fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e01805461ffff8089166002600f909516949094026101000a93840293021916919091179055506125319050601380546001019055565b83156125d5576012546040517fa22b1c5800000000000000000000000000000000000000000000000000000000815260048101869052606060248201526005606482015264636974793160d81b608482015261ffff851660448201526001600160a01b039091169063a22b1c589060a401600060405180830381600087803b1580156125bc57600080fd5b505af11580156125d0573d6000803e3d6000fd5b505050505b4715610c5357610c53610ee8565b6000806125ef83611326565b9050806001600160a01b0316846001600160a01b0316148061263657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061265a5750836001600160a01b031661264f84610abc565b6001600160a01b0316145b949350505050565b826001600160a01b031661267582611326565b6001600160a01b0316146126f15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b74565b6001600160a01b03821661276c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b74565b612777838383612ee3565b6127826000826121d1565b6001600160a01b03831660009081526003602052604081208054600192906127ab9084906147f5565b90915550506001600160a01b03821660009081526003602052604081208054600192906127d990849061479e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16610e35576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556128983390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff1615610e35576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b804710156129af5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b74565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146129fc576040519150601f19603f3d011682016040523d82523d6000602084013e612a01565b606091505b5050905080610c155760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b74565b816001600160a01b0316836001600160a01b03161415612ada5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b74565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610f0081604051602401612b5b91906146af565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f41304fac00000000000000000000000000000000000000000000000000000000179052612f9b565b6060815160001415612bd857505060408051602081019091526000815290565b600060405180606001604052806040815260200161491b6040913990506000600384516002612c07919061479e565b612c1191906147b6565b612c1c9060046147d6565b67ffffffffffffffff811115612c4257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c6c576020820181803683370190505b509050600182016020820185865187015b80821015612cd8576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612c7d565b5050600386510660018114612cf45760028114612d0757612d0f565b603d6001830353603d6002830353612d0f565b603d60018303535b509195945050505050565b612d25848484612662565b612d3184848484612fbc565b610c535760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b74565b610e358282604051602401612dae9291906146c2565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f9710a9d000000000000000000000000000000000000000000000000000000000179052612f9b565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610a245750610a2482613114565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16610e3557612e87816001600160a01b031660146131af565b612e928360206131af565b604051602001612ea3929190614553565b60408051601f198184030181529082905262461bcd60e51b8252610b74916004016146af565b610e358282604051806020016040528060008152506133d6565b6001600160a01b038316612f3e57612f3981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f61565b816001600160a01b0316836001600160a01b031614612f6157612f618382613454565b6001600160a01b038216612f7857610c15816134f1565b826001600160a01b0316826001600160a01b031614610c1557610c1582826135ca565b80516a636f6e736f6c652e6c6f67602083016000808483855afa5050505050565b60006001600160a01b0384163b1561310957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906130009033908990889088906004016145d4565b602060405180830381600087803b15801561301a57600080fd5b505af192505050801561304a575060408051601f3d908101601f1916820190925261304791810190613e0c565b60015b6130ef573d808015613078576040519150601f19603f3d011682016040523d82523d6000602084013e61307d565b606091505b5080516130e75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b74565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061265a565b506001949350505050565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061317757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a2457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a24565b606060006131be8360026147d6565b6131c990600261479e565b67ffffffffffffffff8111156131ef57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613219576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061325e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106132b757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006132db8460026147d6565b6132e690600161479e565b90505b6001811115613387577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061333557634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061335957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361338081614838565b90506132e9565b5083156116ab5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b74565b6133e0838361360e565b6133ed6000848484612fbc565b610c155760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b74565b6000600161346184611427565b61346b91906147f5565b6000838152600760205260409020549091508082146134be576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613503906001906147f5565b6000838152600960205260408120546008805493945090928490811061353957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061356857634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806135ae57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006135d583611427565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166136645760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b74565b6000818152600260205260409020546001600160a01b0316156136c95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b74565b6136d560008383612ee3565b6001600160a01b03821660009081526003602052604081208054600192906136fe90849061479e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60405180610100016040528060008152602001600081526020016060815260200160608152602001606081526020016137ef6040518061018001604052806060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b815260006020820152606060409091015290565b82805461380f9061484f565b90600052602060002090601f0160209004810192826138315760008555613877565b82601f1061384a57805160ff1916838001178555613877565b82800160010185558215613877579182015b8281111561387757825182559160200191906001019061385c565b50613883929150613887565b5090565b5b808211156138835760008155600101613888565b60006138af6138aa84614776565b614745565b90508281528383830111156138c357600080fd5b828260208301376000602084830101529392505050565b600082601f8301126138ea578081fd5b8151602067ffffffffffffffff821115613906576139066148bb565b8160051b613915828201614745565b83815282810190868401838801850189101561392f578687fd5b8693505b85841015613951578051835260019390930192918401918401613933565b50979650505050505050565b600082601f83011261396d578081fd5b6116ab8383356020850161389c565b600082601f83011261398c578081fd5b815161399a6138aa82614776565b8181528460208386010111156139ae578283fd5b61265a82602083016020870161480c565b600061018082840312156139d1578081fd5b6139d96146f7565b9050815167ffffffffffffffff808211156139f357600080fd5b6139ff8583860161397c565b83526020840151915080821115613a1557600080fd5b613a218583860161397c565b60208401526040840151915080821115613a3a57600080fd5b613a468583860161397c565b60408401526060840151915080821115613a5f57600080fd5b613a6b8583860161397c565b60608401526080840151915080821115613a8457600080fd5b613a908583860161397c565b608084015260a0840151915080821115613aa957600080fd5b613ab58583860161397c565b60a084015260c0840151915080821115613ace57600080fd5b613ada8583860161397c565b60c084015260e0840151915080821115613af357600080fd5b613aff8583860161397c565b60e084015261010091508184015181811115613b1a57600080fd5b613b268682870161397c565b838501525061012091508184015181811115613b4157600080fd5b613b4d8682870161397c565b838501525061014091508184015181811115613b6857600080fd5b613b748682870161397c565b838501525061016091508184015181811115613b8f57600080fd5b613b9b8682870161397c565b8385015250505092915050565b8051613bb38161490a565b919050565b600060208284031215613bc9578081fd5b81356116ab816148d1565b600060208284031215613be5578081fd5b81516116ab816148d1565b60008060408385031215613c02578081fd5b8235613c0d816148d1565b91506020830135613c1d816148d1565b809150509250929050565b60008060008060808587031215613c3d578182fd5b8435613c48816148d1565b93506020850135613c58816148d1565b92506040850135613c68816148d1565b91506060850135613c78816148d1565b939692955090935050565b600080600060608486031215613c97578081fd5b8335613ca2816148d1565b92506020840135613cb2816148d1565b929592945050506040919091013590565b60008060008060808587031215613cd8578182fd5b8435613ce3816148d1565b93506020850135613cf3816148d1565b925060408501359150606085013567ffffffffffffffff811115613d15578182fd5b8501601f81018713613d25578182fd5b613d348782356020840161389c565b91505092959194509250565b60008060408385031215613d52578182fd5b8235613d5d816148d1565b91506020830135613c1d816148e6565b60008060408385031215613d7f578182fd5b8235613d8a816148d1565b946020939093013593505050565b600060208284031215613da9578081fd5b81516116ab816148e6565b600060208284031215613dc5578081fd5b5035919050565b60008060408385031215613dde578182fd5b823591506020830135613c1d816148d1565b600060208284031215613e01578081fd5b81356116ab816148f4565b600060208284031215613e1d578081fd5b81516116ab816148f4565b600060208284031215613e39578081fd5b815167ffffffffffffffff811115613e4f578182fd5b61265a8482850161397c565b600080600080600060a08688031215613e72578283fd5b853567ffffffffffffffff80821115613e89578485fd5b613e9589838a0161395d565b96506020880135915080821115613eaa578485fd5b613eb689838a0161395d565b95506040880135915080821115613ecb578485fd5b613ed789838a0161395d565b94506060880135915080821115613eec578283fd5b50613ef98882890161395d565b95989497509295608001359392505050565b600060208284031215613f1c578081fd5b815167ffffffffffffffff80821115613f33578283fd5b908301906101008286031215613f47578283fd5b613f4f614721565b8251815260208301516020820152604083015182811115613f6e578485fd5b613f7a8782860161397c565b604083015250606083015182811115613f91578485fd5b613f9d8782860161397c565b606083015250608083015182811115613fb4578485fd5b613fc08782860161397c565b60808301525060a083015182811115613fd7578485fd5b613fe3878286016139bf565b60a083015250613ff560c08401613ba8565b60c082015260e08301518281111561400b578485fd5b614017878286016138da565b60e08301525095945050505050565b600060208284031215614037578081fd5b81356116ab8161490a565b600080600060608486031215614056578081fd5b83356140618161490a565b925060208401356140718161490a565b91506040840135614081816148d1565b809150509250925092565b60006020828403121561409d578081fd5b5051919050565b6000806000606084860312156140b8578081fd5b8335925060208401356140718161490a565b600080604083850312156140dc578182fd5b50508035926020909101359150565b6000806000606084860312156140ff578081fd5b83359250602084013591506040840135614081816148d1565b6000815180845260208085019450808401835b838110156141475781518752958201959082019060010161412b565b509495945050505050565b6000815180845261416a81602086016020860161480c565b601f01601f19169290920160200192915050565b6000610180825181855261419482860182614152565b915050602083015184820360208601526141ae8282614152565b915050604083015184820360408601526141c88282614152565b915050606083015184820360608601526141e28282614152565b915050608083015184820360808601526141fc8282614152565b91505060a083015184820360a08601526142168282614152565b91505060c083015184820360c08601526142308282614152565b91505060e083015184820360e086015261424a8282614152565b91505061010080840151858303828701526142658382614152565b9250505061012080840151858303828701526142818382614152565b92505050610140808401518583038287015261429d8382614152565b9250505061016080840151858303828701526142b98382614152565b9695505050505050565b6000610100825184526020830151602085015260408301518160408601526142ed82860182614152565b915050606083015184820360608601526143078282614152565b915050608083015184820360808601526143218282614152565b91505060a083015184820360a086015261433b828261417e565b91505060c083015161435360c086018261ffff169052565b5060e083015184820360e08601526116738282614118565b7f7b226e616d65223a2022000000000000000000000000000000000000000000008152600086516143a381600a850160208b0161480c565b7f222c20226465736372697074696f6e223a202200000000000000000000000000600a9184019182015286516143e081601d840160208b0161480c565b7f222c2022696d616765223a202200000000000000000000000000000000000000601d9290910191820152855161441e81602a840160208a0161480c565b7f222c202265787465726e616c5f6c696e6b223a20220000000000000000000000602a9290910191820152845161445c81603f84016020890161480c565b7f222c2273656c6c65725f6665655f62617369735f706f696e7473223a22000000603f9290910191820152605c81019390935250507f222c20226665655f726563697069656e74223a20223078413937463333376333607c8201527f3963636345363661646665434232424639394331446443353443324437323122609c8201527f207d00000000000000000000000000000000000000000000000000000000000060bc82015260be01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161454681601d85016020870161480c565b91909101601d0192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161458b81601785016020880161480c565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516145c881602884016020880161480c565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142b96080830184614152565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b8281101561465a57603f198886030184526146488583516142c3565b9450928501929085019060010161462c565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156146a357835161ffff1683529284019291840191600101614683565b50909695505050505050565b6020815260006116ab6020830184614152565b6040815260006146d56040830185614152565b90508260208301529392505050565b6020815260006116ab60208301846142c3565b604051610180810167ffffffffffffffff8111828210171561471b5761471b6148bb565b60405290565b604051610100810167ffffffffffffffff8111828210171561471b5761471b6148bb565b604051601f8201601f1916810167ffffffffffffffff8111828210171561476e5761476e6148bb565b604052919050565b600067ffffffffffffffff821115614790576147906148bb565b50601f01601f191660200190565b600082198211156147b1576147b16148a5565b500190565b6000826147d157634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156147f0576147f06148a5565b500290565b600082821015614807576148076148a5565b500390565b60005b8381101561482757818101518382015260200161480f565b83811115610c535750506000910152565b600081614847576148476148a5565b506000190190565b600181811c9082168061486357607f821691505b6020821081141561488457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561489e5761489e6148a5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610f0057600080fd5b8015158114610f0057600080fd5b6001600160e01b031981168114610f0057600080fd5b61ffff81168114610f0057600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c61d10266838ab4d890acebcf8e9fcaf11fe55fafa05f58b17ea03a0bf681a2464736f6c63430008040033
Loading...
Loading
Loading...
Loading
[ 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.