Overview
TokenID
1037
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:
Vertigo
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; pragma abicoder v2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "base64-sol/base64.sol"; import "./ERC721r.sol"; import "erc721a/contracts/ERC721A.sol"; import "./utils/DynamicBuffer.sol"; import "./StringUtilsLib.sol"; import "hardhat/console.sol"; interface PunkDataInterface { function punkImage(uint16 index) external view returns (bytes memory); function punkAttributes(uint16 index) external view returns (string memory); } interface ExtendedPunkDataInterface { enum PunkAttributeType {SEX, HAIR, EYES, BEARD, EARS, LIPS, MOUTH, FACE, EMOTION, NECK, NOSE, CHEEKS, TEETH} enum PunkAttributeValue {NONE, ALIEN, APE, BANDANA, BEANIE, BIG_BEARD, BIG_SHADES, BLACK_LIPSTICK, BLONDE_BOB, BLONDE_SHORT, BLUE_EYE_SHADOW, BUCK_TEETH, CAP, CAP_FORWARD, CHINSTRAP, CHOKER, CIGARETTE, CLASSIC_SHADES, CLOWN_EYES_BLUE, CLOWN_EYES_GREEN, CLOWN_HAIR_GREEN, CLOWN_NOSE, COWBOY_HAT, CRAZY_HAIR, DARK_HAIR, DO_RAG, EARRING, EYE_MASK, EYE_PATCH, FEDORA, FEMALE, FRONT_BEARD, FRONT_BEARD_DARK, FROWN, FRUMPY_HAIR, GOAT, GOLD_CHAIN, GREEN_EYE_SHADOW, HALF_SHAVED, HANDLEBARS, HEADBAND, HOODIE, HORNED_RIM_GLASSES, HOT_LIPSTICK, KNITTED_CAP, LUXURIOUS_BEARD, MALE, MEDICAL_MASK, MESSY_HAIR, MOHAWK, MOHAWK_DARK, MOHAWK_THIN, MOLE, MUSTACHE, MUTTONCHOPS, NERD_GLASSES, NORMAL_BEARD, NORMAL_BEARD_BLACK, ORANGE_SIDE, PEAK_SPIKE, PIGTAILS, PILOT_HELMET, PINK_WITH_HAT, PIPE, POLICE_CAP, PURPLE_EYE_SHADOW, PURPLE_HAIR, PURPLE_LIPSTICK, RED_MOHAWK, REGULAR_SHADES, ROSY_CHEEKS, SHADOW_BEARD, SHAVED_HEAD, SILVER_CHAIN, SMALL_SHADES, SMILE, SPOTS, STRAIGHT_HAIR, STRAIGHT_HAIR_BLONDE, STRAIGHT_HAIR_DARK, STRINGY_HAIR, TASSLE_HAT, THREE_D_GLASSES, TIARA, TOP_HAT, VAMPIRE_HAIR, VAPE, VR, WELDING_GOGGLES, WILD_BLONDE, WILD_HAIR, WILD_WHITE_HAIR, ZOMBIE} function attrStringToEnumMapping(string memory) external view returns (ExtendedPunkDataInterface.PunkAttributeValue); function attrEnumToStringMapping(PunkAttributeValue) external view returns (string memory); function attrValueToTypeEnumMapping(PunkAttributeValue) external view returns (ExtendedPunkDataInterface.PunkAttributeType); } contract Vertigo is Ownable, ERC721r { enum PunkAttributeType {SEX, HAIR, EYES, BEARD, EARS, LIPS, MOUTH, FACE, EMOTION, NECK, NOSE, CHEEKS, TEETH} enum PunkAttributeValue {NONE, ALIEN, APE, BANDANA, BEANIE, BIG_BEARD, BIG_SHADES, BLACK_LIPSTICK, BLONDE_BOB, BLONDE_SHORT, BLUE_EYE_SHADOW, BUCK_TEETH, CAP, CAP_FORWARD, CHINSTRAP, CHOKER, CIGARETTE, CLASSIC_SHADES, CLOWN_EYES_BLUE, CLOWN_EYES_GREEN, CLOWN_HAIR_GREEN, CLOWN_NOSE, COWBOY_HAT, CRAZY_HAIR, DARK_HAIR, DO_RAG, EARRING, EYE_MASK, EYE_PATCH, FEDORA, FEMALE, FRONT_BEARD, FRONT_BEARD_DARK, FROWN, FRUMPY_HAIR, GOAT, GOLD_CHAIN, GREEN_EYE_SHADOW, HALF_SHAVED, HANDLEBARS, HEADBAND, HOODIE, HORNED_RIM_GLASSES, HOT_LIPSTICK, KNITTED_CAP, LUXURIOUS_BEARD, MALE, MEDICAL_MASK, MESSY_HAIR, MOHAWK, MOHAWK_DARK, MOHAWK_THIN, MOLE, MUSTACHE, MUTTONCHOPS, NERD_GLASSES, NORMAL_BEARD, NORMAL_BEARD_BLACK, ORANGE_SIDE, PEAK_SPIKE, PIGTAILS, PILOT_HELMET, PINK_WITH_HAT, PIPE, POLICE_CAP, PURPLE_EYE_SHADOW, PURPLE_HAIR, PURPLE_LIPSTICK, RED_MOHAWK, REGULAR_SHADES, ROSY_CHEEKS, SHADOW_BEARD, SHAVED_HEAD, SILVER_CHAIN, SMALL_SHADES, SMILE, SPOTS, STRAIGHT_HAIR, STRAIGHT_HAIR_BLONDE, STRAIGHT_HAIR_DARK, STRINGY_HAIR, TASSLE_HAT, THREE_D_GLASSES, TIARA, TOP_HAT, VAMPIRE_HAIR, VAPE, VR, WELDING_GOGGLES, WILD_BLONDE, WILD_HAIR, WILD_WHITE_HAIR, ZOMBIE} struct Punk { uint16 id; PunkAttributeValue sex; PunkAttributeValue hair; PunkAttributeValue eyes; PunkAttributeValue beard; PunkAttributeValue ears; PunkAttributeValue lips; PunkAttributeValue mouth; PunkAttributeValue face; PunkAttributeValue emotion; PunkAttributeValue neck; PunkAttributeValue nose; PunkAttributeValue cheeks; PunkAttributeValue teeth; } using StringUtils for string; using Address for address; using DynamicBuffer for bytes; using Strings for *; struct ContractConfig { bool isMintActive; bool contractSealed; string name; string nameSingular; string symbol; string externalLink; string tokenDescriptionAsJSON; string baseImageUri; uint costPerToken; uint64 maxSupply; } ContractConfig public config; PunkDataInterface public immutable punkDataContract; ExtendedPunkDataInterface public immutable extendedPunkDataContract; modifier unsealed() { require(!config.contractSealed, "Contract sealed."); _; } function name() public view virtual override returns (string memory) { return config.name; } function symbol() public view virtual override returns (string memory) { return config.symbol; } function setContractConfig(ContractConfig calldata _config) external onlyOwner unsealed { config = _config; } constructor(address punkDataContractAddress, address extendedPunkDataContractAddress, ContractConfig memory _config) ERC721r("", "", _config.maxSupply) { config = _config; punkDataContract = PunkDataInterface(punkDataContractAddress); extendedPunkDataContract = ExtendedPunkDataInterface(extendedPunkDataContractAddress); } function _internalMint(address toAddress, uint numTokens) private { require(msg.value == totalMintCost(numTokens), "Need exact payment"); require(config.isMintActive, "Mint is not active"); _mintRandom(toAddress, numTokens); } function airdrop(address toAddress, uint numTokens) external payable { _internalMint(toAddress, numTokens); } function mint(uint numTokens) external payable { _internalMint(msg.sender, numTokens); } function exists(uint tokenId) external view returns (bool) { return _exists(tokenId); } function tokenURI(uint256 id) public view override returns (string memory) { require(_exists(id), "Token does not exist"); return constructTokenURI(uint16(id)); } function constructTokenURI(uint16 tokenId) private view returns (string memory) { bytes memory title = abi.encodePacked(config.nameSingular, " #", tokenId.toString()); string memory html = tokenHTMLPage(tokenId); string memory b64Html = Base64.encode(bytes(html)); bytes memory imageUri = abi.encodePacked(config.baseImageUri, tokenId.toString(), ".png"); return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{', '"name":"', title, '",' '"description":', config.tokenDescriptionAsJSON, ',' '"image":"', imageUri,'",' '"external_url":"', config.externalLink, '",' '"html":"data:text/html;charset=utf-8;base64,', b64Html, '",' '"attributes": ', punkAttributesAsJSON(tokenId), '}' ) ) ) ) ); } function punkRects(uint tokenId) public view returns (bytes memory) { bytes memory pixels = punkDataContract.punkImage(uint16(tokenId)); bytes memory svgBytes = DynamicBuffer.allocate(1024 * 24); bytes memory buffer = new bytes(8); for (uint256 y = 0; y < 24; y++) { for (uint256 x = 0; x < 24; x++) { uint256 p = (y * 24 + x) * 4; if (uint8(pixels[p + 3]) > 0) { for (uint256 i = 0; i < 4; i++) { uint8 value = uint8(pixels[p + i]); buffer[i * 2 + 1] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; buffer[i * 2] = _HEX_SYMBOLS[value & 0xf]; } bytes memory rectStart = abi.encodePacked( '<rect x="', x.toString(), '" y="', y.toString() ); svgBytes.appendSafe( abi.encodePacked( rectStart, '" fill="#', string(buffer), '"/>' ) ); } } } return svgBytes; } bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; function tokenHTMLPage(uint tokenId) public view returns (string memory) { bytes memory HTMLBytes = DynamicBuffer.allocate(1024 * 128); string memory image = tokenImage(tokenId); HTMLBytes.appendSafe('<!DOCTYPE html><html lang="en">'); HTMLBytes.appendSafe(abi.encodePacked('<body><style>*{box-sizing:border-box;margin:0;padding:0;border:0;transform-origin: center} svg{background:#638596;left: 50%;top: 50%;transform: translate(-50%, -50%);position: fixed;aspect-ratio: 1 / 1;max-width: 100vmin;max-height: 100vmin;width: 100%; height: 100%;}</style>')); HTMLBytes.appendSafe(bytes(image)); HTMLBytes.appendSafe('<script>var svgEl=document.querySelector("svg"),rects=Array.from(document.querySelectorAll("#r rect")),svgBox=svgEl.getBoundingClientRect(),svgCenter=[svgBox.left+svgBox.width/2,svgBox.top+svgBox.height/2],distanceMemo={},distanceFromRectToSVGCenter=function(t){var e=t.getBoundingClientRect(),r=JSON.stringify(e);if(distanceMemo[r])return distanceMemo[r];var o=[e.left,e.top],s=[e.left,e.top+e.height],n=[e.left+e.height,e.top],a=[e.left+e.width,e.top+e.height],c=Math.max(...[o,s,n,a].map((t=>Math.sqrt(Math.pow(t[0]-svgCenter[0],2)+Math.pow(t[1]-svgCenter[1],2)))));return distanceMemo[r]=c,c},sorted=rects.sort(((t,e)=>distanceFromRectToSVGCenter(e)-distanceFromRectToSVGCenter(t))),farthest=sorted[0],farDistance=distanceFromRectToSVGCenter(sorted[0]),factor=svgBox.width/2/farDistance;document.querySelector("#a").style.transform="scale("+factor+")",svgEl.classList.add("init");</script></body></html>'); return string(HTMLBytes); } function tokenImage(uint tokenId) public view returns (string memory) { bytes memory svgBytes = DynamicBuffer.allocate(1024 * 128); uint numRepetitions = 360; uint angleIncrements = 360 / numRepetitions; svgBytes.appendSafe(abi.encodePacked('<svg width="1200" height="1200" shape-rendering="crispEdges" xmlns="http://www.w3.org/2000/svg" version="1.2" viewBox="0 0 24 24"><style>rect{width:1px;height:1px}</style><defs><g opacity="0.05" id="r">')); svgBytes.appendSafe(punkRects(tokenId)); svgBytes.appendSafe('</g></defs>'); svgBytes.appendSafe('<circle cx="12" cy="12" r="1.025" fill="#000000"/><g id="a">'); for (uint i = 0; i < numRepetitions; i++) { svgBytes.appendSafe(abi.encodePacked('<use href="#r" transform="rotate(', (angleIncrements * i).toString(), ')" />')); } svgBytes.appendSafe('</g></svg>'); return string(svgBytes); } address constant pivAddress = 0xf98537696e2Cf486F8F32604B2Ca2CDa120DBBa8; address constant middleAddress = 0xC2172a6315c1D7f6855768F843c420EbB36eDa97; function withdraw() external { require(address(this).balance > 0, "Nothing to withdraw"); uint total = address(this).balance; uint half = total / 2; Address.sendValue(payable(middleAddress), half); Address.sendValue(payable(pivAddress), total - half); } function totalMintCost(uint numTokens) public view returns (uint) { return numTokens * config.costPerToken; } function initializePunk(uint16 punkId) private view returns (Punk memory) { Punk memory phunk = Punk({ id: punkId, sex: PunkAttributeValue.NONE, hair: PunkAttributeValue.NONE, eyes: PunkAttributeValue.NONE, beard: PunkAttributeValue.NONE, ears: PunkAttributeValue.NONE, lips: PunkAttributeValue.NONE, mouth: PunkAttributeValue.NONE, face: PunkAttributeValue.NONE, emotion: PunkAttributeValue.NONE, neck: PunkAttributeValue.NONE, nose: PunkAttributeValue.NONE, cheeks: PunkAttributeValue.NONE, teeth: PunkAttributeValue.NONE }); phunk.id = punkId; string memory attributes = punkDataContract.punkAttributes(phunk.id); string[] memory attributeArray = attributes.split(","); for (uint i = 0; i < attributeArray.length; i++) { string memory untrimmedAttribute = attributeArray[i]; string memory trimmedAttribute; if (i < 1) { trimmedAttribute = untrimmedAttribute.split(' ')[0]; } else { trimmedAttribute = untrimmedAttribute._substring(int(bytes(untrimmedAttribute).length - 1), 1); } PunkAttributeValue attrValue = PunkAttributeValue(uint(extendedPunkDataContract.attrStringToEnumMapping(trimmedAttribute))); PunkAttributeType attrType = PunkAttributeType(uint(extendedPunkDataContract.attrValueToTypeEnumMapping(ExtendedPunkDataInterface.PunkAttributeValue(uint(attrValue))))); if (attrType == PunkAttributeType.SEX) { phunk.sex = attrValue; } else if (attrType == PunkAttributeType.HAIR) { phunk.hair = attrValue; } else if (attrType == PunkAttributeType.EYES) { phunk.eyes = attrValue; } else if (attrType == PunkAttributeType.BEARD) { phunk.beard = attrValue; } else if (attrType == PunkAttributeType.EARS) { phunk.ears = attrValue; } else if (attrType == PunkAttributeType.LIPS) { phunk.lips = attrValue; } else if (attrType == PunkAttributeType.MOUTH) { phunk.mouth = attrValue; } else if (attrType == PunkAttributeType.FACE) { phunk.face = attrValue; } else if (attrType == PunkAttributeType.EMOTION) { phunk.emotion = attrValue; } else if (attrType == PunkAttributeType.NECK) { phunk.neck = attrValue; } else if (attrType == PunkAttributeType.NOSE) { phunk.nose = attrValue; } else if (attrType == PunkAttributeType.CHEEKS) { phunk.cheeks = attrValue; } else if (attrType == PunkAttributeType.TEETH) { phunk.teeth = attrValue; } } return phunk; } function punkAttributeCount(Punk memory phunk) public pure returns (uint totalCount) { PunkAttributeValue[13] memory attrArray = [ phunk.sex, phunk.hair, phunk.eyes, phunk.beard, phunk.ears, phunk.lips, phunk.mouth, phunk.face, phunk.emotion, phunk.neck, phunk.nose, phunk.cheeks, phunk.teeth ]; for (uint i = 0; i < 13; ++i) { if (attrArray[i] != PunkAttributeValue.NONE) { totalCount++; } } } function punkAttributesAsJSON(uint16 punkId) public view returns (string memory json) { Punk memory phunk = initializePunk(punkId); PunkAttributeValue none = PunkAttributeValue.NONE; bytes memory outputBytes = DynamicBuffer.allocate(1024 * 64); outputBytes.appendSafe("["); PunkAttributeValue[13] memory attrArray = [ phunk.sex, phunk.hair, phunk.eyes, phunk.beard, phunk.ears, phunk.lips, phunk.mouth, phunk.face, phunk.emotion, phunk.neck, phunk.nose, phunk.cheeks, phunk.teeth ]; uint attrCount = punkAttributeCount(phunk); uint attrsCounted; for (uint i; i < 13; ++i) { PunkAttributeValue attrVal = attrArray[i]; if (attrVal != none) { attrsCounted++; outputBytes.appendSafe(bytes(punkAttributeAsJSON(attrVal))); if (attrsCounted < attrCount) { outputBytes.appendSafe(","); } } } return string(abi.encodePacked(outputBytes, "]")); } function punkAttributeAsJSON(PunkAttributeValue attribute) internal view returns (string memory json) { require(attribute != PunkAttributeValue.NONE); string memory attributeAsString = extendedPunkDataContract.attrEnumToStringMapping(ExtendedPunkDataInterface.PunkAttributeValue(uint(attribute))); string memory attributeTypeAsString; PunkAttributeType attrType = PunkAttributeType( uint( extendedPunkDataContract.attrValueToTypeEnumMapping( ExtendedPunkDataInterface.PunkAttributeValue( uint( attribute ))))); if (attrType == PunkAttributeType.SEX) { attributeTypeAsString = "Sex"; } else if (attrType == PunkAttributeType.HAIR) { attributeTypeAsString = "Hair"; } else if (attrType == PunkAttributeType.EYES) { attributeTypeAsString = "Eyes"; } else if (attrType == PunkAttributeType.BEARD) { attributeTypeAsString = "Beard"; } else if (attrType == PunkAttributeType.EARS) { attributeTypeAsString = "Ears"; } else if (attrType == PunkAttributeType.LIPS) { attributeTypeAsString = "Lips"; } else if (attrType == PunkAttributeType.MOUTH) { attributeTypeAsString = "Mouth"; } else if (attrType == PunkAttributeType.FACE) { attributeTypeAsString = "Face"; } else if (attrType == PunkAttributeType.EMOTION) { attributeTypeAsString = "Emotion"; } else if (attrType == PunkAttributeType.NECK) { attributeTypeAsString = "Neck"; } else if (attrType == PunkAttributeType.NOSE) { attributeTypeAsString = "Nose"; } else if (attrType == PunkAttributeType.CHEEKS) { attributeTypeAsString = "Cheeks"; } else if (attrType == PunkAttributeType.TEETH) { attributeTypeAsString = "Teeth"; } return string(abi.encodePacked('{"trait_type":"', attributeTypeAsString, '", "value":"', attributeAsString, '"}')); } function walletOfOwner(address _owner) external view returns (uint16[] memory) { uint ownerTokenCount = balanceOf(_owner); uint16[] memory ownedTokenIds = new uint16[](ownerTokenCount); uint currentTokenId = 0; uint ownedTokenIndex = 0; while (ownedTokenIndex < ownerTokenCount && currentTokenId < config.maxSupply) { address currentTokenOwner = _exists(currentTokenId) ? ownerOf(currentTokenId) : address(0); if (currentTokenOwner == _owner) { ownedTokenIds[ownedTokenIndex] = uint16(currentTokenId); ownedTokenIndex++; } currentTokenId++; } return ownedTokenIds; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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 pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension. This does random batch minting. */ contract ERC721r is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint => uint) private _availableTokens; uint256 private _numAvailableTokens; uint256 immutable _maxSupply; // 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_, uint maxSupply_) { _name = name_; _symbol = symbol_; _maxSupply = maxSupply_; _numAvailableTokens = maxSupply_; } /** * @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); } function totalSupply() public view virtual returns (uint256) { return _maxSupply - _numAvailableTokens; } function maxSupply() public view virtual returns (uint256) { return _maxSupply; } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); 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: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be 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 = ERC721r.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); 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: transfer caller is not 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: transfer caller is not 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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721r.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _mintIdWithoutBalanceUpdate(address to, uint256 tokenId) private { _beforeTokenTransfer(address(0), to, tokenId); _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } function _mintRandom(address to, uint _numToMint) internal virtual { require(_msgSender() == tx.origin, "Contracts cannot mint"); require(to != address(0), "ERC721: mint to the zero address"); require(_numToMint > 0, "ERC721r: need to mint at least one token"); // TODO: Probably don't need this as it will underflow and revert automatically in this case require(_numAvailableTokens >= _numToMint, "ERC721r: minting more tokens than available"); uint updatedNumAvailableTokens = _numAvailableTokens; for (uint256 i; i < _numToMint; ++i) { // Do this ++ unchecked? uint256 tokenId = getRandomAvailableTokenId(to, updatedNumAvailableTokens); _mintIdWithoutBalanceUpdate(to, tokenId); --updatedNumAvailableTokens; } _numAvailableTokens = updatedNumAvailableTokens; _balances[to] += _numToMint; } function getRandomAvailableTokenId(address to, uint updatedNumAvailableTokens) internal returns (uint256) { uint256 randomNum = uint256( keccak256( abi.encode( to, tx.gasprice, block.number, block.timestamp, block.difficulty, blockhash(block.number - 1), address(this), updatedNumAvailableTokens ) ) ); uint256 randomIndex = randomNum % updatedNumAvailableTokens; return getAvailableTokenAtIndex(randomIndex, updatedNumAvailableTokens); } // Implements https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle. Code taken from CryptoPhunksV2 function getAvailableTokenAtIndex(uint256 indexToUse, uint updatedNumAvailableTokens) internal returns (uint256) { uint256 valAtIndex = _availableTokens[indexToUse]; uint256 result; if (valAtIndex == 0) { // This means the index itself is still an available token result = indexToUse; } else { // This means the index itself is not an available token, but the val at that index is. result = valAtIndex; } uint256 lastIndex = updatedNumAvailableTokens - 1; if (indexToUse != lastIndex) { // Replace the value at indexToUse, now that it's been used. // Replace it with the data from the last index in the array, since we are going to decrease the array size afterwards. uint256 lastValInArray = _availableTokens[lastIndex]; if (lastValInArray == 0) { // This means the index itself is still an available token _availableTokens[indexToUse] = lastIndex; } else { // This means the index itself is not an available token, but the val at that index is. _availableTokens[indexToUse] = lastValInArray; // Gas refund courtsey of @dievardump delete _availableTokens[lastIndex]; } } return result; } // Not as good as minting a specific tokenId, but will behave the same at the start // allowing you to explicitly mint some tokens at launch. function _mintAtIndex(address to, uint index) internal virtual { require(_msgSender() == tx.origin, "Contracts cannot mint"); require(to != address(0), "ERC721: mint to the zero address"); require(_numAvailableTokens >= 1, "ERC721r: minting more tokens than available"); uint tokenId = getAvailableTokenAtIndex(index, _numAvailableTokens); --_numAvailableTokens; _mintIdWithoutBalanceUpdate(to, tokenId); _balances[to] += 1; } /** * @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(ERC721r.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 a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721r.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {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 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 { 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 // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0; /// @title DynamicBuffer /// @author David Huber (@cxkoda) and Simon Fremaux (@dievardump). See also /// https://raw.githubusercontent.com/dievardump/solidity-dynamic-buffer /// @notice This library is used to allocate a big amount of container memory // which will be subsequently filled without needing to reallocate /// memory. /// @dev First, allocate memory. /// Then use `buffer.appendUnchecked(theBytes)` or `appendSafe()` if /// bounds checking is required. library DynamicBuffer { /// @notice Allocates container space for the DynamicBuffer /// @param capacity The intended max amount of bytes in the buffer /// @return buffer The memory location of the buffer /// @dev Allocates `capacity + 0x60` bytes of space /// The buffer array starts at the first container data position, /// (i.e. `buffer = container + 0x20`) function allocate(uint256 capacity) internal pure returns (bytes memory buffer) { assembly { // Get next-free memory address let container := mload(0x40) // Allocate memory by setting a new next-free address { // Add 2 x 32 bytes in size for the two length fields // Add 32 bytes safety space for 32B chunked copy let size := add(capacity, 0x60) let newNextFree := add(container, size) mstore(0x40, newNextFree) } // Set the correct container length { let length := add(capacity, 0x40) mstore(container, length) } // The buffer starts at idx 1 in the container (0 is length) buffer := add(container, 0x20) // Init content with length 0 mstore(buffer, 0) } return buffer; } /// @notice Appends data to buffer, and update buffer length /// @param buffer the buffer to append the data to /// @param data the data to append /// @dev Does not perform out-of-bound checks (container capacity) /// for efficiency. function appendUnchecked(bytes memory buffer, bytes memory data) internal pure { assembly { let length := mload(data) for { data := add(data, 0x20) let dataEnd := add(data, length) let copyTo := add(buffer, add(mload(buffer), 0x20)) } lt(data, dataEnd) { data := add(data, 0x20) copyTo := add(copyTo, 0x20) } { // Copy 32B chunks from data to buffer. // This may read over data array boundaries and copy invalid // bytes, which doesn't matter in the end since we will // later set the correct buffer length, and have allocated an // additional word to avoid buffer overflow. mstore(copyTo, mload(data)) } // Update buffer length mstore(buffer, add(mload(buffer), length)) } } /// @notice Appends data to buffer, and update buffer length /// @param buffer the buffer to append the data to /// @param data the data to append /// @dev Performs out-of-bound checks and calls `appendUnchecked`. function appendSafe(bytes memory buffer, bytes memory data) internal pure { uint256 capacity; uint256 length; assembly { capacity := sub(mload(sub(buffer, 0x20)), 0x40) length := mload(buffer) } require( length + data.length <= capacity, "DynamicBuffer: Appending out of bounds." ); appendUnchecked(buffer, data); } }
pragma solidity ^0.8.0; /** * Strings Library * * In summary this is a simple library of string functions which make simple * string operations less tedious in solidity. * * Please be aware these functions can be quite gas heavy so use them only when * necessary not to clog the blockchain with expensive transactions. * * @author James Lockhart <[email protected]> */ library StringUtils { /** * Concat (High gas cost) * * Appends two strings together and returns a new value * * @param _base When being used for a data type this is the extended object * otherwise this is the string which will be the concatenated * prefix * @param _value The value to be the concatenated suffix * @return string The resulting string from combinging the base and value */ function concat(string memory _base, string memory _value) internal pure returns (string memory) { bytes memory _baseBytes = bytes(_base); bytes memory _valueBytes = bytes(_value); assert(_valueBytes.length > 0); string memory _tmpValue = new string(_baseBytes.length + _valueBytes.length); bytes memory _newValue = bytes(_tmpValue); uint i; uint j; for (i = 0; i < _baseBytes.length; i++) { _newValue[j++] = _baseBytes[i]; } for (i = 0; i < _valueBytes.length; i++) { _newValue[j++] = _valueBytes[i]; } return string(_newValue); } /** * Index Of * * Locates and returns the position of a character within a string * * @param _base When being used for a data type this is the extended object * otherwise this is the string acting as the haystack to be * searched * @param _value The needle to search for, at present this is currently * limited to one character * @return int The position of the needle starting from 0 and returning -1 * in the case of no matches found */ function indexOf(string memory _base, string memory _value) internal pure returns (int) { return _indexOf(_base, _value, 0); } /** * Index Of * * Locates and returns the position of a character within a string starting * from a defined offset * * @param _base When being used for a data type this is the extended object * otherwise this is the string acting as the haystack to be * searched * @param _value The needle to search for, at present this is currently * limited to one character * @param _offset The starting point to start searching from which can start * from 0, but must not exceed the length of the string * @return int The position of the needle starting from 0 and returning -1 * in the case of no matches found */ function _indexOf(string memory _base, string memory _value, uint _offset) internal pure returns (int) { bytes memory _baseBytes = bytes(_base); bytes memory _valueBytes = bytes(_value); assert(_valueBytes.length == 1); for (uint i = _offset; i < _baseBytes.length; i++) { if (_baseBytes[i] == _valueBytes[0]) { return int(i); } } return -1; } /** * Length * * Returns the length of the specified string * * @param _base When being used for a data type this is the extended object * otherwise this is the string to be measured * @return uint The length of the passed string */ function length(string memory _base) internal pure returns (uint) { bytes memory _baseBytes = bytes(_base); return _baseBytes.length; } /** * Sub String * * Extracts the beginning part of a string based on the desired length * * @param _base When being used for a data type this is the extended object * otherwise this is the string that will be used for * extracting the sub string from * @param _length The length of the sub string to be extracted from the base * @return string The extracted sub string */ function substring(string memory _base, int _length) internal pure returns (string memory) { return _substring(_base, _length, 0); } /** * Sub String * * Extracts the part of a string based on the desired length and offset. The * offset and length must not exceed the lenth of the base string. * * @param _base When being used for a data type this is the extended object * otherwise this is the string that will be used for * extracting the sub string from * @param _length The length of the sub string to be extracted from the base * @param _offset The starting point to extract the sub string from * @return string The extracted sub string */ function _substring(string memory _base, int _length, int _offset) internal pure returns (string memory) { bytes memory _baseBytes = bytes(_base); assert(uint(_offset + _length) <= _baseBytes.length); string memory _tmp = new string(uint(_length)); bytes memory _tmpBytes = bytes(_tmp); uint j = 0; for (uint i = uint(_offset); i < uint(_offset + _length); i++) { _tmpBytes[j++] = _baseBytes[i]; } return string(_tmpBytes); } function split(string memory _base, string memory _value) internal pure returns (string[] memory splitArr) { bytes memory _baseBytes = bytes(_base); uint _offset = 0; uint _splitsCount = 1; while (_offset < _baseBytes.length - 1) { int _limit = _indexOf(_base, _value, _offset); if (_limit == -1) break; else { _splitsCount++; _offset = uint(_limit) + 1; } } splitArr = new string[](_splitsCount); _offset = 0; _splitsCount = 0; while (_offset < _baseBytes.length - 1) { int _limit = _indexOf(_base, _value, _offset); if (_limit == - 1) { _limit = int(_baseBytes.length); } string memory _tmp = new string(uint(_limit) - _offset); bytes memory _tmpBytes = bytes(_tmp); uint j = 0; for (uint i = _offset; i < uint(_limit); i++) { _tmpBytes[j++] = _baseBytes[i]; } _offset = uint(_limit) + 1; splitArr[_splitsCount++] = string(_tmpBytes); } return splitArr; } /** * Compare To * * Compares the characters of two strings, to ensure that they have an * identical footprint * * @param _base When being used for a data type this is the extended object * otherwise this is the string base to compare against * @param _value The string the base is being compared to * @return bool Simply notates if the two string have an equivalent */ function compareTo(string memory _base, string memory _value) internal pure returns (bool) { bytes memory _baseBytes = bytes(_base); bytes memory _valueBytes = bytes(_value); if (_baseBytes.length != _valueBytes.length) { return false; } for (uint i = 0; i < _baseBytes.length; i++) { if (_baseBytes[i] != _valueBytes[i]) { return false; } } return true; } /** * Compare To Ignore Case (High gas cost) * * Compares the characters of two strings, converting them to the same case * where applicable to alphabetic characters to distinguish if the values * match. * * @param _base When being used for a data type this is the extended object * otherwise this is the string base to compare against * @param _value The string the base is being compared to * @return bool Simply notates if the two string have an equivalent value * discarding case */ function compareToIgnoreCase(string memory _base, string memory _value) internal pure returns (bool) { bytes memory _baseBytes = bytes(_base); bytes memory _valueBytes = bytes(_value); if (_baseBytes.length != _valueBytes.length) { return false; } for (uint i = 0; i < _baseBytes.length; i++) { if (_baseBytes[i] != _valueBytes[i] && _upper(_baseBytes[i]) != _upper(_valueBytes[i])) { return false; } } return true; } /** * Upper * * Converts all the values of a string to their corresponding upper case * value. * * @param _base When being used for a data type this is the extended object * otherwise this is the string base to convert to upper case * @return string */ function upper(string memory _base) internal pure returns (string memory) { bytes memory _baseBytes = bytes(_base); for (uint i = 0; i < _baseBytes.length; i++) { _baseBytes[i] = _upper(_baseBytes[i]); } return string(_baseBytes); } /** * Lower * * Converts all the values of a string to their corresponding lower case * value. * * @param _base When being used for a data type this is the extended object * otherwise this is the string base to convert to lower case * @return string */ function lower(string memory _base) internal pure returns (string memory) { bytes memory _baseBytes = bytes(_base); for (uint i = 0; i < _baseBytes.length; i++) { _baseBytes[i] = _lower(_baseBytes[i]); } return string(_baseBytes); } /** * Upper * * Convert an alphabetic character to upper case and return the original * value when not alphabetic * * @param _b1 The byte to be converted to upper case * @return bytes1 The converted value if the passed value was alphabetic * and in a lower case otherwise returns the original value */ function _upper(bytes1 _b1) private pure returns (bytes1) { if (_b1 >= 0x61 && _b1 <= 0x7A) { return bytes1(uint8(_b1) - 32); } return _b1; } /** * Lower * * Convert an alphabetic character to lower case and return the original * value when not alphabetic * * @param _b1 The byte to be converted to lower case * @return bytes1 The converted value if the passed value was alphabetic * and in a upper case otherwise returns the original value */ function _lower(bytes1 _b1) private pure returns (bytes1) { if (_b1 >= 0x41 && _b1 <= 0x5A) { return bytes1(uint8(_b1) + 32); } return _b1; } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": true, "runs": 200, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"punkDataContractAddress","type":"address"},{"internalType":"address","name":"extendedPunkDataContractAddress","type":"address"},{"components":[{"internalType":"bool","name":"isMintActive","type":"bool"},{"internalType":"bool","name":"contractSealed","type":"bool"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"nameSingular","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"externalLink","type":"string"},{"internalType":"string","name":"tokenDescriptionAsJSON","type":"string"},{"internalType":"string","name":"baseImageUri","type":"string"},{"internalType":"uint256","name":"costPerToken","type":"uint256"},{"internalType":"uint64","name":"maxSupply","type":"uint64"}],"internalType":"struct Vertigo.ContractConfig","name":"_config","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"bool","name":"isMintActive","type":"bool"},{"internalType":"bool","name":"contractSealed","type":"bool"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"nameSingular","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"externalLink","type":"string"},{"internalType":"string","name":"tokenDescriptionAsJSON","type":"string"},{"internalType":"string","name":"baseImageUri","type":"string"},{"internalType":"uint256","name":"costPerToken","type":"uint256"},{"internalType":"uint64","name":"maxSupply","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extendedPunkDataContract","outputs":[{"internalType":"contract ExtendedPunkDataInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint16","name":"id","type":"uint16"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"sex","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"hair","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"eyes","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"beard","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"ears","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"lips","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"mouth","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"face","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"emotion","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"neck","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"nose","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"cheeks","type":"uint8"},{"internalType":"enum Vertigo.PunkAttributeValue","name":"teeth","type":"uint8"}],"internalType":"struct Vertigo.Punk","name":"phunk","type":"tuple"}],"name":"punkAttributeCount","outputs":[{"internalType":"uint256","name":"totalCount","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"punkId","type":"uint16"}],"name":"punkAttributesAsJSON","outputs":[{"internalType":"string","name":"json","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punkDataContract","outputs":[{"internalType":"contract PunkDataInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"punkRects","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":[{"components":[{"internalType":"bool","name":"isMintActive","type":"bool"},{"internalType":"bool","name":"contractSealed","type":"bool"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"nameSingular","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"externalLink","type":"string"},{"internalType":"string","name":"tokenDescriptionAsJSON","type":"string"},{"internalType":"string","name":"baseImageUri","type":"string"},{"internalType":"uint256","name":"costPerToken","type":"uint256"},{"internalType":"uint64","name":"maxSupply","type":"uint64"}],"internalType":"struct Vertigo.ContractConfig","name":"_config","type":"tuple"}],"name":"setContractConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenHTMLPage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenImage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"totalMintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b5060405162005ee538038062005ee5833981016040819052620000349162000569565b60405180602001604052806000815250604051806020016040528060008152508261012001516001600160401b03166200007d62000077620001a760201b60201c565b620001ab565b60016200008b8482620006da565b5060026200009a8382620006da565b5060808190526004555050805160098054602084015115156101000261ff00199315159390931661ffff19909116179190911781556040820151829190600a90620000e69082620006da565b5060608201516002820190620000fd9082620006da565b5060808201516003820190620001149082620006da565b5060a082015160048201906200012b9082620006da565b5060c08201516005820190620001429082620006da565b5060e08201516006820190620001599082620006da565b50610100820151600782015561012090910151600890910180546001600160401b0319166001600160401b03909216919091179055506001600160a01b0391821660a0521660c052620007aa565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0382165b92915050565b6200021981620001fb565b81146200022557600080fd5b50565b805162000208816200020e565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b038211171562000273576200027362000235565b6040525050565b60006200028660405190565b90506200029482826200024b565b919050565b80151562000219565b8051620002088162000299565b60006001600160401b03821115620002cb57620002cb62000235565b601f19601f83011660200192915050565b60005b83811015620002f9578181015183820152602001620002df565b8381111562000309576000848401525b50505050565b6000620003266200032084620002af565b6200027a565b905082815260208101848484011115620003435762000343600080fd5b62000350848285620002dc565b509392505050565b600082601f8301126200036e576200036e600080fd5b8151620003808482602086016200030f565b949350505050565b8062000219565b8051620002088162000388565b6001600160401b03811662000219565b805162000208816200039c565b60006101408284031215620003d157620003d1600080fd5b620003de6101406200027a565b90506000620003ee8484620002a2565b82525060206200040184848301620002a2565b60208301525060408201516001600160401b03811115620004255762000425600080fd5b620004338482850162000358565b60408301525060608201516001600160401b03811115620004575762000457600080fd5b620004658482850162000358565b60608301525060808201516001600160401b03811115620004895762000489600080fd5b620004978482850162000358565b60808301525060a08201516001600160401b03811115620004bb57620004bb600080fd5b620004c98482850162000358565b60a08301525060c08201516001600160401b03811115620004ed57620004ed600080fd5b620004fb8482850162000358565b60c08301525060e08201516001600160401b038111156200051f576200051f600080fd5b6200052d8482850162000358565b60e08301525061010062000544848285016200038f565b610100830152506101206200055c84828501620003ac565b6101208301525092915050565b600080600060608486031215620005835762000583600080fd5b600062000591868662000228565b9350506020620005a48682870162000228565b92505060408401516001600160401b03811115620005c557620005c5600080fd5b620005d386828701620003b9565b9150509250925092565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200060857607f821691505b6020821081036200061d576200061d620005dd565b50919050565b600062000208620006318381565b90565b6200063f8362000623565b81546008840282811b60001990911b908116901990911617825550505050565b60006200066e81848462000634565b505050565b818110156200069257620006896000826200065f565b60010162000673565b5050565b601f8211156200066e576000818152602090206020601f85010481016020851015620006bf5750805b620006d36020601f86010483018262000673565b5050505050565b81516001600160401b03811115620006f657620006f662000235565b620007028254620005f3565b6200070f82828562000696565b6020601f8311600181146200074657600084156200072d5750858201515b600019600886021c1981166002860217865550620007a2565b600085815260208120601f198616915b8281101562000778578885015182556020948501946001909201910162000756565b86831015620007955784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b60805160a05160c0516156da6200080b6000396000818161033901528181611d5501528181611df3015281816121e901526122a20152600081816102f8015281816115ba0152611bfa0152600081816105fa0152610bcf01526156da6000f3fe6080604052600436106101ed5760003560e01c80636696f9101161010d578063a22cb465116100a0578063cb4171551161006f578063cb417155146105ab578063cf348425146105cb578063d5abeb01146105eb578063e985e9c51461061e578063f2fde38b1461063e57600080fd5b8063a22cb4651461052b578063b0e344fa1461054b578063b88d4fde1461056b578063c87b56dd1461058b57600080fd5b80638ba4cc3c116100dc5780638ba4cc3c146104d25780638da5cb5b146104e557806395d89b4114610503578063a0712d681461051857600080fd5b80636696f9101461045257806370a0823114610472578063715018a61461049257806379502c55146104a757600080fd5b806318160ddd11610185578063438b630011610154578063438b6300146103c55780634f02f4d2146103f25780634f558e79146104125780636352211e1461043257600080fd5b806318160ddd1461035b57806323b872dd146103705780633ccfd60b1461039057806342842e0e146103a557600080fd5b8063081812fc116101c1578063081812fc14610297578063095ea7b3146102c45780630f5a9f89146102e6578063137fee321461032757600080fd5b806270cb32146101f257806301ffc9a714610228578063023abe2b1461025557806306fdde0314610282575b600080fd5b3480156101fe57600080fd5b5061021261020d36600461357e565b61065e565b60405161021f91906135a7565b60405180910390f35b34801561023457600080fd5b506102486102433660046135d0565b610674565b60405161021f91906135f9565b34801561026157600080fd5b5061027561027036600461361c565b6106c4565b60405161021f919061369b565b34801561028e57600080fd5b50610275610a55565b3480156102a357600080fd5b506102b76102b236600461357e565b610aea565b60405161021f91906136c6565b3480156102d057600080fd5b506102e46102df3660046136e8565b610b43565b005b3480156102f257600080fd5b5061031a7f000000000000000000000000000000000000000000000000000000000000000081565b60405161021f9190613767565b34801561033357600080fd5b5061031a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561036757600080fd5b50610212610bc8565b34801561037c57600080fd5b506102e461038b366004613775565b610bfd565b34801561039c57600080fd5b506102e4610c2e565b3480156103b157600080fd5b506102e46103c0366004613775565b610ca7565b3480156103d157600080fd5b506103e56103e03660046137c5565b610cc2565b60405161021f919061384d565b3480156103fe57600080fd5b5061021261040d366004613a1c565b610dd1565b34801561041e57600080fd5b5061024861042d36600461357e565b611081565b34801561043e57600080fd5b506102b761044d36600461357e565b6110a0565b34801561045e57600080fd5b5061027561046d36600461357e565b6110d5565b34801561047e57600080fd5b5061021261048d3660046137c5565b6111a8565b34801561049e57600080fd5b506102e46111ec565b3480156104b357600080fd5b506104bc611200565b60405161021f9a99989796959493929190613a4d565b6102e46104e03660046136e8565b611580565b3480156104f157600080fd5b506000546001600160a01b03166102b7565b34801561050f57600080fd5b5061027561158a565b6102e461052636600461357e565b61159c565b34801561053757600080fd5b506102e4610546366004613b1f565b6115a9565b34801561055757600080fd5b5061027561056636600461357e565b6115b4565b34801561057757600080fd5b506102e4610586366004613bed565b61188d565b34801561059757600080fd5b506102756105a636600461357e565b6118c5565b3480156105b757600080fd5b506102e46105c6366004613c87565b611905565b3480156105d757600080fd5b506102756105e636600461357e565b611942565b3480156105f757600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610212565b34801561062a57600080fd5b50610248610639366004613cc1565b611a8d565b34801561064a57600080fd5b506102e46106593660046137c5565b611abb565b60105460009061066e9083613d0a565b92915050565b60006001600160e01b031982166380ac58cd60e01b14806106a557506001600160e01b03198216635b5e139f60e01b145b8061066e57506301ffc9a760e01b6001600160e01b031983161461066e565b606060006106d183611af2565b60408051620100608101909152620100408152600060209091018181529192509061071e604051806040016040528060018152602001605b60f81b8152508261218090919063ffffffff16565b6000604051806101a001604052808560200151605c81111561074257610742613d29565b605c81111561075357610753613d29565b81526020018560400151605c81111561076e5761076e613d29565b605c81111561077f5761077f613d29565b81526020018560600151605c81111561079a5761079a613d29565b605c8111156107ab576107ab613d29565b81526020018560800151605c8111156107c6576107c6613d29565b605c8111156107d7576107d7613d29565b81526020018560a00151605c8111156107f2576107f2613d29565b605c81111561080357610803613d29565b81526020018560c00151605c81111561081e5761081e613d29565b605c81111561082f5761082f613d29565b81526020018560e00151605c81111561084a5761084a613d29565b605c81111561085b5761085b613d29565b8152602001856101000151605c81111561087757610877613d29565b605c81111561088857610888613d29565b8152602001856101200151605c8111156108a4576108a4613d29565b605c8111156108b5576108b5613d29565b8152602001856101400151605c8111156108d1576108d1613d29565b605c8111156108e2576108e2613d29565b8152602001856101600151605c8111156108fe576108fe613d29565b605c81111561090f5761090f613d29565b8152602001856101800151605c81111561092b5761092b613d29565b605c81111561093c5761093c613d29565b8152602001856101a00151605c81111561095857610958613d29565b605c81111561096957610969613d29565b90529050600061097885610dd1565b90506000805b600d811015610a275760008482600d811061099b5761099b613d3f565b6020020151905086605c8111156109b4576109b4613d29565b81605c8111156109c6576109c6613d29565b14610a1657826109d581613d55565b9350506109eb6109e4826121c5565b8790612180565b83831015610a16576040805180820190915260018152600b60fa1b6020820152610a16908790612180565b50610a2081613d55565b905061097e565b5083604051602001610a399190613d9f565b6040516020818303038152906040529650505050505050919050565b606060096001018054610a6790613dcc565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9390613dcc565b8015610ae05780601f10610ab557610100808354040283529160200191610ae0565b820191906000526020600020905b815481529060010190602001808311610ac357829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b0316610b275760405162461bcd60e51b8152600401610b1e90613e3e565b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610b4e826110a0565b9050806001600160a01b0316836001600160a01b031603610b815760405162461bcd60e51b8152600401610b1e90613e8c565b336001600160a01b0382161480610b9d5750610b9d8133611a8d565b610bb95760405162461bcd60e51b8152600401610b1e90613ef6565b610bc383836126bb565b505050565b60006004547f0000000000000000000000000000000000000000000000000000000000000000610bf89190613f06565b905090565b610c073382612729565b610c235760405162461bcd60e51b8152600401610b1e90613f6b565b610bc38383836127bb565b60004711610c4e5760405162461bcd60e51b8152600401610b1e90613fa8565b476000610c5c600283613fce565b9050610c7c73c2172a6315c1d7f6855768f843c420ebb36eda97826128dd565b610ca373f98537696e2cf486f8f32604b2ca2cda120dbba8610c9e8385613f06565b6128dd565b5050565b610bc38383836040518060200160405280600081525061188d565b60606000610ccf836111a8565b90506000816001600160401b03811115610ceb57610ceb61385e565b604051908082528060200260200182016040528015610d14578160200160208202803683370190505b5090506000805b8381108015610d3457506011546001600160401b031682105b15610dc7576000828152600560205260408120546001600160a01b0316610d5c576000610d65565b610d65836110a0565b9050866001600160a01b0316816001600160a01b031603610db45782848381518110610d9357610d93613d3f565b61ffff9092166020928302919091019091015281610db081613d55565b9250505b82610dbe81613d55565b93505050610d1b565b5090949350505050565b600080604051806101a001604052808460200151605c811115610df657610df6613d29565b605c811115610e0757610e07613d29565b81526020018460400151605c811115610e2257610e22613d29565b605c811115610e3357610e33613d29565b81526020018460600151605c811115610e4e57610e4e613d29565b605c811115610e5f57610e5f613d29565b81526020018460800151605c811115610e7a57610e7a613d29565b605c811115610e8b57610e8b613d29565b81526020018460a00151605c811115610ea657610ea6613d29565b605c811115610eb757610eb7613d29565b81526020018460c00151605c811115610ed257610ed2613d29565b605c811115610ee357610ee3613d29565b81526020018460e00151605c811115610efe57610efe613d29565b605c811115610f0f57610f0f613d29565b8152602001846101000151605c811115610f2b57610f2b613d29565b605c811115610f3c57610f3c613d29565b8152602001846101200151605c811115610f5857610f58613d29565b605c811115610f6957610f69613d29565b8152602001846101400151605c811115610f8557610f85613d29565b605c811115610f9657610f96613d29565b8152602001846101600151605c811115610fb257610fb2613d29565b605c811115610fc357610fc3613d29565b8152602001846101800151605c811115610fdf57610fdf613d29565b605c811115610ff057610ff0613d29565b8152602001846101a00151605c81111561100c5761100c613d29565b605c81111561101d5761101d613d29565b9052905060005b600d81101561107a5760008282600d811061104157611041613d3f565b6020020151605c81111561105757611057613d29565b1461106a578261106681613d55565b9350505b61107381613d55565b9050611024565b5050919050565b6000818152600560205260408120546001600160a01b0316151561066e565b6000818152600560205260408120546001600160a01b03168061066e5760405162461bcd60e51b8152600401610b1e90614028565b60408051620200608101909152620200408152600060209091018181526060916110fe84611942565b90506111486040518060400160405280601f81526020017f3c21444f43545950452068746d6c3e3c68746d6c206c616e673d22656e223e008152508361218090919063ffffffff16565b61117160405160200161115a90614038565b60408051601f198184030181529190528390612180565b61117b8282612180565b6111a1604051806103c0016040528061038b815260200161529e61038b91398390612180565b5092915050565b60006001600160a01b0382166111d05760405162461bcd60e51b8152600401610b1e906141d6565b506001600160a01b031660009081526006602052604090205490565b6111f4612979565b6111fe60006129a3565b565b60098054600a805460ff808416946101009094041692919061122190613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461124d90613dcc565b801561129a5780601f1061126f5761010080835404028352916020019161129a565b820191906000526020600020905b81548152906001019060200180831161127d57829003601f168201915b5050505050908060020180546112af90613dcc565b80601f01602080910402602001604051908101604052809291908181526020018280546112db90613dcc565b80156113285780601f106112fd57610100808354040283529160200191611328565b820191906000526020600020905b81548152906001019060200180831161130b57829003601f168201915b50505050509080600301805461133d90613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461136990613dcc565b80156113b65780601f1061138b576101008083540402835291602001916113b6565b820191906000526020600020905b81548152906001019060200180831161139957829003601f168201915b5050505050908060040180546113cb90613dcc565b80601f01602080910402602001604051908101604052809291908181526020018280546113f790613dcc565b80156114445780601f1061141957610100808354040283529160200191611444565b820191906000526020600020905b81548152906001019060200180831161142757829003601f168201915b50505050509080600501805461145990613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461148590613dcc565b80156114d25780601f106114a7576101008083540402835291602001916114d2565b820191906000526020600020905b8154815290600101906020018083116114b557829003601f168201915b5050505050908060060180546114e790613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461151390613dcc565b80156115605780601f1061153557610100808354040283529160200191611560565b820191906000526020600020905b81548152906001019060200180831161154357829003601f168201915b5050505060078301546008909301549192916001600160401b031690508a565b610ca382826129f3565b606060096003018054610a6790613dcc565b6115a633826129f3565b50565b610ca3338383612a46565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633e5e0a96846040518263ffffffff1660e01b815260040161160491906141e6565b600060405180830381865afa158015611621573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611649919081019061424c565b60408051616060810182526160408152600060209182018181528351600880825281860190955294955093909290918201818036833701905050905060005b6018811015610dc75760005b601881101561187a576000816116ab846018613d0a565b6116b59190614286565b6116c0906004613d0a565b90506000866116d0836003614286565b815181106116e0576116e0613d3f565b016020015160f81c11156118675760005b6004811015611801576000876117078385614286565b8151811061171757611717613d3f565b016020015160f81c90506f181899199a1a9b1b9c1cb0b131b232b360811b600f82166010811061174957611749613d3f565b1a60f81b86611759846002613d0a565b611764906001614286565b8151811061177457611774613d3f565b60200101906001600160f81b031916908160001a90535060041c600f166f181899199a1a9b1b9c1cb0b131b232b360811b81601081106117b6576117b6613d3f565b1a60f81b866117c6846002613d0a565b815181106117d6576117d6613d3f565b60200101906001600160f81b031916908160001a9053505080806117f990613d55565b9150506116f1565b50600061180d83612ae8565b61181685612ae8565b6040516020016118279291906142cc565b6040516020818303038152906040529050611865818660405160200161184e929190614310565b60408051601f198184030181529190528790612180565b505b508061187281613d55565b915050611694565b508061188581613d55565b915050611688565b6118973383612729565b6118b35760405162461bcd60e51b8152600401610b1e90613f6b565b6118bf84848484612be8565b50505050565b6000818152600560205260409020546060906001600160a01b03166118fc5760405162461bcd60e51b8152600401610b1e90614372565b61066e82612c1b565b61190d612979565b600954610100900460ff16156119355760405162461bcd60e51b8152600401610b1e906143a9565b806009610bc382826147ad565b6040805162020060810190915262020040815260006020909101818152606091610168906119708280613fce565b905061199b604051602001611984906147b7565b60408051601f198184030181529190528490612180565b6119ae6119a7866115b4565b8490612180565b60408051808201909152600b81526a1e17b39f1e17b232b3399f60a91b60208201526119db908490612180565b6119fe6040518060600160405280603c8152602001615669603c91398490612180565b60005b82811015611a5757611a45611a1e611a198385613d0a565b612ae8565b604051602001611a2e91906148c8565b60408051601f198184030181529190528590612180565b80611a4f81613d55565b915050611a01565b5060408051808201909152600a8152691e17b39f1e17b9bb339f60b11b6020820152611a84908490612180565b50909392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b611ac3612979565b6001600160a01b038116611ae95760405162461bcd60e51b8152600401610b1e90614952565b6115a6816129a3565b611b64604080516101c0810190915260008082526020820190815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905290565b604080516101c0810190915261ffff831681526000906020810182815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905261ffff84168082526040516376dfe29760e01b81529192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916376dfe29791611c2e91906004016141e6565b600060405180830381865afa158015611c4b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c73919081019061424c565b90506000611ca3604051806040016040528060018152602001600b60fa1b81525083612d0890919063ffffffff16565b905060005b8151811015612176576000828281518110611cc557611cc5613d3f565b6020026020010151905060606001831015611d1e576040805180820190915260018152600160fd1b6020820152611cfd908390612d08565b600081518110611d0f57611d0f613d3f565b60200260200101519050611d3b565b611d3860018351611d2f9190613f06565b83906001612ef3565b90505b604051631a2d891b60e31b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d16c48d890611d8a90859060040161369b565b602060405180830381865afa158015611da7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dcb919061496d565b605c811115611ddc57611ddc613d29565b605c811115611ded57611ded613d29565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663683375c483605c811115611e3257611e32613d29565b605c811115611e4357611e43613d29565b6040518263ffffffff1660e01b8152600401611e5f91906149bc565b602060405180830381865afa158015611e7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea091906149e2565b600c811115611eb157611eb1613d29565b600c811115611ec257611ec2613d29565b9050600081600c811115611ed857611ed8613d29565b03611f0e576020880182605c811115611ef357611ef3613d29565b9081605c811115611f0657611f06613d29565b90525061215f565b600181600c811115611f2257611f22613d29565b03611f3d576040880182605c811115611ef357611ef3613d29565b600281600c811115611f5157611f51613d29565b03611f6c576060880182605c811115611ef357611ef3613d29565b600381600c811115611f8057611f80613d29565b03611f9b576080880182605c811115611ef357611ef3613d29565b600481600c811115611faf57611faf613d29565b03611fca5760a0880182605c811115611ef357611ef3613d29565b600581600c811115611fde57611fde613d29565b03611ff95760c0880182605c811115611ef357611ef3613d29565b600681600c81111561200d5761200d613d29565b036120285760e0880182605c811115611ef357611ef3613d29565b600781600c81111561203c5761203c613d29565b0361205857610100880182605c811115611ef357611ef3613d29565b600881600c81111561206c5761206c613d29565b0361208857610120880182605c811115611ef357611ef3613d29565b600981600c81111561209c5761209c613d29565b036120b857610140880182605c811115611ef357611ef3613d29565b600a81600c8111156120cc576120cc613d29565b036120e857610160880182605c811115611ef357611ef3613d29565b600b81600c8111156120fc576120fc613d29565b0361211857610180880182605c811115611ef357611ef3613d29565b600c81600c81111561212c5761212c613d29565b0361215f576101a0880182605c81111561214857612148613d29565b9081605c81111561215b5761215b613d29565b9052505b50505050808061216e90613d55565b915050611ca8565b5091949350505050565b601f1982015182518251603f1990920191829061219d9083614286565b11156121bb5760405162461bcd60e51b8152600401610b1e90614a47565b6118bf8484612fe5565b6060600082605c8111156121db576121db613d29565b036121e557600080fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fc9faca584605c81111561222857612228613d29565b605c81111561223957612239613d29565b6040518263ffffffff1660e01b815260040161225591906149bc565b600060405180830381865afa158015612272573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261229a919081019061424c565b9050606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663683375c486605c8111156122e1576122e1613d29565b605c8111156122f2576122f2613d29565b6040518263ffffffff1660e01b815260040161230e91906149bc565b602060405180830381865afa15801561232b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061234f91906149e2565b600c81111561236057612360613d29565b600c81111561237157612371613d29565b9050600081600c81111561238757612387613d29565b036123af57604051806040016040528060038152602001620a6caf60eb1b815250915061268f565b600181600c8111156123c3576123c3613d29565b036123ec57604051806040016040528060048152602001632430b4b960e11b815250915061268f565b600281600c81111561240057612400613d29565b0361242957604051806040016040528060048152602001634579657360e01b815250915061268f565b600381600c81111561243d5761243d613d29565b0361246757604051806040016040528060058152602001641099585c9960da1b815250915061268f565b600481600c81111561247b5761247b613d29565b036124a457604051806040016040528060048152602001634561727360e01b815250915061268f565b600581600c8111156124b8576124b8613d29565b036124e157604051806040016040528060048152602001634c69707360e01b815250915061268f565b600681600c8111156124f5576124f5613d29565b0361251f576040518060400160405280600581526020016409adeeae8d60db1b815250915061268f565b600781600c81111561253357612533613d29565b0361255c57604051806040016040528060048152602001634661636560e01b815250915061268f565b600881600c81111561257057612570613d29565b0361259c576040518060400160405280600781526020016622b6b7ba34b7b760c91b815250915061268f565b600981600c8111156125b0576125b0613d29565b036125d957604051806040016040528060048152602001634e65636b60e01b815250915061268f565b600a81600c8111156125ed576125ed613d29565b0361261657604051806040016040528060048152602001634e6f736560e01b815250915061268f565b600b81600c81111561262a5761262a613d29565b036126555760405180604001604052806006815260200165436865656b7360d01b815250915061268f565b600c81600c81111561266957612669613d29565b0361268f57604051806040016040528060058152602001640a8cacae8d60db1b81525091505b81836040516020016126a2929190614a69565b6040516020818303038152906040529350505050919050565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906126f0826110a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b031661275d5760405162461bcd60e51b8152600401610b1e90614b02565b6000612768836110a0565b9050806001600160a01b0316846001600160a01b031614806127a35750836001600160a01b031661279884610aea565b6001600160a01b0316145b806127b357506127b38185611a8d565b949350505050565b826001600160a01b03166127ce826110a0565b6001600160a01b0316146127f45760405162461bcd60e51b8152600401610b1e90614b54565b6001600160a01b03821661281a5760405162461bcd60e51b8152600401610b1e90614ba5565b6128256000826126bb565b6001600160a01b038316600090815260066020526040812080546001929061284e908490613f06565b90915550506001600160a01b038216600090815260066020526040812080546001929061287c908490614286565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156128fd5760405162461bcd60e51b8152600401610b1e90614be9565b6000826001600160a01b03168260405161291690614bf9565b60006040518083038185875af1925050503d8060008114612953576040519150601f19603f3d011682016040523d82523d6000602084013e612958565b606091505b5050905080610bc35760405162461bcd60e51b8152600401610b1e90614c5e565b6000546001600160a01b031633146111fe5760405162461bcd60e51b8152600401610b1e90614ca0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6129fc8161065e565b3414612a1a5760405162461bcd60e51b8152600401610b1e90614cd9565b60095460ff16612a3c5760405162461bcd60e51b8152600401610b1e90614d12565b610ca3828261301b565b816001600160a01b0316836001600160a01b031603612a775760405162461bcd60e51b8152600401610b1e90614d56565b6001600160a01b0383811660008181526008602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612adb9085906135f9565b60405180910390a3505050565b606081600003612b0f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b395780612b2381613d55565b9150612b329050600a83613fce565b9150612b13565b6000816001600160401b03811115612b5357612b5361385e565b6040519080825280601f01601f191660200182016040528015612b7d576020820181803683370190505b5090505b84156127b357612b92600183613f06565b9150612b9f600a86614d66565b612baa906030614286565b60f81b818381518110612bbf57612bbf613d3f565b60200101906001600160f81b031916908160001a905350612be1600a86613fce565b9450612b81565b612bf38484846127bb565b612bff8484848461311d565b6118bf5760405162461bcd60e51b8152600401610b1e90614dc9565b60606000600b612c2e61ffff8516612ae8565b604051602001612c3f929190614e57565b60405160208183030381529060405290506000612c5f8461ffff166110d5565b90506000612c6c8261321e565b90506000600f612c7f61ffff8816612ae8565b604051602001612c90929190614e6e565b60408051601f198184030181529190529050612cde84600e83600d86612cb58c6106c4565b604051602001612cca96959493929190614ef4565b60405160208183030381529060405261321e565b604051602001612cee9190614ff0565b604051602081830303815290604052945050505050919050565b606082600060015b60018351612d1e9190613f06565b821015612d61576000612d32878785613382565b90508019612d405750612d61565b81612d4a81613d55565b9250612d599050816001614286565b925050612d10565b806001600160401b03811115612d7957612d7961385e565b604051908082528060200260200182016040528015612dac57816020015b6060815260200190600190039081612d975790505b50935060009150600090505b60018351612dc69190613f06565b821015612eea576000612dda878785613382565b90508019612de6575082515b6000612df28483613f06565b6001600160401b03811115612e0957612e0961385e565b6040519080825280601f01601f191660200182016040528015612e33576020820181803683370190505b509050806000855b84811015612eaa57878181518110612e5557612e55613d3f565b01602001516001600160f81b0319168383612e6f81613d55565b945081518110612e8157612e81613d3f565b60200101906001600160f81b031916908160001a90535080612ea281613d55565b915050612e3b565b50612eb6846001614286565b9550818886612ec481613d55565b975081518110612ed657612ed6613d3f565b602002602001018190525050505050612db8565b50505092915050565b82516060908490612f048585615022565b1115612f1257612f1261505e565b6000846001600160401b03811115612f2c57612f2c61385e565b6040519080825280601f01601f191660200182016040528015612f56576020820181803683370190505b509050806000855b612f688888615022565b811015612fd657848181518110612f8157612f81613d3f565b01602001516001600160f81b0319168383612f9b81613d55565b945081518110612fad57612fad613d3f565b60200101906001600160f81b031916908160001a90535080612fce81613d55565b915050612f5e565b509093505050505b9392505050565b8051602082019150808201602084510184015b81841015613010578351815260209384019301612ff8565b505082510190915250565b33321461303a5760405162461bcd60e51b8152600401610b1e906150a0565b6001600160a01b0382166130605760405162461bcd60e51b8152600401610b1e906150e2565b600081116130805760405162461bcd60e51b8152600401610b1e90615137565b8060045410156130a25760405162461bcd60e51b8152600401610b1e9061518f565b60045460005b828110156130e55760006130bc858461341d565b90506130c88582613485565b6130d18361519f565b925050806130de90613d55565b90506130a8565b5060048190556001600160a01b03831660009081526006602052604081208054849290613113908490614286565b9091555050505050565b60006001600160a01b0384163b1561321357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131619033908990889088906004016151b6565b6020604051808303816000875af192505050801561319c575060408051601f3d908101601f1916820190925261319991810190615205565b60015b6131f9573d8080156131ca576040519150601f19603f3d011682016040523d82523d6000602084013e6131cf565b606091505b5080516000036131f15760405162461bcd60e51b8152600401610b1e90614dc9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127b3565b506001949350505050565b6060815160000361323d57505060408051602081019091526000815290565b6000604051806060016040528060408152602001615629604091399050600060038451600261326c9190614286565b6132769190613fce565b613281906004613d0a565b90506000613290826020614286565b6001600160401b038111156132a7576132a761385e565b6040519080825280601f01601f1916602001820160405280156132d1576020820181803683370190505b509050818152600183018586518101602084015b8183101561333d576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016132e5565b600389510660018114613357576002811461336857613374565b613d3d60f01b600119830152613374565b603d60f81b6000198301525b509398975050505050505050565b81516000908490849060011461339a5761339a61505e565b835b825181101561340f57816000815181106133b8576133b8613d3f565b602001015160f81c60f81b6001600160f81b0319168382815181106133df576133df613d3f565b01602001516001600160f81b031916036133fd579250612fde915050565b8061340781613d55565b91505061339c565b506000199695505050505050565b600080833a434244613430600184613f06565b40308960405160200161344a989796959493929190615226565b60408051601f198184030181529190528051602090910120905060006134708483614d66565b905061347c81856134de565b95945050505050565b60008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600082815260036020526040812054818181036134fc5750836134ff565b50805b600061350c600186613f06565b905080861461355d576000818152600360205260408120549081900361354257600087815260036020526040902082905561355b565b6000878152600360205260408082208390558382528120555b505b50949350505050565b805b81146115a657600080fd5b803561066e81613566565b60006020828403121561359357613593600080fd5b60006127b38484613573565b805b82525050565b6020810161066e828461359f565b6001600160e01b03198116613568565b803561066e816135b5565b6000602082840312156135e5576135e5600080fd5b60006127b384846135c5565b8015156135a1565b6020810161066e82846135f1565b61ffff8116613568565b803561066e81613607565b60006020828403121561363157613631600080fd5b60006127b38484613611565b60005b83811015613658578181015183820152602001613640565b838111156118bf5750506000910152565b6000613673825190565b80845260208401935061368a81856020860161363d565b601f01601f19169290920192915050565b60208082528101612fde8184613669565b60006001600160a01b03821661066e565b6135a1816136ac565b6020810161066e82846136bd565b613568816136ac565b803561066e816136d4565b600080604083850312156136fe576136fe600080fd5b600061370a85856136dd565b925050602061371b85828601613573565b9150509250929050565b600061066e6001600160a01b03831661373c565b90565b6001600160a01b031690565b600061066e82613725565b600061066e82613748565b6135a181613753565b6020810161066e828461375e565b60008060006060848603121561378d5761378d600080fd5b600061379986866136dd565b93505060206137aa868287016136dd565b92505060406137bb86828701613573565b9150509250925092565b6000602082840312156137da576137da600080fd5b60006127b384846136dd565b61ffff81166135a1565b60006137fc83836137e6565b505060200190565b600061380e825190565b80845260209384019383018060005b8381101561384257815161383188826137f0565b97506020830192505060010161381d565b509495945050505050565b60208082528101612fde8184613804565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156138995761389961385e565b6040525050565b60006138ab60405190565b90506138b78282613874565b919050565b605d81106115a657600080fd5b803561066e816138bc565b60006101c082840312156138ea576138ea600080fd5b6138f56101c06138a0565b905060006139038484613611565b8252506020613914848483016138c9565b6020830152506040613928848285016138c9565b604083015250606061393c848285016138c9565b6060830152506080613950848285016138c9565b60808301525060a0613964848285016138c9565b60a08301525060c0613978848285016138c9565b60c08301525060e061398c848285016138c9565b60e0830152506101006139a1848285016138c9565b610100830152506101206139b7848285016138c9565b610120830152506101406139cd848285016138c9565b610140830152506101606139e3848285016138c9565b610160830152506101806139f9848285016138c9565b610180830152506101a0613a0f848285016138c9565b6101a08301525092915050565b60006101c08284031215613a3257613a32600080fd5b60006127b384846138d4565b6001600160401b0381166135a1565b6101408101613a5c828d6135f1565b613a69602083018c6135f1565b8181036040830152613a7b818b613669565b90508181036060830152613a8f818a613669565b90508181036080830152613aa38189613669565b905081810360a0830152613ab78188613669565b905081810360c0830152613acb8187613669565b905081810360e0830152613adf8186613669565b9050613aef61010083018561359f565b613afd610120830184613a3e565b9b9a5050505050505050505050565b801515613568565b803561066e81613b0c565b60008060408385031215613b3557613b35600080fd5b6000613b4185856136dd565b925050602061371b85828601613b14565b60006001600160401b03821115613b6b57613b6b61385e565b601f19601f83011660200192915050565b82818337506000910152565b6000613b9b613b9684613b52565b6138a0565b905082815260208101848484011115613bb657613bb6600080fd5b613bc1848285613b7c565b509392505050565b600082601f830112613bdd57613bdd600080fd5b81356127b3848260208601613b88565b60008060008060808587031215613c0657613c06600080fd5b6000613c1287876136dd565b9450506020613c23878288016136dd565b9350506040613c3487828801613573565b92505060608501356001600160401b03811115613c5357613c53600080fd5b613c5f87828801613bc9565b91505092959194509250565b60006101408284031215613c8157613c81600080fd5b50919050565b600060208284031215613c9c57613c9c600080fd5b81356001600160401b03811115613cb557613cb5600080fd5b6127b384828501613c6b565b60008060408385031215613cd757613cd7600080fd5b6000613ce385856136dd565b925050602061371b858286016136dd565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613d2457613d24613cf4565b500290565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006000198203613d6857613d68613cf4565b5060010190565b6000613d79825190565b613d8781856020860161363d565b9290920192915050565b605d60f81b81526000613d68565b6000613dab8284613d6f565b9150612fde82613d91565b634e487b7160e01b600052602260045260246000fd5b600281046001821680613de057607f821691505b602082108103613c8157613c81613db6565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b6020808252810161066e81613df2565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150613e37565b6020808252810161066e81613e4e565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150613e37565b6020808252810161066e81613e9c565b600082821015613f1857613f18613cf4565b500390565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150613e37565b6020808252810161066e81613f1d565b60138152600060208201724e6f7468696e6720746f20776974686472617760681b815291505b5060200190565b6020808252810161066e81613f7b565b634e487b7160e01b600052601260045260246000fd5b600082613fdd57613fdd613fb8565b500490565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150613e37565b6020808252810161066e81613fe2565b7f3c626f64793e3c7374796c653e2a7b626f782d73697a696e673a626f7264657281527f2d626f783b6d617267696e3a303b70616464696e673a303b626f726465723a3060208201527f3b7472616e73666f726d2d6f726967696e3a2063656e7465727d207376677b6260408201527f61636b67726f756e643a233633383539363b6c6566743a203530253b746f703a60608201527f203530253b7472616e73666f726d3a207472616e736c617465282d3530252c2060808201527f2d353025293b706f736974696f6e3a2066697865643b6173706563742d72617460a08201527f696f3a2031202f20313b6d61782d77696474683a20313030766d696e3b6d617860c08201527f2d6865696768743a20313030766d696e3b77696474683a20313030253b20686560e08201527334b3b43a1d10189818129dbe9e17b9ba3cb6329f60611b6101008201526000610114820161066e565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150613e37565b6020808252810161066e8161418f565b6020810161066e82846137e6565b6000614202613b9684613b52565b90508281526020810184848401111561421d5761421d600080fd5b613bc184828561363d565b600082601f83011261423c5761423c600080fd5b81516127b38482602086016141f4565b60006020828403121561426157614261600080fd5b81516001600160401b0381111561427a5761427a600080fd5b6127b384828501614228565b6000821982111561429957614299613cf4565b500190565b681e3932b1ba103c1e9160b91b815260005b5060090190565b6411103c9e9160d91b815260005b5060050190565b60006142d78261429e565b91506142e38285613d6f565b91506142ee826142b7565b91506127b38284613d6f565b68222066696c6c3d222360b81b815260006142b0565b600061431c8285613d6f565b9150614327826142fa565b91506143338284613d6f565b6211179f60e91b81529150600382016127b3565b6014815260006020820173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81529150613fa1565b6020808252810161066e81614347565b601081526000602082016f21b7b73a3930b1ba1039b2b0b632b21760811b81529150613fa1565b6020808252810161066e81614382565b6000813561066e81613b0c565b600060ff835b81169019929092169190911792915050565b600081151561066e565b6143f1826143de565b6143fc8183546143c6565b8255505050565b600061ff006143cc8460081b90565b61441b826143de565b6143fc818354614403565b6000808335601e193685900301811261444157614441600080fd5b8084019250823591506001600160401b0382111561446157614461600080fd5b60208301925060018202360383131561447c5761447c600080fd5b509250929050565b600061066e6137398381565b61449983614484565b81546008840282811b60001990911b908116901990911617825550505050565b6000610bc3818484614490565b81811015610ca3576144d96000826144b9565b6001016144c6565b601f821115610bc3576000818152602090206020601f850104810160208510156145085750805b61451a6020601f8601048301826144c6565b5050505050565b826001600160401b038111156145395761453961385e565b6145438254613dcc565b61454e8282856144e1565b6000601f831160018114614582576000841561456a5750858201355b600019600886021c19811660028602178655506145db565b600085815260208120601f198616915b828110156145b25788850135825560209485019460019092019101614592565b868310156145ce57600019601f88166008021c19858a01351682555b6001600288020188555050505b50505050505050565b610bc3838383614521565b6000813561066e81613566565b6000600019836143cc565b61461082614484565b6143fc8183546145fc565b6001600160401b038116613568565b6000813561066e8161461b565b60006001600160401b03836143cc565b60006001600160401b03821661066e565b61466182614647565b6143fc818354614637565b808280614678816143b9565b905061468481846143e8565b50829150506020830180614697816143b9565b90506146a38184614412565b50505060018101604083016146b88185614426565b6146c38183866145e4565b5050505060028101606083016146d98185614426565b6146e48183866145e4565b5050505060038101608083016146fa8185614426565b6147058183866145e4565b505050506004810160a0830161471b8185614426565b6147268183866145e4565b505050506005810160c0830161473c8185614426565b6147478183866145e4565b505050506006810160e0830161475d8185614426565b6147688183866145e4565b505050506007810161010083018061477f816145ef565b905061478b8184614607565b505050600881016101208301806147a18161462a565b905061451a8184614658565b610ca3828261466c565b7f3c7376672077696474683d223132303022206865696768743d2231323030222081527f73686170652d72656e646572696e673d22637269737045646765732220786d6c60208201527f6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222060408201527f76657273696f6e3d22312e32222076696577426f783d2230203020323420323460608201527f223e3c7374796c653e726563747b77696474683a3170783b6865696768743a3160808201527f70787d3c2f7374796c653e3c646566733e3c67206f7061636974793d22302e3060a0820152691a911034b21e9139111f60b11b60c0820152600060ca820161066e565b64149110179f60d91b815260006142c5565b7f3c75736520687265663d22237222207472616e73666f726d3d22726f746174658152600560fb1b602082015260210160006149048284613d6f565b9150612fde826148b6565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150613e37565b6020808252810161066e8161490f565b805161066e816138bc565b60006020828403121561498257614982600080fd5b60006127b38484614962565b605d81106115a6576115a6613d29565b806138b78161498e565b600061066e8261499e565b6135a1816149a8565b6020810161066e82846149b3565b600d81106115a657600080fd5b805161066e816149ca565b6000602082840312156149f7576149f7600080fd5b60006127b384846149d7565b602781526000602082017f44796e616d69634275666665723a20417070656e64696e67206f7574206f66208152663137bab732399760c91b60208201529150613e37565b6020808252810161066e81614a03565b61227d60f01b815260005b5060020190565b6e3d913a3930b4ba2fba3cb832911d1160891b8152600f016000614a8d8285613d6f565b6b111610113b30b63ab2911d1160a11b8152600c019150614aae8284613d6f565b91506127b382614a57565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150613e37565b6020808252810161066e81614ab9565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b60208201529150613e37565b6020808252810161066e81614b12565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150613e37565b6020808252810161066e81614b64565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150613fa1565b6020808252810161066e81614bb5565b600061066e82613739565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150613e37565b6020808252810161066e81614c04565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613fa1565b6020808252810161066e81614c6e565b60128152600060208201711399595908195e1858dd081c185e5b595b9d60721b81529150613fa1565b6020808252810161066e81614cb0565b60128152600060208201714d696e74206973206e6f742061637469766560701b81529150613fa1565b6020808252810161066e81614ce9565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613fa1565b6020808252810161066e81614d22565b600082614d7557614d75613fb8565b500690565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150613e37565b6020808252810161066e81614d7a565b60008154614de681613dcc565b600182168015614dfd5760018114614e1257612eea565b60ff1983168652811515820286019350612eea565b60008581526020902060005b83811015614e3a57815488820152600190910190602001614e1e565b505050939093019392505050565b61202360f01b81526000614a62565b6000614e638285614dd9565b91506142ee82614e48565b6000614e7a8285614dd9565b9150614e868284613d6f565b632e706e6760e01b81529150600482016127b3565b607b60f81b81526000613d68565b6f1116113232b9b1b934b83a34b7b7111d60811b815260005b5060100190565b6f011161130ba3a3934b13aba32b9911d160851b81526000614ec2565b607d60f81b81526000613d68565b6000614eff82614e9b565b67113730b6b2911d1160c11b81526008019150614f1c8289613d6f565b9150614f2782614ea9565b9150614f338288614dd9565b69161134b6b0b3b2911d1160b11b8152600a019150614f528287613d6f565b7111161132bc3a32b93730b62fbab936111d1160711b81526012019150614f798286614dd9565b7f222c2268746d6c223a22646174613a746578742f68746d6c3b6368617273657481526d0f5d5d198b4e0ed8985cd94d8d0b60921b6020820152602e019150614fc28285613d6f565b9150614fcd82614ec9565b9150614fd98284613d6f565b9150614fe482614ee6565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d016000612fde8284613d6f565b6000816001600160ff1b030383136000831215161561504357615043613cf4565b81600160ff1b03831260008312161561429957614299613cf4565b634e487b7160e01b600052600160045260246000fd5b601581526000602082017410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b81529150613fa1565b6020808252810161066e81615074565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613fa1565b6020808252810161066e816150b0565b602881526000602082017f455243373231723a206e65656420746f206d696e74206174206c65617374206f8152673732903a37b5b2b760c11b60208201529150613e37565b6020808252810161066e816150f2565b602b81526000602082017f455243373231723a206d696e74696e67206d6f726520746f6b656e732074686181526a6e20617661696c61626c6560a81b60208201529150613e37565b6020808252810161066e81615147565b6000816151ae576151ae613cf4565b506000190190565b608081016151c482876136bd565b6151d160208301866136bd565b6151de604083018561359f565b81810360608301526151f08184613669565b9695505050505050565b805161066e816135b5565b60006020828403121561521a5761521a600080fd5b60006127b384846151fa565b6101008101615235828b6136bd565b615242602083018a61359f565b61524f604083018961359f565b61525c606083018861359f565b615269608083018761359f565b61527660a083018661359f565b61528360c08301856136bd565b61529060e083018461359f565b999850505050505050505056fe3c7363726970743e76617220737667456c3d646f63756d656e742e717565727953656c6563746f72282273766722292c72656374733d41727261792e66726f6d28646f63756d656e742e717565727953656c6563746f72416c6c2822237220726563742229292c737667426f783d737667456c2e676574426f756e64696e67436c69656e745265637428292c73766743656e7465723d5b737667426f782e6c6566742b737667426f782e77696474682f322c737667426f782e746f702b737667426f782e6865696768742f325d2c64697374616e63654d656d6f3d7b7d2c64697374616e636546726f6d52656374546f53564743656e7465723d66756e6374696f6e2874297b76617220653d742e676574426f756e64696e67436c69656e745265637428292c723d4a534f4e2e737472696e676966792865293b69662864697374616e63654d656d6f5b725d2972657475726e2064697374616e63654d656d6f5b725d3b766172206f3d5b652e6c6566742c652e746f705d2c733d5b652e6c6566742c652e746f702b652e6865696768745d2c6e3d5b652e6c6566742b652e6865696768742c652e746f705d2c613d5b652e6c6566742b652e77696474682c652e746f702b652e6865696768745d2c633d4d6174682e6d6178282e2e2e5b6f2c732c6e2c615d2e6d61702828743d3e4d6174682e73717274284d6174682e706f7728745b305d2d73766743656e7465725b305d2c32292b4d6174682e706f7728745b315d2d73766743656e7465725b315d2c3229292929293b72657475726e2064697374616e63654d656d6f5b725d3d632c637d2c736f727465643d72656374732e736f7274282828742c65293d3e64697374616e636546726f6d52656374546f53564743656e7465722865292d64697374616e636546726f6d52656374546f53564743656e74657228742929292c66617274686573743d736f727465645b305d2c66617244697374616e63653d64697374616e636546726f6d52656374546f53564743656e74657228736f727465645b305d292c666163746f723d737667426f782e77696474682f322f66617244697374616e63653b646f63756d656e742e717565727953656c6563746f722822236122292e7374796c652e7472616e73666f726d3d227363616c6528222b666163746f722b2229222c737667456c2e636c6173734c6973742e6164642822696e697422293b3c2f7363726970743e3c2f626f64793e3c2f68746d6c3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c636972636c652063783d223132222063793d2231322220723d22312e303235222066696c6c3d2223303030303030222f3e3c672069643d2261223ea26469706673582212209682a71f6215c0708a308a54638aba4323813deeb6dd216e57423f71b905aef564736f6c634300080f003300000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b2000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000005400000000000000000000000000000000000000000000000000011c37937e08000000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000075665727469676f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075665727469676f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045645525400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f63617073756c6532312e636f6d2f636f6c6c656374696f6e732f7665727469676f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002aa224f6e65206f662031302c30303020746f6b656e7320696e20746865205665727469676f20636f6c6c656374696f6e2e205468697320504e47207761732067656e6572617465642062792072756e6e696e67207468652062656c6f77204a61766173637269707420636f6465207769746820746865206068746d6c602070726f706572747920696e2060746f6b656e555249602061732069747320696e7075742e5c6e5c6e6060606a6176617363726970745c6e2f2f205573652076657273696f6e2031372e312e335c6e636f6e737420707570706574656572203d2072657175697265282770757070657465657227293b5c6e5c6e636f6e7374206d61696e203d206173796e63202868746d6c2c206f75747075745061746829203d3e207b5c6e2020636f6e73742062726f77736572203d206177616974207075707065746565722e6c61756e6368287b686561646c6573733a20276368726f6d65277d293b5c6e2020636f6e73742070616765203d2061776169742062726f777365722e6e65775061676528293b5c6e5c6e2020617761697420706167652e73657456696577706f7274287b2077696474683a20313230302c206865696768743a2031323030207d293b5c6e5c6e2020617761697420706167652e736574436f6e74656e742868746d6c293b5c6e20205c6e2020617761697420706167652e77616974466f7246756e6374696f6e2827646f63756d656e742e717565727953656c6563746f72285c227376675c22292e636c6173734c6973742e636f6e7461696e73285c22696e69745c222927293b5c6e5c6e2020617761697420706167652e73637265656e73686f74287b20706174683a206f757470757450617468207d293b5c6e202061776169742062726f777365722e636c6f736528293b5c6e7d5c6e5c6e6d61696e28295c6e6060602200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f6d6964646c656d617263682e6d7970696e6174612e636c6f75642f697066732f516d5172526d79364774544c4d735866354375786a53663259457746655872636e72416a3767784c73664d555a482f000000000000000000
Deployed Bytecode
0x6080604052600436106101ed5760003560e01c80636696f9101161010d578063a22cb465116100a0578063cb4171551161006f578063cb417155146105ab578063cf348425146105cb578063d5abeb01146105eb578063e985e9c51461061e578063f2fde38b1461063e57600080fd5b8063a22cb4651461052b578063b0e344fa1461054b578063b88d4fde1461056b578063c87b56dd1461058b57600080fd5b80638ba4cc3c116100dc5780638ba4cc3c146104d25780638da5cb5b146104e557806395d89b4114610503578063a0712d681461051857600080fd5b80636696f9101461045257806370a0823114610472578063715018a61461049257806379502c55146104a757600080fd5b806318160ddd11610185578063438b630011610154578063438b6300146103c55780634f02f4d2146103f25780634f558e79146104125780636352211e1461043257600080fd5b806318160ddd1461035b57806323b872dd146103705780633ccfd60b1461039057806342842e0e146103a557600080fd5b8063081812fc116101c1578063081812fc14610297578063095ea7b3146102c45780630f5a9f89146102e6578063137fee321461032757600080fd5b806270cb32146101f257806301ffc9a714610228578063023abe2b1461025557806306fdde0314610282575b600080fd5b3480156101fe57600080fd5b5061021261020d36600461357e565b61065e565b60405161021f91906135a7565b60405180910390f35b34801561023457600080fd5b506102486102433660046135d0565b610674565b60405161021f91906135f9565b34801561026157600080fd5b5061027561027036600461361c565b6106c4565b60405161021f919061369b565b34801561028e57600080fd5b50610275610a55565b3480156102a357600080fd5b506102b76102b236600461357e565b610aea565b60405161021f91906136c6565b3480156102d057600080fd5b506102e46102df3660046136e8565b610b43565b005b3480156102f257600080fd5b5061031a7f00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b281565b60405161021f9190613767565b34801561033357600080fd5b5061031a7f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a81565b34801561036757600080fd5b50610212610bc8565b34801561037c57600080fd5b506102e461038b366004613775565b610bfd565b34801561039c57600080fd5b506102e4610c2e565b3480156103b157600080fd5b506102e46103c0366004613775565b610ca7565b3480156103d157600080fd5b506103e56103e03660046137c5565b610cc2565b60405161021f919061384d565b3480156103fe57600080fd5b5061021261040d366004613a1c565b610dd1565b34801561041e57600080fd5b5061024861042d36600461357e565b611081565b34801561043e57600080fd5b506102b761044d36600461357e565b6110a0565b34801561045e57600080fd5b5061027561046d36600461357e565b6110d5565b34801561047e57600080fd5b5061021261048d3660046137c5565b6111a8565b34801561049e57600080fd5b506102e46111ec565b3480156104b357600080fd5b506104bc611200565b60405161021f9a99989796959493929190613a4d565b6102e46104e03660046136e8565b611580565b3480156104f157600080fd5b506000546001600160a01b03166102b7565b34801561050f57600080fd5b5061027561158a565b6102e461052636600461357e565b61159c565b34801561053757600080fd5b506102e4610546366004613b1f565b6115a9565b34801561055757600080fd5b5061027561056636600461357e565b6115b4565b34801561057757600080fd5b506102e4610586366004613bed565b61188d565b34801561059757600080fd5b506102756105a636600461357e565b6118c5565b3480156105b757600080fd5b506102e46105c6366004613c87565b611905565b3480156105d757600080fd5b506102756105e636600461357e565b611942565b3480156105f757600080fd5b507f0000000000000000000000000000000000000000000000000000000000002710610212565b34801561062a57600080fd5b50610248610639366004613cc1565b611a8d565b34801561064a57600080fd5b506102e46106593660046137c5565b611abb565b60105460009061066e9083613d0a565b92915050565b60006001600160e01b031982166380ac58cd60e01b14806106a557506001600160e01b03198216635b5e139f60e01b145b8061066e57506301ffc9a760e01b6001600160e01b031983161461066e565b606060006106d183611af2565b60408051620100608101909152620100408152600060209091018181529192509061071e604051806040016040528060018152602001605b60f81b8152508261218090919063ffffffff16565b6000604051806101a001604052808560200151605c81111561074257610742613d29565b605c81111561075357610753613d29565b81526020018560400151605c81111561076e5761076e613d29565b605c81111561077f5761077f613d29565b81526020018560600151605c81111561079a5761079a613d29565b605c8111156107ab576107ab613d29565b81526020018560800151605c8111156107c6576107c6613d29565b605c8111156107d7576107d7613d29565b81526020018560a00151605c8111156107f2576107f2613d29565b605c81111561080357610803613d29565b81526020018560c00151605c81111561081e5761081e613d29565b605c81111561082f5761082f613d29565b81526020018560e00151605c81111561084a5761084a613d29565b605c81111561085b5761085b613d29565b8152602001856101000151605c81111561087757610877613d29565b605c81111561088857610888613d29565b8152602001856101200151605c8111156108a4576108a4613d29565b605c8111156108b5576108b5613d29565b8152602001856101400151605c8111156108d1576108d1613d29565b605c8111156108e2576108e2613d29565b8152602001856101600151605c8111156108fe576108fe613d29565b605c81111561090f5761090f613d29565b8152602001856101800151605c81111561092b5761092b613d29565b605c81111561093c5761093c613d29565b8152602001856101a00151605c81111561095857610958613d29565b605c81111561096957610969613d29565b90529050600061097885610dd1565b90506000805b600d811015610a275760008482600d811061099b5761099b613d3f565b6020020151905086605c8111156109b4576109b4613d29565b81605c8111156109c6576109c6613d29565b14610a1657826109d581613d55565b9350506109eb6109e4826121c5565b8790612180565b83831015610a16576040805180820190915260018152600b60fa1b6020820152610a16908790612180565b50610a2081613d55565b905061097e565b5083604051602001610a399190613d9f565b6040516020818303038152906040529650505050505050919050565b606060096001018054610a6790613dcc565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9390613dcc565b8015610ae05780601f10610ab557610100808354040283529160200191610ae0565b820191906000526020600020905b815481529060010190602001808311610ac357829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b0316610b275760405162461bcd60e51b8152600401610b1e90613e3e565b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610b4e826110a0565b9050806001600160a01b0316836001600160a01b031603610b815760405162461bcd60e51b8152600401610b1e90613e8c565b336001600160a01b0382161480610b9d5750610b9d8133611a8d565b610bb95760405162461bcd60e51b8152600401610b1e90613ef6565b610bc383836126bb565b505050565b60006004547f0000000000000000000000000000000000000000000000000000000000002710610bf89190613f06565b905090565b610c073382612729565b610c235760405162461bcd60e51b8152600401610b1e90613f6b565b610bc38383836127bb565b60004711610c4e5760405162461bcd60e51b8152600401610b1e90613fa8565b476000610c5c600283613fce565b9050610c7c73c2172a6315c1d7f6855768f843c420ebb36eda97826128dd565b610ca373f98537696e2cf486f8f32604b2ca2cda120dbba8610c9e8385613f06565b6128dd565b5050565b610bc38383836040518060200160405280600081525061188d565b60606000610ccf836111a8565b90506000816001600160401b03811115610ceb57610ceb61385e565b604051908082528060200260200182016040528015610d14578160200160208202803683370190505b5090506000805b8381108015610d3457506011546001600160401b031682105b15610dc7576000828152600560205260408120546001600160a01b0316610d5c576000610d65565b610d65836110a0565b9050866001600160a01b0316816001600160a01b031603610db45782848381518110610d9357610d93613d3f565b61ffff9092166020928302919091019091015281610db081613d55565b9250505b82610dbe81613d55565b93505050610d1b565b5090949350505050565b600080604051806101a001604052808460200151605c811115610df657610df6613d29565b605c811115610e0757610e07613d29565b81526020018460400151605c811115610e2257610e22613d29565b605c811115610e3357610e33613d29565b81526020018460600151605c811115610e4e57610e4e613d29565b605c811115610e5f57610e5f613d29565b81526020018460800151605c811115610e7a57610e7a613d29565b605c811115610e8b57610e8b613d29565b81526020018460a00151605c811115610ea657610ea6613d29565b605c811115610eb757610eb7613d29565b81526020018460c00151605c811115610ed257610ed2613d29565b605c811115610ee357610ee3613d29565b81526020018460e00151605c811115610efe57610efe613d29565b605c811115610f0f57610f0f613d29565b8152602001846101000151605c811115610f2b57610f2b613d29565b605c811115610f3c57610f3c613d29565b8152602001846101200151605c811115610f5857610f58613d29565b605c811115610f6957610f69613d29565b8152602001846101400151605c811115610f8557610f85613d29565b605c811115610f9657610f96613d29565b8152602001846101600151605c811115610fb257610fb2613d29565b605c811115610fc357610fc3613d29565b8152602001846101800151605c811115610fdf57610fdf613d29565b605c811115610ff057610ff0613d29565b8152602001846101a00151605c81111561100c5761100c613d29565b605c81111561101d5761101d613d29565b9052905060005b600d81101561107a5760008282600d811061104157611041613d3f565b6020020151605c81111561105757611057613d29565b1461106a578261106681613d55565b9350505b61107381613d55565b9050611024565b5050919050565b6000818152600560205260408120546001600160a01b0316151561066e565b6000818152600560205260408120546001600160a01b03168061066e5760405162461bcd60e51b8152600401610b1e90614028565b60408051620200608101909152620200408152600060209091018181526060916110fe84611942565b90506111486040518060400160405280601f81526020017f3c21444f43545950452068746d6c3e3c68746d6c206c616e673d22656e223e008152508361218090919063ffffffff16565b61117160405160200161115a90614038565b60408051601f198184030181529190528390612180565b61117b8282612180565b6111a1604051806103c0016040528061038b815260200161529e61038b91398390612180565b5092915050565b60006001600160a01b0382166111d05760405162461bcd60e51b8152600401610b1e906141d6565b506001600160a01b031660009081526006602052604090205490565b6111f4612979565b6111fe60006129a3565b565b60098054600a805460ff808416946101009094041692919061122190613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461124d90613dcc565b801561129a5780601f1061126f5761010080835404028352916020019161129a565b820191906000526020600020905b81548152906001019060200180831161127d57829003601f168201915b5050505050908060020180546112af90613dcc565b80601f01602080910402602001604051908101604052809291908181526020018280546112db90613dcc565b80156113285780601f106112fd57610100808354040283529160200191611328565b820191906000526020600020905b81548152906001019060200180831161130b57829003601f168201915b50505050509080600301805461133d90613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461136990613dcc565b80156113b65780601f1061138b576101008083540402835291602001916113b6565b820191906000526020600020905b81548152906001019060200180831161139957829003601f168201915b5050505050908060040180546113cb90613dcc565b80601f01602080910402602001604051908101604052809291908181526020018280546113f790613dcc565b80156114445780601f1061141957610100808354040283529160200191611444565b820191906000526020600020905b81548152906001019060200180831161142757829003601f168201915b50505050509080600501805461145990613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461148590613dcc565b80156114d25780601f106114a7576101008083540402835291602001916114d2565b820191906000526020600020905b8154815290600101906020018083116114b557829003601f168201915b5050505050908060060180546114e790613dcc565b80601f016020809104026020016040519081016040528092919081815260200182805461151390613dcc565b80156115605780601f1061153557610100808354040283529160200191611560565b820191906000526020600020905b81548152906001019060200180831161154357829003601f168201915b5050505060078301546008909301549192916001600160401b031690508a565b610ca382826129f3565b606060096003018054610a6790613dcc565b6115a633826129f3565b50565b610ca3338383612a46565b606060007f00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b26001600160a01b0316633e5e0a96846040518263ffffffff1660e01b815260040161160491906141e6565b600060405180830381865afa158015611621573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611649919081019061424c565b60408051616060810182526160408152600060209182018181528351600880825281860190955294955093909290918201818036833701905050905060005b6018811015610dc75760005b601881101561187a576000816116ab846018613d0a565b6116b59190614286565b6116c0906004613d0a565b90506000866116d0836003614286565b815181106116e0576116e0613d3f565b016020015160f81c11156118675760005b6004811015611801576000876117078385614286565b8151811061171757611717613d3f565b016020015160f81c90506f181899199a1a9b1b9c1cb0b131b232b360811b600f82166010811061174957611749613d3f565b1a60f81b86611759846002613d0a565b611764906001614286565b8151811061177457611774613d3f565b60200101906001600160f81b031916908160001a90535060041c600f166f181899199a1a9b1b9c1cb0b131b232b360811b81601081106117b6576117b6613d3f565b1a60f81b866117c6846002613d0a565b815181106117d6576117d6613d3f565b60200101906001600160f81b031916908160001a9053505080806117f990613d55565b9150506116f1565b50600061180d83612ae8565b61181685612ae8565b6040516020016118279291906142cc565b6040516020818303038152906040529050611865818660405160200161184e929190614310565b60408051601f198184030181529190528790612180565b505b508061187281613d55565b915050611694565b508061188581613d55565b915050611688565b6118973383612729565b6118b35760405162461bcd60e51b8152600401610b1e90613f6b565b6118bf84848484612be8565b50505050565b6000818152600560205260409020546060906001600160a01b03166118fc5760405162461bcd60e51b8152600401610b1e90614372565b61066e82612c1b565b61190d612979565b600954610100900460ff16156119355760405162461bcd60e51b8152600401610b1e906143a9565b806009610bc382826147ad565b6040805162020060810190915262020040815260006020909101818152606091610168906119708280613fce565b905061199b604051602001611984906147b7565b60408051601f198184030181529190528490612180565b6119ae6119a7866115b4565b8490612180565b60408051808201909152600b81526a1e17b39f1e17b232b3399f60a91b60208201526119db908490612180565b6119fe6040518060600160405280603c8152602001615669603c91398490612180565b60005b82811015611a5757611a45611a1e611a198385613d0a565b612ae8565b604051602001611a2e91906148c8565b60408051601f198184030181529190528590612180565b80611a4f81613d55565b915050611a01565b5060408051808201909152600a8152691e17b39f1e17b9bb339f60b11b6020820152611a84908490612180565b50909392505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b611ac3612979565b6001600160a01b038116611ae95760405162461bcd60e51b8152600401610b1e90614952565b6115a6816129a3565b611b64604080516101c0810190915260008082526020820190815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905290565b604080516101c0810190915261ffff831681526000906020810182815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905261ffff84168082526040516376dfe29760e01b81529192506000916001600160a01b037f00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b216916376dfe29791611c2e91906004016141e6565b600060405180830381865afa158015611c4b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c73919081019061424c565b90506000611ca3604051806040016040528060018152602001600b60fa1b81525083612d0890919063ffffffff16565b905060005b8151811015612176576000828281518110611cc557611cc5613d3f565b6020026020010151905060606001831015611d1e576040805180820190915260018152600160fd1b6020820152611cfd908390612d08565b600081518110611d0f57611d0f613d3f565b60200260200101519050611d3b565b611d3860018351611d2f9190613f06565b83906001612ef3565b90505b604051631a2d891b60e31b81526000906001600160a01b037f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a169063d16c48d890611d8a90859060040161369b565b602060405180830381865afa158015611da7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dcb919061496d565b605c811115611ddc57611ddc613d29565b605c811115611ded57611ded613d29565b905060007f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a6001600160a01b031663683375c483605c811115611e3257611e32613d29565b605c811115611e4357611e43613d29565b6040518263ffffffff1660e01b8152600401611e5f91906149bc565b602060405180830381865afa158015611e7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea091906149e2565b600c811115611eb157611eb1613d29565b600c811115611ec257611ec2613d29565b9050600081600c811115611ed857611ed8613d29565b03611f0e576020880182605c811115611ef357611ef3613d29565b9081605c811115611f0657611f06613d29565b90525061215f565b600181600c811115611f2257611f22613d29565b03611f3d576040880182605c811115611ef357611ef3613d29565b600281600c811115611f5157611f51613d29565b03611f6c576060880182605c811115611ef357611ef3613d29565b600381600c811115611f8057611f80613d29565b03611f9b576080880182605c811115611ef357611ef3613d29565b600481600c811115611faf57611faf613d29565b03611fca5760a0880182605c811115611ef357611ef3613d29565b600581600c811115611fde57611fde613d29565b03611ff95760c0880182605c811115611ef357611ef3613d29565b600681600c81111561200d5761200d613d29565b036120285760e0880182605c811115611ef357611ef3613d29565b600781600c81111561203c5761203c613d29565b0361205857610100880182605c811115611ef357611ef3613d29565b600881600c81111561206c5761206c613d29565b0361208857610120880182605c811115611ef357611ef3613d29565b600981600c81111561209c5761209c613d29565b036120b857610140880182605c811115611ef357611ef3613d29565b600a81600c8111156120cc576120cc613d29565b036120e857610160880182605c811115611ef357611ef3613d29565b600b81600c8111156120fc576120fc613d29565b0361211857610180880182605c811115611ef357611ef3613d29565b600c81600c81111561212c5761212c613d29565b0361215f576101a0880182605c81111561214857612148613d29565b9081605c81111561215b5761215b613d29565b9052505b50505050808061216e90613d55565b915050611ca8565b5091949350505050565b601f1982015182518251603f1990920191829061219d9083614286565b11156121bb5760405162461bcd60e51b8152600401610b1e90614a47565b6118bf8484612fe5565b6060600082605c8111156121db576121db613d29565b036121e557600080fd5b60007f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a6001600160a01b031663fc9faca584605c81111561222857612228613d29565b605c81111561223957612239613d29565b6040518263ffffffff1660e01b815260040161225591906149bc565b600060405180830381865afa158015612272573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261229a919081019061424c565b9050606060007f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a6001600160a01b031663683375c486605c8111156122e1576122e1613d29565b605c8111156122f2576122f2613d29565b6040518263ffffffff1660e01b815260040161230e91906149bc565b602060405180830381865afa15801561232b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061234f91906149e2565b600c81111561236057612360613d29565b600c81111561237157612371613d29565b9050600081600c81111561238757612387613d29565b036123af57604051806040016040528060038152602001620a6caf60eb1b815250915061268f565b600181600c8111156123c3576123c3613d29565b036123ec57604051806040016040528060048152602001632430b4b960e11b815250915061268f565b600281600c81111561240057612400613d29565b0361242957604051806040016040528060048152602001634579657360e01b815250915061268f565b600381600c81111561243d5761243d613d29565b0361246757604051806040016040528060058152602001641099585c9960da1b815250915061268f565b600481600c81111561247b5761247b613d29565b036124a457604051806040016040528060048152602001634561727360e01b815250915061268f565b600581600c8111156124b8576124b8613d29565b036124e157604051806040016040528060048152602001634c69707360e01b815250915061268f565b600681600c8111156124f5576124f5613d29565b0361251f576040518060400160405280600581526020016409adeeae8d60db1b815250915061268f565b600781600c81111561253357612533613d29565b0361255c57604051806040016040528060048152602001634661636560e01b815250915061268f565b600881600c81111561257057612570613d29565b0361259c576040518060400160405280600781526020016622b6b7ba34b7b760c91b815250915061268f565b600981600c8111156125b0576125b0613d29565b036125d957604051806040016040528060048152602001634e65636b60e01b815250915061268f565b600a81600c8111156125ed576125ed613d29565b0361261657604051806040016040528060048152602001634e6f736560e01b815250915061268f565b600b81600c81111561262a5761262a613d29565b036126555760405180604001604052806006815260200165436865656b7360d01b815250915061268f565b600c81600c81111561266957612669613d29565b0361268f57604051806040016040528060058152602001640a8cacae8d60db1b81525091505b81836040516020016126a2929190614a69565b6040516020818303038152906040529350505050919050565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906126f0826110a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b031661275d5760405162461bcd60e51b8152600401610b1e90614b02565b6000612768836110a0565b9050806001600160a01b0316846001600160a01b031614806127a35750836001600160a01b031661279884610aea565b6001600160a01b0316145b806127b357506127b38185611a8d565b949350505050565b826001600160a01b03166127ce826110a0565b6001600160a01b0316146127f45760405162461bcd60e51b8152600401610b1e90614b54565b6001600160a01b03821661281a5760405162461bcd60e51b8152600401610b1e90614ba5565b6128256000826126bb565b6001600160a01b038316600090815260066020526040812080546001929061284e908490613f06565b90915550506001600160a01b038216600090815260066020526040812080546001929061287c908490614286565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156128fd5760405162461bcd60e51b8152600401610b1e90614be9565b6000826001600160a01b03168260405161291690614bf9565b60006040518083038185875af1925050503d8060008114612953576040519150601f19603f3d011682016040523d82523d6000602084013e612958565b606091505b5050905080610bc35760405162461bcd60e51b8152600401610b1e90614c5e565b6000546001600160a01b031633146111fe5760405162461bcd60e51b8152600401610b1e90614ca0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6129fc8161065e565b3414612a1a5760405162461bcd60e51b8152600401610b1e90614cd9565b60095460ff16612a3c5760405162461bcd60e51b8152600401610b1e90614d12565b610ca3828261301b565b816001600160a01b0316836001600160a01b031603612a775760405162461bcd60e51b8152600401610b1e90614d56565b6001600160a01b0383811660008181526008602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612adb9085906135f9565b60405180910390a3505050565b606081600003612b0f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b395780612b2381613d55565b9150612b329050600a83613fce565b9150612b13565b6000816001600160401b03811115612b5357612b5361385e565b6040519080825280601f01601f191660200182016040528015612b7d576020820181803683370190505b5090505b84156127b357612b92600183613f06565b9150612b9f600a86614d66565b612baa906030614286565b60f81b818381518110612bbf57612bbf613d3f565b60200101906001600160f81b031916908160001a905350612be1600a86613fce565b9450612b81565b612bf38484846127bb565b612bff8484848461311d565b6118bf5760405162461bcd60e51b8152600401610b1e90614dc9565b60606000600b612c2e61ffff8516612ae8565b604051602001612c3f929190614e57565b60405160208183030381529060405290506000612c5f8461ffff166110d5565b90506000612c6c8261321e565b90506000600f612c7f61ffff8816612ae8565b604051602001612c90929190614e6e565b60408051601f198184030181529190529050612cde84600e83600d86612cb58c6106c4565b604051602001612cca96959493929190614ef4565b60405160208183030381529060405261321e565b604051602001612cee9190614ff0565b604051602081830303815290604052945050505050919050565b606082600060015b60018351612d1e9190613f06565b821015612d61576000612d32878785613382565b90508019612d405750612d61565b81612d4a81613d55565b9250612d599050816001614286565b925050612d10565b806001600160401b03811115612d7957612d7961385e565b604051908082528060200260200182016040528015612dac57816020015b6060815260200190600190039081612d975790505b50935060009150600090505b60018351612dc69190613f06565b821015612eea576000612dda878785613382565b90508019612de6575082515b6000612df28483613f06565b6001600160401b03811115612e0957612e0961385e565b6040519080825280601f01601f191660200182016040528015612e33576020820181803683370190505b509050806000855b84811015612eaa57878181518110612e5557612e55613d3f565b01602001516001600160f81b0319168383612e6f81613d55565b945081518110612e8157612e81613d3f565b60200101906001600160f81b031916908160001a90535080612ea281613d55565b915050612e3b565b50612eb6846001614286565b9550818886612ec481613d55565b975081518110612ed657612ed6613d3f565b602002602001018190525050505050612db8565b50505092915050565b82516060908490612f048585615022565b1115612f1257612f1261505e565b6000846001600160401b03811115612f2c57612f2c61385e565b6040519080825280601f01601f191660200182016040528015612f56576020820181803683370190505b509050806000855b612f688888615022565b811015612fd657848181518110612f8157612f81613d3f565b01602001516001600160f81b0319168383612f9b81613d55565b945081518110612fad57612fad613d3f565b60200101906001600160f81b031916908160001a90535080612fce81613d55565b915050612f5e565b509093505050505b9392505050565b8051602082019150808201602084510184015b81841015613010578351815260209384019301612ff8565b505082510190915250565b33321461303a5760405162461bcd60e51b8152600401610b1e906150a0565b6001600160a01b0382166130605760405162461bcd60e51b8152600401610b1e906150e2565b600081116130805760405162461bcd60e51b8152600401610b1e90615137565b8060045410156130a25760405162461bcd60e51b8152600401610b1e9061518f565b60045460005b828110156130e55760006130bc858461341d565b90506130c88582613485565b6130d18361519f565b925050806130de90613d55565b90506130a8565b5060048190556001600160a01b03831660009081526006602052604081208054849290613113908490614286565b9091555050505050565b60006001600160a01b0384163b1561321357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131619033908990889088906004016151b6565b6020604051808303816000875af192505050801561319c575060408051601f3d908101601f1916820190925261319991810190615205565b60015b6131f9573d8080156131ca576040519150601f19603f3d011682016040523d82523d6000602084013e6131cf565b606091505b5080516000036131f15760405162461bcd60e51b8152600401610b1e90614dc9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127b3565b506001949350505050565b6060815160000361323d57505060408051602081019091526000815290565b6000604051806060016040528060408152602001615629604091399050600060038451600261326c9190614286565b6132769190613fce565b613281906004613d0a565b90506000613290826020614286565b6001600160401b038111156132a7576132a761385e565b6040519080825280601f01601f1916602001820160405280156132d1576020820181803683370190505b509050818152600183018586518101602084015b8183101561333d576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016132e5565b600389510660018114613357576002811461336857613374565b613d3d60f01b600119830152613374565b603d60f81b6000198301525b509398975050505050505050565b81516000908490849060011461339a5761339a61505e565b835b825181101561340f57816000815181106133b8576133b8613d3f565b602001015160f81c60f81b6001600160f81b0319168382815181106133df576133df613d3f565b01602001516001600160f81b031916036133fd579250612fde915050565b8061340781613d55565b91505061339c565b506000199695505050505050565b600080833a434244613430600184613f06565b40308960405160200161344a989796959493929190615226565b60408051601f198184030181529190528051602090910120905060006134708483614d66565b905061347c81856134de565b95945050505050565b60008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600082815260036020526040812054818181036134fc5750836134ff565b50805b600061350c600186613f06565b905080861461355d576000818152600360205260408120549081900361354257600087815260036020526040902082905561355b565b6000878152600360205260408082208390558382528120555b505b50949350505050565b805b81146115a657600080fd5b803561066e81613566565b60006020828403121561359357613593600080fd5b60006127b38484613573565b805b82525050565b6020810161066e828461359f565b6001600160e01b03198116613568565b803561066e816135b5565b6000602082840312156135e5576135e5600080fd5b60006127b384846135c5565b8015156135a1565b6020810161066e82846135f1565b61ffff8116613568565b803561066e81613607565b60006020828403121561363157613631600080fd5b60006127b38484613611565b60005b83811015613658578181015183820152602001613640565b838111156118bf5750506000910152565b6000613673825190565b80845260208401935061368a81856020860161363d565b601f01601f19169290920192915050565b60208082528101612fde8184613669565b60006001600160a01b03821661066e565b6135a1816136ac565b6020810161066e82846136bd565b613568816136ac565b803561066e816136d4565b600080604083850312156136fe576136fe600080fd5b600061370a85856136dd565b925050602061371b85828601613573565b9150509250929050565b600061066e6001600160a01b03831661373c565b90565b6001600160a01b031690565b600061066e82613725565b600061066e82613748565b6135a181613753565b6020810161066e828461375e565b60008060006060848603121561378d5761378d600080fd5b600061379986866136dd565b93505060206137aa868287016136dd565b92505060406137bb86828701613573565b9150509250925092565b6000602082840312156137da576137da600080fd5b60006127b384846136dd565b61ffff81166135a1565b60006137fc83836137e6565b505060200190565b600061380e825190565b80845260209384019383018060005b8381101561384257815161383188826137f0565b97506020830192505060010161381d565b509495945050505050565b60208082528101612fde8184613804565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156138995761389961385e565b6040525050565b60006138ab60405190565b90506138b78282613874565b919050565b605d81106115a657600080fd5b803561066e816138bc565b60006101c082840312156138ea576138ea600080fd5b6138f56101c06138a0565b905060006139038484613611565b8252506020613914848483016138c9565b6020830152506040613928848285016138c9565b604083015250606061393c848285016138c9565b6060830152506080613950848285016138c9565b60808301525060a0613964848285016138c9565b60a08301525060c0613978848285016138c9565b60c08301525060e061398c848285016138c9565b60e0830152506101006139a1848285016138c9565b610100830152506101206139b7848285016138c9565b610120830152506101406139cd848285016138c9565b610140830152506101606139e3848285016138c9565b610160830152506101806139f9848285016138c9565b610180830152506101a0613a0f848285016138c9565b6101a08301525092915050565b60006101c08284031215613a3257613a32600080fd5b60006127b384846138d4565b6001600160401b0381166135a1565b6101408101613a5c828d6135f1565b613a69602083018c6135f1565b8181036040830152613a7b818b613669565b90508181036060830152613a8f818a613669565b90508181036080830152613aa38189613669565b905081810360a0830152613ab78188613669565b905081810360c0830152613acb8187613669565b905081810360e0830152613adf8186613669565b9050613aef61010083018561359f565b613afd610120830184613a3e565b9b9a5050505050505050505050565b801515613568565b803561066e81613b0c565b60008060408385031215613b3557613b35600080fd5b6000613b4185856136dd565b925050602061371b85828601613b14565b60006001600160401b03821115613b6b57613b6b61385e565b601f19601f83011660200192915050565b82818337506000910152565b6000613b9b613b9684613b52565b6138a0565b905082815260208101848484011115613bb657613bb6600080fd5b613bc1848285613b7c565b509392505050565b600082601f830112613bdd57613bdd600080fd5b81356127b3848260208601613b88565b60008060008060808587031215613c0657613c06600080fd5b6000613c1287876136dd565b9450506020613c23878288016136dd565b9350506040613c3487828801613573565b92505060608501356001600160401b03811115613c5357613c53600080fd5b613c5f87828801613bc9565b91505092959194509250565b60006101408284031215613c8157613c81600080fd5b50919050565b600060208284031215613c9c57613c9c600080fd5b81356001600160401b03811115613cb557613cb5600080fd5b6127b384828501613c6b565b60008060408385031215613cd757613cd7600080fd5b6000613ce385856136dd565b925050602061371b858286016136dd565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613d2457613d24613cf4565b500290565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006000198203613d6857613d68613cf4565b5060010190565b6000613d79825190565b613d8781856020860161363d565b9290920192915050565b605d60f81b81526000613d68565b6000613dab8284613d6f565b9150612fde82613d91565b634e487b7160e01b600052602260045260246000fd5b600281046001821680613de057607f821691505b602082108103613c8157613c81613db6565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b6020808252810161066e81613df2565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150613e37565b6020808252810161066e81613e4e565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150613e37565b6020808252810161066e81613e9c565b600082821015613f1857613f18613cf4565b500390565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150613e37565b6020808252810161066e81613f1d565b60138152600060208201724e6f7468696e6720746f20776974686472617760681b815291505b5060200190565b6020808252810161066e81613f7b565b634e487b7160e01b600052601260045260246000fd5b600082613fdd57613fdd613fb8565b500490565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150613e37565b6020808252810161066e81613fe2565b7f3c626f64793e3c7374796c653e2a7b626f782d73697a696e673a626f7264657281527f2d626f783b6d617267696e3a303b70616464696e673a303b626f726465723a3060208201527f3b7472616e73666f726d2d6f726967696e3a2063656e7465727d207376677b6260408201527f61636b67726f756e643a233633383539363b6c6566743a203530253b746f703a60608201527f203530253b7472616e73666f726d3a207472616e736c617465282d3530252c2060808201527f2d353025293b706f736974696f6e3a2066697865643b6173706563742d72617460a08201527f696f3a2031202f20313b6d61782d77696474683a20313030766d696e3b6d617860c08201527f2d6865696768743a20313030766d696e3b77696474683a20313030253b20686560e08201527334b3b43a1d10189818129dbe9e17b9ba3cb6329f60611b6101008201526000610114820161066e565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150613e37565b6020808252810161066e8161418f565b6020810161066e82846137e6565b6000614202613b9684613b52565b90508281526020810184848401111561421d5761421d600080fd5b613bc184828561363d565b600082601f83011261423c5761423c600080fd5b81516127b38482602086016141f4565b60006020828403121561426157614261600080fd5b81516001600160401b0381111561427a5761427a600080fd5b6127b384828501614228565b6000821982111561429957614299613cf4565b500190565b681e3932b1ba103c1e9160b91b815260005b5060090190565b6411103c9e9160d91b815260005b5060050190565b60006142d78261429e565b91506142e38285613d6f565b91506142ee826142b7565b91506127b38284613d6f565b68222066696c6c3d222360b81b815260006142b0565b600061431c8285613d6f565b9150614327826142fa565b91506143338284613d6f565b6211179f60e91b81529150600382016127b3565b6014815260006020820173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81529150613fa1565b6020808252810161066e81614347565b601081526000602082016f21b7b73a3930b1ba1039b2b0b632b21760811b81529150613fa1565b6020808252810161066e81614382565b6000813561066e81613b0c565b600060ff835b81169019929092169190911792915050565b600081151561066e565b6143f1826143de565b6143fc8183546143c6565b8255505050565b600061ff006143cc8460081b90565b61441b826143de565b6143fc818354614403565b6000808335601e193685900301811261444157614441600080fd5b8084019250823591506001600160401b0382111561446157614461600080fd5b60208301925060018202360383131561447c5761447c600080fd5b509250929050565b600061066e6137398381565b61449983614484565b81546008840282811b60001990911b908116901990911617825550505050565b6000610bc3818484614490565b81811015610ca3576144d96000826144b9565b6001016144c6565b601f821115610bc3576000818152602090206020601f850104810160208510156145085750805b61451a6020601f8601048301826144c6565b5050505050565b826001600160401b038111156145395761453961385e565b6145438254613dcc565b61454e8282856144e1565b6000601f831160018114614582576000841561456a5750858201355b600019600886021c19811660028602178655506145db565b600085815260208120601f198616915b828110156145b25788850135825560209485019460019092019101614592565b868310156145ce57600019601f88166008021c19858a01351682555b6001600288020188555050505b50505050505050565b610bc3838383614521565b6000813561066e81613566565b6000600019836143cc565b61461082614484565b6143fc8183546145fc565b6001600160401b038116613568565b6000813561066e8161461b565b60006001600160401b03836143cc565b60006001600160401b03821661066e565b61466182614647565b6143fc818354614637565b808280614678816143b9565b905061468481846143e8565b50829150506020830180614697816143b9565b90506146a38184614412565b50505060018101604083016146b88185614426565b6146c38183866145e4565b5050505060028101606083016146d98185614426565b6146e48183866145e4565b5050505060038101608083016146fa8185614426565b6147058183866145e4565b505050506004810160a0830161471b8185614426565b6147268183866145e4565b505050506005810160c0830161473c8185614426565b6147478183866145e4565b505050506006810160e0830161475d8185614426565b6147688183866145e4565b505050506007810161010083018061477f816145ef565b905061478b8184614607565b505050600881016101208301806147a18161462a565b905061451a8184614658565b610ca3828261466c565b7f3c7376672077696474683d223132303022206865696768743d2231323030222081527f73686170652d72656e646572696e673d22637269737045646765732220786d6c60208201527f6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222060408201527f76657273696f6e3d22312e32222076696577426f783d2230203020323420323460608201527f223e3c7374796c653e726563747b77696474683a3170783b6865696768743a3160808201527f70787d3c2f7374796c653e3c646566733e3c67206f7061636974793d22302e3060a0820152691a911034b21e9139111f60b11b60c0820152600060ca820161066e565b64149110179f60d91b815260006142c5565b7f3c75736520687265663d22237222207472616e73666f726d3d22726f746174658152600560fb1b602082015260210160006149048284613d6f565b9150612fde826148b6565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150613e37565b6020808252810161066e8161490f565b805161066e816138bc565b60006020828403121561498257614982600080fd5b60006127b38484614962565b605d81106115a6576115a6613d29565b806138b78161498e565b600061066e8261499e565b6135a1816149a8565b6020810161066e82846149b3565b600d81106115a657600080fd5b805161066e816149ca565b6000602082840312156149f7576149f7600080fd5b60006127b384846149d7565b602781526000602082017f44796e616d69634275666665723a20417070656e64696e67206f7574206f66208152663137bab732399760c91b60208201529150613e37565b6020808252810161066e81614a03565b61227d60f01b815260005b5060020190565b6e3d913a3930b4ba2fba3cb832911d1160891b8152600f016000614a8d8285613d6f565b6b111610113b30b63ab2911d1160a11b8152600c019150614aae8284613d6f565b91506127b382614a57565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150613e37565b6020808252810161066e81614ab9565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b60208201529150613e37565b6020808252810161066e81614b12565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150613e37565b6020808252810161066e81614b64565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150613fa1565b6020808252810161066e81614bb5565b600061066e82613739565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150613e37565b6020808252810161066e81614c04565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613fa1565b6020808252810161066e81614c6e565b60128152600060208201711399595908195e1858dd081c185e5b595b9d60721b81529150613fa1565b6020808252810161066e81614cb0565b60128152600060208201714d696e74206973206e6f742061637469766560701b81529150613fa1565b6020808252810161066e81614ce9565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613fa1565b6020808252810161066e81614d22565b600082614d7557614d75613fb8565b500690565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150613e37565b6020808252810161066e81614d7a565b60008154614de681613dcc565b600182168015614dfd5760018114614e1257612eea565b60ff1983168652811515820286019350612eea565b60008581526020902060005b83811015614e3a57815488820152600190910190602001614e1e565b505050939093019392505050565b61202360f01b81526000614a62565b6000614e638285614dd9565b91506142ee82614e48565b6000614e7a8285614dd9565b9150614e868284613d6f565b632e706e6760e01b81529150600482016127b3565b607b60f81b81526000613d68565b6f1116113232b9b1b934b83a34b7b7111d60811b815260005b5060100190565b6f011161130ba3a3934b13aba32b9911d160851b81526000614ec2565b607d60f81b81526000613d68565b6000614eff82614e9b565b67113730b6b2911d1160c11b81526008019150614f1c8289613d6f565b9150614f2782614ea9565b9150614f338288614dd9565b69161134b6b0b3b2911d1160b11b8152600a019150614f528287613d6f565b7111161132bc3a32b93730b62fbab936111d1160711b81526012019150614f798286614dd9565b7f222c2268746d6c223a22646174613a746578742f68746d6c3b6368617273657481526d0f5d5d198b4e0ed8985cd94d8d0b60921b6020820152602e019150614fc28285613d6f565b9150614fcd82614ec9565b9150614fd98284613d6f565b9150614fe482614ee6565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d016000612fde8284613d6f565b6000816001600160ff1b030383136000831215161561504357615043613cf4565b81600160ff1b03831260008312161561429957614299613cf4565b634e487b7160e01b600052600160045260246000fd5b601581526000602082017410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b81529150613fa1565b6020808252810161066e81615074565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613fa1565b6020808252810161066e816150b0565b602881526000602082017f455243373231723a206e65656420746f206d696e74206174206c65617374206f8152673732903a37b5b2b760c11b60208201529150613e37565b6020808252810161066e816150f2565b602b81526000602082017f455243373231723a206d696e74696e67206d6f726520746f6b656e732074686181526a6e20617661696c61626c6560a81b60208201529150613e37565b6020808252810161066e81615147565b6000816151ae576151ae613cf4565b506000190190565b608081016151c482876136bd565b6151d160208301866136bd565b6151de604083018561359f565b81810360608301526151f08184613669565b9695505050505050565b805161066e816135b5565b60006020828403121561521a5761521a600080fd5b60006127b384846151fa565b6101008101615235828b6136bd565b615242602083018a61359f565b61524f604083018961359f565b61525c606083018861359f565b615269608083018761359f565b61527660a083018661359f565b61528360c08301856136bd565b61529060e083018461359f565b999850505050505050505056fe3c7363726970743e76617220737667456c3d646f63756d656e742e717565727953656c6563746f72282273766722292c72656374733d41727261792e66726f6d28646f63756d656e742e717565727953656c6563746f72416c6c2822237220726563742229292c737667426f783d737667456c2e676574426f756e64696e67436c69656e745265637428292c73766743656e7465723d5b737667426f782e6c6566742b737667426f782e77696474682f322c737667426f782e746f702b737667426f782e6865696768742f325d2c64697374616e63654d656d6f3d7b7d2c64697374616e636546726f6d52656374546f53564743656e7465723d66756e6374696f6e2874297b76617220653d742e676574426f756e64696e67436c69656e745265637428292c723d4a534f4e2e737472696e676966792865293b69662864697374616e63654d656d6f5b725d2972657475726e2064697374616e63654d656d6f5b725d3b766172206f3d5b652e6c6566742c652e746f705d2c733d5b652e6c6566742c652e746f702b652e6865696768745d2c6e3d5b652e6c6566742b652e6865696768742c652e746f705d2c613d5b652e6c6566742b652e77696474682c652e746f702b652e6865696768745d2c633d4d6174682e6d6178282e2e2e5b6f2c732c6e2c615d2e6d61702828743d3e4d6174682e73717274284d6174682e706f7728745b305d2d73766743656e7465725b305d2c32292b4d6174682e706f7728745b315d2d73766743656e7465725b315d2c3229292929293b72657475726e2064697374616e63654d656d6f5b725d3d632c637d2c736f727465643d72656374732e736f7274282828742c65293d3e64697374616e636546726f6d52656374546f53564743656e7465722865292d64697374616e636546726f6d52656374546f53564743656e74657228742929292c66617274686573743d736f727465645b305d2c66617244697374616e63653d64697374616e636546726f6d52656374546f53564743656e74657228736f727465645b305d292c666163746f723d737667426f782e77696474682f322f66617244697374616e63653b646f63756d656e742e717565727953656c6563746f722822236122292e7374796c652e7472616e73666f726d3d227363616c6528222b666163746f722b2229222c737667456c2e636c6173734c6973742e6164642822696e697422293b3c2f7363726970743e3c2f626f64793e3c2f68746d6c3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c636972636c652063783d223132222063793d2231322220723d22312e303235222066696c6c3d2223303030303030222f3e3c672069643d2261223ea26469706673582212209682a71f6215c0708a308a54638aba4323813deeb6dd216e57423f71b905aef564736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b2000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000005400000000000000000000000000000000000000000000000000011c37937e08000000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000075665727469676f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075665727469676f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045645525400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f63617073756c6532312e636f6d2f636f6c6c656374696f6e732f7665727469676f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002aa224f6e65206f662031302c30303020746f6b656e7320696e20746865205665727469676f20636f6c6c656374696f6e2e205468697320504e47207761732067656e6572617465642062792072756e6e696e67207468652062656c6f77204a61766173637269707420636f6465207769746820746865206068746d6c602070726f706572747920696e2060746f6b656e555249602061732069747320696e7075742e5c6e5c6e6060606a6176617363726970745c6e2f2f205573652076657273696f6e2031372e312e335c6e636f6e737420707570706574656572203d2072657175697265282770757070657465657227293b5c6e5c6e636f6e7374206d61696e203d206173796e63202868746d6c2c206f75747075745061746829203d3e207b5c6e2020636f6e73742062726f77736572203d206177616974207075707065746565722e6c61756e6368287b686561646c6573733a20276368726f6d65277d293b5c6e2020636f6e73742070616765203d2061776169742062726f777365722e6e65775061676528293b5c6e5c6e2020617761697420706167652e73657456696577706f7274287b2077696474683a20313230302c206865696768743a2031323030207d293b5c6e5c6e2020617761697420706167652e736574436f6e74656e742868746d6c293b5c6e20205c6e2020617761697420706167652e77616974466f7246756e6374696f6e2827646f63756d656e742e717565727953656c6563746f72285c227376675c22292e636c6173734c6973742e636f6e7461696e73285c22696e69745c222927293b5c6e5c6e2020617761697420706167652e73637265656e73686f74287b20706174683a206f757470757450617468207d293b5c6e202061776169742062726f777365722e636c6f736528293b5c6e7d5c6e5c6e6d61696e28295c6e6060602200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f6d6964646c656d617263682e6d7970696e6174612e636c6f75642f697066732f516d5172526d79364774544c4d735866354375786a53663259457746655872636e72416a3767784c73664d555a482f000000000000000000
-----Decoded View---------------
Arg [0] : punkDataContractAddress (address): 0x16F5A35647D6F03D5D3da7b35409D65ba03aF3B2
Arg [1] : extendedPunkDataContractAddress (address): 0xf03e345bB89Dc9cFaf8Fda381a9E4417BFB46e7A
Arg [2] : _config (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
49 Constructor Arguments found :
Arg [0] : 00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b2
Arg [1] : 000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [7] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000540
Arg [11] : 0000000000000000000000000000000000000000000000000011c37937e08000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [14] : 5665727469676f00000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [16] : 5665727469676f00000000000000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [18] : 5645525400000000000000000000000000000000000000000000000000000000
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000029
Arg [20] : 68747470733a2f2f63617073756c6532312e636f6d2f636f6c6c656374696f6e
Arg [21] : 732f7665727469676f0000000000000000000000000000000000000000000000
Arg [22] : 00000000000000000000000000000000000000000000000000000000000002aa
Arg [23] : 224f6e65206f662031302c30303020746f6b656e7320696e2074686520566572
Arg [24] : 7469676f20636f6c6c656374696f6e2e205468697320504e4720776173206765
Arg [25] : 6e6572617465642062792072756e6e696e67207468652062656c6f77204a6176
Arg [26] : 6173637269707420636f6465207769746820746865206068746d6c602070726f
Arg [27] : 706572747920696e2060746f6b656e555249602061732069747320696e707574
Arg [28] : 2e5c6e5c6e6060606a6176617363726970745c6e2f2f20557365207665727369
Arg [29] : 6f6e2031372e312e335c6e636f6e737420707570706574656572203d20726571
Arg [30] : 75697265282770757070657465657227293b5c6e5c6e636f6e7374206d61696e
Arg [31] : 203d206173796e63202868746d6c2c206f75747075745061746829203d3e207b
Arg [32] : 5c6e2020636f6e73742062726f77736572203d20617761697420707570706574
Arg [33] : 6565722e6c61756e6368287b686561646c6573733a20276368726f6d65277d29
Arg [34] : 3b5c6e2020636f6e73742070616765203d2061776169742062726f777365722e
Arg [35] : 6e65775061676528293b5c6e5c6e2020617761697420706167652e7365745669
Arg [36] : 6577706f7274287b2077696474683a20313230302c206865696768743a203132
Arg [37] : 3030207d293b5c6e5c6e2020617761697420706167652e736574436f6e74656e
Arg [38] : 742868746d6c293b5c6e20205c6e2020617761697420706167652e7761697446
Arg [39] : 6f7246756e6374696f6e2827646f63756d656e742e717565727953656c656374
Arg [40] : 6f72285c227376675c22292e636c6173734c6973742e636f6e7461696e73285c
Arg [41] : 22696e69745c222927293b5c6e5c6e2020617761697420706167652e73637265
Arg [42] : 656e73686f74287b20706174683a206f757470757450617468207d293b5c6e20
Arg [43] : 2061776169742062726f777365722e636c6f736528293b5c6e7d5c6e5c6e6d61
Arg [44] : 696e28295c6e6060602200000000000000000000000000000000000000000000
Arg [45] : 0000000000000000000000000000000000000000000000000000000000000057
Arg [46] : 68747470733a2f2f6d6964646c656d617263682e6d7970696e6174612e636c6f
Arg [47] : 75642f697066732f516d5172526d79364774544c4d735866354375786a536632
Arg [48] : 59457746655872636e72416a3767784c73664d555a482f000000000000000000
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.