ERC-721
Overview
Max Total Supply
935 YUNK
Holders
224
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
6 YUNKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Yunks
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 "./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 Yunks 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 Yunk { 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 *; uint public constant costPerToken = 0.02 ether; bool public isMintActive; bytes public constant externalLink = "https://capsule21.com/collections/yunks"; bool public contractSealed; bytes constant tokenDescription = "One of 10,000 tokens in the Yunks collection, an on-chain synthesis of the original CryptoPunks and artist Grant Riven Yun's palette."; PunkDataInterface public immutable punkDataContract; ExtendedPunkDataInterface public immutable extendedPunkDataContract; mapping(string => string) public colorMapping; function setColorMapping(string[][] calldata _colorMapping) external onlyOwner unsealed { for (uint i; i < _colorMapping.length; ++i) { colorMapping[_colorMapping[i][0]] = _colorMapping[i][1]; } } modifier unsealed() { require(!contractSealed, "Contract sealed."); _; } function sealContract() external onlyOwner unsealed { contractSealed = true; } function flipMintState() external onlyOwner { isMintActive = !isMintActive; } constructor(address punkDataContractAddress, address extendedPunkDataContractAddress) ERC721r("Yunks", "YUNK", 10_000) { punkDataContract = PunkDataInterface(punkDataContractAddress); extendedPunkDataContract = ExtendedPunkDataInterface(extendedPunkDataContractAddress); } function _internalMint(address toAddress, uint numTokens) private { require(msg.value == totalMintCost(numTokens), "Need exact payment"); require(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 svg = bytes(tokenImage(tokenId)); bytes memory title = abi.encodePacked("Yunk #", tokenId.toString()); return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{', '"name":"', title, '",' '"description":"', tokenDescription, '",' '"image_data":"data:image/svg+xml;base64,', Base64.encode(svg), '",' '"external_url":"', externalLink, '",' '"attributes": ', punkAttributesAsJSON(tokenId), '}' ) ) ) ) ); } bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; function tokenImage(uint16 tokenId) public view returns (string memory) { bytes memory pixels = punkDataContract.punkImage(uint16(tokenId)); bytes memory svgBytes = DynamicBuffer.allocate(1024 * 128); svgBytes.appendSafe('<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><filter id="roughpaper"><feTurbulence type="fractalNoise" baseFrequency="50" numOctaves="2" /><feBlend in="SourceGraphic" mode="multiply" /></filter></defs>'); svgBytes.appendSafe('<g filter="url(#roughpaper)"><rect x="0" y="0" style="width:100%;height:100%" fill="#afc49d" />'); 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]; } string memory newColor = colorMapping[string(buffer)]; svgBytes.appendSafe( abi.encodePacked( '<rect x="', x.toString(), '" y="', y.toString(), '" fill="#', newColor, '"/>' ) ); } } } svgBytes.appendSafe('</g>'); svgBytes.appendSafe('</svg>'); return string(svgBytes); } address constant doveAddress = 0x5FD2E3ba05C862E62a34B9F63c45C0DF622Ac112; address constant middleAddress = 0xC2172a6315c1D7f6855768F843c420EbB36eDa97; function withdraw() external { require(address(this).balance > 0, "Nothing to withdraw"); uint total = address(this).balance; uint middleShare = (total * 35) / 100; uint doveShare = total - middleShare; Address.sendValue(payable(middleAddress), middleShare); Address.sendValue(payable(doveAddress), doveShare); } function totalMintCost(uint numTokens) public pure returns (uint) { return numTokens * costPerToken; } function initializePunk(uint16 punkId) private view returns (Yunk memory) { Yunk memory phunk = Yunk({ 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(Yunk 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) { Yunk 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 < 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 // 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); }
{ "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"}],"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":[{"internalType":"string","name":"","type":"string"}],"name":"colorMapping","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractSealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"externalLink","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"isMintActive","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 Yunks.PunkAttributeValue","name":"sex","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"hair","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"eyes","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"beard","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"ears","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"lips","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"mouth","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"face","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"emotion","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"neck","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"nose","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"cheeks","type":"uint8"},{"internalType":"enum Yunks.PunkAttributeValue","name":"teeth","type":"uint8"}],"internalType":"struct Yunks.Yunk","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":[],"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":[],"name":"sealContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[][]","name":"_colorMapping","type":"string[][]"}],"name":"setColorMapping","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":"uint16","name":"tokenId","type":"uint16"}],"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":"pure","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
60e06040523480156200001157600080fd5b506040516200516f3803806200516f83398101604081905262000034916200015a565b6040518060400160405280600581526020016459756e6b7360d81b8152506040518060400160405280600481526020016359554e4b60e01b8152506127106200008c62000086620000cc60201b60201c565b620000d0565b60016200009a8482620002b0565b506002620000a98382620002b0565b50608081905260045550506001600160a01b0391821660a0521660c05262000380565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0382165b92915050565b6200013e8162000120565b81146200014a57600080fd5b50565b80516200012d8162000133565b60008060408385031215620001725762000172600080fd5b60006200018085856200014d565b925050602062000193858286016200014d565b9150509250929050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b600281046001821680620001de57607f821691505b602082108103620001f357620001f3620001b3565b50919050565b60006200012d620002078381565b90565b6200021583620001f9565b81546008840282811b60001990911b908116901990911617825550505050565b6000620002448184846200020a565b505050565b8181101562000268576200025f60008262000235565b60010162000249565b5050565b601f82111562000244576000818152602090206020601f85010481016020851015620002955750805b620002a96020601f86010483018262000249565b5050505050565b81516001600160401b03811115620002cc57620002cc6200019d565b620002d88254620001c9565b620002e58282856200026c565b6020601f8311600181146200031c5760008415620003035750858201515b600019600886021c198116600286021786555062000378565b600085815260208120601f198616915b828110156200034e57888501518255602094850194600190920191016200032c565b868310156200036b5784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b60805160a05160c051614d87620003e86000396000818161036501528181611b6101528181611bff01528181611ff501526120ae015260008181610324015281816113040152611a0601526000818161066e01528181610ce80152610e4d0152614d876000f3fe6080604052600436106102195760003560e01c80635b92ac0d116101235780639896ed11116100ab578063b88d4fde1161006f578063b88d4fde1461061f578063c87b56dd1461063f578063d5abeb011461065f578063e985e9c514610692578063f2fde38b146106b257600080fd5b80639896ed111461058d578063a0712d68146105ad578063a22cb465146105c0578063b5b949d2146105e0578063b65016371461060057600080fd5b806370a08231116100f257806370a0823114610512578063715018a6146105325780638ba4cc3c146105475780638da5cb5b1461055a57806395d89b411461057857600080fd5b80635b92ac0d146104ae5780635b9db898146104c85780636352211e146104dd57806368bd580e146104fd57600080fd5b806318160ddd116101a657806342842e0e1161017557806342842e0e1461040c578063438b63001461042c5780634f02f4d2146104595780634f558e791461047957806359c74f291461049957600080fd5b806318160ddd146103a757806323b872dd146103bc5780633ba523c7146103dc5780633ccfd60b146103f757600080fd5b8063081812fc116101ed578063081812fc146102c3578063095ea7b3146102f05780630f5a9f8914610312578063137fee321461035357806314dbd3d81461038757600080fd5b806270cb321461021e57806301ffc9a714610254578063023abe2b1461028157806306fdde03146102ae575b600080fd5b34801561022a57600080fd5b5061023e610239366004613370565b6106d2565b60405161024b9190613399565b60405180910390f35b34801561026057600080fd5b5061027461026f3660046133c2565b6106eb565b60405161024b91906133eb565b34801561028d57600080fd5b506102a161029c36600461340e565b61073b565b60405161024b919061348d565b3480156102ba57600080fd5b506102a1610acc565b3480156102cf57600080fd5b506102e36102de366004613370565b610b5e565b60405161024b91906134b8565b3480156102fc57600080fd5b5061031061030b3660046134da565b610bb7565b005b34801561031e57600080fd5b506103467f000000000000000000000000000000000000000000000000000000000000000081565b60405161024b9190613559565b34801561035f57600080fd5b506103467f000000000000000000000000000000000000000000000000000000000000000081565b34801561039357600080fd5b506102a16103a2366004613658565b610c3c565b3480156103b357600080fd5b5061023e610ce1565b3480156103c857600080fd5b506103106103d7366004613692565b610d16565b3480156103e857600080fd5b5061023e66470de4df82000081565b34801561040357600080fd5b50610310610d47565b34801561041857600080fd5b50610310610427366004613692565b610dcd565b34801561043857600080fd5b5061044c6104473660046136e2565b610de8565b60405161024b919061376a565b34801561046557600080fd5b5061023e6104743660046138db565b610f0c565b34801561048557600080fd5b50610274610494366004613370565b6111bc565b3480156104a557600080fd5b506103106111db565b3480156104ba57600080fd5b506009546102749060ff1681565b3480156104d457600080fd5b506102a16111f7565b3480156104e957600080fd5b506102e36104f8366004613370565b611213565b34801561050957600080fd5b50610310611248565b34801561051e57600080fd5b5061023e61052d3660046136e2565b611289565b34801561053e57600080fd5b506103106112cd565b6103106105553660046134da565b6112e1565b34801561056657600080fd5b506000546001600160a01b03166102e3565b34801561058457600080fd5b506102a16112ef565b34801561059957600080fd5b506102a16105a836600461340e565b6112fe565b6103106105bb366004613370565b611704565b3480156105cc57600080fd5b506103106105db366004613910565b611711565b3480156105ec57600080fd5b506103106105fb366004613994565b61171c565b34801561060c57600080fd5b5060095461027490610100900460ff1681565b34801561062b57600080fd5b5061031061063a3660046139db565b611821565b34801561064b57600080fd5b506102a161065a366004613370565b611859565b34801561066b57600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061023e565b34801561069e57600080fd5b506102746106ad366004613a59565b611899565b3480156106be57600080fd5b506103106106cd3660046136e2565b6118c7565b60006106e566470de4df82000083613aa2565b92915050565b60006001600160e01b031982166380ac58cd60e01b148061071c57506001600160e01b03198216635b5e139f60e01b145b806106e557506301ffc9a760e01b6001600160e01b03198316146106e5565b60606000610748836118fe565b604080516201006081019091526201004081526000602090910181815291925090610795604051806040016040528060018152602001605b60f81b81525082611f8c90919063ffffffff16565b6000604051806101a001604052808560200151605c8111156107b9576107b9613ac1565b605c8111156107ca576107ca613ac1565b81526020018560400151605c8111156107e5576107e5613ac1565b605c8111156107f6576107f6613ac1565b81526020018560600151605c81111561081157610811613ac1565b605c81111561082257610822613ac1565b81526020018560800151605c81111561083d5761083d613ac1565b605c81111561084e5761084e613ac1565b81526020018560a00151605c81111561086957610869613ac1565b605c81111561087a5761087a613ac1565b81526020018560c00151605c81111561089557610895613ac1565b605c8111156108a6576108a6613ac1565b81526020018560e00151605c8111156108c1576108c1613ac1565b605c8111156108d2576108d2613ac1565b8152602001856101000151605c8111156108ee576108ee613ac1565b605c8111156108ff576108ff613ac1565b8152602001856101200151605c81111561091b5761091b613ac1565b605c81111561092c5761092c613ac1565b8152602001856101400151605c81111561094857610948613ac1565b605c81111561095957610959613ac1565b8152602001856101600151605c81111561097557610975613ac1565b605c81111561098657610986613ac1565b8152602001856101800151605c8111156109a2576109a2613ac1565b605c8111156109b3576109b3613ac1565b8152602001856101a00151605c8111156109cf576109cf613ac1565b605c8111156109e0576109e0613ac1565b9052905060006109ef85610f0c565b90506000805b600d811015610a9e5760008482600d8110610a1257610a12613ad7565b6020020151905086605c811115610a2b57610a2b613ac1565b81605c811115610a3d57610a3d613ac1565b14610a8d5782610a4c81613aed565b935050610a62610a5b82611fd1565b8790611f8c565b83831015610a8d576040805180820190915260018152600b60fa1b6020820152610a8d908790611f8c565b50610a9781613aed565b90506109f5565b5083604051602001610ab09190613b37565b6040516020818303038152906040529650505050505050919050565b606060018054610adb90613b64565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0790613b64565b8015610b545780601f10610b2957610100808354040283529160200191610b54565b820191906000526020600020905b815481529060010190602001808311610b3757829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b0316610b9b5760405162461bcd60e51b8152600401610b9290613bdc565b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610bc282611213565b9050806001600160a01b0316836001600160a01b031603610bf55760405162461bcd60e51b8152600401610b9290613c2a565b336001600160a01b0382161480610c115750610c118133611899565b610c2d5760405162461bcd60e51b8152600401610b9290613c94565b610c3783836124c7565b505050565b8051602081830181018051600a8252928201919093012091528054610c6090613b64565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8c90613b64565b8015610cd95780601f10610cae57610100808354040283529160200191610cd9565b820191906000526020600020905b815481529060010190602001808311610cbc57829003601f168201915b505050505081565b60006004547f0000000000000000000000000000000000000000000000000000000000000000610d119190613ca4565b905090565b610d203382612535565b610d3c5760405162461bcd60e51b8152600401610b9290613d09565b610c378383836125c7565b60004711610d675760405162461bcd60e51b8152600401610b9290613d46565b4760006064610d77836023613aa2565b610d819190613d6c565b90506000610d8f8284613ca4565b9050610daf73c2172a6315c1d7f6855768f843c420ebb36eda97836126e9565b610c37735fd2e3ba05c862e62a34b9f63c45c0df622ac112826126e9565b610c3783838360405180602001604052806000815250611821565b60606000610df583611289565b90506000816001600160401b03811115610e1157610e11613567565b604051908082528060200260200182016040528015610e3a578160200160208202803683370190505b5090506000805b8381108015610e6f57507f000000000000000000000000000000000000000000000000000000000000000082105b15610f02576000828152600560205260408120546001600160a01b0316610e97576000610ea0565b610ea083611213565b9050866001600160a01b0316816001600160a01b031603610eef5782848381518110610ece57610ece613ad7565b61ffff9092166020928302919091019091015281610eeb81613aed565b9250505b82610ef981613aed565b93505050610e41565b5090949350505050565b600080604051806101a001604052808460200151605c811115610f3157610f31613ac1565b605c811115610f4257610f42613ac1565b81526020018460400151605c811115610f5d57610f5d613ac1565b605c811115610f6e57610f6e613ac1565b81526020018460600151605c811115610f8957610f89613ac1565b605c811115610f9a57610f9a613ac1565b81526020018460800151605c811115610fb557610fb5613ac1565b605c811115610fc657610fc6613ac1565b81526020018460a00151605c811115610fe157610fe1613ac1565b605c811115610ff257610ff2613ac1565b81526020018460c00151605c81111561100d5761100d613ac1565b605c81111561101e5761101e613ac1565b81526020018460e00151605c81111561103957611039613ac1565b605c81111561104a5761104a613ac1565b8152602001846101000151605c81111561106657611066613ac1565b605c81111561107757611077613ac1565b8152602001846101200151605c81111561109357611093613ac1565b605c8111156110a4576110a4613ac1565b8152602001846101400151605c8111156110c0576110c0613ac1565b605c8111156110d1576110d1613ac1565b8152602001846101600151605c8111156110ed576110ed613ac1565b605c8111156110fe576110fe613ac1565b8152602001846101800151605c81111561111a5761111a613ac1565b605c81111561112b5761112b613ac1565b8152602001846101a00151605c81111561114757611147613ac1565b605c81111561115857611158613ac1565b9052905060005b600d8110156111b55760008282600d811061117c5761117c613ad7565b6020020151605c81111561119257611192613ac1565b146111a557826111a181613aed565b9350505b6111ae81613aed565b905061115f565b5050919050565b6000818152600560205260408120546001600160a01b031615156106e5565b6111e3612785565b6009805460ff19811660ff90911615179055565b604051806060016040528060278152602001614b196027913981565b6000818152600560205260408120546001600160a01b0316806106e55760405162461bcd60e51b8152600401610b9290613dc6565b611250612785565b600954610100900460ff16156112785760405162461bcd60e51b8152600401610b9290613dfd565b6009805461ff001916610100179055565b60006001600160a01b0382166112b15760405162461bcd60e51b8152600401610b9290613e54565b506001600160a01b031660009081526006602052604090205490565b6112d5612785565b6112df60006127af565b565b6112eb82826127ff565b5050565b606060028054610adb90613b64565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633e5e0a96846040518263ffffffff1660e01b815260040161134e9190613e64565b600060405180830381865afa15801561136b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113939190810190613eca565b6040805162020060810190915262020040815260006020909101818152919250506113da60405180610180016040528061014d8152602001614b8061014d91398290611f8c565b6113fd6040518060800160405280605f8152602001614aba605f91398290611f8c565b60408051600880825281830190925260009160208201818036833701905050905060005b60188110156116ad5760005b601881101561169a57600081611444846018613aa2565b61144e9190613f04565b611459906004613aa2565b9050600086611469836003613f04565b8151811061147957611479613ad7565b016020015160f81c11156116875760005b600481101561159a576000876114a08385613f04565b815181106114b0576114b0613ad7565b016020015160f81c90506f181899199a1a9b1b9c1cb0b131b232b360811b600f8216601081106114e2576114e2613ad7565b1a60f81b866114f2846002613aa2565b6114fd906001613f04565b8151811061150d5761150d613ad7565b60200101906001600160f81b031916908160001a90535060041c600f166f181899199a1a9b1b9c1cb0b131b232b360811b816010811061154f5761154f613ad7565b1a60f81b8661155f846002613aa2565b8151811061156f5761156f613ad7565b60200101906001600160f81b031916908160001a90535050808061159290613aed565b91505061148a565b506000600a856040516115ad9190613f1c565b908152602001604051809103902080546115c690613b64565b80601f01602080910402602001604051908101604052809291908181526020018280546115f290613b64565b801561163f5780601f106116145761010080835404028352916020019161163f565b820191906000526020600020905b81548152906001019060200180831161162257829003601f168201915b5050505050905061168561165284612852565b61165b86612852565b8360405160200161166e93929190613f57565b60408051601f198184030181529190528790611f8c565b505b508061169281613aed565b91505061142d565b50806116a581613aed565b915050611421565b506040805180820190915260048152631e17b39f60e11b60208201526116d4908390611f8c565b6040805180820190915260068152651e17b9bb339f60d11b60208201526116fc908390611f8c565b509392505050565b61170e33826127ff565b50565b6112eb338383612952565b611724612785565b600954610100900460ff161561174c5760405162461bcd60e51b8152600401610b9290613dfd565b60005b81811015610c375782828281811061176957611769613ad7565b905060200281019061177b9190613fb3565b600181811061178c5761178c613ad7565b905060200281019061179e919061400f565b600a8585858181106117b2576117b2613ad7565b90506020028101906117c49190613fb3565b60008181106117d5576117d5613ad7565b90506020028101906117e7919061400f565b6040516117f5929190614078565b90815260200160405180910390209182611810929190614122565b5061181a81613aed565b905061174f565b61182b3383612535565b6118475760405162461bcd60e51b8152600401610b9290613d09565b611853848484846129f4565b50505050565b6000818152600560205260409020546060906001600160a01b03166118905760405162461bcd60e51b8152600401610b9290614210565b6106e582612a27565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6118cf612785565b6001600160a01b0381166118f55760405162461bcd60e51b8152600401610b9290614263565b61170e816127af565b611970604080516101c0810190915260008082526020820190815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905290565b604080516101c0810190915261ffff831681526000906020810182815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905261ffff84168082526040516376dfe29760e01b81529192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916376dfe29791611a3a9190600401613e64565b600060405180830381865afa158015611a57573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a7f9190810190613eca565b90506000611aaf604051806040016040528060018152602001600b60fa1b81525083612afa90919063ffffffff16565b905060005b8151811015611f82576000828281518110611ad157611ad1613ad7565b6020026020010151905060606001831015611b2a576040805180820190915260018152600160fd1b6020820152611b09908390612afa565b600081518110611b1b57611b1b613ad7565b60200260200101519050611b47565b611b4460018351611b3b9190613ca4565b83906001612ce5565b90505b604051631a2d891b60e31b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d16c48d890611b9690859060040161348d565b602060405180830381865afa158015611bb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bd7919061427e565b605c811115611be857611be8613ac1565b605c811115611bf957611bf9613ac1565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663683375c483605c811115611c3e57611c3e613ac1565b605c811115611c4f57611c4f613ac1565b6040518263ffffffff1660e01b8152600401611c6b91906142cd565b602060405180830381865afa158015611c88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cac91906142f3565b600c811115611cbd57611cbd613ac1565b600c811115611cce57611cce613ac1565b9050600081600c811115611ce457611ce4613ac1565b03611d1a576020880182605c811115611cff57611cff613ac1565b9081605c811115611d1257611d12613ac1565b905250611f6b565b600181600c811115611d2e57611d2e613ac1565b03611d49576040880182605c811115611cff57611cff613ac1565b600281600c811115611d5d57611d5d613ac1565b03611d78576060880182605c811115611cff57611cff613ac1565b600381600c811115611d8c57611d8c613ac1565b03611da7576080880182605c811115611cff57611cff613ac1565b600481600c811115611dbb57611dbb613ac1565b03611dd65760a0880182605c811115611cff57611cff613ac1565b600581600c811115611dea57611dea613ac1565b03611e055760c0880182605c811115611cff57611cff613ac1565b600681600c811115611e1957611e19613ac1565b03611e345760e0880182605c811115611cff57611cff613ac1565b600781600c811115611e4857611e48613ac1565b03611e6457610100880182605c811115611cff57611cff613ac1565b600881600c811115611e7857611e78613ac1565b03611e9457610120880182605c811115611cff57611cff613ac1565b600981600c811115611ea857611ea8613ac1565b03611ec457610140880182605c811115611cff57611cff613ac1565b600a81600c811115611ed857611ed8613ac1565b03611ef457610160880182605c811115611cff57611cff613ac1565b600b81600c811115611f0857611f08613ac1565b03611f2457610180880182605c811115611cff57611cff613ac1565b600c81600c811115611f3857611f38613ac1565b03611f6b576101a0880182605c811115611f5457611f54613ac1565b9081605c811115611f6757611f67613ac1565b9052505b505050508080611f7a90613aed565b915050611ab4565b5091949350505050565b601f1982015182518251603f19909201918290611fa99083613f04565b1115611fc75760405162461bcd60e51b8152600401610b9290614358565b6118538484612dd7565b6060600082605c811115611fe757611fe7613ac1565b03611ff157600080fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fc9faca584605c81111561203457612034613ac1565b605c81111561204557612045613ac1565b6040518263ffffffff1660e01b815260040161206191906142cd565b600060405180830381865afa15801561207e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120a69190810190613eca565b9050606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663683375c486605c8111156120ed576120ed613ac1565b605c8111156120fe576120fe613ac1565b6040518263ffffffff1660e01b815260040161211a91906142cd565b602060405180830381865afa158015612137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215b91906142f3565b600c81111561216c5761216c613ac1565b600c81111561217d5761217d613ac1565b9050600081600c81111561219357612193613ac1565b036121bb57604051806040016040528060038152602001620a6caf60eb1b815250915061249b565b600181600c8111156121cf576121cf613ac1565b036121f857604051806040016040528060048152602001632430b4b960e11b815250915061249b565b600281600c81111561220c5761220c613ac1565b0361223557604051806040016040528060048152602001634579657360e01b815250915061249b565b600381600c81111561224957612249613ac1565b0361227357604051806040016040528060058152602001641099585c9960da1b815250915061249b565b600481600c81111561228757612287613ac1565b036122b057604051806040016040528060048152602001634561727360e01b815250915061249b565b600581600c8111156122c4576122c4613ac1565b036122ed57604051806040016040528060048152602001634c69707360e01b815250915061249b565b600681600c81111561230157612301613ac1565b0361232b576040518060400160405280600581526020016409adeeae8d60db1b815250915061249b565b600781600c81111561233f5761233f613ac1565b0361236857604051806040016040528060048152602001634661636560e01b815250915061249b565b600881600c81111561237c5761237c613ac1565b036123a8576040518060400160405280600781526020016622b6b7ba34b7b760c91b815250915061249b565b600981600c8111156123bc576123bc613ac1565b036123e557604051806040016040528060048152602001634e65636b60e01b815250915061249b565b600a81600c8111156123f9576123f9613ac1565b0361242257604051806040016040528060048152602001634e6f736560e01b815250915061249b565b600b81600c81111561243657612436613ac1565b036124615760405180604001604052806006815260200165436865656b7360d01b815250915061249b565b600c81600c81111561247557612475613ac1565b0361249b57604051806040016040528060058152602001640a8cacae8d60db1b81525091505b81836040516020016124ae929190614368565b6040516020818303038152906040529350505050919050565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906124fc82611213565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166125695760405162461bcd60e51b8152600401610b9290614409565b600061257483611213565b9050806001600160a01b0316846001600160a01b031614806125af5750836001600160a01b03166125a484610b5e565b6001600160a01b0316145b806125bf57506125bf8185611899565b949350505050565b826001600160a01b03166125da82611213565b6001600160a01b0316146126005760405162461bcd60e51b8152600401610b929061445b565b6001600160a01b0382166126265760405162461bcd60e51b8152600401610b92906144ac565b6126316000826124c7565b6001600160a01b038316600090815260066020526040812080546001929061265a908490613ca4565b90915550506001600160a01b0382166000908152600660205260408120805460019290612688908490613f04565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156127095760405162461bcd60e51b8152600401610b92906144f0565b6000826001600160a01b03168260405161272290614500565b60006040518083038185875af1925050503d806000811461275f576040519150601f19603f3d011682016040523d82523d6000602084013e612764565b606091505b5050905080610c375760405162461bcd60e51b8152600401610b9290614565565b6000546001600160a01b031633146112df5760405162461bcd60e51b8152600401610b92906145a7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612808816106d2565b34146128265760405162461bcd60e51b8152600401610b92906145e0565b60095460ff166128485760405162461bcd60e51b8152600401610b9290614619565b6112eb8282612e0d565b6060816000036128795750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128a3578061288d81613aed565b915061289c9050600a83613d6c565b915061287d565b6000816001600160401b038111156128bd576128bd613567565b6040519080825280601f01601f1916602001820160405280156128e7576020820181803683370190505b5090505b84156125bf576128fc600183613ca4565b9150612909600a86614629565b612914906030613f04565b60f81b81838151811061292957612929613ad7565b60200101906001600160f81b031916908160001a90535061294b600a86613d6c565b94506128eb565b816001600160a01b0316836001600160a01b0316036129835760405162461bcd60e51b8152600401610b9290614671565b6001600160a01b0383811660008181526008602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906129e79085906133eb565b60405180910390a3505050565b6129ff8484846125c7565b612a0b84848484612f0f565b6118535760405162461bcd60e51b8152600401610b92906146d0565b60606000612a34836112fe565b90506000612a458461ffff16612852565b604051602001612a5591906146e0565b60408051601f1981840301815260c083019091526085808352909250612ad2918391614ccd6020830139612a8885613010565b604051806060016040528060278152602001614b1960279139612aaa8961073b565b604051602001612abe95949392919061471b565b604051602081830303815290604052613010565b604051602001612ae29190614810565b60405160208183030381529060405292505050919050565b606082600060015b60018351612b109190613ca4565b821015612b53576000612b24878785613174565b90508019612b325750612b53565b81612b3c81613aed565b9250612b4b9050816001613f04565b925050612b02565b806001600160401b03811115612b6b57612b6b613567565b604051908082528060200260200182016040528015612b9e57816020015b6060815260200190600190039081612b895790505b50935060009150600090505b60018351612bb89190613ca4565b821015612cdc576000612bcc878785613174565b90508019612bd8575082515b6000612be48483613ca4565b6001600160401b03811115612bfb57612bfb613567565b6040519080825280601f01601f191660200182016040528015612c25576020820181803683370190505b509050806000855b84811015612c9c57878181518110612c4757612c47613ad7565b01602001516001600160f81b0319168383612c6181613aed565b945081518110612c7357612c73613ad7565b60200101906001600160f81b031916908160001a90535080612c9481613aed565b915050612c2d565b50612ca8846001613f04565b9550818886612cb681613aed565b975081518110612cc857612cc8613ad7565b602002602001018190525050505050612baa565b50505092915050565b82516060908490612cf6858561483e565b1115612d0457612d0461487a565b6000846001600160401b03811115612d1e57612d1e613567565b6040519080825280601f01601f191660200182016040528015612d48576020820181803683370190505b509050806000855b612d5a888861483e565b811015612dc857848181518110612d7357612d73613ad7565b01602001516001600160f81b0319168383612d8d81613aed565b945081518110612d9f57612d9f613ad7565b60200101906001600160f81b031916908160001a90535080612dc081613aed565b915050612d50565b509093505050505b9392505050565b8051602082019150808201602084510184015b81841015612e02578351815260209384019301612dea565b505082510190915250565b333214612e2c5760405162461bcd60e51b8152600401610b92906148bc565b6001600160a01b038216612e525760405162461bcd60e51b8152600401610b92906148fe565b60008111612e725760405162461bcd60e51b8152600401610b9290614953565b806004541015612e945760405162461bcd60e51b8152600401610b92906149ab565b60045460005b82811015612ed7576000612eae858461320f565b9050612eba8582613277565b612ec3836149bb565b92505080612ed090613aed565b9050612e9a565b5060048190556001600160a01b03831660009081526006602052604081208054849290612f05908490613f04565b9091555050505050565b60006001600160a01b0384163b1561300557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f539033908990889088906004016149d2565b6020604051808303816000875af1925050508015612f8e575060408051601f3d908101601f19168201909252612f8b91810190614a21565b60015b612feb573d808015612fbc576040519150601f19603f3d011682016040523d82523d6000602084013e612fc1565b606091505b508051600003612fe35760405162461bcd60e51b8152600401610b92906146d0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125bf565b506001949350505050565b6060815160000361302f57505060408051602081019091526000815290565b6000604051806060016040528060408152602001614b40604091399050600060038451600261305e9190613f04565b6130689190613d6c565b613073906004613aa2565b90506000613082826020613f04565b6001600160401b0381111561309957613099613567565b6040519080825280601f01601f1916602001820160405280156130c3576020820181803683370190505b509050818152600183018586518101602084015b8183101561312f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016130d7565b600389510660018114613149576002811461315a57613166565b613d3d60f01b600119830152613166565b603d60f81b6000198301525b509398975050505050505050565b81516000908490849060011461318c5761318c61487a565b835b825181101561320157816000815181106131aa576131aa613ad7565b602001015160f81c60f81b6001600160f81b0319168382815181106131d1576131d1613ad7565b01602001516001600160f81b031916036131ef579250612dd0915050565b806131f981613aed565b91505061318e565b506000199695505050505050565b600080833a434244613222600184613ca4565b40308960405160200161323c989796959493929190614a42565b60408051601f198184030181529190528051602090910120905060006132628483614629565b905061326e81856132d0565b95945050505050565b60008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600082815260036020526040812054818181036132ee5750836132f1565b50805b60006132fe600186613ca4565b905080861461334f576000818152600360205260408120549081900361333457600087815260036020526040902082905561334d565b6000878152600360205260408082208390558382528120555b505b50949350505050565b805b811461170e57600080fd5b80356106e581613358565b60006020828403121561338557613385600080fd5b60006125bf8484613365565b805b82525050565b602081016106e58284613391565b6001600160e01b0319811661335a565b80356106e5816133a7565b6000602082840312156133d7576133d7600080fd5b60006125bf84846133b7565b801515613393565b602081016106e582846133e3565b61ffff811661335a565b80356106e5816133f9565b60006020828403121561342357613423600080fd5b60006125bf8484613403565b60005b8381101561344a578181015183820152602001613432565b838111156118535750506000910152565b6000613465825190565b80845260208401935061347c81856020860161342f565b601f01601f19169290920192915050565b60208082528101612dd0818461345b565b60006001600160a01b0382166106e5565b6133938161349e565b602081016106e582846134af565b61335a8161349e565b80356106e5816134c6565b600080604083850312156134f0576134f0600080fd5b60006134fc85856134cf565b925050602061350d85828601613365565b9150509250929050565b60006106e56001600160a01b03831661352e565b90565b6001600160a01b031690565b60006106e582613517565b60006106e58261353a565b61339381613545565b602081016106e58284613550565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156135a2576135a2613567565b6040525050565b60006135b460405190565b90506135c0828261357d565b919050565b60006001600160401b038211156135de576135de613567565b601f19601f83011660200192915050565b82818337506000910152565b600061360e613609846135c5565b6135a9565b90508281526020810184848401111561362957613629600080fd5b6116fc8482856135ef565b600082601f83011261364857613648600080fd5b81356125bf8482602086016135fb565b60006020828403121561366d5761366d600080fd5b81356001600160401b0381111561368657613686600080fd5b6125bf84828501613634565b6000806000606084860312156136aa576136aa600080fd5b60006136b686866134cf565b93505060206136c7868287016134cf565b92505060406136d886828701613365565b9150509250925092565b6000602082840312156136f7576136f7600080fd5b60006125bf84846134cf565b61ffff8116613393565b60006137198383613703565b505060200190565b600061372b825190565b80845260209384019383018060005b8381101561375f57815161374e888261370d565b97506020830192505060010161373a565b509495945050505050565b60208082528101612dd08184613721565b605d811061170e57600080fd5b80356106e58161377b565b60006101c082840312156137a9576137a9600080fd5b6137b46101c06135a9565b905060006137c28484613403565b82525060206137d384848301613788565b60208301525060406137e784828501613788565b60408301525060606137fb84828501613788565b606083015250608061380f84828501613788565b60808301525060a061382384828501613788565b60a08301525060c061383784828501613788565b60c08301525060e061384b84828501613788565b60e08301525061010061386084828501613788565b6101008301525061012061387684828501613788565b6101208301525061014061388c84828501613788565b610140830152506101606138a284828501613788565b610160830152506101806138b884828501613788565b610180830152506101a06138ce84828501613788565b6101a08301525092915050565b60006101c082840312156138f1576138f1600080fd5b60006125bf8484613793565b80151561335a565b80356106e5816138fd565b6000806040838503121561392657613926600080fd5b600061393285856134cf565b925050602061350d85828601613905565b60008083601f84011261395857613958600080fd5b5081356001600160401b0381111561397257613972600080fd5b60208301915083602082028301111561398d5761398d600080fd5b9250929050565b600080602083850312156139aa576139aa600080fd5b82356001600160401b038111156139c3576139c3600080fd5b6139cf85828601613943565b92509250509250929050565b600080600080608085870312156139f4576139f4600080fd5b6000613a0087876134cf565b9450506020613a11878288016134cf565b9350506040613a2287828801613365565b92505060608501356001600160401b03811115613a4157613a41600080fd5b613a4d87828801613634565b91505092959194509250565b60008060408385031215613a6f57613a6f600080fd5b6000613a7b85856134cf565b925050602061350d858286016134cf565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613abc57613abc613a8c565b500290565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006000198203613b0057613b00613a8c565b5060010190565b6000613b11825190565b613b1f81856020860161342f565b9290920192915050565b605d60f81b81526000613b00565b6000613b438284613b07565b9150612dd082613b29565b634e487b7160e01b600052602260045260246000fd5b600281046001821680613b7857607f821691505b602082108103613b8a57613b8a613b4e565b50919050565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b602080825281016106e581613b90565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150613bd5565b602080825281016106e581613bec565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150613bd5565b602080825281016106e581613c3a565b600082821015613cb657613cb6613a8c565b500390565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150613bd5565b602080825281016106e581613cbb565b60138152600060208201724e6f7468696e6720746f20776974686472617760681b815291505b5060200190565b602080825281016106e581613d19565b634e487b7160e01b600052601260045260246000fd5b600082613d7b57613d7b613d56565b500490565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150613bd5565b602080825281016106e581613d80565b601081526000602082016f21b7b73a3930b1ba1039b2b0b632b21760811b81529150613d3f565b602080825281016106e581613dd6565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150613bd5565b602080825281016106e581613e0d565b602081016106e58284613703565b6000613e80613609846135c5565b905082815260208101848484011115613e9b57613e9b600080fd5b6116fc84828561342f565b600082601f830112613eba57613eba600080fd5b81516125bf848260208601613e72565b600060208284031215613edf57613edf600080fd5b81516001600160401b03811115613ef857613ef8600080fd5b6125bf84828501613ea6565b60008219821115613f1757613f17613a8c565b500190565b6000612dd08284613b07565b681e3932b1ba103c1e9160b91b815260005b5060090190565b68222066696c6c3d222360b81b81526000613f3a565b6000613f6282613f28565b9150613f6e8286613b07565b6411103c9e9160d91b81526005019150613f888285613b07565b9150613f9382613f41565b9150613f9f8284613b07565b6211179f60e91b815291506003820161326e565b6000808335601e1936859003018112613fce57613fce600080fd5b8084019250823591506001600160401b03821115613fee57613fee600080fd5b6020928301928202360383131561400757614007600080fd5b509250929050565b6000808335601e193685900301811261402a5761402a600080fd5b8084019250823591506001600160401b0382111561404a5761404a600080fd5b60208301925060018202360383131561400757614007600080fd5b60006140728385846135ef565b50500190565b60006125bf828486614065565b60006106e561352b8381565b61409a83614085565b81546008840282811b60001990911b908116901990911617825550505050565b6000610c37818484614091565b818110156112eb576140da6000826140ba565b6001016140c7565b601f821115610c37576000818152602090206020601f850104810160208510156141095750805b61411b6020601f8601048301826140c7565b5050505050565b826001600160401b0381111561413a5761413a613567565b6141448254613b64565b61414f8282856140e2565b6000601f831160018114614183576000841561416b5750858201355b600019600886021c19811660028602178655506141dc565b600085815260208120601f198616915b828110156141b35788850135825560209485019460019092019101614193565b868310156141cf57600019601f88166008021c19858a01351682555b6001600288020188555050505b50505050505050565b6014815260006020820173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81529150613d3f565b602080825281016106e5816141e5565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150613bd5565b602080825281016106e581614220565b80516106e58161377b565b60006020828403121561429357614293600080fd5b60006125bf8484614273565b605d811061170e5761170e613ac1565b806135c08161429f565b60006106e5826142af565b613393816142b9565b602081016106e582846142c4565b600d811061170e57600080fd5b80516106e5816142db565b60006020828403121561430857614308600080fd5b60006125bf84846142e8565b602781526000602082017f44796e616d69634275666665723a20417070656e64696e67206f7574206f66208152663137bab732399760c91b60208201529150613bd5565b602080825281016106e581614314565b6e3d913a3930b4ba2fba3cb832911d1160891b8152600f01600061438c8285613b07565b6b111610113b30b63ab2911d1160a11b8152600c0191506143ad8284613b07565b61227d60f01b81529150600282016125bf565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150613bd5565b602080825281016106e5816143c0565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b60208201529150613bd5565b602080825281016106e581614419565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150613bd5565b602080825281016106e58161446b565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150613d3f565b602080825281016106e5816144bc565b60006106e58261352b565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150613bd5565b602080825281016106e58161450b565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613d3f565b602080825281016106e581614575565b60128152600060208201711399595908195e1858dd081c185e5b595b9d60721b81529150613d3f565b602080825281016106e5816145b7565b60128152600060208201714d696e74206973206e6f742061637469766560701b81529150613d3f565b602080825281016106e5816145f0565b60008261463857614638613d56565b500690565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613d3f565b602080825281016106e58161463d565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150613bd5565b602080825281016106e581614681565b6559756e6b202360d01b81526000600682015b9150612dd08284613b07565b607b60f81b81526000613b00565b607d60f81b81526000613b00565b6000614726826146ff565b67113730b6b2911d1160c11b815260080191506147438288613b07565b701116113232b9b1b934b83a34b7b7111d1160791b815260110191506147698287613b07565b7f222c22696d6167655f64617461223a22646174613a696d6167652f7376672b788152691b5b0ed8985cd94d8d0b60b21b6020820152602a0191506147ae8286613b07565b7111161132bc3a32b93730b62fbab936111d1160711b815260120191506147d58285613b07565b6f011161130ba3a3934b13aba32b9911d160851b815260100191506147fa8284613b07565b91506148058261470d565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000601d82016146f3565b6000816001600160ff1b030383136000831215161561485f5761485f613a8c565b81600160ff1b038312600083121615613f1757613f17613a8c565b634e487b7160e01b600052600160045260246000fd5b601581526000602082017410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b81529150613d3f565b602080825281016106e581614890565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613d3f565b602080825281016106e5816148cc565b602881526000602082017f455243373231723a206e65656420746f206d696e74206174206c65617374206f8152673732903a37b5b2b760c11b60208201529150613bd5565b602080825281016106e58161490e565b602b81526000602082017f455243373231723a206d696e74696e67206d6f726520746f6b656e732074686181526a6e20617661696c61626c6560a81b60208201529150613bd5565b602080825281016106e581614963565b6000816149ca576149ca613a8c565b506000190190565b608081016149e082876134af565b6149ed60208301866134af565b6149fa6040830185613391565b8181036060830152614a0c818461345b565b9695505050505050565b80516106e5816133a7565b600060208284031215614a3657614a36600080fd5b60006125bf8484614a16565b6101008101614a51828b6134af565b614a5e602083018a613391565b614a6b6040830189613391565b614a786060830188613391565b614a856080830187613391565b614a9260a0830186613391565b614a9f60c08301856134af565b614aac60e0830184613391565b999850505050505050505056fe3c672066696c7465723d2275726c2823726f756768706170657229223e3c7265637420783d22302220793d223022207374796c653d2277696474683a313030253b6865696768743a31303025222066696c6c3d222361666334396422202f3e68747470733a2f2f63617073756c6532312e636f6d2f636f6c6c656374696f6e732f79756e6b734142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672077696474683d223132303022206865696768743d2231323030222073686170652d72656e646572696e673d22637269737045646765732220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222076657273696f6e3d22312e32222076696577426f783d22302030203234203234223e3c7374796c653e726563747b77696474683a3170783b6865696768743a3170787d3c2f7374796c653e3c646566733e3c66696c7465722069643d22726f7567687061706572223e3c666554757262756c656e636520747970653d226672616374616c4e6f6973652220626173654672657175656e63793d22353022206e756d4f6374617665733d223222202f3e3c6665426c656e6420696e3d22536f757263654772617068696322206d6f64653d226d756c7469706c7922202f3e3c2f66696c7465723e3c2f646566733e4f6e65206f662031302c30303020746f6b656e7320696e207468652059756e6b7320636f6c6c656374696f6e2c20616e206f6e2d636861696e2073796e746865736973206f6620746865206f726967696e616c2043727970746f50756e6b7320616e6420617274697374204772616e7420526976656e2059756e27732070616c657474652ea26469706673582212202fd58401688dbf4a463dc49031deb52e5b4b1e27b1ad43a8494a30c3a2eac2a564736f6c634300080f003300000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b2000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a
Deployed Bytecode
0x6080604052600436106102195760003560e01c80635b92ac0d116101235780639896ed11116100ab578063b88d4fde1161006f578063b88d4fde1461061f578063c87b56dd1461063f578063d5abeb011461065f578063e985e9c514610692578063f2fde38b146106b257600080fd5b80639896ed111461058d578063a0712d68146105ad578063a22cb465146105c0578063b5b949d2146105e0578063b65016371461060057600080fd5b806370a08231116100f257806370a0823114610512578063715018a6146105325780638ba4cc3c146105475780638da5cb5b1461055a57806395d89b411461057857600080fd5b80635b92ac0d146104ae5780635b9db898146104c85780636352211e146104dd57806368bd580e146104fd57600080fd5b806318160ddd116101a657806342842e0e1161017557806342842e0e1461040c578063438b63001461042c5780634f02f4d2146104595780634f558e791461047957806359c74f291461049957600080fd5b806318160ddd146103a757806323b872dd146103bc5780633ba523c7146103dc5780633ccfd60b146103f757600080fd5b8063081812fc116101ed578063081812fc146102c3578063095ea7b3146102f05780630f5a9f8914610312578063137fee321461035357806314dbd3d81461038757600080fd5b806270cb321461021e57806301ffc9a714610254578063023abe2b1461028157806306fdde03146102ae575b600080fd5b34801561022a57600080fd5b5061023e610239366004613370565b6106d2565b60405161024b9190613399565b60405180910390f35b34801561026057600080fd5b5061027461026f3660046133c2565b6106eb565b60405161024b91906133eb565b34801561028d57600080fd5b506102a161029c36600461340e565b61073b565b60405161024b919061348d565b3480156102ba57600080fd5b506102a1610acc565b3480156102cf57600080fd5b506102e36102de366004613370565b610b5e565b60405161024b91906134b8565b3480156102fc57600080fd5b5061031061030b3660046134da565b610bb7565b005b34801561031e57600080fd5b506103467f00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b281565b60405161024b9190613559565b34801561035f57600080fd5b506103467f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a81565b34801561039357600080fd5b506102a16103a2366004613658565b610c3c565b3480156103b357600080fd5b5061023e610ce1565b3480156103c857600080fd5b506103106103d7366004613692565b610d16565b3480156103e857600080fd5b5061023e66470de4df82000081565b34801561040357600080fd5b50610310610d47565b34801561041857600080fd5b50610310610427366004613692565b610dcd565b34801561043857600080fd5b5061044c6104473660046136e2565b610de8565b60405161024b919061376a565b34801561046557600080fd5b5061023e6104743660046138db565b610f0c565b34801561048557600080fd5b50610274610494366004613370565b6111bc565b3480156104a557600080fd5b506103106111db565b3480156104ba57600080fd5b506009546102749060ff1681565b3480156104d457600080fd5b506102a16111f7565b3480156104e957600080fd5b506102e36104f8366004613370565b611213565b34801561050957600080fd5b50610310611248565b34801561051e57600080fd5b5061023e61052d3660046136e2565b611289565b34801561053e57600080fd5b506103106112cd565b6103106105553660046134da565b6112e1565b34801561056657600080fd5b506000546001600160a01b03166102e3565b34801561058457600080fd5b506102a16112ef565b34801561059957600080fd5b506102a16105a836600461340e565b6112fe565b6103106105bb366004613370565b611704565b3480156105cc57600080fd5b506103106105db366004613910565b611711565b3480156105ec57600080fd5b506103106105fb366004613994565b61171c565b34801561060c57600080fd5b5060095461027490610100900460ff1681565b34801561062b57600080fd5b5061031061063a3660046139db565b611821565b34801561064b57600080fd5b506102a161065a366004613370565b611859565b34801561066b57600080fd5b507f000000000000000000000000000000000000000000000000000000000000271061023e565b34801561069e57600080fd5b506102746106ad366004613a59565b611899565b3480156106be57600080fd5b506103106106cd3660046136e2565b6118c7565b60006106e566470de4df82000083613aa2565b92915050565b60006001600160e01b031982166380ac58cd60e01b148061071c57506001600160e01b03198216635b5e139f60e01b145b806106e557506301ffc9a760e01b6001600160e01b03198316146106e5565b60606000610748836118fe565b604080516201006081019091526201004081526000602090910181815291925090610795604051806040016040528060018152602001605b60f81b81525082611f8c90919063ffffffff16565b6000604051806101a001604052808560200151605c8111156107b9576107b9613ac1565b605c8111156107ca576107ca613ac1565b81526020018560400151605c8111156107e5576107e5613ac1565b605c8111156107f6576107f6613ac1565b81526020018560600151605c81111561081157610811613ac1565b605c81111561082257610822613ac1565b81526020018560800151605c81111561083d5761083d613ac1565b605c81111561084e5761084e613ac1565b81526020018560a00151605c81111561086957610869613ac1565b605c81111561087a5761087a613ac1565b81526020018560c00151605c81111561089557610895613ac1565b605c8111156108a6576108a6613ac1565b81526020018560e00151605c8111156108c1576108c1613ac1565b605c8111156108d2576108d2613ac1565b8152602001856101000151605c8111156108ee576108ee613ac1565b605c8111156108ff576108ff613ac1565b8152602001856101200151605c81111561091b5761091b613ac1565b605c81111561092c5761092c613ac1565b8152602001856101400151605c81111561094857610948613ac1565b605c81111561095957610959613ac1565b8152602001856101600151605c81111561097557610975613ac1565b605c81111561098657610986613ac1565b8152602001856101800151605c8111156109a2576109a2613ac1565b605c8111156109b3576109b3613ac1565b8152602001856101a00151605c8111156109cf576109cf613ac1565b605c8111156109e0576109e0613ac1565b9052905060006109ef85610f0c565b90506000805b600d811015610a9e5760008482600d8110610a1257610a12613ad7565b6020020151905086605c811115610a2b57610a2b613ac1565b81605c811115610a3d57610a3d613ac1565b14610a8d5782610a4c81613aed565b935050610a62610a5b82611fd1565b8790611f8c565b83831015610a8d576040805180820190915260018152600b60fa1b6020820152610a8d908790611f8c565b50610a9781613aed565b90506109f5565b5083604051602001610ab09190613b37565b6040516020818303038152906040529650505050505050919050565b606060018054610adb90613b64565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0790613b64565b8015610b545780601f10610b2957610100808354040283529160200191610b54565b820191906000526020600020905b815481529060010190602001808311610b3757829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b0316610b9b5760405162461bcd60e51b8152600401610b9290613bdc565b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610bc282611213565b9050806001600160a01b0316836001600160a01b031603610bf55760405162461bcd60e51b8152600401610b9290613c2a565b336001600160a01b0382161480610c115750610c118133611899565b610c2d5760405162461bcd60e51b8152600401610b9290613c94565b610c3783836124c7565b505050565b8051602081830181018051600a8252928201919093012091528054610c6090613b64565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8c90613b64565b8015610cd95780601f10610cae57610100808354040283529160200191610cd9565b820191906000526020600020905b815481529060010190602001808311610cbc57829003601f168201915b505050505081565b60006004547f0000000000000000000000000000000000000000000000000000000000002710610d119190613ca4565b905090565b610d203382612535565b610d3c5760405162461bcd60e51b8152600401610b9290613d09565b610c378383836125c7565b60004711610d675760405162461bcd60e51b8152600401610b9290613d46565b4760006064610d77836023613aa2565b610d819190613d6c565b90506000610d8f8284613ca4565b9050610daf73c2172a6315c1d7f6855768f843c420ebb36eda97836126e9565b610c37735fd2e3ba05c862e62a34b9f63c45c0df622ac112826126e9565b610c3783838360405180602001604052806000815250611821565b60606000610df583611289565b90506000816001600160401b03811115610e1157610e11613567565b604051908082528060200260200182016040528015610e3a578160200160208202803683370190505b5090506000805b8381108015610e6f57507f000000000000000000000000000000000000000000000000000000000000271082105b15610f02576000828152600560205260408120546001600160a01b0316610e97576000610ea0565b610ea083611213565b9050866001600160a01b0316816001600160a01b031603610eef5782848381518110610ece57610ece613ad7565b61ffff9092166020928302919091019091015281610eeb81613aed565b9250505b82610ef981613aed565b93505050610e41565b5090949350505050565b600080604051806101a001604052808460200151605c811115610f3157610f31613ac1565b605c811115610f4257610f42613ac1565b81526020018460400151605c811115610f5d57610f5d613ac1565b605c811115610f6e57610f6e613ac1565b81526020018460600151605c811115610f8957610f89613ac1565b605c811115610f9a57610f9a613ac1565b81526020018460800151605c811115610fb557610fb5613ac1565b605c811115610fc657610fc6613ac1565b81526020018460a00151605c811115610fe157610fe1613ac1565b605c811115610ff257610ff2613ac1565b81526020018460c00151605c81111561100d5761100d613ac1565b605c81111561101e5761101e613ac1565b81526020018460e00151605c81111561103957611039613ac1565b605c81111561104a5761104a613ac1565b8152602001846101000151605c81111561106657611066613ac1565b605c81111561107757611077613ac1565b8152602001846101200151605c81111561109357611093613ac1565b605c8111156110a4576110a4613ac1565b8152602001846101400151605c8111156110c0576110c0613ac1565b605c8111156110d1576110d1613ac1565b8152602001846101600151605c8111156110ed576110ed613ac1565b605c8111156110fe576110fe613ac1565b8152602001846101800151605c81111561111a5761111a613ac1565b605c81111561112b5761112b613ac1565b8152602001846101a00151605c81111561114757611147613ac1565b605c81111561115857611158613ac1565b9052905060005b600d8110156111b55760008282600d811061117c5761117c613ad7565b6020020151605c81111561119257611192613ac1565b146111a557826111a181613aed565b9350505b6111ae81613aed565b905061115f565b5050919050565b6000818152600560205260408120546001600160a01b031615156106e5565b6111e3612785565b6009805460ff19811660ff90911615179055565b604051806060016040528060278152602001614b196027913981565b6000818152600560205260408120546001600160a01b0316806106e55760405162461bcd60e51b8152600401610b9290613dc6565b611250612785565b600954610100900460ff16156112785760405162461bcd60e51b8152600401610b9290613dfd565b6009805461ff001916610100179055565b60006001600160a01b0382166112b15760405162461bcd60e51b8152600401610b9290613e54565b506001600160a01b031660009081526006602052604090205490565b6112d5612785565b6112df60006127af565b565b6112eb82826127ff565b5050565b606060028054610adb90613b64565b606060007f00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b26001600160a01b0316633e5e0a96846040518263ffffffff1660e01b815260040161134e9190613e64565b600060405180830381865afa15801561136b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113939190810190613eca565b6040805162020060810190915262020040815260006020909101818152919250506113da60405180610180016040528061014d8152602001614b8061014d91398290611f8c565b6113fd6040518060800160405280605f8152602001614aba605f91398290611f8c565b60408051600880825281830190925260009160208201818036833701905050905060005b60188110156116ad5760005b601881101561169a57600081611444846018613aa2565b61144e9190613f04565b611459906004613aa2565b9050600086611469836003613f04565b8151811061147957611479613ad7565b016020015160f81c11156116875760005b600481101561159a576000876114a08385613f04565b815181106114b0576114b0613ad7565b016020015160f81c90506f181899199a1a9b1b9c1cb0b131b232b360811b600f8216601081106114e2576114e2613ad7565b1a60f81b866114f2846002613aa2565b6114fd906001613f04565b8151811061150d5761150d613ad7565b60200101906001600160f81b031916908160001a90535060041c600f166f181899199a1a9b1b9c1cb0b131b232b360811b816010811061154f5761154f613ad7565b1a60f81b8661155f846002613aa2565b8151811061156f5761156f613ad7565b60200101906001600160f81b031916908160001a90535050808061159290613aed565b91505061148a565b506000600a856040516115ad9190613f1c565b908152602001604051809103902080546115c690613b64565b80601f01602080910402602001604051908101604052809291908181526020018280546115f290613b64565b801561163f5780601f106116145761010080835404028352916020019161163f565b820191906000526020600020905b81548152906001019060200180831161162257829003601f168201915b5050505050905061168561165284612852565b61165b86612852565b8360405160200161166e93929190613f57565b60408051601f198184030181529190528790611f8c565b505b508061169281613aed565b91505061142d565b50806116a581613aed565b915050611421565b506040805180820190915260048152631e17b39f60e11b60208201526116d4908390611f8c565b6040805180820190915260068152651e17b9bb339f60d11b60208201526116fc908390611f8c565b509392505050565b61170e33826127ff565b50565b6112eb338383612952565b611724612785565b600954610100900460ff161561174c5760405162461bcd60e51b8152600401610b9290613dfd565b60005b81811015610c375782828281811061176957611769613ad7565b905060200281019061177b9190613fb3565b600181811061178c5761178c613ad7565b905060200281019061179e919061400f565b600a8585858181106117b2576117b2613ad7565b90506020028101906117c49190613fb3565b60008181106117d5576117d5613ad7565b90506020028101906117e7919061400f565b6040516117f5929190614078565b90815260200160405180910390209182611810929190614122565b5061181a81613aed565b905061174f565b61182b3383612535565b6118475760405162461bcd60e51b8152600401610b9290613d09565b611853848484846129f4565b50505050565b6000818152600560205260409020546060906001600160a01b03166118905760405162461bcd60e51b8152600401610b9290614210565b6106e582612a27565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6118cf612785565b6001600160a01b0381166118f55760405162461bcd60e51b8152600401610b9290614263565b61170e816127af565b611970604080516101c0810190915260008082526020820190815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905290565b604080516101c0810190915261ffff831681526000906020810182815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905261ffff84168082526040516376dfe29760e01b81529192506000916001600160a01b037f00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b216916376dfe29791611a3a9190600401613e64565b600060405180830381865afa158015611a57573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a7f9190810190613eca565b90506000611aaf604051806040016040528060018152602001600b60fa1b81525083612afa90919063ffffffff16565b905060005b8151811015611f82576000828281518110611ad157611ad1613ad7565b6020026020010151905060606001831015611b2a576040805180820190915260018152600160fd1b6020820152611b09908390612afa565b600081518110611b1b57611b1b613ad7565b60200260200101519050611b47565b611b4460018351611b3b9190613ca4565b83906001612ce5565b90505b604051631a2d891b60e31b81526000906001600160a01b037f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a169063d16c48d890611b9690859060040161348d565b602060405180830381865afa158015611bb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bd7919061427e565b605c811115611be857611be8613ac1565b605c811115611bf957611bf9613ac1565b905060007f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a6001600160a01b031663683375c483605c811115611c3e57611c3e613ac1565b605c811115611c4f57611c4f613ac1565b6040518263ffffffff1660e01b8152600401611c6b91906142cd565b602060405180830381865afa158015611c88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cac91906142f3565b600c811115611cbd57611cbd613ac1565b600c811115611cce57611cce613ac1565b9050600081600c811115611ce457611ce4613ac1565b03611d1a576020880182605c811115611cff57611cff613ac1565b9081605c811115611d1257611d12613ac1565b905250611f6b565b600181600c811115611d2e57611d2e613ac1565b03611d49576040880182605c811115611cff57611cff613ac1565b600281600c811115611d5d57611d5d613ac1565b03611d78576060880182605c811115611cff57611cff613ac1565b600381600c811115611d8c57611d8c613ac1565b03611da7576080880182605c811115611cff57611cff613ac1565b600481600c811115611dbb57611dbb613ac1565b03611dd65760a0880182605c811115611cff57611cff613ac1565b600581600c811115611dea57611dea613ac1565b03611e055760c0880182605c811115611cff57611cff613ac1565b600681600c811115611e1957611e19613ac1565b03611e345760e0880182605c811115611cff57611cff613ac1565b600781600c811115611e4857611e48613ac1565b03611e6457610100880182605c811115611cff57611cff613ac1565b600881600c811115611e7857611e78613ac1565b03611e9457610120880182605c811115611cff57611cff613ac1565b600981600c811115611ea857611ea8613ac1565b03611ec457610140880182605c811115611cff57611cff613ac1565b600a81600c811115611ed857611ed8613ac1565b03611ef457610160880182605c811115611cff57611cff613ac1565b600b81600c811115611f0857611f08613ac1565b03611f2457610180880182605c811115611cff57611cff613ac1565b600c81600c811115611f3857611f38613ac1565b03611f6b576101a0880182605c811115611f5457611f54613ac1565b9081605c811115611f6757611f67613ac1565b9052505b505050508080611f7a90613aed565b915050611ab4565b5091949350505050565b601f1982015182518251603f19909201918290611fa99083613f04565b1115611fc75760405162461bcd60e51b8152600401610b9290614358565b6118538484612dd7565b6060600082605c811115611fe757611fe7613ac1565b03611ff157600080fd5b60007f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a6001600160a01b031663fc9faca584605c81111561203457612034613ac1565b605c81111561204557612045613ac1565b6040518263ffffffff1660e01b815260040161206191906142cd565b600060405180830381865afa15801561207e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120a69190810190613eca565b9050606060007f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a6001600160a01b031663683375c486605c8111156120ed576120ed613ac1565b605c8111156120fe576120fe613ac1565b6040518263ffffffff1660e01b815260040161211a91906142cd565b602060405180830381865afa158015612137573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215b91906142f3565b600c81111561216c5761216c613ac1565b600c81111561217d5761217d613ac1565b9050600081600c81111561219357612193613ac1565b036121bb57604051806040016040528060038152602001620a6caf60eb1b815250915061249b565b600181600c8111156121cf576121cf613ac1565b036121f857604051806040016040528060048152602001632430b4b960e11b815250915061249b565b600281600c81111561220c5761220c613ac1565b0361223557604051806040016040528060048152602001634579657360e01b815250915061249b565b600381600c81111561224957612249613ac1565b0361227357604051806040016040528060058152602001641099585c9960da1b815250915061249b565b600481600c81111561228757612287613ac1565b036122b057604051806040016040528060048152602001634561727360e01b815250915061249b565b600581600c8111156122c4576122c4613ac1565b036122ed57604051806040016040528060048152602001634c69707360e01b815250915061249b565b600681600c81111561230157612301613ac1565b0361232b576040518060400160405280600581526020016409adeeae8d60db1b815250915061249b565b600781600c81111561233f5761233f613ac1565b0361236857604051806040016040528060048152602001634661636560e01b815250915061249b565b600881600c81111561237c5761237c613ac1565b036123a8576040518060400160405280600781526020016622b6b7ba34b7b760c91b815250915061249b565b600981600c8111156123bc576123bc613ac1565b036123e557604051806040016040528060048152602001634e65636b60e01b815250915061249b565b600a81600c8111156123f9576123f9613ac1565b0361242257604051806040016040528060048152602001634e6f736560e01b815250915061249b565b600b81600c81111561243657612436613ac1565b036124615760405180604001604052806006815260200165436865656b7360d01b815250915061249b565b600c81600c81111561247557612475613ac1565b0361249b57604051806040016040528060058152602001640a8cacae8d60db1b81525091505b81836040516020016124ae929190614368565b6040516020818303038152906040529350505050919050565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906124fc82611213565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166125695760405162461bcd60e51b8152600401610b9290614409565b600061257483611213565b9050806001600160a01b0316846001600160a01b031614806125af5750836001600160a01b03166125a484610b5e565b6001600160a01b0316145b806125bf57506125bf8185611899565b949350505050565b826001600160a01b03166125da82611213565b6001600160a01b0316146126005760405162461bcd60e51b8152600401610b929061445b565b6001600160a01b0382166126265760405162461bcd60e51b8152600401610b92906144ac565b6126316000826124c7565b6001600160a01b038316600090815260066020526040812080546001929061265a908490613ca4565b90915550506001600160a01b0382166000908152600660205260408120805460019290612688908490613f04565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156127095760405162461bcd60e51b8152600401610b92906144f0565b6000826001600160a01b03168260405161272290614500565b60006040518083038185875af1925050503d806000811461275f576040519150601f19603f3d011682016040523d82523d6000602084013e612764565b606091505b5050905080610c375760405162461bcd60e51b8152600401610b9290614565565b6000546001600160a01b031633146112df5760405162461bcd60e51b8152600401610b92906145a7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612808816106d2565b34146128265760405162461bcd60e51b8152600401610b92906145e0565b60095460ff166128485760405162461bcd60e51b8152600401610b9290614619565b6112eb8282612e0d565b6060816000036128795750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128a3578061288d81613aed565b915061289c9050600a83613d6c565b915061287d565b6000816001600160401b038111156128bd576128bd613567565b6040519080825280601f01601f1916602001820160405280156128e7576020820181803683370190505b5090505b84156125bf576128fc600183613ca4565b9150612909600a86614629565b612914906030613f04565b60f81b81838151811061292957612929613ad7565b60200101906001600160f81b031916908160001a90535061294b600a86613d6c565b94506128eb565b816001600160a01b0316836001600160a01b0316036129835760405162461bcd60e51b8152600401610b9290614671565b6001600160a01b0383811660008181526008602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906129e79085906133eb565b60405180910390a3505050565b6129ff8484846125c7565b612a0b84848484612f0f565b6118535760405162461bcd60e51b8152600401610b92906146d0565b60606000612a34836112fe565b90506000612a458461ffff16612852565b604051602001612a5591906146e0565b60408051601f1981840301815260c083019091526085808352909250612ad2918391614ccd6020830139612a8885613010565b604051806060016040528060278152602001614b1960279139612aaa8961073b565b604051602001612abe95949392919061471b565b604051602081830303815290604052613010565b604051602001612ae29190614810565b60405160208183030381529060405292505050919050565b606082600060015b60018351612b109190613ca4565b821015612b53576000612b24878785613174565b90508019612b325750612b53565b81612b3c81613aed565b9250612b4b9050816001613f04565b925050612b02565b806001600160401b03811115612b6b57612b6b613567565b604051908082528060200260200182016040528015612b9e57816020015b6060815260200190600190039081612b895790505b50935060009150600090505b60018351612bb89190613ca4565b821015612cdc576000612bcc878785613174565b90508019612bd8575082515b6000612be48483613ca4565b6001600160401b03811115612bfb57612bfb613567565b6040519080825280601f01601f191660200182016040528015612c25576020820181803683370190505b509050806000855b84811015612c9c57878181518110612c4757612c47613ad7565b01602001516001600160f81b0319168383612c6181613aed565b945081518110612c7357612c73613ad7565b60200101906001600160f81b031916908160001a90535080612c9481613aed565b915050612c2d565b50612ca8846001613f04565b9550818886612cb681613aed565b975081518110612cc857612cc8613ad7565b602002602001018190525050505050612baa565b50505092915050565b82516060908490612cf6858561483e565b1115612d0457612d0461487a565b6000846001600160401b03811115612d1e57612d1e613567565b6040519080825280601f01601f191660200182016040528015612d48576020820181803683370190505b509050806000855b612d5a888861483e565b811015612dc857848181518110612d7357612d73613ad7565b01602001516001600160f81b0319168383612d8d81613aed565b945081518110612d9f57612d9f613ad7565b60200101906001600160f81b031916908160001a90535080612dc081613aed565b915050612d50565b509093505050505b9392505050565b8051602082019150808201602084510184015b81841015612e02578351815260209384019301612dea565b505082510190915250565b333214612e2c5760405162461bcd60e51b8152600401610b92906148bc565b6001600160a01b038216612e525760405162461bcd60e51b8152600401610b92906148fe565b60008111612e725760405162461bcd60e51b8152600401610b9290614953565b806004541015612e945760405162461bcd60e51b8152600401610b92906149ab565b60045460005b82811015612ed7576000612eae858461320f565b9050612eba8582613277565b612ec3836149bb565b92505080612ed090613aed565b9050612e9a565b5060048190556001600160a01b03831660009081526006602052604081208054849290612f05908490613f04565b9091555050505050565b60006001600160a01b0384163b1561300557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f539033908990889088906004016149d2565b6020604051808303816000875af1925050508015612f8e575060408051601f3d908101601f19168201909252612f8b91810190614a21565b60015b612feb573d808015612fbc576040519150601f19603f3d011682016040523d82523d6000602084013e612fc1565b606091505b508051600003612fe35760405162461bcd60e51b8152600401610b92906146d0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125bf565b506001949350505050565b6060815160000361302f57505060408051602081019091526000815290565b6000604051806060016040528060408152602001614b40604091399050600060038451600261305e9190613f04565b6130689190613d6c565b613073906004613aa2565b90506000613082826020613f04565b6001600160401b0381111561309957613099613567565b6040519080825280601f01601f1916602001820160405280156130c3576020820181803683370190505b509050818152600183018586518101602084015b8183101561312f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016130d7565b600389510660018114613149576002811461315a57613166565b613d3d60f01b600119830152613166565b603d60f81b6000198301525b509398975050505050505050565b81516000908490849060011461318c5761318c61487a565b835b825181101561320157816000815181106131aa576131aa613ad7565b602001015160f81c60f81b6001600160f81b0319168382815181106131d1576131d1613ad7565b01602001516001600160f81b031916036131ef579250612dd0915050565b806131f981613aed565b91505061318e565b506000199695505050505050565b600080833a434244613222600184613ca4565b40308960405160200161323c989796959493929190614a42565b60408051601f198184030181529190528051602090910120905060006132628483614629565b905061326e81856132d0565b95945050505050565b60008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600082815260036020526040812054818181036132ee5750836132f1565b50805b60006132fe600186613ca4565b905080861461334f576000818152600360205260408120549081900361333457600087815260036020526040902082905561334d565b6000878152600360205260408082208390558382528120555b505b50949350505050565b805b811461170e57600080fd5b80356106e581613358565b60006020828403121561338557613385600080fd5b60006125bf8484613365565b805b82525050565b602081016106e58284613391565b6001600160e01b0319811661335a565b80356106e5816133a7565b6000602082840312156133d7576133d7600080fd5b60006125bf84846133b7565b801515613393565b602081016106e582846133e3565b61ffff811661335a565b80356106e5816133f9565b60006020828403121561342357613423600080fd5b60006125bf8484613403565b60005b8381101561344a578181015183820152602001613432565b838111156118535750506000910152565b6000613465825190565b80845260208401935061347c81856020860161342f565b601f01601f19169290920192915050565b60208082528101612dd0818461345b565b60006001600160a01b0382166106e5565b6133938161349e565b602081016106e582846134af565b61335a8161349e565b80356106e5816134c6565b600080604083850312156134f0576134f0600080fd5b60006134fc85856134cf565b925050602061350d85828601613365565b9150509250929050565b60006106e56001600160a01b03831661352e565b90565b6001600160a01b031690565b60006106e582613517565b60006106e58261353a565b61339381613545565b602081016106e58284613550565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156135a2576135a2613567565b6040525050565b60006135b460405190565b90506135c0828261357d565b919050565b60006001600160401b038211156135de576135de613567565b601f19601f83011660200192915050565b82818337506000910152565b600061360e613609846135c5565b6135a9565b90508281526020810184848401111561362957613629600080fd5b6116fc8482856135ef565b600082601f83011261364857613648600080fd5b81356125bf8482602086016135fb565b60006020828403121561366d5761366d600080fd5b81356001600160401b0381111561368657613686600080fd5b6125bf84828501613634565b6000806000606084860312156136aa576136aa600080fd5b60006136b686866134cf565b93505060206136c7868287016134cf565b92505060406136d886828701613365565b9150509250925092565b6000602082840312156136f7576136f7600080fd5b60006125bf84846134cf565b61ffff8116613393565b60006137198383613703565b505060200190565b600061372b825190565b80845260209384019383018060005b8381101561375f57815161374e888261370d565b97506020830192505060010161373a565b509495945050505050565b60208082528101612dd08184613721565b605d811061170e57600080fd5b80356106e58161377b565b60006101c082840312156137a9576137a9600080fd5b6137b46101c06135a9565b905060006137c28484613403565b82525060206137d384848301613788565b60208301525060406137e784828501613788565b60408301525060606137fb84828501613788565b606083015250608061380f84828501613788565b60808301525060a061382384828501613788565b60a08301525060c061383784828501613788565b60c08301525060e061384b84828501613788565b60e08301525061010061386084828501613788565b6101008301525061012061387684828501613788565b6101208301525061014061388c84828501613788565b610140830152506101606138a284828501613788565b610160830152506101806138b884828501613788565b610180830152506101a06138ce84828501613788565b6101a08301525092915050565b60006101c082840312156138f1576138f1600080fd5b60006125bf8484613793565b80151561335a565b80356106e5816138fd565b6000806040838503121561392657613926600080fd5b600061393285856134cf565b925050602061350d85828601613905565b60008083601f84011261395857613958600080fd5b5081356001600160401b0381111561397257613972600080fd5b60208301915083602082028301111561398d5761398d600080fd5b9250929050565b600080602083850312156139aa576139aa600080fd5b82356001600160401b038111156139c3576139c3600080fd5b6139cf85828601613943565b92509250509250929050565b600080600080608085870312156139f4576139f4600080fd5b6000613a0087876134cf565b9450506020613a11878288016134cf565b9350506040613a2287828801613365565b92505060608501356001600160401b03811115613a4157613a41600080fd5b613a4d87828801613634565b91505092959194509250565b60008060408385031215613a6f57613a6f600080fd5b6000613a7b85856134cf565b925050602061350d858286016134cf565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613abc57613abc613a8c565b500290565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006000198203613b0057613b00613a8c565b5060010190565b6000613b11825190565b613b1f81856020860161342f565b9290920192915050565b605d60f81b81526000613b00565b6000613b438284613b07565b9150612dd082613b29565b634e487b7160e01b600052602260045260246000fd5b600281046001821680613b7857607f821691505b602082108103613b8a57613b8a613b4e565b50919050565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b602080825281016106e581613b90565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150613bd5565b602080825281016106e581613bec565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150613bd5565b602080825281016106e581613c3a565b600082821015613cb657613cb6613a8c565b500390565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150613bd5565b602080825281016106e581613cbb565b60138152600060208201724e6f7468696e6720746f20776974686472617760681b815291505b5060200190565b602080825281016106e581613d19565b634e487b7160e01b600052601260045260246000fd5b600082613d7b57613d7b613d56565b500490565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150613bd5565b602080825281016106e581613d80565b601081526000602082016f21b7b73a3930b1ba1039b2b0b632b21760811b81529150613d3f565b602080825281016106e581613dd6565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150613bd5565b602080825281016106e581613e0d565b602081016106e58284613703565b6000613e80613609846135c5565b905082815260208101848484011115613e9b57613e9b600080fd5b6116fc84828561342f565b600082601f830112613eba57613eba600080fd5b81516125bf848260208601613e72565b600060208284031215613edf57613edf600080fd5b81516001600160401b03811115613ef857613ef8600080fd5b6125bf84828501613ea6565b60008219821115613f1757613f17613a8c565b500190565b6000612dd08284613b07565b681e3932b1ba103c1e9160b91b815260005b5060090190565b68222066696c6c3d222360b81b81526000613f3a565b6000613f6282613f28565b9150613f6e8286613b07565b6411103c9e9160d91b81526005019150613f888285613b07565b9150613f9382613f41565b9150613f9f8284613b07565b6211179f60e91b815291506003820161326e565b6000808335601e1936859003018112613fce57613fce600080fd5b8084019250823591506001600160401b03821115613fee57613fee600080fd5b6020928301928202360383131561400757614007600080fd5b509250929050565b6000808335601e193685900301811261402a5761402a600080fd5b8084019250823591506001600160401b0382111561404a5761404a600080fd5b60208301925060018202360383131561400757614007600080fd5b60006140728385846135ef565b50500190565b60006125bf828486614065565b60006106e561352b8381565b61409a83614085565b81546008840282811b60001990911b908116901990911617825550505050565b6000610c37818484614091565b818110156112eb576140da6000826140ba565b6001016140c7565b601f821115610c37576000818152602090206020601f850104810160208510156141095750805b61411b6020601f8601048301826140c7565b5050505050565b826001600160401b0381111561413a5761413a613567565b6141448254613b64565b61414f8282856140e2565b6000601f831160018114614183576000841561416b5750858201355b600019600886021c19811660028602178655506141dc565b600085815260208120601f198616915b828110156141b35788850135825560209485019460019092019101614193565b868310156141cf57600019601f88166008021c19858a01351682555b6001600288020188555050505b50505050505050565b6014815260006020820173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81529150613d3f565b602080825281016106e5816141e5565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150613bd5565b602080825281016106e581614220565b80516106e58161377b565b60006020828403121561429357614293600080fd5b60006125bf8484614273565b605d811061170e5761170e613ac1565b806135c08161429f565b60006106e5826142af565b613393816142b9565b602081016106e582846142c4565b600d811061170e57600080fd5b80516106e5816142db565b60006020828403121561430857614308600080fd5b60006125bf84846142e8565b602781526000602082017f44796e616d69634275666665723a20417070656e64696e67206f7574206f66208152663137bab732399760c91b60208201529150613bd5565b602080825281016106e581614314565b6e3d913a3930b4ba2fba3cb832911d1160891b8152600f01600061438c8285613b07565b6b111610113b30b63ab2911d1160a11b8152600c0191506143ad8284613b07565b61227d60f01b81529150600282016125bf565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150613bd5565b602080825281016106e5816143c0565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b60208201529150613bd5565b602080825281016106e581614419565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150613bd5565b602080825281016106e58161446b565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150613d3f565b602080825281016106e5816144bc565b60006106e58261352b565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150613bd5565b602080825281016106e58161450b565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613d3f565b602080825281016106e581614575565b60128152600060208201711399595908195e1858dd081c185e5b595b9d60721b81529150613d3f565b602080825281016106e5816145b7565b60128152600060208201714d696e74206973206e6f742061637469766560701b81529150613d3f565b602080825281016106e5816145f0565b60008261463857614638613d56565b500690565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613d3f565b602080825281016106e58161463d565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150613bd5565b602080825281016106e581614681565b6559756e6b202360d01b81526000600682015b9150612dd08284613b07565b607b60f81b81526000613b00565b607d60f81b81526000613b00565b6000614726826146ff565b67113730b6b2911d1160c11b815260080191506147438288613b07565b701116113232b9b1b934b83a34b7b7111d1160791b815260110191506147698287613b07565b7f222c22696d6167655f64617461223a22646174613a696d6167652f7376672b788152691b5b0ed8985cd94d8d0b60b21b6020820152602a0191506147ae8286613b07565b7111161132bc3a32b93730b62fbab936111d1160711b815260120191506147d58285613b07565b6f011161130ba3a3934b13aba32b9911d160851b815260100191506147fa8284613b07565b91506148058261470d565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000601d82016146f3565b6000816001600160ff1b030383136000831215161561485f5761485f613a8c565b81600160ff1b038312600083121615613f1757613f17613a8c565b634e487b7160e01b600052600160045260246000fd5b601581526000602082017410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b81529150613d3f565b602080825281016106e581614890565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613d3f565b602080825281016106e5816148cc565b602881526000602082017f455243373231723a206e65656420746f206d696e74206174206c65617374206f8152673732903a37b5b2b760c11b60208201529150613bd5565b602080825281016106e58161490e565b602b81526000602082017f455243373231723a206d696e74696e67206d6f726520746f6b656e732074686181526a6e20617661696c61626c6560a81b60208201529150613bd5565b602080825281016106e581614963565b6000816149ca576149ca613a8c565b506000190190565b608081016149e082876134af565b6149ed60208301866134af565b6149fa6040830185613391565b8181036060830152614a0c818461345b565b9695505050505050565b80516106e5816133a7565b600060208284031215614a3657614a36600080fd5b60006125bf8484614a16565b6101008101614a51828b6134af565b614a5e602083018a613391565b614a6b6040830189613391565b614a786060830188613391565b614a856080830187613391565b614a9260a0830186613391565b614a9f60c08301856134af565b614aac60e0830184613391565b999850505050505050505056fe3c672066696c7465723d2275726c2823726f756768706170657229223e3c7265637420783d22302220793d223022207374796c653d2277696474683a313030253b6865696768743a31303025222066696c6c3d222361666334396422202f3e68747470733a2f2f63617073756c6532312e636f6d2f636f6c6c656374696f6e732f79756e6b734142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672077696474683d223132303022206865696768743d2231323030222073686170652d72656e646572696e673d22637269737045646765732220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222076657273696f6e3d22312e32222076696577426f783d22302030203234203234223e3c7374796c653e726563747b77696474683a3170783b6865696768743a3170787d3c2f7374796c653e3c646566733e3c66696c7465722069643d22726f7567687061706572223e3c666554757262756c656e636520747970653d226672616374616c4e6f6973652220626173654672657175656e63793d22353022206e756d4f6374617665733d223222202f3e3c6665426c656e6420696e3d22536f757263654772617068696322206d6f64653d226d756c7469706c7922202f3e3c2f66696c7465723e3c2f646566733e4f6e65206f662031302c30303020746f6b656e7320696e207468652059756e6b7320636f6c6c656374696f6e2c20616e206f6e2d636861696e2073796e746865736973206f6620746865206f726967696e616c2043727970746f50756e6b7320616e6420617274697374204772616e7420526976656e2059756e27732070616c657474652ea26469706673582212202fd58401688dbf4a463dc49031deb52e5b4b1e27b1ad43a8494a30c3a2eac2a564736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b2000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a
-----Decoded View---------------
Arg [0] : punkDataContractAddress (address): 0x16F5A35647D6F03D5D3da7b35409D65ba03aF3B2
Arg [1] : extendedPunkDataContractAddress (address): 0xf03e345bB89Dc9cFaf8Fda381a9E4417BFB46e7A
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b2
Arg [1] : 000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.