ERC-721
Overview
Max Total Supply
500 MARILYNS
Holders
163
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MARILYNSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OCMarilynDiptychs
Compiler Version
v0.8.13+commit.abaa5c0e
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 "erc721a/contracts/ERC721A.sol"; import "./sstore2/SSTORE2.sol"; import "./utils/DynamicBuffer.sol"; import "hardhat/console.sol"; interface PFPInterface { function getMintedPFPsOnDiptych(uint dypIdx) external view returns (bool[] memory result); function getMintedPFPsCountOnDiptych(uint dypIdx) external view returns (uint count); } contract OCMarilynDiptychs is Ownable, ERC721A { using Address for address; using DynamicBuffer for bytes; using Strings for uint256; using Strings for uint16; using Strings for uint8; uint public constant costPerToken = 0.01 ether; uint public constant maxSupply = 500; uint public constant maxPerTx = 20; bool public isMintActive; bytes public constant externalLink = "https://capsule21.com/collections/oc-marilyn-diptychs"; bool public contractSealed; uint8 public sideLength = 5; mapping(uint => uint) private tokenIdToSeed; bytes constant tokenDescription = "One of 500 Andy Warhol-inspired Marilyn Monroe Diptychs, each randomly generated at mint using only colors from the CryptoPunks collection.\\n\\nEach Diptych is stored 100% on-chain. Individual Marilyns can also be minted as PFPs."; PFPInterface public PFPContract; function setPFPContract(address contractAddress) external onlyOwner unsealed { PFPContract = PFPInterface(contractAddress); } struct Color { uint16 h; uint8 s; uint8 v; uint8 classIdx; } Color[] public brightPunkColors; Color[] public darkPunkColors; function setPunkColors( uint16[] memory hues, uint8[] memory sats, uint8[] memory values, uint8[] memory brightOrDark ) external onlyOwner unsealed { for (uint8 i; i < hues.length; ++i) { Color memory color = Color({ h: hues[i], s: sats[i], v: values[i], classIdx: (i + 1) }); if (brightOrDark[i] > 0) { brightPunkColors.push(color); } else { darkPunkColors.push(color); } } } address private tokenTitles; function setTokenTitles(string calldata _tokenTitles) external onlyOwner unsealed { tokenTitles = SSTORE2.write(bytes(_tokenTitles)); } uint constant maxTitleLength = 46; function getTokenTitleAtIndex(uint index) public view returns (string memory) { require(_exists(index)); bytes memory allTitles = SSTORE2.read(tokenTitles); bytes memory outputBytes = DynamicBuffer.allocate(50); bytes32 enderHash = keccak256(abi.encodePacked(bytes("|"))); for (uint i = (maxTitleLength * index); i < (maxTitleLength * (index + 1)); ++i) { bytes32 currentCharHash = keccak256(abi.encodePacked(allTitles[i])); if (currentCharHash == enderHash) { break; } outputBytes.appendSafe(abi.encodePacked(allTitles[i])); } return string(outputBytes); } modifier unsealed() { require(!contractSealed, "Contract sealed."); _; } function sealContract() external onlyOwner unsealed { contractSealed = true; } function flipMintState() external onlyOwner { isMintActive = !isMintActive; } constructor() ERC721A("OC Marilyn Diptychs", "MARILYNS") { } function mintMarilyn(address toAddress, uint numTokens) public payable { require(numTokens + totalSupply() <= maxSupply, "Marilyn supply limit reached."); require(isMintActive, "Mint is not active"); require(numTokens > 0, "Mint at least one"); require(msg.value == totalMintCost(numTokens, msg.sender), "Need exact payment"); require(msg.sender == tx.origin, "Contracts cannot mint"); require(numTokens <= maxPerTx, "Too many tokens"); uint oldNextIndex = _currentIndex; uint entropy = getEntropy(_currentIndex); _safeMint(toAddress, numTokens); uint newNextIndex = _currentIndex; for (uint i = oldNextIndex; i < newNextIndex; i++) { tokenIdToSeed[i] = entropy; } } 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(id); } function constructTokenURI(uint tokenId) private view returns (string memory) { ( bytes memory svg, uint[2] memory squareCounts, ) = tokenImageWithMetadata(tokenId, false, 0, 0); uint mintedPfpCount = PFPContract.getMintedPFPsCountOnDiptych(tokenId); uint _sl = sideLength; uint totalSquares = (_sl * (2 * _sl)); uint brightSquareCount = totalSquares - squareCounts[0]; string memory title = getTokenTitleAtIndex(tokenId); 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": [', '{', '"trait_type": "Title Length",', '"value": "', (bytes(title).length).toString(), '"', '},' '{', '"trait_type": "OC Marilyn PFPs Minted",', '"value": "', mintedPfpCount.toString(), '"', '},' '{', '"trait_type": "Bright Squares",', '"value": "', brightSquareCount.toString(), '"', '},' '{', '"trait_type": "Dark Squares",', '"value": "', squareCounts[0].toString(), '"', '},' '{', '"trait_type": "Crossover Squares",', '"value": "', squareCounts[1].toString(), '"', '}' ']' '}' ) ) ) ) ); } function getEntropy(uint seed) private view returns (uint) { uint256 randomNum = uint256( keccak256( abi.encode( seed, tx.gasprice, block.number, block.timestamp, block.difficulty, blockhash(block.number - 1), address(this) ) ) ); return randomNum; } function deterministicRandomNumber(bytes memory seed, uint upToNumber) private pure returns (uint) { uint256 randomNum = uint256( keccak256(abi.encode(seed)) ); return randomNum % upToNumber; } function getOriginalColors(uint darkMode) public pure returns (Color[7] memory colors) { if (darkMode == 0) { colors[0].classIdx = 103; colors[1].classIdx = 97; colors[2].classIdx = 100; colors[3].classIdx = 102; colors[4].classIdx = 96; colors[5].classIdx = 101; colors[6].classIdx = 99; } else { colors[0].classIdx = 104; colors[1].classIdx = 105; colors[2].classIdx = 106; colors[3].classIdx = 107; colors[4].classIdx = 108; colors[5].classIdx = 109; colors[6].classIdx = 110; } } function getColors(bytes memory seed, uint8 darkMode) public view returns( Color[7] memory colors ) { uint j; bytes memory currentSeed; uint darkColorCount = darkPunkColors.length; uint brightColorCount = brightPunkColors.length; Color memory currentColor; while (colors[6].classIdx == 0) { ++j; currentSeed = abi.encode(seed, j); if (darkMode == 1) { currentColor = darkPunkColors[deterministicRandomNumber(currentSeed, darkColorCount)]; } else { currentColor = brightPunkColors[deterministicRandomNumber(currentSeed, brightColorCount)]; } if (colors[0].classIdx == 0) { // bg colors[0] = currentColor; colors[3] = currentColor; } else if (colors[1].classIdx == 0) { // hair if ( colorsVisiblyDifferent(colors[0], currentColor) ) { colors[1] = currentColor; } } else if (colors[2].classIdx == 0) { // skin if ( colorsVisiblyDifferent(colors[0], currentColor) && colorsVisiblyDifferent(colors[1], currentColor) ) { colors[2] = currentColor; } } else if (colors[4].classIdx == 0) { // light eye shadow if ( colorsVisiblyDifferent(colors[2], currentColor) && hueDifference(colors[3].h, currentColor.h) < (darkMode == 1 ? 350 : 120) && absoluteDiff(colors[3].v, currentColor.v) > 10 ) { colors[4] = currentColor; } } else if (colors[5].classIdx == 0) { // mole if ( colorsVisiblyDifferent(colors[2], currentColor) ) { colors[5] = currentColor; } } else if (colors[6].classIdx == 0) { // lipstick if ( colorsVisiblyDifferent(colors[2], currentColor) ) { colors[6] = currentColor; } } } } function walletOfOwner(address _owner) external view returns (uint[] memory) { uint ownerTokenCount = balanceOf(_owner); uint[] memory ownedTokenIds = new uint[](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] = currentTokenId; ownedTokenIndex++; } currentTokenId++; } return ownedTokenIds; } function colorsVisiblyDifferent(Color memory color1, Color memory color2) public pure returns (bool) { return absoluteDiff(color1.v, color2.v) > 25 || absoluteDiff(color1.s, color2.s) > 90 || absoluteDiff(color1.h, color2.h) > 25; } function absoluteDiff(uint a, uint b) private pure returns (uint) { return a > b ? a - b : b - a; } function hueDifference(uint hue1, uint hue2) private pure returns (uint) { uint regularDiff = absoluteDiff(hue1, hue2); uint circularDiff = 360 - regularDiff; return regularDiff < circularDiff ? regularDiff : circularDiff; } address public svgCSS; address public svgDefs; function setSvgData( string calldata _css, string calldata _svgDefs ) external onlyOwner unsealed { svgCSS = SSTORE2.write(bytes(_css)); svgDefs = SSTORE2.write(bytes(_svgDefs)); } function setSideLength(uint8 _sideLength) external onlyOwner unsealed { sideLength = _sideLength; } function tokenImage(uint tokenId) public view returns (string memory) { (bytes memory svg,,) = tokenImageWithMetadata(tokenId, false, 0, 0); return string(svg); } function tokenImageWithMetadata( uint tokenId, bool renderSingle, uint rowIdx, uint colIdx ) public view returns ( bytes memory svg, uint[2] memory squareCounts, bool pfpBrightMode ) { require(_exists(tokenId)); bytes memory svgBytes = DynamicBuffer.allocate(200 * 1024); uint16 _sideLength = sideLength; if (renderSingle) { svgBytes.appendSafe('<svg width="1200" height="1200" shape-rendering="crispEdges" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><style>'); } else { svgBytes.appendSafe('<svg shape-rendering="crispEdges" viewBox="0 0 '); svgBytes.appendSafe(bytes((_sideLength * 2 * 24).toString())); svgBytes.appendSafe(' '); svgBytes.appendSafe(bytes((_sideLength * 24).toString())); svgBytes.appendSafe('" xmlns="http://www.w3.org/2000/svg"><style>'); } svgBytes.appendSafe(SSTORE2.read(svgCSS)); svgBytes.appendSafe('</style>'); svgBytes.appendSafe(SSTORE2.read(svgDefs)); uint currentSeed = uint256( keccak256(abi.encode(tokenId, tokenIdToSeed[tokenId])) ); uint p1 = ((tokenId * 100) / maxSupply) / 2; uint counter; bool[] memory mintedPFPs = PFPContract.getMintedPFPsOnDiptych(tokenId); for (uint16 y; y < _sideLength; ++y) { for (uint16 x; x < (2 * _sideLength); ++x) { bool brightMode = deterministicRandomNumber(abi.encode(currentSeed, counter), 100) >= (x < _sideLength ? p1 : (100 - p1)); Color[7] memory colors = (!renderSingle && mintedPFPs[counter]) ? getOriginalColors(x >= _sideLength ? 0 : 1) : getColors( abi.encode(currentSeed, counter), brightMode ? 0 : 1 ); if (brightMode) { if (x >= _sideLength) { squareCounts[1]++; } } else { squareCounts[0]++; if (x < _sideLength) { squareCounts[1]++; } } ++counter; if (!renderSingle) { svgBytes.appendSafe('<g transform="translate('); svgBytes.appendSafe(bytes((x * 24).toString())); svgBytes.appendSafe(', '); svgBytes.appendSafe(bytes((y * 24).toString())); svgBytes.appendSafe(')">'); } if (!renderSingle || (renderSingle && (x == colIdx && y == rowIdx))) { pfpBrightMode = brightMode; svgBytes.appendSafe('<rect class="bg c'); svgBytes.appendSafe(bytes(colors[0].classIdx.toString())); svgBytes.appendSafe('"></rect>'); svgBytes.appendSafe('<use href="#h" class="c'); svgBytes.appendSafe(bytes(colors[1].classIdx.toString())); svgBytes.appendSafe('" />'); svgBytes.appendSafe('<use href="#s" class="c'); svgBytes.appendSafe(bytes(colors[2].classIdx.toString())); svgBytes.appendSafe('" />'); svgBytes.appendSafe('<use href="#de" class="c'); svgBytes.appendSafe(bytes(colors[3].classIdx.toString())); svgBytes.appendSafe('" />'); svgBytes.appendSafe('<use href="#le" class="c'); svgBytes.appendSafe(bytes(colors[4].classIdx.toString())); svgBytes.appendSafe('" />'); svgBytes.appendSafe('<use href="#m" class="c'); svgBytes.appendSafe(bytes(colors[5].classIdx.toString())); svgBytes.appendSafe('" />'); svgBytes.appendSafe('<use href="#l" class="c'); svgBytes.appendSafe(bytes(colors[6].classIdx.toString())); svgBytes.appendSafe('" />'); svgBytes.appendSafe('<use href="#o" fill="black" />'); if (!renderSingle) { svgBytes.appendSafe('</g>'); } } } } svgBytes.appendSafe('</svg>'); svg = svgBytes; } function withdraw() external onlyOwner { Address.sendValue(payable(msg.sender), address(this).balance); } function totalMintCost(uint numTokens, address minter) public view returns (uint) { if (minter == owner()) { return 0; } return numTokens * costPerToken; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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 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 // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.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. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); 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 overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 { _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 { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./utils/Bytecode.sol"; /** @title A key-value storage with auto-generated keys for storing chunks of data with a lower write & read cost. @author Agustin Aguilar <[email protected]> Readme: https://github.com/0xsequence/sstore2#readme */ library SSTORE2 { error WriteError(); /** @notice Stores `_data` and returns `pointer` as key for later retrieval @dev The pointer is a contract address with `_data` as code @param _data to be written @return pointer Pointer to the written `_data` */ function write(bytes memory _data) internal returns (address pointer) { // Append 00 to _data so contract can't be called // Build init code bytes memory code = Bytecode.creationCodeFor( abi.encodePacked( hex'00', _data ) ); // Deploy contract using create assembly { pointer := create(0, add(code, 32), mload(code)) } // Address MUST be non-zero if (pointer == address(0)) revert WriteError(); } /** @notice Reads the contents of the `_pointer` code as data, skips the first byte @dev The function is intended for reading pointers generated by `write` @param _pointer to be read @return data read from `_pointer` contract */ function read(address _pointer) internal view returns (bytes memory) { return Bytecode.codeAt(_pointer, 1, type(uint256).max); } /** @notice Reads the contents of the `_pointer` code as data, skips the first byte @dev The function is intended for reading pointers generated by `write` @param _pointer to be read @param _start number of bytes to skip @return data read from `_pointer` contract */ function read(address _pointer, uint256 _start) internal view returns (bytes memory) { return Bytecode.codeAt(_pointer, _start + 1, type(uint256).max); } /** @notice Reads the contents of the `_pointer` code as data, skips the first byte @dev The function is intended for reading pointers generated by `write` @param _pointer to be read @param _start number of bytes to skip @param _end index before which to end extraction @return data read from `_pointer` contract */ function read(address _pointer, uint256 _start, uint256 _end) internal view returns (bytes memory) { return Bytecode.codeAt(_pointer, _start + 1, _end + 1); } }
// 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); } }
// 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 // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 `IERC721.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 (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 (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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// 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/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library Bytecode { error InvalidCodeAtRange(uint256 _size, uint256 _start, uint256 _end); /** @notice Generate a creation code that results on a contract with `_code` as bytecode @param _code The returning value of the resulting `creationCode` @return creationCode (constructor) for new contract */ function creationCodeFor(bytes memory _code) internal pure returns (bytes memory) { /* 0x00 0x63 0x63XXXXXX PUSH4 _code.length size 0x01 0x80 0x80 DUP1 size size 0x02 0x60 0x600e PUSH1 14 14 size size 0x03 0x60 0x6000 PUSH1 00 0 14 size size 0x04 0x39 0x39 CODECOPY size 0x05 0x60 0x6000 PUSH1 00 0 size 0x06 0xf3 0xf3 RETURN <CODE> */ return abi.encodePacked( hex"63", uint32(_code.length), hex"80_60_0E_60_00_39_60_00_F3", _code ); } /** @notice Returns the size of the code on a given address @param _addr Address that may or may not contain code @return size of the code on the given `_addr` */ function codeSize(address _addr) internal view returns (uint256 size) { assembly { size := extcodesize(_addr) } } /** @notice Returns the code of a given address @dev It will fail if `_end < _start` @param _addr Address that may or may not contain code @param _start number of bytes of code to skip on read @param _end index before which to end extraction @return oCode read from `_addr` deployed bytecode Forked from: https://gist.github.com/KardanovIR/fe98661df9338c842b4a30306d507fbd */ function codeAt(address _addr, uint256 _start, uint256 _end) internal view returns (bytes memory oCode) { uint256 csize = codeSize(_addr); if (csize == 0) return bytes(""); if (_start > csize) return bytes(""); if (_end < _start) revert InvalidCodeAtRange(csize, _start, _end); unchecked { uint256 reqSize = _end - _start; uint256 maxSize = csize - _start; uint256 size = maxSize < reqSize ? maxSize : reqSize; assembly { // allocate output byte array - this could also be done without assembly // by using o_code = new bytes(size) oCode := mload(0x40) // new "memory end" including padding mstore(0x40, add(oCode, and(add(add(size, 0x20), 0x1f), not(0x1f)))) // store length in memory mstore(oCode, size) // actually retrieve the code, this needs assembly extcodecopy(_addr, add(oCode, 0x20), _start, size) } } } }
{ "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":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"_size","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"InvalidCodeAtRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WriteError","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":[],"name":"PFPContract","outputs":[{"internalType":"contract PFPInterface","name":"","type":"address"}],"stateMutability":"view","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":"uint256","name":"","type":"uint256"}],"name":"brightPunkColors","outputs":[{"internalType":"uint16","name":"h","type":"uint16"},{"internalType":"uint8","name":"s","type":"uint8"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"uint8","name":"classIdx","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint16","name":"h","type":"uint16"},{"internalType":"uint8","name":"s","type":"uint8"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"uint8","name":"classIdx","type":"uint8"}],"internalType":"struct OCMarilynDiptychs.Color","name":"color1","type":"tuple"},{"components":[{"internalType":"uint16","name":"h","type":"uint16"},{"internalType":"uint8","name":"s","type":"uint8"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"uint8","name":"classIdx","type":"uint8"}],"internalType":"struct OCMarilynDiptychs.Color","name":"color2","type":"tuple"}],"name":"colorsVisiblyDifferent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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":"","type":"uint256"}],"name":"darkPunkColors","outputs":[{"internalType":"uint16","name":"h","type":"uint16"},{"internalType":"uint8","name":"s","type":"uint8"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"uint8","name":"classIdx","type":"uint8"}],"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":"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":"bytes","name":"seed","type":"bytes"},{"internalType":"uint8","name":"darkMode","type":"uint8"}],"name":"getColors","outputs":[{"components":[{"internalType":"uint16","name":"h","type":"uint16"},{"internalType":"uint8","name":"s","type":"uint8"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"uint8","name":"classIdx","type":"uint8"}],"internalType":"struct OCMarilynDiptychs.Color[7]","name":"colors","type":"tuple[7]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"darkMode","type":"uint256"}],"name":"getOriginalColors","outputs":[{"components":[{"internalType":"uint16","name":"h","type":"uint16"},{"internalType":"uint8","name":"s","type":"uint8"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"uint8","name":"classIdx","type":"uint8"}],"internalType":"struct OCMarilynDiptychs.Color[7]","name":"colors","type":"tuple[7]"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTokenTitleAtIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mintMarilyn","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":[],"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":"address","name":"contractAddress","type":"address"}],"name":"setPFPContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"hues","type":"uint16[]"},{"internalType":"uint8[]","name":"sats","type":"uint8[]"},{"internalType":"uint8[]","name":"values","type":"uint8[]"},{"internalType":"uint8[]","name":"brightOrDark","type":"uint8[]"}],"name":"setPunkColors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_sideLength","type":"uint8"}],"name":"setSideLength","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_css","type":"string"},{"internalType":"string","name":"_svgDefs","type":"string"}],"name":"setSvgData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenTitles","type":"string"}],"name":"setTokenTitles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sideLength","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"svgCSS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"svgDefs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenImage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"renderSingle","type":"bool"},{"internalType":"uint256","name":"rowIdx","type":"uint256"},{"internalType":"uint256","name":"colIdx","type":"uint256"}],"name":"tokenImageWithMetadata","outputs":[{"internalType":"bytes","name":"svg","type":"bytes"},{"internalType":"uint256[2]","name":"squareCounts","type":"uint256[2]"},{"internalType":"bool","name":"pfpBrightMode","type":"bool"}],"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"},{"internalType":"address","name":"minter","type":"address"}],"name":"totalMintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526009805462ff00001916620500001790553480156200002257600080fd5b506040518060400160405280601381526020017f4f43204d6172696c796e20446970747963687300000000000000000000000000815250604051806040016040528060088152602001674d4152494c594e5360c01b815250620000946200008e620000cd60201b60201c565b620000d1565b8151620000a990600390602085019062000121565b508051620000bf90600490602084019062000121565b50506000600155506200020d565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200012f90620001dd565b90600052602060002090601f0160209004810192826200015357600085556200019e565b82601f106200016e57805160ff19168380011785556200019e565b828001600101855582156200019e579182015b828111156200019e57825182559160200191906001019062000181565b50620001ac929150620001b0565b5090565b5b80821115620001ac5760008155600101620001b1565b634e487b7160e01b600052602260045260246000fd5b600281046001821680620001f257607f821691505b602082108103620002075762000207620001c7565b50919050565b614a20806200021d6000396000f3fe6080604052600436106102885760003560e01c806370a082311161015a578063b88d4fde116100c1578063e972ae591161007a578063e972ae59146107c2578063e985e9c5146107e2578063efa2be871461082b578063f2fde38b1461084b578063f968adbe1461086b578063f9be2abf1461088057600080fd5b8063b88d4fde1461070c578063c0b092cd1461072c578063c87b56dd1461074c578063cf3484251461076c578063d5abeb011461078c578063e2987d31146107a257600080fd5b80639eec5ba9116101135780639eec5ba914610640578063a22cb46514610660578063a48359ec14610680578063a87f30ef146106ad578063b642c8af146106cd578063b6501637146106ed57600080fd5b806370a082311461058b578063715018a6146105ab57806385070741146105c05780638da5cb5b146105e05780638e8d4644146105fe57806395d89b411461062b57600080fd5b806342842e0e116101fe5780635b92ac0d116101b75780635b92ac0d146104d85780635b9db898146104f25780635df43d98146105075780636352211e1461052757806368bd580e146105475780637066366e1461055c57600080fd5b806342842e0e14610409578063438b6300146104295780634f558e791461045657806353d7bae71461047657806359c74f29146104a35780635ad3de0a146104b857600080fd5b806318160ddd1161025057806318160ddd1461034757806323b872dd146103695780632e475b08146103895780633ba523c7146103a95780633ccfd60b146103c45780633e2da046146103d957600080fd5b806301ffc9a71461028d57806306fdde03146102c3578063081812fc146102e55780630888b27b14610312578063095ea7b314610327575b600080fd5b34801561029957600080fd5b506102ad6102a8366004613224565b6108a0565b6040516102ba919061324f565b60405180910390f35b3480156102cf57600080fd5b506102d86108f2565b6040516102ba91906132bb565b3480156102f157600080fd5b506103056103003660046132dd565b610984565b6040516102ba9190613318565b61032561032036600461333a565b6109c8565b005b34801561033357600080fd5b5061032561034236600461333a565b610b05565b34801561035357600080fd5b50600254600154035b6040516102ba919061337d565b34801561037557600080fd5b5061032561038436600461338b565b610b8b565b34801561039557600080fd5b506103256103a43660046133ef565b610b96565b3480156103b557600080fd5b5061035c662386f26fc1000081565b3480156103d057600080fd5b50610325610c06565b3480156103e557600080fd5b506103f96103f43660046132dd565b610c3c565b6040516102ba9493929190613423565b34801561041557600080fd5b5061032561042436600461338b565b610c81565b34801561043557600080fd5b50610449610444366004613458565b610c9c565b6040516102ba91906134d6565b34801561046257600080fd5b506102ad6104713660046132dd565b610d8d565b34801561048257600080fd5b506104966104913660046135db565b610d98565b6040516102ba91906136b1565b3480156104af57600080fd5b50610325611093565b3480156104c457600080fd5b506103256104d3366004613458565b6110d1565b3480156104e457600080fd5b506009546102ad9060ff1681565b3480156104fe57600080fd5b506102d8611145565b34801561051357600080fd5b50601054610305906001600160a01b031681565b34801561053357600080fd5b506103056105423660046132dd565b611161565b34801561055357600080fd5b50610325611173565b34801561056857600080fd5b5061057c6105773660046136d3565b6111d6565b6040516102ba93929190613763565b34801561059757600080fd5b5061035c6105a6366004613458565b611a9b565b3480156105b757600080fd5b50610325611ae9565b3480156105cc57600080fd5b506103256105db3660046137e1565b611b1d565b3480156105ec57600080fd5b506000546001600160a01b0316610305565b34801561060a57600080fd5b50600b5461061e906001600160a01b031681565b6040516102ba9190613877565b34801561063757600080fd5b506102d8611c31565b34801561064c57600080fd5b50600f54610305906001600160a01b031681565b34801561066c57600080fd5b5061032561067b366004613885565b611c40565b34801561068c57600080fd5b506009546106a09062010000900460ff1681565b6040516102ba91906138b8565b3480156106b957600080fd5b5061035c6106c83660046138c6565b611cd8565b3480156106d957600080fd5b506103256106e8366004613a25565b611d1d565b3480156106f957600080fd5b506009546102ad90610100900460ff1681565b34801561071857600080fd5b50610325610727366004613ae4565b611f80565b34801561073857600080fd5b506102d86107473660046132dd565b611fca565b34801561075857600080fd5b506102d86107673660046132dd565b612129565b34801561077857600080fd5b506102d86107873660046132dd565b612159565b34801561079857600080fd5b5061035c6101f481565b3480156107ae57600080fd5b506102ad6107bd366004613bc8565b61216b565b3480156107ce57600080fd5b506103f96107dd3660046132dd565b6121d4565b3480156107ee57600080fd5b506102ad6107fd366004613bfc565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561083757600080fd5b506104966108463660046132dd565b6121e4565b34801561085757600080fd5b50610325610866366004613458565b612292565b34801561087757600080fd5b5061035c601481565b34801561088c57600080fd5b5061032561089b366004613c1e565b6122ee565b60006001600160e01b031982166380ac58cd60e01b14806108d157506001600160e01b03198216635b5e139f60e01b145b806108ec57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461090190613c7b565b80601f016020809104026020016040519081016040528092919081815260200182805461092d90613c7b565b801561097a5780601f1061094f5761010080835404028352916020019161097a565b820191906000526020600020905b81548152906001019060200180831161095d57829003601f168201915b5050505050905090565b600061098f826123a3565b6109ac576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6101f46109d86002546001540390565b6109e29083613cb7565b1115610a095760405162461bcd60e51b8152600401610a0090613d06565b60405180910390fd5b60095460ff16610a2b5760405162461bcd60e51b8152600401610a0090613d3f565b60008111610a4b5760405162461bcd60e51b8152600401610a0090613d77565b610a558133611cd8565b3414610a735760405162461bcd60e51b8152600401610a0090613db0565b333214610a925760405162461bcd60e51b8152600401610a0090613dec565b6014811115610ab35760405162461bcd60e51b8152600401610a0090613e22565b6001546000610ac1826123cf565b9050610acd8484612419565b600154825b81811015610afd576000818152600a6020526040902083905580610af581613e32565b915050610ad2565b505050505050565b6000610b1082611161565b9050806001600160a01b0316836001600160a01b031603610b445760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610b7b57610b5e81336107fd565b610b7b576040516367d9dca160e11b815260040160405180910390fd5b610b86838383612437565b505050565b610b86838383612493565b6000546001600160a01b03163314610bc05760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff1615610be85760405162461bcd60e51b8152600401610a0090613eb5565b6009805460ff909216620100000262ff000019909216919091179055565b6000546001600160a01b03163314610c305760405162461bcd60e51b8152600401610a0090613e7e565b610c3a334761267e565b565b600d8181548110610c4c57600080fd5b60009182526020909120015461ffff8116915060ff620100008204811691630100000081048216916401000000009091041684565b610b8683838360405180602001604052806000815250611f80565b60606000610ca983611a9b565b90506000816001600160401b03811115610cc557610cc56134e7565b604051908082528060200260200182016040528015610cee578160200160208202803683370190505b5090506000805b8381108015610d0557506101f482105b15610d83576000610d15836123a3565b610d20576000610d29565b610d2983611161565b9050866001600160a01b0316816001600160a01b031603610d705782848381518110610d5757610d57613ec5565b602090810291909101015281610d6c81613e32565b9250505b82610d7a81613e32565b93505050610cf5565b5090949350505050565b60006108ec826123a3565b610da061319e565b600d54600c5460408051608081018252600080825260208201819052918101829052606081810183905291939192905b60c08601516060015160ff1660000361108857610dec85613e32565b94508785604051602001610e01929190613edb565b60405160208183030381529060405293508660ff16600103610e9357600d610e29858561271a565b81548110610e3957610e39613ec5565b600091825260209182902060408051608081018252919092015461ffff8116825260ff6201000082048116948301949094526301000000810484169282019290925264010000000090910490911660608201529050610f05565b600c610e9f858461271a565b81548110610eaf57610eaf613ec5565b600091825260209182902060408051608081018252919092015461ffff8116825260ff62010000820481169483019490945263010000008104841692820192909252640100000000909104909116606082015290505b85516060015160ff16600003610f2757808652808660035b6020020152610dd0565b60208601516060015160ff16600003610f5e57610f4c8660005b60200201518261216b565b15610f5957602086018190525b610dd0565b60408601516060015160ff16600003610f9c57610f7c866000610f41565b8015610f8e5750610f8e866001610f41565b15610f595780866002610f1d565b60808601516060015160ff1660000361103057610fba866002610f41565b8015610ff857508660ff16600114610fd3576078610fd7565b61015e5b61ffff16610ff6876003602002015151835161ffff918216911661275a565b105b80156110225750600a61102087600360200201516040015160ff16836040015160ff16612791565b115b15610f595780866004610f1d565b60a08601516060015160ff1660000361105c5761104e866002610f41565b15610f595780866005610f1d565b60c08601516060015160ff16600003610f595761107a866002610f41565b15610f595780866006610f1d565b505050505092915050565b6000546001600160a01b031633146110bd5760405162461bcd60e51b8152600401610a0090613e7e565b6009805460ff19811660ff90911615179055565b6000546001600160a01b031633146110fb5760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff16156111235760405162461bcd60e51b8152600401610a0090613eb5565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6040518060600160405280603581526020016148666035913981565b600061116c826127b3565b5192915050565b6000546001600160a01b0316331461119d5760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff16156111c55760405162461bcd60e51b8152600401610a0090613eb5565b6009805461ff001916610100179055565b60606111e06131e4565b60006111eb876123a3565b6111f457600080fd5b604080516203206081019091526203204081526000602090910190815260095462010000900460ff16871561124b576112466040518060a00160405280607b81526020016147eb607b913983906128cd565b6112f1565b61126e6040518060600160405280602f81526020016147bc602f913983906128cd565b61129a61129361127f836002613efb565b61128a906018613efb565b61ffff16612912565b83906128cd565b6040805180820190915260018152600160fd1b60208201526112bd9083906128cd565b6112ce61129361128a836018613efb565b6112f16040518060600160405280602c81526020016148db602c913983906128cd565b600f5461130a90611293906001600160a01b0316612a12565b6040805180820190915260088152671e17b9ba3cb6329f60c11b60208201526113349083906128cd565b60105461134d90611293906001600160a01b0316612a12565b6000898152600a6020908152604080832054905161136e928d929101613f28565b60408051601f1981840301815291905280516020909101209050600060026101f461139a8d6064613f43565b6113a49190613f73565b6113ae9190613f73565b9050600080600b60009054906101000a90046001600160a01b03166001600160a01b03166398083ff48e6040518263ffffffff1660e01b81526004016113f4919061337d565b600060405180830381865afa158015611411573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114399190810190614007565b905060005b8561ffff168161ffff161015611a5f5760005b61145c876002613efb565b61ffff168161ffff161015611a4e5760008761ffff168261ffff161061148c57611487866064614041565b61148e565b855b6114ba88876040516020016114a4929190613f28565b604051602081830303815290604052606461271a565b1015905060008f1580156114e457508486815181106114db576114db613ec5565b60200260200101515b6115255761152088876040516020016114fe929190613f28565b60405160208183030381529060405283611519576001610d98565b6000610d98565b61154a565b61154a8961ffff168461ffff16101561153f576001611542565b60005b60ff166121e4565b9050811561157a578861ffff168361ffff16106115755760208c0180519061157182613e32565b9052505b6115ae565b8b518c61158682613e32565b815250508861ffff168361ffff1610156115ae5760208c018051906115aa82613e32565b9052505b6115b786613e32565b95508f61166f5760408051808201909152601881527f3c67207472616e73666f726d3d227472616e736c61746528000000000000000060208201526115fd908b906128cd565b61161561160e61128a856018613efb565b8b906128cd565b604080518082019091526002815261016160f51b6020820152611639908b906128cd565b61164a61160e61128a866018613efb565b60408051808201909152600381526214911f60e91b602082015261166f908b906128cd565b8f158061169557508f801561169557508d8361ffff1614801561169557508e8461ffff16145b15611a3b57819a506116d9604051806040016040528060118152602001703c7265637420636c6173733d226267206360781b8152508b6128cd90919063ffffffff16565b6116f461160e8260005b60200201516060015160ff16612912565b604080518082019091526009815268111f1e17b932b1ba1f60b91b602082015261171f908b906128cd565b60408051808201909152601781527f3c75736520687265663d2223682220636c6173733d2263000000000000000000602082015261175e908b906128cd565b61176c61160e8260016116e3565b6040805180820190915260048152631110179f60e11b6020820152611792908b906128cd565b60408051808201909152601781527f3c75736520687265663d2223732220636c6173733d226300000000000000000060208201526117d1908b906128cd565b6117df61160e8260026116e3565b6040805180820190915260048152631110179f60e11b6020820152611805908b906128cd565b60408051808201909152601881527f3c75736520687265663d222364652220636c6173733d226300000000000000006020820152611844908b906128cd565b61185261160e8260036116e3565b6040805180820190915260048152631110179f60e11b6020820152611878908b906128cd565b60408051808201909152601881527f3c75736520687265663d22236c652220636c6173733d2263000000000000000060208201526118b7908b906128cd565b6118c561160e8260046116e3565b6040805180820190915260048152631110179f60e11b60208201526118eb908b906128cd565b60408051808201909152601781527f3c75736520687265663d22236d2220636c6173733d2263000000000000000000602082015261192a908b906128cd565b61193861160e8260056116e3565b6040805180820190915260048152631110179f60e11b602082015261195e908b906128cd565b60408051808201909152601781527f3c75736520687265663d22236c2220636c6173733d2263000000000000000000602082015261199d908b906128cd565b6119ab61160e8260066116e3565b6040805180820190915260048152631110179f60e11b60208201526119d1908b906128cd565b60408051808201909152601e81527f3c75736520687265663d22236f222066696c6c3d22626c61636b22202f3e00006020820152611a10908b906128cd565b8f611a3b576040805180820190915260048152631e17b39f60e11b6020820152611a3b908b906128cd565b505080611a4790614058565b9050611451565b50611a5881614058565b905061143e565b506040805180820190915260068152651e17b9bb339f60d11b6020820152611a889087906128cd565b8598505050505050509450945094915050565b60006001600160a01b038216611ac4576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b03163314611b135760405162461bcd60e51b8152600401610a0090613e7e565b610c3a6000612a22565b6000546001600160a01b03163314611b475760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff1615611b6f5760405162461bcd60e51b8152600401610a0090613eb5565b611bae84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612a7292505050565b600f80546001600160a01b0319166001600160a01b0392909216919091179055604080516020601f8401819004810282018101909252828152611c0b918490849081908401838280828437600092019190915250612a7292505050565b601080546001600160a01b0319166001600160a01b039290921691909117905550505050565b60606004805461090190613c7b565b336001600160a01b03831603611c695760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611ccc90859061324f565b60405180910390a35050565b600080546001600160a01b03166001600160a01b0316826001600160a01b031603611d05575060006108ec565b611d16662386f26fc1000084613f43565b9392505050565b6000546001600160a01b03163314611d475760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff1615611d6f5760405162461bcd60e51b8152600401610a0090613eb5565b60005b84518160ff161015611f795760006040518060800160405280878460ff1681518110611da057611da0613ec5565b602002602001015161ffff168152602001868460ff1681518110611dc657611dc6613ec5565b602002602001015160ff168152602001858460ff1681518110611deb57611deb613ec5565b602002602001015160ff168152602001836001611e089190614070565b60ff1681525090506000838360ff1681518110611e2757611e27613ec5565b602002602001015160ff161115611ed257600c805460018101825560009190915281517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7909101805460208401516040850151606086015161ffff90951662ffffff19909316929092176201000060ff928316021764ffff000000191663010000009282169290920264ff000000001916919091176401000000009190931602919091179055611f68565b600d805460018101825560009190915281517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5909101805460208401516040850151606086015161ffff90951662ffffff19909316929092176201000060ff928316021764ffff000000191663010000009282169290920264ff0000000019169190911764010000000091909316029190911790555b50611f7281614091565b9050611d72565b5050505050565b611f8b848484612493565b6001600160a01b0383163b15611fc457611fa784848484612ad7565b611fc4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611fd5826123a3565b611fde57600080fd5b600e54600090611ff6906001600160a01b0316612a12565b6040805160928101825260728152600060209182018181528351808501855260018152601f60fa1b818501529351949550939092612036929091016140c9565b604051602081830303815290604052805190602001209050600085602e61205d9190613f43565b90505b61206b866001613cb7565b61207690602e613f43565b811015610d8357600084828151811061209157612091613ec5565b602001015160f81c60f81b6040516020016120ac91906140e5565b6040516020818303038152906040528051906020012090508281036120d15750610d83565b6121188583815181106120e6576120e6613ec5565b602001015160f81c60f81b60405160200161210191906140e5565b60408051601f1981840301815291905285906128cd565b5061212281613e32565b9050612060565b6060612134826123a3565b6121505760405162461bcd60e51b8152600401610a0090614125565b6108ec82612bc2565b60606000610d838360008060006111d6565b60006019612187846040015160ff16846040015160ff16612791565b11806121aa5750605a6121a8846020015160ff16846020015160ff16612791565b115b80611d16575060196121cc846000015161ffff16846000015161ffff16612791565b119392505050565b600c8181548110610c4c57600080fd5b6121ec61319e565b81600003612242578051606760609182015260208201516061908201526040820151606490820152808201516066908201526080820151810181905260a082015160659082015260c08201516063910152919050565b8051606860609182015260208201516069908201526040820151606a9082015280820151606b908201526080820151606c9082015260a0820151606d9082015260c0820151606e9101525b919050565b6000546001600160a01b031633146122bc5760405162461bcd60e51b8152600401610a0090613e7e565b6001600160a01b0381166122e25760405162461bcd60e51b8152600401610a009061417b565b6122eb81612a22565b50565b6000546001600160a01b031633146123185760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff16156123405760405162461bcd60e51b8152600401610a0090613eb5565b61237f82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612a7292505050565b600e80546001600160a01b0319166001600160a01b03929092169190911790555050565b6000600154821080156108ec575050600090815260056020526040902054600160e01b900460ff161590565b600080823a4342446123e2600184614041565b40306040516020016123fa979695949392919061418b565b60408051601f1981840301815291905280516020909101209392505050565b612433828260405180602001604052806000815250612d68565b5050565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061249e826127b3565b9050836001600160a01b031681600001516001600160a01b0316146124d55760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806124f357506124f385336107fd565b8061250e57503361250384610984565b6001600160a01b0316145b90508061252e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661255557604051633a954ecd60e21b815260040160405180910390fd5b61256160008487612437565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661263557600154821461263557805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611f79565b8047101561269e5760405162461bcd60e51b8152600401610a0090614227565b6000826001600160a01b0316826040516126b790614237565b60006040518083038185875af1925050503d80600081146126f4576040519150601f19603f3d011682016040523d82523d6000602084013e6126f9565b606091505b5050905080610b865760405162461bcd60e51b8152600401610a0090614299565b6000808360405160200161272e91906132bb565b60408051601f198184030181529190528051602090910120905061275283826142a9565b949350505050565b6000806127678484612791565b9050600061277782610168614041565b90508082106127865780612788565b815b95945050505050565b60008183116127a9576127a48383614041565b611d16565b611d168284614041565b6040805160608101825260008082526020820181905291810191909152816001548110156128b457600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906128b25780516001600160a01b031615612849579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156128ad579392505050565b612849565b505b604051636f96cda160e11b815260040160405180910390fd5b601f1982015182518251603f199092019182906128ea9083613cb7565b11156129085760405162461bcd60e51b8152600401610a0090614301565b611fc48484612f2e565b6060816000036129395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612963578061294d81613e32565b915061295c9050600a83613f73565b915061293d565b6000816001600160401b0381111561297d5761297d6134e7565b6040519080825280601f01601f1916602001820160405280156129a7576020820181803683370190505b5090505b8415612752576129bc600183614041565b91506129c9600a866142a9565b6129d4906030613cb7565b60f81b8183815181106129e9576129e9613ec5565b60200101906001600160f81b031916908160001a905350612a0b600a86613f73565b94506129ab565b60606108ec826001600019612f64565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080612a9d83604051602001612a89919061431b565b60405160208183030381529060405261300e565b90508051602082016000f091506001600160a01b038216612ad15760405163046a55db60e11b815260040160405180910390fd5b50919050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b0c903390899088908890600401614332565b6020604051808303816000875af1925050508015612b47575060408051601f3d908101601f19168201909252612b4491810190614381565b60015b612ba5573d808015612b75576040519150601f19603f3d011682016040523d82523d6000602084013e612b7a565b606091505b508051600003612b9d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600080612bd58460008060006111d6565b50600b54604051630d40a5a360e11b81529294509092506000916001600160a01b0390911690631a814b4690612c0f90889060040161337d565b602060405180830381865afa158015612c2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c5091906143ad565b60095490915062010000900460ff166000612c6c826002613f43565b612c769083613f43565b8451909150600090612c889083614041565b90506000612c9589611fca565b9050612d3b8160405180610120016040528060e4815260200161490760e49139612cbe8a61303a565b60405180606001604052806035815260200161486660359139612ce18651612912565b612cea8b612912565b612cf389612912565b612d048e60005b6020020151612912565b612d0f8f6001612cfa565b604051602001612d2799989796959493929190614464565b60405160208183030381529060405261303a565b604051602001612d4b9190614726565b604051602081830303815290604052975050505050505050919050565b6001546001600160a01b038416612d9157604051622e076360e81b815260040160405180910390fd5b82600003612db25760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600590925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612eda575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612ea36000878480600101955087612ad7565b612ec0576040516368d2bf6b60e11b815260040160405180910390fd5b808210612e58578260015414612ed557600080fd5b612f1f565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612edb575b50600155611fc4600085838684565b8051602082019150808201602084510184015b81841015612f59578351815260209384019301612f41565b505082510190915250565b6060833b6000819003612f87575050604080516020810190915260008152611d16565b80841115612fa5575050604080516020810190915260008152611d16565b83831015612fcc5780848460405163162544fd60e11b8152600401610a0093929190614731565b8383038482036000828210612fe15782612fe3565b815b60408051603f8301601f19168101909152818152955090508087602087018a3c505050509392505050565b6060815182604051602001613024929190614782565b6040516020818303038152906040529050919050565b6060815160000361305957505060408051602081019091526000815290565b600060405180606001604052806040815260200161489b60409139905060006003845160026130889190613cb7565b6130929190613f73565b61309d906004613f43565b905060006130ac826020613cb7565b6001600160401b038111156130c3576130c36134e7565b6040519080825280601f01601f1916602001820160405280156130ed576020820181803683370190505b509050818152600183018586518101602084015b81831015613159576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101613101565b600389510660018114613173576002811461318457613190565b613d3d60f01b600119830152613190565b603d60f81b6000198301525b509398975050505050505050565b6040518060e001604052806007905b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816131ad5790505090565b60405180604001604052806002906020820280368337509192915050565b6001600160e01b031981165b81146122eb57600080fd5b80356108ec81613202565b60006020828403121561323957613239600080fd5b60006127528484613219565b8015155b82525050565b602081016108ec8284613245565b60005b83811015613278578181015183820152602001613260565b83811115611fc45750506000910152565b6000613293825190565b8084526020840193506132aa81856020860161325d565b601f01601f19169290920192915050565b60208082528101611d168184613289565b8061320e565b80356108ec816132cc565b6000602082840312156132f2576132f2600080fd5b600061275284846132d2565b60006001600160a01b0382166108ec565b613249816132fe565b602081016108ec828461330f565b61320e816132fe565b80356108ec81613326565b6000806040838503121561335057613350600080fd5b600061335c858561332f565b925050602061336d858286016132d2565b9150509250929050565b80613249565b602081016108ec8284613377565b6000806000606084860312156133a3576133a3600080fd5b60006133af868661332f565b93505060206133c08682870161332f565b92505060406133d1868287016132d2565b9150509250925092565b60ff811661320e565b80356108ec816133db565b60006020828403121561340457613404600080fd5b600061275284846133e4565b61ffff8116613249565b60ff8116613249565b608081016134318287613410565b61343e602083018661341a565b61344b604083018561341a565b612788606083018461341a565b60006020828403121561346d5761346d600080fd5b6000612752848461332f565b60006134858383613377565b505060200190565b6000613497825190565b80845260209384019383018060005b838110156134cb5781516134ba8882613479565b9750602083019250506001016134a6565b509495945050505050565b60208082528101611d16818461348d565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715613522576135226134e7565b6040525050565b600061353460405190565b905061228d82826134fd565b60006001600160401b03821115613559576135596134e7565b601f19601f83011660200192915050565b82818337506000910152565b600061358961358484613540565b613529565b9050828152602081018484840111156135a4576135a4600080fd5b6135af84828561356a565b509392505050565b600082601f8301126135cb576135cb600080fd5b8135612752848260208601613576565b600080604083850312156135f1576135f1600080fd5b82356001600160401b0381111561360a5761360a600080fd5b613616858286016135b7565b925050602061336d858286016133e4565b805160808301906136388482613410565b50602082015161364b602085018261341a565b50604082015161365e604085018261341a565b506060820151611fc4606085018261341a565b600061367d8383613627565b505060800190565b6007818060005b83811015610afd5781516136a08782613671565b96506020830192505060010161368c565b61038081016108ec8284613685565b80151561320e565b80356108ec816136c0565b600080600080608085870312156136ec576136ec600080fd5b60006136f887876132d2565b9450506020613709878288016136c8565b935050604061371a878288016132d2565b925050606061372b878288016132d2565b91505092959194509250565b6002818060005b83811015610afd5781516137528782613479565b96506020830192505060010161373e565b608080825281016137748186613289565b90506137836020830185613737565b6127526060830184613245565b60008083601f8401126137a5576137a5600080fd5b5081356001600160401b038111156137bf576137bf600080fd5b6020830191508360018202830111156137da576137da600080fd5b9250929050565b600080600080604085870312156137fa576137fa600080fd5b84356001600160401b0381111561381357613813600080fd5b61381f87828801613790565b945094505060208501356001600160401b0381111561384057613840600080fd5b61384c87828801613790565b95989497509550505050565b60006108ec826132fe565b60006108ec82613858565b61324981613863565b602081016108ec828461386e565b6000806040838503121561389b5761389b600080fd5b60006138a7858561332f565b925050602061336d858286016136c8565b602081016108ec828461341a565b600080604083850312156138dc576138dc600080fd5b60006138e885856132d2565b925050602061336d8582860161332f565b60006001600160401b03821115613912576139126134e7565b5060209081020190565b61ffff811661320e565b80356108ec8161391c565b600061393f613584846138f9565b8381529050602080820190840283018581111561395e5761395e600080fd5b835b8181101561398257806139738882613926565b84525060209283019201613960565b5050509392505050565b600082601f8301126139a0576139a0600080fd5b8135612752848260208601613931565b60006139be613584846138f9565b838152905060208082019084028301858111156139dd576139dd600080fd5b835b8181101561398257806139f288826133e4565b845250602092830192016139df565b600082601f830112613a1557613a15600080fd5b81356127528482602086016139b0565b60008060008060808587031215613a3e57613a3e600080fd5b84356001600160401b03811115613a5757613a57600080fd5b613a638782880161398c565b94505060208501356001600160401b03811115613a8257613a82600080fd5b613a8e87828801613a01565b93505060408501356001600160401b03811115613aad57613aad600080fd5b613ab987828801613a01565b92505060608501356001600160401b03811115613ad857613ad8600080fd5b61372b87828801613a01565b60008060008060808587031215613afd57613afd600080fd5b6000613b09878761332f565b9450506020613b1a8782880161332f565b9350506040613b2b878288016132d2565b92505060608501356001600160401b03811115613b4a57613b4a600080fd5b61372b878288016135b7565b600060808284031215613b6b57613b6b600080fd5b613b756080613529565b90506000613b838484613926565b8252506020613b94848483016133e4565b6020830152506040613ba8848285016133e4565b6040830152506060613bbc848285016133e4565b60608301525092915050565b6000806101008385031215613bdf57613bdf600080fd5b6000613beb8585613b56565b925050608061336d85828601613b56565b60008060408385031215613c1257613c12600080fd5b60006138e8858561332f565b60008060208385031215613c3457613c34600080fd5b82356001600160401b03811115613c4d57613c4d600080fd5b613c5985828601613790565b92509250509250929050565b634e487b7160e01b600052602260045260246000fd5b600281046001821680613c8f57607f821691505b602082108103612ad157612ad1613c65565b634e487b7160e01b600052601160045260246000fd5b60008219821115613cca57613cca613ca1565b500190565b601d81526000602082017f4d6172696c796e20737570706c79206c696d697420726561636865642e000000815291505b5060200190565b602080825281016108ec81613ccf565b60128152600060208201714d696e74206973206e6f742061637469766560701b81529150613cff565b602080825281016108ec81613d16565b60118152600060208201704d696e74206174206c65617374206f6e6560781b81529150613cff565b602080825281016108ec81613d4f565b60128152600060208201711399595908195e1858dd081c185e5b595b9d60721b81529150613cff565b602080825281016108ec81613d87565b601581526000602082017410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b81529150613cff565b602080825281016108ec81613dc0565b600f81526000602082016e546f6f206d616e7920746f6b656e7360881b81529150613cff565b602080825281016108ec81613dfc565b60006000198203613e4557613e45613ca1565b5060010190565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613cff565b602080825281016108ec81613e4c565b601081526000602082016f21b7b73a3930b1ba1039b2b0b632b21760811b81529150613cff565b602080825281016108ec81613e8e565b634e487b7160e01b600052603260045260246000fd5b60408082528101613eec8185613289565b9050611d166020830184613377565b600061ffff8216915061ffff831692508161ffff0483118215151615613f2357613f23613ca1565b500290565b60408101613f368285613377565b611d166020830184613377565b6000816000190483118215151615613f2357613f23613ca1565b634e487b7160e01b600052601260045260246000fd5b600082613f8257613f82613f5d565b500490565b80516108ec816136c0565b6000613fa0613584846138f9565b83815290506020808201908402830185811115613fbf57613fbf600080fd5b835b818110156139825780613fd48882613f87565b84525060209283019201613fc1565b600082601f830112613ff757613ff7600080fd5b8151612752848260208601613f92565b60006020828403121561401c5761401c600080fd5b81516001600160401b0381111561403557614035600080fd5b61275284828501613fe3565b60008282101561405357614053613ca1565b500390565b61ffff16600061fffe198201613e4557613e45613ca1565b600060ff8216915060ff831692508260ff03821115613cca57613cca613ca1565b60ff16600060fe198201613e4557613e45613ca1565b60006140b1825190565b6140bf81856020860161325d565b9290920192915050565b6000611d1682846140a7565b6001600160f81b03198116613249565b60006140f182846140d5565b50600101919050565b6014815260006020820173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81529150613cff565b602080825281016108ec816140fa565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291505b5060400190565b602080825281016108ec81614135565b60e08101614199828a613377565b6141a66020830189613377565b6141b36040830188613377565b6141c06060830187613377565b6141cd6080830186613377565b6141da60a0830185613377565b6141e760c083018461330f565b98975050505050505050565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150613cff565b602080825281016108ec816141f3565b6000816108ec565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150614174565b602080825281016108ec8161423f565b6000826142b8576142b8613f5d565b500690565b602781526000602082017f44796e616d69634275666665723a20417070656e64696e67206f7574206f66208152663137bab732399760c91b60208201529150614174565b602080825281016108ec816142bd565b6000808252613e45565b600061432682614311565b9150611d1682846140a7565b60808101614340828761330f565b61434d602083018661330f565b61435a6040830185613377565b818103606083015261436c8184613289565b9695505050505050565b80516108ec81613202565b60006020828403121561439657614396600080fd5b60006127528484614376565b80516108ec816132cc565b6000602082840312156143c2576143c2600080fd5b600061275284846143a2565b607b60f81b81526000613e45565b7f2274726169745f74797065223a20225469746c65204c656e677468222c000000815260005b50601d0190565b601160f91b81526000613e45565b627d2c7b60e81b815260005b5060030190565b7f2274726169745f74797065223a20224461726b2053717561726573222c00000081526000614402565b627d5d7d60e81b81526000614423565b600061446f826143ce565b66113730b6b2911d60c91b8152600701915061448b828c6140a7565b6f16113232b9b1b934b83a34b7b7111d1160811b815260100191506144b0828b6140a7565b7f222c22696d6167655f64617461223a22646174613a696d6167652f7376672b788152691b5b0ed8985cd94d8d0b60b21b6020820152602a0191506144f5828a6140a7565b7111161132bc3a32b93730b62fbab936111d1160711b8152601201915061451c82896140a7565b70222c2261747472696275746573223a205b60781b81526011019150614541826143ce565b915061454c826143dc565b69113b30b63ab2911d101160b11b8152600a01915061456b82886140a7565b915061457682614409565b915061458182614417565b7f2274726169745f74797065223a20224f43204d6172696c796e2050465073204d8152661a5b9d1959088b60ca1b602082015269113b30b63ab2911d101160b11b602782015260310191506145d682876140a7565b91506145e182614409565b91506145ec82614417565b7f2274726169745f74797065223a20224272696768742053717561726573222c00815269113b30b63ab2911d101160b11b601f820152602901915061463182866140a7565b915061463c82614409565b915061464782614417565b91506146528261442a565b69113b30b63ab2911d101160b11b8152600a01915061467182856140a7565b915061467c82614409565b915061468782614417565b7f2274726169745f74797065223a202243726f73736f7665722053717561726573815261088b60f21b602082015269113b30b63ab2911d101160b11b6022820152602c0191506146d782846140a7565b91506146e282614409565b91506146ed82614454565b9b9a5050505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000614402565b6000614326826146fc565b6060810161473f8286613377565b61474c6020830185613377565b6127526040830184613377565b606360f81b81526000613e45565b60006108ec8260e01b90565b61324963ffffffff8216614767565b600061478d82614759565b91506147998285614773565b6880600e6000396000f360b81b6004830152600d9091019061275282846140a756fe3c7376672073686170652d72656e646572696e673d2263726973704564676573222076696577426f783d22302030203c7376672077696474683d223132303022206865696768743d2231323030222073686170652d72656e646572696e673d2263726973704564676573222076696577426f783d223020302032342032342220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e3c7374796c653e68747470733a2f2f63617073756c6532312e636f6d2f636f6c6c656374696f6e732f6f632d6d6172696c796e2d64697074796368734142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f2220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e3c7374796c653e4f6e65206f662035303020416e647920576172686f6c2d696e737069726564204d6172696c796e204d6f6e726f652044697074796368732c20656163682072616e646f6d6c792067656e657261746564206174206d696e74207573696e67206f6e6c7920636f6c6f72732066726f6d207468652043727970746f50756e6b7320636f6c6c656374696f6e2e5c6e5c6e4561636820446970747963682069732073746f7265642031303025206f6e2d636861696e2e20496e646976696475616c204d6172696c796e732063616e20616c736f206265206d696e74656420617320504650732ea26469706673582212208725709be66a462b9ca1cc9d9c8c81186a36cf9467ba9d3152293702c7dc3ac264736f6c634300080d0033
Deployed Bytecode
0x6080604052600436106102885760003560e01c806370a082311161015a578063b88d4fde116100c1578063e972ae591161007a578063e972ae59146107c2578063e985e9c5146107e2578063efa2be871461082b578063f2fde38b1461084b578063f968adbe1461086b578063f9be2abf1461088057600080fd5b8063b88d4fde1461070c578063c0b092cd1461072c578063c87b56dd1461074c578063cf3484251461076c578063d5abeb011461078c578063e2987d31146107a257600080fd5b80639eec5ba9116101135780639eec5ba914610640578063a22cb46514610660578063a48359ec14610680578063a87f30ef146106ad578063b642c8af146106cd578063b6501637146106ed57600080fd5b806370a082311461058b578063715018a6146105ab57806385070741146105c05780638da5cb5b146105e05780638e8d4644146105fe57806395d89b411461062b57600080fd5b806342842e0e116101fe5780635b92ac0d116101b75780635b92ac0d146104d85780635b9db898146104f25780635df43d98146105075780636352211e1461052757806368bd580e146105475780637066366e1461055c57600080fd5b806342842e0e14610409578063438b6300146104295780634f558e791461045657806353d7bae71461047657806359c74f29146104a35780635ad3de0a146104b857600080fd5b806318160ddd1161025057806318160ddd1461034757806323b872dd146103695780632e475b08146103895780633ba523c7146103a95780633ccfd60b146103c45780633e2da046146103d957600080fd5b806301ffc9a71461028d57806306fdde03146102c3578063081812fc146102e55780630888b27b14610312578063095ea7b314610327575b600080fd5b34801561029957600080fd5b506102ad6102a8366004613224565b6108a0565b6040516102ba919061324f565b60405180910390f35b3480156102cf57600080fd5b506102d86108f2565b6040516102ba91906132bb565b3480156102f157600080fd5b506103056103003660046132dd565b610984565b6040516102ba9190613318565b61032561032036600461333a565b6109c8565b005b34801561033357600080fd5b5061032561034236600461333a565b610b05565b34801561035357600080fd5b50600254600154035b6040516102ba919061337d565b34801561037557600080fd5b5061032561038436600461338b565b610b8b565b34801561039557600080fd5b506103256103a43660046133ef565b610b96565b3480156103b557600080fd5b5061035c662386f26fc1000081565b3480156103d057600080fd5b50610325610c06565b3480156103e557600080fd5b506103f96103f43660046132dd565b610c3c565b6040516102ba9493929190613423565b34801561041557600080fd5b5061032561042436600461338b565b610c81565b34801561043557600080fd5b50610449610444366004613458565b610c9c565b6040516102ba91906134d6565b34801561046257600080fd5b506102ad6104713660046132dd565b610d8d565b34801561048257600080fd5b506104966104913660046135db565b610d98565b6040516102ba91906136b1565b3480156104af57600080fd5b50610325611093565b3480156104c457600080fd5b506103256104d3366004613458565b6110d1565b3480156104e457600080fd5b506009546102ad9060ff1681565b3480156104fe57600080fd5b506102d8611145565b34801561051357600080fd5b50601054610305906001600160a01b031681565b34801561053357600080fd5b506103056105423660046132dd565b611161565b34801561055357600080fd5b50610325611173565b34801561056857600080fd5b5061057c6105773660046136d3565b6111d6565b6040516102ba93929190613763565b34801561059757600080fd5b5061035c6105a6366004613458565b611a9b565b3480156105b757600080fd5b50610325611ae9565b3480156105cc57600080fd5b506103256105db3660046137e1565b611b1d565b3480156105ec57600080fd5b506000546001600160a01b0316610305565b34801561060a57600080fd5b50600b5461061e906001600160a01b031681565b6040516102ba9190613877565b34801561063757600080fd5b506102d8611c31565b34801561064c57600080fd5b50600f54610305906001600160a01b031681565b34801561066c57600080fd5b5061032561067b366004613885565b611c40565b34801561068c57600080fd5b506009546106a09062010000900460ff1681565b6040516102ba91906138b8565b3480156106b957600080fd5b5061035c6106c83660046138c6565b611cd8565b3480156106d957600080fd5b506103256106e8366004613a25565b611d1d565b3480156106f957600080fd5b506009546102ad90610100900460ff1681565b34801561071857600080fd5b50610325610727366004613ae4565b611f80565b34801561073857600080fd5b506102d86107473660046132dd565b611fca565b34801561075857600080fd5b506102d86107673660046132dd565b612129565b34801561077857600080fd5b506102d86107873660046132dd565b612159565b34801561079857600080fd5b5061035c6101f481565b3480156107ae57600080fd5b506102ad6107bd366004613bc8565b61216b565b3480156107ce57600080fd5b506103f96107dd3660046132dd565b6121d4565b3480156107ee57600080fd5b506102ad6107fd366004613bfc565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561083757600080fd5b506104966108463660046132dd565b6121e4565b34801561085757600080fd5b50610325610866366004613458565b612292565b34801561087757600080fd5b5061035c601481565b34801561088c57600080fd5b5061032561089b366004613c1e565b6122ee565b60006001600160e01b031982166380ac58cd60e01b14806108d157506001600160e01b03198216635b5e139f60e01b145b806108ec57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606003805461090190613c7b565b80601f016020809104026020016040519081016040528092919081815260200182805461092d90613c7b565b801561097a5780601f1061094f5761010080835404028352916020019161097a565b820191906000526020600020905b81548152906001019060200180831161095d57829003601f168201915b5050505050905090565b600061098f826123a3565b6109ac576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6101f46109d86002546001540390565b6109e29083613cb7565b1115610a095760405162461bcd60e51b8152600401610a0090613d06565b60405180910390fd5b60095460ff16610a2b5760405162461bcd60e51b8152600401610a0090613d3f565b60008111610a4b5760405162461bcd60e51b8152600401610a0090613d77565b610a558133611cd8565b3414610a735760405162461bcd60e51b8152600401610a0090613db0565b333214610a925760405162461bcd60e51b8152600401610a0090613dec565b6014811115610ab35760405162461bcd60e51b8152600401610a0090613e22565b6001546000610ac1826123cf565b9050610acd8484612419565b600154825b81811015610afd576000818152600a6020526040902083905580610af581613e32565b915050610ad2565b505050505050565b6000610b1082611161565b9050806001600160a01b0316836001600160a01b031603610b445760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610b7b57610b5e81336107fd565b610b7b576040516367d9dca160e11b815260040160405180910390fd5b610b86838383612437565b505050565b610b86838383612493565b6000546001600160a01b03163314610bc05760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff1615610be85760405162461bcd60e51b8152600401610a0090613eb5565b6009805460ff909216620100000262ff000019909216919091179055565b6000546001600160a01b03163314610c305760405162461bcd60e51b8152600401610a0090613e7e565b610c3a334761267e565b565b600d8181548110610c4c57600080fd5b60009182526020909120015461ffff8116915060ff620100008204811691630100000081048216916401000000009091041684565b610b8683838360405180602001604052806000815250611f80565b60606000610ca983611a9b565b90506000816001600160401b03811115610cc557610cc56134e7565b604051908082528060200260200182016040528015610cee578160200160208202803683370190505b5090506000805b8381108015610d0557506101f482105b15610d83576000610d15836123a3565b610d20576000610d29565b610d2983611161565b9050866001600160a01b0316816001600160a01b031603610d705782848381518110610d5757610d57613ec5565b602090810291909101015281610d6c81613e32565b9250505b82610d7a81613e32565b93505050610cf5565b5090949350505050565b60006108ec826123a3565b610da061319e565b600d54600c5460408051608081018252600080825260208201819052918101829052606081810183905291939192905b60c08601516060015160ff1660000361108857610dec85613e32565b94508785604051602001610e01929190613edb565b60405160208183030381529060405293508660ff16600103610e9357600d610e29858561271a565b81548110610e3957610e39613ec5565b600091825260209182902060408051608081018252919092015461ffff8116825260ff6201000082048116948301949094526301000000810484169282019290925264010000000090910490911660608201529050610f05565b600c610e9f858461271a565b81548110610eaf57610eaf613ec5565b600091825260209182902060408051608081018252919092015461ffff8116825260ff62010000820481169483019490945263010000008104841692820192909252640100000000909104909116606082015290505b85516060015160ff16600003610f2757808652808660035b6020020152610dd0565b60208601516060015160ff16600003610f5e57610f4c8660005b60200201518261216b565b15610f5957602086018190525b610dd0565b60408601516060015160ff16600003610f9c57610f7c866000610f41565b8015610f8e5750610f8e866001610f41565b15610f595780866002610f1d565b60808601516060015160ff1660000361103057610fba866002610f41565b8015610ff857508660ff16600114610fd3576078610fd7565b61015e5b61ffff16610ff6876003602002015151835161ffff918216911661275a565b105b80156110225750600a61102087600360200201516040015160ff16836040015160ff16612791565b115b15610f595780866004610f1d565b60a08601516060015160ff1660000361105c5761104e866002610f41565b15610f595780866005610f1d565b60c08601516060015160ff16600003610f595761107a866002610f41565b15610f595780866006610f1d565b505050505092915050565b6000546001600160a01b031633146110bd5760405162461bcd60e51b8152600401610a0090613e7e565b6009805460ff19811660ff90911615179055565b6000546001600160a01b031633146110fb5760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff16156111235760405162461bcd60e51b8152600401610a0090613eb5565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6040518060600160405280603581526020016148666035913981565b600061116c826127b3565b5192915050565b6000546001600160a01b0316331461119d5760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff16156111c55760405162461bcd60e51b8152600401610a0090613eb5565b6009805461ff001916610100179055565b60606111e06131e4565b60006111eb876123a3565b6111f457600080fd5b604080516203206081019091526203204081526000602090910190815260095462010000900460ff16871561124b576112466040518060a00160405280607b81526020016147eb607b913983906128cd565b6112f1565b61126e6040518060600160405280602f81526020016147bc602f913983906128cd565b61129a61129361127f836002613efb565b61128a906018613efb565b61ffff16612912565b83906128cd565b6040805180820190915260018152600160fd1b60208201526112bd9083906128cd565b6112ce61129361128a836018613efb565b6112f16040518060600160405280602c81526020016148db602c913983906128cd565b600f5461130a90611293906001600160a01b0316612a12565b6040805180820190915260088152671e17b9ba3cb6329f60c11b60208201526113349083906128cd565b60105461134d90611293906001600160a01b0316612a12565b6000898152600a6020908152604080832054905161136e928d929101613f28565b60408051601f1981840301815291905280516020909101209050600060026101f461139a8d6064613f43565b6113a49190613f73565b6113ae9190613f73565b9050600080600b60009054906101000a90046001600160a01b03166001600160a01b03166398083ff48e6040518263ffffffff1660e01b81526004016113f4919061337d565b600060405180830381865afa158015611411573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114399190810190614007565b905060005b8561ffff168161ffff161015611a5f5760005b61145c876002613efb565b61ffff168161ffff161015611a4e5760008761ffff168261ffff161061148c57611487866064614041565b61148e565b855b6114ba88876040516020016114a4929190613f28565b604051602081830303815290604052606461271a565b1015905060008f1580156114e457508486815181106114db576114db613ec5565b60200260200101515b6115255761152088876040516020016114fe929190613f28565b60405160208183030381529060405283611519576001610d98565b6000610d98565b61154a565b61154a8961ffff168461ffff16101561153f576001611542565b60005b60ff166121e4565b9050811561157a578861ffff168361ffff16106115755760208c0180519061157182613e32565b9052505b6115ae565b8b518c61158682613e32565b815250508861ffff168361ffff1610156115ae5760208c018051906115aa82613e32565b9052505b6115b786613e32565b95508f61166f5760408051808201909152601881527f3c67207472616e73666f726d3d227472616e736c61746528000000000000000060208201526115fd908b906128cd565b61161561160e61128a856018613efb565b8b906128cd565b604080518082019091526002815261016160f51b6020820152611639908b906128cd565b61164a61160e61128a866018613efb565b60408051808201909152600381526214911f60e91b602082015261166f908b906128cd565b8f158061169557508f801561169557508d8361ffff1614801561169557508e8461ffff16145b15611a3b57819a506116d9604051806040016040528060118152602001703c7265637420636c6173733d226267206360781b8152508b6128cd90919063ffffffff16565b6116f461160e8260005b60200201516060015160ff16612912565b604080518082019091526009815268111f1e17b932b1ba1f60b91b602082015261171f908b906128cd565b60408051808201909152601781527f3c75736520687265663d2223682220636c6173733d2263000000000000000000602082015261175e908b906128cd565b61176c61160e8260016116e3565b6040805180820190915260048152631110179f60e11b6020820152611792908b906128cd565b60408051808201909152601781527f3c75736520687265663d2223732220636c6173733d226300000000000000000060208201526117d1908b906128cd565b6117df61160e8260026116e3565b6040805180820190915260048152631110179f60e11b6020820152611805908b906128cd565b60408051808201909152601881527f3c75736520687265663d222364652220636c6173733d226300000000000000006020820152611844908b906128cd565b61185261160e8260036116e3565b6040805180820190915260048152631110179f60e11b6020820152611878908b906128cd565b60408051808201909152601881527f3c75736520687265663d22236c652220636c6173733d2263000000000000000060208201526118b7908b906128cd565b6118c561160e8260046116e3565b6040805180820190915260048152631110179f60e11b60208201526118eb908b906128cd565b60408051808201909152601781527f3c75736520687265663d22236d2220636c6173733d2263000000000000000000602082015261192a908b906128cd565b61193861160e8260056116e3565b6040805180820190915260048152631110179f60e11b602082015261195e908b906128cd565b60408051808201909152601781527f3c75736520687265663d22236c2220636c6173733d2263000000000000000000602082015261199d908b906128cd565b6119ab61160e8260066116e3565b6040805180820190915260048152631110179f60e11b60208201526119d1908b906128cd565b60408051808201909152601e81527f3c75736520687265663d22236f222066696c6c3d22626c61636b22202f3e00006020820152611a10908b906128cd565b8f611a3b576040805180820190915260048152631e17b39f60e11b6020820152611a3b908b906128cd565b505080611a4790614058565b9050611451565b50611a5881614058565b905061143e565b506040805180820190915260068152651e17b9bb339f60d11b6020820152611a889087906128cd565b8598505050505050509450945094915050565b60006001600160a01b038216611ac4576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b03163314611b135760405162461bcd60e51b8152600401610a0090613e7e565b610c3a6000612a22565b6000546001600160a01b03163314611b475760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff1615611b6f5760405162461bcd60e51b8152600401610a0090613eb5565b611bae84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612a7292505050565b600f80546001600160a01b0319166001600160a01b0392909216919091179055604080516020601f8401819004810282018101909252828152611c0b918490849081908401838280828437600092019190915250612a7292505050565b601080546001600160a01b0319166001600160a01b039290921691909117905550505050565b60606004805461090190613c7b565b336001600160a01b03831603611c695760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611ccc90859061324f565b60405180910390a35050565b600080546001600160a01b03166001600160a01b0316826001600160a01b031603611d05575060006108ec565b611d16662386f26fc1000084613f43565b9392505050565b6000546001600160a01b03163314611d475760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff1615611d6f5760405162461bcd60e51b8152600401610a0090613eb5565b60005b84518160ff161015611f795760006040518060800160405280878460ff1681518110611da057611da0613ec5565b602002602001015161ffff168152602001868460ff1681518110611dc657611dc6613ec5565b602002602001015160ff168152602001858460ff1681518110611deb57611deb613ec5565b602002602001015160ff168152602001836001611e089190614070565b60ff1681525090506000838360ff1681518110611e2757611e27613ec5565b602002602001015160ff161115611ed257600c805460018101825560009190915281517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7909101805460208401516040850151606086015161ffff90951662ffffff19909316929092176201000060ff928316021764ffff000000191663010000009282169290920264ff000000001916919091176401000000009190931602919091179055611f68565b600d805460018101825560009190915281517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5909101805460208401516040850151606086015161ffff90951662ffffff19909316929092176201000060ff928316021764ffff000000191663010000009282169290920264ff0000000019169190911764010000000091909316029190911790555b50611f7281614091565b9050611d72565b5050505050565b611f8b848484612493565b6001600160a01b0383163b15611fc457611fa784848484612ad7565b611fc4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611fd5826123a3565b611fde57600080fd5b600e54600090611ff6906001600160a01b0316612a12565b6040805160928101825260728152600060209182018181528351808501855260018152601f60fa1b818501529351949550939092612036929091016140c9565b604051602081830303815290604052805190602001209050600085602e61205d9190613f43565b90505b61206b866001613cb7565b61207690602e613f43565b811015610d8357600084828151811061209157612091613ec5565b602001015160f81c60f81b6040516020016120ac91906140e5565b6040516020818303038152906040528051906020012090508281036120d15750610d83565b6121188583815181106120e6576120e6613ec5565b602001015160f81c60f81b60405160200161210191906140e5565b60408051601f1981840301815291905285906128cd565b5061212281613e32565b9050612060565b6060612134826123a3565b6121505760405162461bcd60e51b8152600401610a0090614125565b6108ec82612bc2565b60606000610d838360008060006111d6565b60006019612187846040015160ff16846040015160ff16612791565b11806121aa5750605a6121a8846020015160ff16846020015160ff16612791565b115b80611d16575060196121cc846000015161ffff16846000015161ffff16612791565b119392505050565b600c8181548110610c4c57600080fd5b6121ec61319e565b81600003612242578051606760609182015260208201516061908201526040820151606490820152808201516066908201526080820151810181905260a082015160659082015260c08201516063910152919050565b8051606860609182015260208201516069908201526040820151606a9082015280820151606b908201526080820151606c9082015260a0820151606d9082015260c0820151606e9101525b919050565b6000546001600160a01b031633146122bc5760405162461bcd60e51b8152600401610a0090613e7e565b6001600160a01b0381166122e25760405162461bcd60e51b8152600401610a009061417b565b6122eb81612a22565b50565b6000546001600160a01b031633146123185760405162461bcd60e51b8152600401610a0090613e7e565b600954610100900460ff16156123405760405162461bcd60e51b8152600401610a0090613eb5565b61237f82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612a7292505050565b600e80546001600160a01b0319166001600160a01b03929092169190911790555050565b6000600154821080156108ec575050600090815260056020526040902054600160e01b900460ff161590565b600080823a4342446123e2600184614041565b40306040516020016123fa979695949392919061418b565b60408051601f1981840301815291905280516020909101209392505050565b612433828260405180602001604052806000815250612d68565b5050565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061249e826127b3565b9050836001600160a01b031681600001516001600160a01b0316146124d55760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806124f357506124f385336107fd565b8061250e57503361250384610984565b6001600160a01b0316145b90508061252e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661255557604051633a954ecd60e21b815260040160405180910390fd5b61256160008487612437565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661263557600154821461263557805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611f79565b8047101561269e5760405162461bcd60e51b8152600401610a0090614227565b6000826001600160a01b0316826040516126b790614237565b60006040518083038185875af1925050503d80600081146126f4576040519150601f19603f3d011682016040523d82523d6000602084013e6126f9565b606091505b5050905080610b865760405162461bcd60e51b8152600401610a0090614299565b6000808360405160200161272e91906132bb565b60408051601f198184030181529190528051602090910120905061275283826142a9565b949350505050565b6000806127678484612791565b9050600061277782610168614041565b90508082106127865780612788565b815b95945050505050565b60008183116127a9576127a48383614041565b611d16565b611d168284614041565b6040805160608101825260008082526020820181905291810191909152816001548110156128b457600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906128b25780516001600160a01b031615612849579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156128ad579392505050565b612849565b505b604051636f96cda160e11b815260040160405180910390fd5b601f1982015182518251603f199092019182906128ea9083613cb7565b11156129085760405162461bcd60e51b8152600401610a0090614301565b611fc48484612f2e565b6060816000036129395750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612963578061294d81613e32565b915061295c9050600a83613f73565b915061293d565b6000816001600160401b0381111561297d5761297d6134e7565b6040519080825280601f01601f1916602001820160405280156129a7576020820181803683370190505b5090505b8415612752576129bc600183614041565b91506129c9600a866142a9565b6129d4906030613cb7565b60f81b8183815181106129e9576129e9613ec5565b60200101906001600160f81b031916908160001a905350612a0b600a86613f73565b94506129ab565b60606108ec826001600019612f64565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080612a9d83604051602001612a89919061431b565b60405160208183030381529060405261300e565b90508051602082016000f091506001600160a01b038216612ad15760405163046a55db60e11b815260040160405180910390fd5b50919050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b0c903390899088908890600401614332565b6020604051808303816000875af1925050508015612b47575060408051601f3d908101601f19168201909252612b4491810190614381565b60015b612ba5573d808015612b75576040519150601f19603f3d011682016040523d82523d6000602084013e612b7a565b606091505b508051600003612b9d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600080612bd58460008060006111d6565b50600b54604051630d40a5a360e11b81529294509092506000916001600160a01b0390911690631a814b4690612c0f90889060040161337d565b602060405180830381865afa158015612c2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c5091906143ad565b60095490915062010000900460ff166000612c6c826002613f43565b612c769083613f43565b8451909150600090612c889083614041565b90506000612c9589611fca565b9050612d3b8160405180610120016040528060e4815260200161490760e49139612cbe8a61303a565b60405180606001604052806035815260200161486660359139612ce18651612912565b612cea8b612912565b612cf389612912565b612d048e60005b6020020151612912565b612d0f8f6001612cfa565b604051602001612d2799989796959493929190614464565b60405160208183030381529060405261303a565b604051602001612d4b9190614726565b604051602081830303815290604052975050505050505050919050565b6001546001600160a01b038416612d9157604051622e076360e81b815260040160405180910390fd5b82600003612db25760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600590925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612eda575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612ea36000878480600101955087612ad7565b612ec0576040516368d2bf6b60e11b815260040160405180910390fd5b808210612e58578260015414612ed557600080fd5b612f1f565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612edb575b50600155611fc4600085838684565b8051602082019150808201602084510184015b81841015612f59578351815260209384019301612f41565b505082510190915250565b6060833b6000819003612f87575050604080516020810190915260008152611d16565b80841115612fa5575050604080516020810190915260008152611d16565b83831015612fcc5780848460405163162544fd60e11b8152600401610a0093929190614731565b8383038482036000828210612fe15782612fe3565b815b60408051603f8301601f19168101909152818152955090508087602087018a3c505050509392505050565b6060815182604051602001613024929190614782565b6040516020818303038152906040529050919050565b6060815160000361305957505060408051602081019091526000815290565b600060405180606001604052806040815260200161489b60409139905060006003845160026130889190613cb7565b6130929190613f73565b61309d906004613f43565b905060006130ac826020613cb7565b6001600160401b038111156130c3576130c36134e7565b6040519080825280601f01601f1916602001820160405280156130ed576020820181803683370190505b509050818152600183018586518101602084015b81831015613159576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101613101565b600389510660018114613173576002811461318457613190565b613d3d60f01b600119830152613190565b603d60f81b6000198301525b509398975050505050505050565b6040518060e001604052806007905b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816131ad5790505090565b60405180604001604052806002906020820280368337509192915050565b6001600160e01b031981165b81146122eb57600080fd5b80356108ec81613202565b60006020828403121561323957613239600080fd5b60006127528484613219565b8015155b82525050565b602081016108ec8284613245565b60005b83811015613278578181015183820152602001613260565b83811115611fc45750506000910152565b6000613293825190565b8084526020840193506132aa81856020860161325d565b601f01601f19169290920192915050565b60208082528101611d168184613289565b8061320e565b80356108ec816132cc565b6000602082840312156132f2576132f2600080fd5b600061275284846132d2565b60006001600160a01b0382166108ec565b613249816132fe565b602081016108ec828461330f565b61320e816132fe565b80356108ec81613326565b6000806040838503121561335057613350600080fd5b600061335c858561332f565b925050602061336d858286016132d2565b9150509250929050565b80613249565b602081016108ec8284613377565b6000806000606084860312156133a3576133a3600080fd5b60006133af868661332f565b93505060206133c08682870161332f565b92505060406133d1868287016132d2565b9150509250925092565b60ff811661320e565b80356108ec816133db565b60006020828403121561340457613404600080fd5b600061275284846133e4565b61ffff8116613249565b60ff8116613249565b608081016134318287613410565b61343e602083018661341a565b61344b604083018561341a565b612788606083018461341a565b60006020828403121561346d5761346d600080fd5b6000612752848461332f565b60006134858383613377565b505060200190565b6000613497825190565b80845260209384019383018060005b838110156134cb5781516134ba8882613479565b9750602083019250506001016134a6565b509495945050505050565b60208082528101611d16818461348d565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715613522576135226134e7565b6040525050565b600061353460405190565b905061228d82826134fd565b60006001600160401b03821115613559576135596134e7565b601f19601f83011660200192915050565b82818337506000910152565b600061358961358484613540565b613529565b9050828152602081018484840111156135a4576135a4600080fd5b6135af84828561356a565b509392505050565b600082601f8301126135cb576135cb600080fd5b8135612752848260208601613576565b600080604083850312156135f1576135f1600080fd5b82356001600160401b0381111561360a5761360a600080fd5b613616858286016135b7565b925050602061336d858286016133e4565b805160808301906136388482613410565b50602082015161364b602085018261341a565b50604082015161365e604085018261341a565b506060820151611fc4606085018261341a565b600061367d8383613627565b505060800190565b6007818060005b83811015610afd5781516136a08782613671565b96506020830192505060010161368c565b61038081016108ec8284613685565b80151561320e565b80356108ec816136c0565b600080600080608085870312156136ec576136ec600080fd5b60006136f887876132d2565b9450506020613709878288016136c8565b935050604061371a878288016132d2565b925050606061372b878288016132d2565b91505092959194509250565b6002818060005b83811015610afd5781516137528782613479565b96506020830192505060010161373e565b608080825281016137748186613289565b90506137836020830185613737565b6127526060830184613245565b60008083601f8401126137a5576137a5600080fd5b5081356001600160401b038111156137bf576137bf600080fd5b6020830191508360018202830111156137da576137da600080fd5b9250929050565b600080600080604085870312156137fa576137fa600080fd5b84356001600160401b0381111561381357613813600080fd5b61381f87828801613790565b945094505060208501356001600160401b0381111561384057613840600080fd5b61384c87828801613790565b95989497509550505050565b60006108ec826132fe565b60006108ec82613858565b61324981613863565b602081016108ec828461386e565b6000806040838503121561389b5761389b600080fd5b60006138a7858561332f565b925050602061336d858286016136c8565b602081016108ec828461341a565b600080604083850312156138dc576138dc600080fd5b60006138e885856132d2565b925050602061336d8582860161332f565b60006001600160401b03821115613912576139126134e7565b5060209081020190565b61ffff811661320e565b80356108ec8161391c565b600061393f613584846138f9565b8381529050602080820190840283018581111561395e5761395e600080fd5b835b8181101561398257806139738882613926565b84525060209283019201613960565b5050509392505050565b600082601f8301126139a0576139a0600080fd5b8135612752848260208601613931565b60006139be613584846138f9565b838152905060208082019084028301858111156139dd576139dd600080fd5b835b8181101561398257806139f288826133e4565b845250602092830192016139df565b600082601f830112613a1557613a15600080fd5b81356127528482602086016139b0565b60008060008060808587031215613a3e57613a3e600080fd5b84356001600160401b03811115613a5757613a57600080fd5b613a638782880161398c565b94505060208501356001600160401b03811115613a8257613a82600080fd5b613a8e87828801613a01565b93505060408501356001600160401b03811115613aad57613aad600080fd5b613ab987828801613a01565b92505060608501356001600160401b03811115613ad857613ad8600080fd5b61372b87828801613a01565b60008060008060808587031215613afd57613afd600080fd5b6000613b09878761332f565b9450506020613b1a8782880161332f565b9350506040613b2b878288016132d2565b92505060608501356001600160401b03811115613b4a57613b4a600080fd5b61372b878288016135b7565b600060808284031215613b6b57613b6b600080fd5b613b756080613529565b90506000613b838484613926565b8252506020613b94848483016133e4565b6020830152506040613ba8848285016133e4565b6040830152506060613bbc848285016133e4565b60608301525092915050565b6000806101008385031215613bdf57613bdf600080fd5b6000613beb8585613b56565b925050608061336d85828601613b56565b60008060408385031215613c1257613c12600080fd5b60006138e8858561332f565b60008060208385031215613c3457613c34600080fd5b82356001600160401b03811115613c4d57613c4d600080fd5b613c5985828601613790565b92509250509250929050565b634e487b7160e01b600052602260045260246000fd5b600281046001821680613c8f57607f821691505b602082108103612ad157612ad1613c65565b634e487b7160e01b600052601160045260246000fd5b60008219821115613cca57613cca613ca1565b500190565b601d81526000602082017f4d6172696c796e20737570706c79206c696d697420726561636865642e000000815291505b5060200190565b602080825281016108ec81613ccf565b60128152600060208201714d696e74206973206e6f742061637469766560701b81529150613cff565b602080825281016108ec81613d16565b60118152600060208201704d696e74206174206c65617374206f6e6560781b81529150613cff565b602080825281016108ec81613d4f565b60128152600060208201711399595908195e1858dd081c185e5b595b9d60721b81529150613cff565b602080825281016108ec81613d87565b601581526000602082017410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b81529150613cff565b602080825281016108ec81613dc0565b600f81526000602082016e546f6f206d616e7920746f6b656e7360881b81529150613cff565b602080825281016108ec81613dfc565b60006000198203613e4557613e45613ca1565b5060010190565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613cff565b602080825281016108ec81613e4c565b601081526000602082016f21b7b73a3930b1ba1039b2b0b632b21760811b81529150613cff565b602080825281016108ec81613e8e565b634e487b7160e01b600052603260045260246000fd5b60408082528101613eec8185613289565b9050611d166020830184613377565b600061ffff8216915061ffff831692508161ffff0483118215151615613f2357613f23613ca1565b500290565b60408101613f368285613377565b611d166020830184613377565b6000816000190483118215151615613f2357613f23613ca1565b634e487b7160e01b600052601260045260246000fd5b600082613f8257613f82613f5d565b500490565b80516108ec816136c0565b6000613fa0613584846138f9565b83815290506020808201908402830185811115613fbf57613fbf600080fd5b835b818110156139825780613fd48882613f87565b84525060209283019201613fc1565b600082601f830112613ff757613ff7600080fd5b8151612752848260208601613f92565b60006020828403121561401c5761401c600080fd5b81516001600160401b0381111561403557614035600080fd5b61275284828501613fe3565b60008282101561405357614053613ca1565b500390565b61ffff16600061fffe198201613e4557613e45613ca1565b600060ff8216915060ff831692508260ff03821115613cca57613cca613ca1565b60ff16600060fe198201613e4557613e45613ca1565b60006140b1825190565b6140bf81856020860161325d565b9290920192915050565b6000611d1682846140a7565b6001600160f81b03198116613249565b60006140f182846140d5565b50600101919050565b6014815260006020820173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81529150613cff565b602080825281016108ec816140fa565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291505b5060400190565b602080825281016108ec81614135565b60e08101614199828a613377565b6141a66020830189613377565b6141b36040830188613377565b6141c06060830187613377565b6141cd6080830186613377565b6141da60a0830185613377565b6141e760c083018461330f565b98975050505050505050565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150613cff565b602080825281016108ec816141f3565b6000816108ec565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150614174565b602080825281016108ec8161423f565b6000826142b8576142b8613f5d565b500690565b602781526000602082017f44796e616d69634275666665723a20417070656e64696e67206f7574206f66208152663137bab732399760c91b60208201529150614174565b602080825281016108ec816142bd565b6000808252613e45565b600061432682614311565b9150611d1682846140a7565b60808101614340828761330f565b61434d602083018661330f565b61435a6040830185613377565b818103606083015261436c8184613289565b9695505050505050565b80516108ec81613202565b60006020828403121561439657614396600080fd5b60006127528484614376565b80516108ec816132cc565b6000602082840312156143c2576143c2600080fd5b600061275284846143a2565b607b60f81b81526000613e45565b7f2274726169745f74797065223a20225469746c65204c656e677468222c000000815260005b50601d0190565b601160f91b81526000613e45565b627d2c7b60e81b815260005b5060030190565b7f2274726169745f74797065223a20224461726b2053717561726573222c00000081526000614402565b627d5d7d60e81b81526000614423565b600061446f826143ce565b66113730b6b2911d60c91b8152600701915061448b828c6140a7565b6f16113232b9b1b934b83a34b7b7111d1160811b815260100191506144b0828b6140a7565b7f222c22696d6167655f64617461223a22646174613a696d6167652f7376672b788152691b5b0ed8985cd94d8d0b60b21b6020820152602a0191506144f5828a6140a7565b7111161132bc3a32b93730b62fbab936111d1160711b8152601201915061451c82896140a7565b70222c2261747472696275746573223a205b60781b81526011019150614541826143ce565b915061454c826143dc565b69113b30b63ab2911d101160b11b8152600a01915061456b82886140a7565b915061457682614409565b915061458182614417565b7f2274726169745f74797065223a20224f43204d6172696c796e2050465073204d8152661a5b9d1959088b60ca1b602082015269113b30b63ab2911d101160b11b602782015260310191506145d682876140a7565b91506145e182614409565b91506145ec82614417565b7f2274726169745f74797065223a20224272696768742053717561726573222c00815269113b30b63ab2911d101160b11b601f820152602901915061463182866140a7565b915061463c82614409565b915061464782614417565b91506146528261442a565b69113b30b63ab2911d101160b11b8152600a01915061467182856140a7565b915061467c82614409565b915061468782614417565b7f2274726169745f74797065223a202243726f73736f7665722053717561726573815261088b60f21b602082015269113b30b63ab2911d101160b11b6022820152602c0191506146d782846140a7565b91506146e282614409565b91506146ed82614454565b9b9a5050505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000614402565b6000614326826146fc565b6060810161473f8286613377565b61474c6020830185613377565b6127526040830184613377565b606360f81b81526000613e45565b60006108ec8260e01b90565b61324963ffffffff8216614767565b600061478d82614759565b91506147998285614773565b6880600e6000396000f360b81b6004830152600d9091019061275282846140a756fe3c7376672073686170652d72656e646572696e673d2263726973704564676573222076696577426f783d22302030203c7376672077696474683d223132303022206865696768743d2231323030222073686170652d72656e646572696e673d2263726973704564676573222076696577426f783d223020302032342032342220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e3c7374796c653e68747470733a2f2f63617073756c6532312e636f6d2f636f6c6c656374696f6e732f6f632d6d6172696c796e2d64697074796368734142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f2220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e3c7374796c653e4f6e65206f662035303020416e647920576172686f6c2d696e737069726564204d6172696c796e204d6f6e726f652044697074796368732c20656163682072616e646f6d6c792067656e657261746564206174206d696e74207573696e67206f6e6c7920636f6c6f72732066726f6d207468652043727970746f50756e6b7320636f6c6c656374696f6e2e5c6e5c6e4561636820446970747963682069732073746f7265642031303025206f6e2d636861696e2e20496e646976696475616c204d6172696c796e732063616e20616c736f206265206d696e74656420617320504650732ea26469706673582212208725709be66a462b9ca1cc9d9c8c81186a36cf9467ba9d3152293702c7dc3ac264736f6c634300080d0033
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.