Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 639 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21309578 | 27 days ago | IN | 0 ETH | 0.00091554 | ||||
Safe Transfer Fr... | 21305289 | 28 days ago | IN | 0 ETH | 0.00055342 | ||||
Set Approval For... | 21289851 | 30 days ago | IN | 0 ETH | 0.00031729 | ||||
Set Approval For... | 21284479 | 31 days ago | IN | 0 ETH | 0.00037759 | ||||
Set Approval For... | 21275455 | 32 days ago | IN | 0 ETH | 0.00063216 | ||||
Set Approval For... | 21170963 | 47 days ago | IN | 0 ETH | 0.00184844 | ||||
Set Approval For... | 20466645 | 145 days ago | IN | 0 ETH | 0.00019675 | ||||
Set Approval For... | 19986738 | 212 days ago | IN | 0 ETH | 0.00042711 | ||||
Set Approval For... | 19986660 | 212 days ago | IN | 0 ETH | 0.00040109 | ||||
Set Approval For... | 19795851 | 239 days ago | IN | 0 ETH | 0.00013886 | ||||
Set Approval For... | 19657672 | 258 days ago | IN | 0 ETH | 0.00045818 | ||||
Set Approval For... | 19657564 | 258 days ago | IN | 0 ETH | 0.00037734 | ||||
Mint | 19650828 | 259 days ago | IN | 0.02 ETH | 0.00102241 | ||||
Set Approval For... | 19647292 | 260 days ago | IN | 0 ETH | 0.00062875 | ||||
Set Approval For... | 19644415 | 260 days ago | IN | 0 ETH | 0.00052208 | ||||
Set Approval For... | 19622603 | 263 days ago | IN | 0 ETH | 0.00062228 | ||||
Mint | 19593431 | 267 days ago | IN | 0.02 ETH | 0.00101074 | ||||
Mint | 19518099 | 278 days ago | IN | 0.01 ETH | 0.00171122 | ||||
Mint | 18990034 | 352 days ago | IN | 0.01 ETH | 0.00132606 | ||||
Set Approval For... | 18938260 | 359 days ago | IN | 0 ETH | 0.00068522 | ||||
Set Approval For... | 18924428 | 361 days ago | IN | 0 ETH | 0.0003617 | ||||
Mint | 18922063 | 361 days ago | IN | 0.01 ETH | 0.00165263 | ||||
Safe Transfer Fr... | 18920496 | 362 days ago | IN | 0 ETH | 0.0014046 | ||||
Mint | 18916228 | 362 days ago | IN | 0.01 ETH | 0.00099016 | ||||
Mint | 18871624 | 368 days ago | IN | 0.01 ETH | 0.00215805 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21170838 | 47 days ago | 0.0024 ETH | ||||
18794684 | 379 days ago | 0.2663625 ETH | ||||
18794684 | 379 days ago | 0.2663625 ETH | ||||
18660258 | 398 days ago | 0.00045 ETH | ||||
18650519 | 399 days ago | 0.000075 ETH | ||||
18650519 | 399 days ago | 0.000075 ETH | ||||
18650519 | 399 days ago | 0.000075 ETH | ||||
18650519 | 399 days ago | 0.000075 ETH | ||||
17802812 | 518 days ago | 0.0001 ETH | ||||
17802691 | 518 days ago | 0.0006 ETH | ||||
17802584 | 518 days ago | 0.00005 ETH | ||||
17802577 | 518 days ago | 0.00005 ETH | ||||
17802566 | 518 days ago | 0.000125 ETH | ||||
17802545 | 518 days ago | 0.00005 ETH | ||||
17550922 | 553 days ago | 0.0002 ETH | ||||
17550915 | 553 days ago | 0.0002 ETH | ||||
17550907 | 553 days ago | 0.0002 ETH | ||||
17550904 | 553 days ago | 0.0002 ETH | ||||
17549858 | 554 days ago | 0.0002 ETH | ||||
17549398 | 554 days ago | 5.20061572 ETH | ||||
17549398 | 554 days ago | 5.20061572 ETH | ||||
17541150 | 555 days ago | 0.0008 ETH | ||||
17532865 | 556 days ago | 0.00035 ETH | ||||
17530918 | 556 days ago | 0.0000275 ETH | ||||
17530781 | 556 days ago | 0.0005 ETH |
Loading...
Loading
Contract Name:
ClickBait
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; pragma abicoder v2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "base64-sol/base64.sol"; import "erc721a/contracts/ERC721A.sol"; import "./sstore2/SSTORE2.sol"; import "./utils/DynamicBuffer.sol"; import "hardhat/console.sol"; interface PunkDataInterface { function punkImage(uint16 index) external view returns (bytes memory); } interface CLICKS { function colorToRarityScore(string memory color) external view returns (uint16); } contract ClickBait is Ownable, ERC721A, ERC2981 { using Address for address; using DynamicBuffer for bytes; using Strings for *; uint public constant lovelyPrimeNumber = 107839786668602559178668060348078522694548577690162289924414440996859; uint public constant internalMintBatchSize = 30; uint public constant costPerToken = 0.01 ether; bool public isMintActive; uint public constant maxSupply = 10_000; uint96 public constant sellerFeeBasisPoints = 500; string public constant contractExternalLink = "https://www.capsule21.com/collections/clickbait"; string public constant tokenExternalLink = contractExternalLink; address private contractDescriptionPointer; uint constant colorsInEachToken = 4; PunkDataInterface public constant punkDataContract = PunkDataInterface(0x16F5A35647D6F03D5D3da7b35409D65ba03aF3B2); bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; address public constant originalCLICKS = 0x57B7304A79918d47Ac0122BeDBeb874A804b6990; function flipMintState() external onlyOwner { isMintActive = !isMintActive; } constructor() ERC721A("ClickBait", "CB") { _setDefaultRoyalty(address(this), sellerFeeBasisPoints); } function setContractDescription(string calldata _contractDescription) external onlyOwner { contractDescriptionPointer = SSTORE2.write(bytes(_contractDescription)); } address public constant orderedColors = 0x82eB97f77615fF2C8bAC2989e8DA9E39Cf9d91d3; address public constant colorsToPunks = 0x1909D49B585d9A55a792636FD81CacD61F787A9E; address public constant oneOfOnes = 0x8FbB1af81d6Ecd8B2ACB0fB47F2077001f79e501; address public constant oneOfOneTitles = 0x11B00eDC96Deb626BbC02D0A8353c0B4D4Db2696; uint public constant totalColors = 219; uint public constant maxPunkPerColor = 55; uint public constant oneOfOnesCount = 59; uint public constant maxTitleLength = 23; function mint(uint quantity) public payable { require(isMintActive); require(totalMintCost(quantity, msg.sender) == msg.value, "Incorrect amount of ether sent"); _mintBatch(msg.sender, quantity); } function airdrop(address to, uint quantity) public payable { require(isMintActive); require(totalMintCost(quantity, msg.sender) == msg.value, "Incorrect amount of ether sent"); _mintBatch(to, quantity); } function stringCompare(string memory a, string memory b) internal pure returns (bool) { return keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b)); } function punkSvg(uint tokenId, string memory colorName) public view returns (string memory) { bytes memory pixels = punkDataContract.punkImage(uint16(tokenId)); bytes memory svgBytes = DynamicBuffer.allocate(1024 * 128); svgBytes.appendSafe(abi.encodePacked('<svg class="small" width="1200" height="1200" shape-rendering="crispEdges" xmlns="http://www.w3.org/2000/svg" version="1.2" viewBox="0 0 24 24"><style>rect.x1{fill: #638596d8} rect:not(.b){width:1px;height:1px}</style><rect x="0" y="0" style="width:100%;height:100%" fill="#638596" />')); bytes memory buffer = new bytes(8); for (uint256 y = 0; y < 24; y++) { for (uint256 x = 0; x < 24; x++) { uint256 p = (y * 24 + x) * 4; if (uint8(pixels[p + 3]) > 0) { for (uint256 i = 0; i < 4; i++) { uint8 value = uint8(pixels[p + i]); buffer[i * 2 + 1] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; buffer[i * 2] = _HEX_SYMBOLS[value & 0xf]; } bytes memory rectStart = abi.encodePacked( '<rect x="', x.toString(), '" y="', y.toString() ); svgBytes.appendSafe( abi.encodePacked( rectStart, '" fill="#', string(buffer), '"/>' ) ); if (!stringCompare(string.concat(colorName, "ff"), string(buffer))) { svgBytes.appendSafe( abi.encodePacked( rectStart, '" class="x1', '"/>' ) ); } } } } svgBytes.appendSafe('</svg>'); return string(svgBytes); } function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual override returns (uint24) { return from == address(0) ? entropyForExtraData() : previousExtraData; } function getTokenSeed(uint256 _tokenId) internal view returns (uint) { return uint(keccak256(abi.encode(_ownershipOf(_tokenId).extraData, _tokenId))); } function toHexStringNoPrefix(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length); for (uint256 i = buffer.length; i > 0; i--) { buffer[i - 1] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } return string(buffer); } bytes32 constant enderHash = keccak256(abi.encodePacked(bytes("|"))); function getOneOfOneTitleAtIndex(uint index) internal view returns (string memory) { require(index < oneOfOnesCount); bytes memory allTitles = SSTORE2.read(oneOfOneTitles); bytes memory outputBytes = DynamicBuffer.allocate(maxTitleLength * 2); 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); } function getColorAtIndex(uint index) internal view returns (string memory) { bytes memory colorArray = SSTORE2.read(orderedColors); return toHexStringNoPrefix(uintByteArrayValueAtIndex(colorArray, index), 3); } function getPunksOfColorByColorIndex(uint index) internal view returns (uint16[] memory) { bytes memory phunksArray = SSTORE2.read(colorsToPunks); uint startingPoint = index * maxPunkPerColor; uint endingPoint = startingPoint + maxPunkPerColor; uint idxInReturnAry; uint16[] memory tmpAry = new uint16[](maxPunkPerColor); for (uint i = startingPoint; i < endingPoint; i++) { uint8 firstByte = uint8(phunksArray[i * 2]); uint8 secondByte = uint8(phunksArray[i * 2 + 1]); uint16 id = uint16(firstByte) << 8 | uint16(secondByte); if (id < 10_000) { tmpAry[idxInReturnAry] = id; idxInReturnAry++; } } uint16[] memory returnAry = new uint16[](idxInReturnAry); for(uint i = 0; i < idxInReturnAry; i++) { returnAry[i] = tmpAry[i]; } return returnAry; } function getOneOfOneColorIndexes(uint index) internal view returns (uint8[colorsInEachToken] memory ret) { bytes memory oneOfOneArray = SSTORE2.read(oneOfOnes); uint startingPoint = index * colorsInEachToken; uint endingPoint = startingPoint + colorsInEachToken; uint retIdx; for (uint i = startingPoint; i < endingPoint; i++) { ret[retIdx] = uint8(oneOfOneArray[i]); retIdx++; } } function uintByteArrayValueAtIndex(bytes memory fakeArray, uint index) private pure returns (uint) { uint big = uint24(uint8(fakeArray[index * 3]) * 2 ** 16); uint med = uint24(uint8(fakeArray[index * 3 + 1]) * 2 ** 8); uint small = uint8(fakeArray[index * 3 + 2]); return big + med + small; } function entropyForExtraData() internal view returns (uint24) { uint256 randomNumber = uint256( keccak256( abi.encodePacked( tx.gasprice, block.number, block.timestamp, block.difficulty, block.basefee, msg.data, blockhash(block.number - 1), msg.sender ) ) ); return uint24(randomNumber); } function tokenURI(uint256 id) public view override returns (string memory) { require(_exists(id), "Token does not exist"); return constructTokenURI(id); } function tokenName(uint tokenId) private pure returns (bytes memory) { return abi.encodePacked("ClickBait #", tokenId.toString()); } function getOneOfOneTitle(uint tokenId) private view returns (string memory) { return getOneOfOneTitleAtIndex(tokenIdToOneOfOneSelectionId(tokenId)); } function duplicateColorCount(uint tokenId) internal view returns (uint) { (,uint8[4] memory colorIndexes,) = tokenImage(tokenId); uint dupeCount; for (uint i; i < 4; ++i) { for (uint j; j < 4; ++j) { if (i != j && colorIndexes[i] == colorIndexes[j]) { ++dupeCount; } } } if (dupeCount == 0) { return 0; } else if (dupeCount == 2) { return 1; } else if (dupeCount == 6) { return 2; } else { return 3; } } function calculateTokenRarityScore(uint tokenId) public view returns (uint total) { (,,string[4] memory colors) = tokenImage(tokenId); for (uint i = 0; i < 4; ++i) { total += CLICKS(originalCLICKS).colorToRarityScore(colors[i]); } } function tokenAttributes(uint tokenId) public view returns (string memory) { require(_exists(tokenId), "Token does not exist"); (,,string[4] memory colors) = tokenImage(tokenId); uint duplicateColors = duplicateColorCount(tokenId); uint cv = totalColorDifference(tokenId); (uint r, uint g, uint b, uint l, uint s) = colorIntensitiesInToken(tokenId); uint rarityScore = calculateTokenRarityScore(tokenId); rarityScore = rarityScore * 1000 / 40_000; bytes memory outputBytes = DynamicBuffer.allocate(256 * 64); outputBytes.appendSafe("["); for (uint i = 0; i < 4; i++) { bytes memory squareObj = abi.encodePacked('{"trait_type":"Square ', (i + 1).toString(), '", "value":"#', colors[i], '"}'); outputBytes.appendSafe(squareObj); if (i < 3) { outputBytes.appendSafe(", "); } } if (tokenIsOneOfOne(tokenId)) { bytes memory oneOfOneObj = abi.encodePacked('{"trait_type":"1 of 1", "value":"', getOneOfOneTitle(tokenId), '"}'); outputBytes.appendSafe(", "); outputBytes.appendSafe(oneOfOneObj); } bytes memory dupeObj = abi.encodePacked( '{"trait_type":"Duplicate Color Count", "display_type": "number", "max_value": 3, "value":', duplicateColors.toString(), '}' ); outputBytes.appendSafe(", "); outputBytes.appendSafe(dupeObj); outputBytes.appendSafe(", "); outputBytes.appendSafe(abi.encodePacked( '{"trait_type":"Color Variation", "display_type": "number", "max_value": 1000, "value":', (cv * 1000 / (255 * 4)).toString(), '}' )); outputBytes.appendSafe(", "); outputBytes.appendSafe(abi.encodePacked( '{"trait_type":"Redness", "display_type": "number", "max_value": 1000, "value":', (r * 1000 / 3060).toString(), '}' )); outputBytes.appendSafe(", "); outputBytes.appendSafe(abi.encodePacked( '{"trait_type":"Greenness", "display_type": "number", "max_value": 1000, "value":', (g * 1000 / 3060).toString(), '}' )); outputBytes.appendSafe(", "); outputBytes.appendSafe(abi.encodePacked( '{"trait_type":"Blueness", "display_type": "number", "max_value": 1000, "value":', (b * 1000 / 3060).toString(), '}' )); outputBytes.appendSafe(", "); outputBytes.appendSafe(abi.encodePacked( '{"trait_type":"Luminance", "display_type": "number", "max_value": 1000, "value":', (l * 1000 / (255 * 4)).toString(), '}' )); outputBytes.appendSafe(", "); outputBytes.appendSafe(abi.encodePacked( '{"trait_type":"Saturation", "display_type": "number", "max_value": 1000, "value":', (s / 4).toString(), '}' )); outputBytes.appendSafe(", "); outputBytes.appendSafe(abi.encodePacked( '{"trait_type":"Rarity Score", "display_type": "number", "max_value": 1000, "value":', rarityScore.toString(), '}' )); outputBytes.appendSafe("]"); return string(outputBytes); } function constructTokenURI(uint tokenId) private view returns (string memory) { (string memory svg,,) = tokenImage(tokenId); string memory html = tokenHTMLPage(tokenId); string memory b64Svg = Base64.encode(bytes(svg)); string memory b64Html = Base64.encode(bytes(html)); return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{', '"name":"', tokenName(tokenId), '",' '"description":', SSTORE2.read(contractDescriptionPointer), ',' '"image_data":"data:image/svg+xml;base64,', b64Svg, '",' '"animation_url":"data:text/html;charset=utf-8;base64,', b64Html, '",' '"external_url":"', tokenExternalLink, '",' '"attributes": ', tokenAttributes(tokenId), '}' ) ) ) ) ); } function colorDifferenceBetweenTwo24BitRGBColors(uint24 color1, uint24 color2) private pure returns (uint) { uint24 red1 = uint8(color1 >> 16); uint24 green1 = uint8(color1 >> 8); uint24 blue1 = uint8(color1); uint24 red2 = uint8(color2 >> 16); uint24 green2 = uint8(color2 >> 8); uint24 blue2 = uint8(color2); uint redDiff = absoluteDiff(red1, red2); uint greenDiff = absoluteDiff(green1, green2); uint blueDiff = absoluteDiff(blue1, blue2); uint squareOfDiff = ((redDiff ** 2) * 30 / 100) + ((greenDiff ** 2) * 59 / 100) + ((blueDiff ** 2) * 11 / 100); return squareOfDiff; } function totalColorDifference(uint tokenId) internal view returns (uint totalDiff) { bytes memory colorArray = SSTORE2.read(orderedColors); (,uint8[4] memory colorIndexes,) = tokenImage(tokenId); for (uint i; i < 4; ++i) { for (uint j = i + 1; j < 4; ++j) { if (i != j) { uint24 c1 = uint24(uintByteArrayValueAtIndex(colorArray, colorIndexes[i])); uint24 c2 = uint24(uintByteArrayValueAtIndex(colorArray, colorIndexes[j])); totalDiff += sqrt(colorDifferenceBetweenTwo24BitRGBColors(c1, c2)); } } } } function computeColorSaturationFrom24BitUint(uint24 color) private pure returns (uint) { uint red = uint8(color >> 16); uint green = uint8(color >> 8); uint blue = uint8(color); uint maxRGB = max(red, max(green, blue)); uint minRGB = min(red, min(green, blue)); if (maxRGB == 0) { return 0; } return (maxRGB - minRGB) * 1000 / maxRGB; } function max(uint a, uint b) private pure returns (uint) { return a > b ? a : b; } function min(uint a, uint b) private pure returns (uint) { return a < b ? a : b; } function computeColorLuminanceFrom24BitUint(uint24 color) internal pure returns (uint24) { uint24 b = uint8(color); uint24 g = uint8(color >> 8); uint24 r = uint8(color >> 16); return (r * 299 + g * 587 + b * 114) / 1000; } function colorIntensitiesIn24BitColor(uint24 color) private pure returns (uint, uint, uint) { int red = int(uint(uint8(color >> 16))); int green = int(uint(uint8(color >> 8))); int blue = int(uint(uint8(color))); return ( uint(red - (green + blue) + 510), uint(green - (red + blue) + 510), uint(blue - (red + green) + 510) ); } function colorIntensitiesInToken(uint tokenId) internal view returns (uint r, uint g, uint b, uint l, uint s) { bytes memory colorArray = SSTORE2.read(orderedColors); (,uint8[4] memory colorIndexes,) = tokenImage(tokenId); for (uint i; i < 4; ++i) { uint24 c1 = uint24(uintByteArrayValueAtIndex(colorArray, colorIndexes[i])); (uint rDiff, uint gDiff, uint bDiff) = colorIntensitiesIn24BitColor(c1); r += rDiff; g += gDiff; b += bDiff; l += computeColorLuminanceFrom24BitUint(c1); s += computeColorSaturationFrom24BitUint(c1); } } function absoluteDiff(uint a, uint b) private pure returns (uint) { return a > b ? a - b : b - a; } function tokenIdToOneOfOneSelectionId(uint tokenId) internal view returns (uint) { uint offsetIndex; if (_exists(1)) { offsetIndex = _ownershipOf(1).extraData + 10_000; } return ((tokenId + offsetIndex) * lovelyPrimeNumber) % maxSupply; } function tokenIsOneOfOne(uint tokenId) internal view returns (bool) { return tokenIdToOneOfOneSelectionId(tokenId) < oneOfOnesCount; } function tokenImage(uint tokenId) public view returns ( string memory svg, uint8[4] memory colorIndexes, string[4] memory colors ) { require(_exists(tokenId), "Token does not exist"); uint seed = getTokenSeed(tokenId); if (tokenIsOneOfOne(tokenId)) { colorIndexes = getOneOfOneColorIndexes(tokenIdToOneOfOneSelectionId(tokenId)); } else { for (uint i = 0; i < colorsInEachToken; i++) { colorIndexes[i] = uint8(seed % totalColors); seed = seed / totalColors; } } for (uint i = 0; i < colorsInEachToken; ++i) { colors[i] = getColorAtIndex(colorIndexes[i]); } bytes memory svgBytes = DynamicBuffer.allocate(1024 * 128); svgBytes.appendSafe(bytes('<svg class="big visible" width="1200" height="1200" shape-rendering="crispEdges" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg">')); svgBytes.appendSafe(abi.encodePacked( '<rect class="b" width="24" height="24" x="0" y="0" fill="#', colors[0], '" />' )); svgBytes.appendSafe(abi.encodePacked( '<rect class="b" width="20" height="20" x="2" y="3" fill="#', colors[1], '" />' )); svgBytes.appendSafe(abi.encodePacked( '<rect class="b" width="16" height="16" x="4" y="6" fill="#', colors[2], '" />' )); svgBytes.appendSafe(abi.encodePacked( '<rect class="b" width="12" height="12" x="6" y="9" fill="#', colors[3], '" />' )); svgBytes.appendSafe(bytes('</svg>')); svg = string(svgBytes); } function tokenHTMLPage(uint tokenId) public view returns (string memory) { require(_exists(tokenId), "Token does not exist"); bytes memory HTMLBytes = DynamicBuffer.allocate(1024 * 128); uint seed = getTokenSeed(tokenId); (string memory image, uint8[4] memory colorIndexes,) = tokenImage(tokenId); HTMLBytes.appendSafe('<!DOCTYPE html>'); HTMLBytes.appendSafe(abi.encodePacked('<body><style>body{display:flex;align-items:center; justify-content:center;position:relative;} rect{cursor:pointer} *{box-sizing:border-box;margin:0;padding:0;border:0; user-select: none;} svg{width: 100%;height: 100%;max-width: 100%; max-height: 100%;position:fixed;top:0;left:0;transition: 0.4s all; opacity: 0; pointer-events: none;} svg.visible{opacity: 1; pointer-events: unset;}</style>')); for (uint i = 0; i < 4; ++i) { uint16[] memory colorPunks = getPunksOfColorByColorIndex(colorIndexes[i]); uint randomPunk = colorIndexes[i] == 0 ? seed % maxSupply : colorPunks[seed % colorPunks.length]; seed = seed / maxSupply; HTMLBytes.appendSafe(bytes(punkSvg(randomPunk, getColorAtIndex(colorIndexes[i])))); } HTMLBytes.appendSafe(bytes(image)); HTMLBytes.appendSafe('<script>function init(){var c,b=document.querySelectorAll(".small"),a=document.querySelector(".big"),d=!1;let e=a=>new Promise(b=>setTimeout(()=>{b()},a));a.addEventListener("touchstart",async a=>{a.touches.length>1&&(event.stopPropagation(),await f(),g())});var f=async function(){for([idx,el]of(d=!0,b[0].classList.add("visible"),a.classList.remove("visible"),document.querySelectorAll(".small").entries()))0!=idx&&el.classList.toggle("visible"),await e(400);for([idx,el]of Array.from(b).reverse().entries())3!=idx&&(el.classList.toggle("visible"),await e(400));d=!1},g=function(){clearTimeout(c),d||(a.classList.add("visible"),b.forEach(a=>a.classList.remove("visible")))};a.addEventListener("click",async d=>{if(d.shiftKey){await f(),g();return}var e=d.target,h=b[[...e.parentElement.children].indexOf(e)];h&&(a.classList.remove("visible"),h.classList.add("visible"),c=setTimeout(g,4e3))}),b.forEach(a=>a.addEventListener("click",g))}init()</script></body></html>'); return string(HTMLBytes); } function totalMintCost(uint numTokens, address minter) public pure returns (uint) { return numTokens * costPerToken; } function sqrt(uint256 x) public pure returns (uint256 result) { if (x == 0) { return 0; } // Set the initial guess to the least power of two that is greater than or equal to sqrt(x). uint256 xAux = uint256(x); result = 1; if (xAux >= 0x100000000000000000000000000000000) { xAux >>= 128; result <<= 64; } if (xAux >= 0x10000000000000000) { xAux >>= 64; result <<= 32; } if (xAux >= 0x100000000) { xAux >>= 32; result <<= 16; } if (xAux >= 0x10000) { xAux >>= 16; result <<= 8; } if (xAux >= 0x100) { xAux >>= 8; result <<= 4; } if (xAux >= 0x10) { xAux >>= 4; result <<= 2; } if (xAux >= 0x4) { result <<= 1; } // The operations can never overflow because the result is max 2^127 when it enters this block. unchecked { result = (result + x / result) >> 1; result = (result + x / result) >> 1; result = (result + x / result) >> 1; result = (result + x / result) >> 1; result = (result + x / result) >> 1; result = (result + x / result) >> 1; result = (result + x / result) >> 1; // Seven iterations should be enough uint256 roundedDownResult = x / result; return result >= roundedDownResult ? roundedDownResult : result; } } function _mintBatch(address to, uint quantity) internal { require(msg.sender == tx.origin, "No contracts"); require(totalSupply() + quantity <= maxSupply, "Mint exceeds supply"); uint batchCount = quantity / internalMintBatchSize; uint remainder = quantity % internalMintBatchSize; for (uint256 i = 0; i < batchCount; i++) { _mint(to, internalMintBatchSize); } if (remainder > 0) { _mint(to, remainder); } } function contractURI() public view returns (string memory) { string memory svg = punkSvg(1903, "e4eb17"); string memory b64Svg = Base64.encode(bytes(svg)); return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode( bytes( abi.encodePacked( '{', '"name":"', name(), '",' '"seller_fee_basis_points":', sellerFeeBasisPoints.toString(), ',' '"fee_recipient":"', address(this).toHexString(), '",' '"description":', SSTORE2.read(contractDescriptionPointer), ',' '"image":"data:image/svg+xml;base64,', b64Svg, '",' '"external_link":"', tokenExternalLink, '"' '}' ) ) ) ) ); } address constant pivAddress = 0xf98537696e2Cf486F8F32604B2Ca2CDa120DBBa8; address constant middleAddress = 0xC2172a6315c1D7f6855768F843c420EbB36eDa97; function withdraw() external { require(msg.sender == tx.origin, "No contracts"); require(address(this).balance > 0, "Nothing to withdraw"); uint total = address(this).balance; uint half = total / 2; Address.sendValue(payable(middleAddress), half); Address.sendValue(payable(pivAddress), total - half); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } receive() external payable {} fallback (bytes calldata _inputText) external payable returns (bytes memory _output) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// 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 v4.2.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// 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 // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: 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":"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":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"calculateTokenRarityScore","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"colorsToPunks","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractExternalLink","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"internalMintBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"lovelyPrimeNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPunkPerColor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTitleLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oneOfOneTitles","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oneOfOnes","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oneOfOnesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"orderedColors","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"originalCLICKS","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"punkDataContract","outputs":[{"internalType":"contract PunkDataInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"colorName","type":"string"}],"name":"punkSvg","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"sellerFeeBasisPoints","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractDescription","type":"string"}],"name":"setContractDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"}],"name":"sqrt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenAttributes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenExternalLink","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenHTMLPage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenImage","outputs":[{"internalType":"string","name":"svg","type":"string"},{"internalType":"uint8[4]","name":"colorIndexes","type":"uint8[4]"},{"internalType":"string[4]","name":"colors","type":"string[4]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalColors","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600981526020016810db1a58dad0985a5d60ba1b8152506040518060400160405280600281526020016121a160f11b8152506200006962000063620000a260201b60201c565b620000a6565b6003620000778382620002a8565b506004620000868282620002a8565b50506000600155506200009c306101f4620000f6565b62000403565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127106001600160601b03821611156200012d5760405162461bcd60e51b8152600401620001249062000378565b60405180910390fd5b6001600160a01b038216620001565760405162461bcd60e51b81526004016200012490620003c7565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b600281046001821680620001d057607f821691505b602082108103620001e557620001e5620001a5565b50919050565b6000620001fc620001f98381565b90565b92915050565b6200020d83620001eb565b81546008840282811b60001990911b908116901990911617825550505050565b60006200023c81848462000202565b505050565b818110156200026057620002576000826200022d565b60010162000241565b5050565b601f8211156200023c576000818152602090206020601f850104810160208510156200028d5750805b620002a16020601f86010483018262000241565b5050505050565b81516001600160401b03811115620002c457620002c46200018f565b620002d08254620001bb565b620002dd82828562000264565b6020601f831160018114620003145760008415620002fb5750858201515b600019600886021c198116600286021786555062000370565b600085815260208120601f198616915b8281101562000346578885015182556020948501946001909201910162000324565b86831015620003635784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b60208082528101620001fc81602a81527f455243323938313a20726f79616c7479206665652077696c6c206578636565646020820152692073616c65507269636560b01b604082015260600190565b60208082528101620001fc81601981527f455243323938313a20696e76616c696420726563656976657200000000000000602082015260400190565b615a2480620004136000396000f3fe6080604052600436106102b25760003560e01c80636c4ed3c611610175578063c4204d02116100dc578063e36daaa111610095578063f2824b531161006f578063f2824b5314610838578063f2fde38b14610858578063f754dd9b14610878578063ff89554014610898576102b9565b8063e36daaa1146107ba578063e8a3d485146107da578063e985e9c5146107ef576102b9565b8063c4204d0214610718578063c87b56dd14610740578063cebe02b3146103f6578063cf34842514610760578063d5abeb011461078f578063dc2c7aa2146107a5576102b9565b8063a0712d681161012e578063a0712d6814610668578063a22cb4651461067b578063a87f30ef1461069b578063b39528e7146106bb578063b88d4fde146106e3578063c07a98d514610703576102b9565b80636c4ed3c6146105cd57806370a08231146105ed578063715018a61461060d5780638ba4cc3c146106225780638da5cb5b1461063557806395d89b4114610653576102b9565b80632fe619f61161021957806359c74f29116101d257806359c74f29146105235780635b92ac0d146105385780635fa33a54146105525780636352211e1461056d5780636696f9101461058d578063677342ce146105ad576102b9565b80632fe619f61461046e5780633ba523c7146104965780633ccfd60b146104b157806342842e0e146104c657806350271c16146104e6578063577a551b146104fb576102b9565b806318160ddd1161026b57806318160ddd146103bf578063204385f6146103e1578063225993ff146103f657806323b872dd1461040b5780632977c4001461042b5780632a55205a14610440576102b9565b806301ffc9a7146102c057806306fdde03146102f6578063081812fc14610318578063095ea7b3146103455780630f5a9f89146103675780631808d4341461039c576102b9565b366102b957005b6060516080f35b3480156102cc57600080fd5b506102e06102db366004613860565b6108c0565b6040516102ed919061388b565b60405180910390f35b34801561030257600080fd5b5061030b6108e0565b6040516102ed91906138f7565b34801561032457600080fd5b50610338610333366004613919565b610972565b6040516102ed9190613954565b34801561035157600080fd5b50610365610360366004613976565b6109b6565b005b34801561037357600080fd5b5061038f7316f5a35647d6f03d5d3da7b35409d65ba03af3b281565b6040516102ed91906139d2565b3480156103a857600080fd5b506103b26101f481565b6040516102ed91906139ef565b3480156103cb57600080fd5b50600254600154035b6040516102ed9190613a03565b3480156103ed57600080fd5b506103d4601781565b34801561040257600080fd5b5061030b610a56565b34801561041757600080fd5b50610365610426366004613a11565b610a72565b34801561043757600080fd5b506103d460db81565b34801561044c57600080fd5b5061046061045b366004613a61565b610c27565b6040516102ed929190613a83565b34801561047a57600080fd5b50610338738fbb1af81d6ecd8b2acb0fb47f2077001f79e50181565b3480156104a257600080fd5b506103d4662386f26fc1000081565b3480156104bd57600080fd5b50610365610cd5565b3480156104d257600080fd5b506103656104e1366004613a11565b610d76565b3480156104f257600080fd5b506103d4603b81565b34801561050757600080fd5b50610338731909d49b585d9a55a792636fd81cacd61f787a9e81565b34801561052f57600080fd5b50610365610d96565b34801561054457600080fd5b50600b546102e09060ff1681565b34801561055e57600080fd5b506103d46005600160e21b0381565b34801561057957600080fd5b50610338610588366004613919565b610db2565b34801561059957600080fd5b5061030b6105a8366004613919565b610dbd565b3480156105b957600080fd5b506103d46105c8366004613919565b610f9d565b3480156105d957600080fd5b506103d46105e8366004613919565b61111b565b3480156105f957600080fd5b506103d4610608366004613a9e565b6111ec565b34801561061957600080fd5b5061036561123a565b610365610630366004613976565b61124e565b34801561064157600080fd5b506000546001600160a01b0316610338565b34801561065f57600080fd5b5061030b61128f565b610365610676366004613919565b61129e565b34801561068757600080fd5b50610365610696366004613ad2565b6112e2565b3480156106a757600080fd5b506103d46106b6366004613b05565b61137a565b3480156106c757600080fd5b506103387357b7304a79918d47ac0122bedbeb874a804b699081565b3480156106ef57600080fd5b506103656106fe366004613c29565b611394565b34801561070f57600080fd5b506103d4601e81565b34801561072457600080fd5b506103387382eb97f77615ff2c8bac2989e8da9e39cf9d91d381565b34801561074c57600080fd5b5061030b61075b366004613919565b6113de565b34801561076c57600080fd5b5061078061077b366004613919565b61140e565b6040516102ed93929190613d47565b34801561079b57600080fd5b506103d461271081565b3480156107b157600080fd5b506103d4603781565b3480156107c657600080fd5b5061030b6107d5366004613d79565b611600565b3480156107e657600080fd5b5061030b611951565b3480156107fb57600080fd5b506102e061080a366004613dc6565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561084457600080fd5b5061030b610853366004613919565b611a30565b34801561086457600080fd5b50610365610873366004613a9e565b611ea5565b34801561088457600080fd5b50610365610893366004613e32565b611edc565b3480156108a457600080fd5b506103387311b00edc96deb626bbc02d0a8353c0b4d4db269681565b60006108cb82611f4d565b806108da57506108da82611f9b565b92915050565b6060600380546108ef90613e8f565b80601f016020809104026020016040519081016040528092919081815260200182805461091b90613e8f565b80156109685780601f1061093d57610100808354040283529160200191610968565b820191906000526020600020905b81548152906001019060200180831161094b57829003601f168201915b5050505050905090565b600061097d82611fd0565b61099a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006109c182610db2565b9050336001600160a01b038216146109fa576109dd813361080a565b6109fa576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6040518060600160405280602f81526020016159c0602f913981565b6000610a7d82611ff8565b9050836001600160a01b0316816001600160a01b031614610ab05760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610afd57610ae0863361080a565b610afd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610b2457604051633a954ecd60e21b815260040160405180910390fd5b8015610b2f57600082555b6001600160a01b03808716600090815260066020526040808220805460001901905591871681522080546001019055610b8885610b6d88828761205f565b600160e11b174260a01b176001600160a01b03919091161790565b600085815260056020526040812091909155600160e11b84169003610bdd57600184016000818152600560205260408120549003610bdb576001548114610bdb5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610c9c5750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610cbb906001600160601b031687613ecb565b610cc59190613f00565b91519350909150505b9250929050565b333214610cfd5760405162461bcd60e51b8152600401610cf490613f3e565b60405180910390fd5b60004711610d1d5760405162461bcd60e51b8152600401610cf490613f78565b476000610d2b600283613f00565b9050610d4b73c2172a6315c1d7f6855768f843c420ebb36eda9782612082565b610d7273f98537696e2cf486f8f32604b2ca2cda120dbba8610d6d8385613f88565b612082565b5050565b610d9183838360405180602001604052806000815250611394565b505050565b610d9e61211e565b600b805460ff19811660ff90911615179055565b60006108da82611ff8565b6060610dc882611fd0565b610de45760405162461bcd60e51b8152600401610cf490613fca565b604080516202006081019091526202004081526000602090910181815290610e0b84612148565b9050600080610e198661140e565b5091509150610e586040518060400160405280600f81526020016e1e10a227a1aa2ca82290343a36b61f60891b8152508561218790919063ffffffff16565b610e81604051602001610e6a90613fda565b60408051601f198184030181529190528590612187565b60005b6004811015610f62576000610eb1838360048110610ea457610ea46141c0565b602002015160ff166121cc565b90506000838360048110610ec757610ec76141c0565b602002015160ff1615610f035781825187610ee291906141d6565b81518110610ef257610ef26141c0565b602002602001015161ffff16610f0f565b610f0f612710876141d6565b9050610f1d61271087613f00565b9550610f4f610f48826107d5878760048110610f3b57610f3b6141c0565b602002015160ff166123a8565b8890612187565b505080610f5b906141ea565b9050610e84565b50610f6d8483612187565b610f936040518061040001604052806103c781526020016155b96103c791398590612187565b5091949350505050565b600081600003610faf57506000919050565b50600181600160801b8110610fc95760409190911b9060801c5b680100000000000000008110610fe45760209190911b9060401c5b6401000000008110610ffb5760109190911b9060201c5b6201000081106110105760089190911b9060101c5b61010081106110245760049190911b9060081c5b601081106110375760029190911b9060041c5b6004811061104757600182901b91505b600182848161105857611058613eea565b048301901c9150600182848161107057611070613eea565b048301901c9150600182848161108857611088613eea565b048301901c915060018284816110a0576110a0613eea565b048301901c915060018284816110b8576110b8613eea565b048301901c915060018284816110d0576110d0613eea565b048301901c915060018284816110e8576110e8613eea565b048301901c9150600082848161110057611100613eea565b049050808310156111115782611113565b805b949350505050565b6000806111278361140e565b9250505060005b60048110156111e5577357b7304a79918d47ac0122bedbeb874a804b699063154f7e37838360048110611163576111636141c0565b60200201516040518263ffffffff1660e01b815260040161118491906138f7565b602060405180830381865afa1580156111a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c59190614219565b6111d39061ffff168461423a565b92506111de816141ea565b905061112e565b5050919050565b60006001600160a01b038216611215576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b61124261211e565b61124c60006123df565b565b600b5460ff1661125d57600080fd5b34611268823361137a565b146112855760405162461bcd60e51b8152600401610cf490614286565b610d72828261242f565b6060600480546108ef90613e8f565b600b5460ff166112ad57600080fd5b346112b8823361137a565b146112d55760405162461bcd60e51b8152600401610cf490614286565b6112df338261242f565b50565b336001600160a01b0383160361130b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061136e90859061388b565b60405180910390a35050565b600061138d662386f26fc1000084613ecb565b9392505050565b61139f848484610a72565b6001600160a01b0383163b156113d8576113bb848484846124de565b6113d8576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606113e982611fd0565b6114055760405162461bcd60e51b8152600401610cf490613fca565b6108da826125c9565b60606114186137f9565b611420613817565b61142984611fd0565b6114455760405162461bcd60e51b8152600401610cf490613fca565b600061145085612148565b905061145b8561268a565b156114785761147161146c8661269e565b6126fb565b92506114cf565b60005b60048110156114cd5761148f60db836141d6565b8482600481106114a1576114a16141c0565b60ff90921660209290920201526114b960db83613f00565b9150806114c5816141ea565b91505061147b565b505b60005b6004811015611517576114f0848260048110610f3b57610f3b6141c0565b838260048110611502576115026141c0565b6020020152611510816141ea565b90506114d2565b506040805162020060810190915262020040815260006020909101818152905061155a6040518060c0016040528060968152602001615523609691398290612187565b82516040516115869161156f9160200161430b565b60408051601f198184030181529190528290612187565b60208084015160405161159e9261156f929101614387565b60408084015190516115b69161156f916020016143e2565b60608301516040516115ce9161156f9160200161443d565b6040805180820190915260068152651e17b9bb339f60d11b60208201526115f6908290612187565b9592945090925050565b604051631f2f054b60e11b81526060906000907316f5a35647d6f03d5d3da7b35409d65ba03af3b290633e5e0a969061163d908790600401614452565b600060405180830381865afa15801561165a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261168291908101906144b8565b6040805162020060810190915262020040815260006020909101818152919250506116b560405160200161156f906144f2565b60408051600880825281830190925260009160208201818036833701905050905060005b601881101561191f5760005b601881101561190c576000816116fc846018613ecb565b611706919061423a565b611711906004613ecb565b905060008661172183600361423a565b81518110611731576117316141c0565b016020015160f81c11156118f95760005b600481101561185257600087611758838561423a565b81518110611768576117686141c0565b016020015160f81c90506f181899199a1a9b1b9c1cb0b131b232b360811b600f82166010811061179a5761179a6141c0565b1a60f81b866117aa846002613ecb565b6117b590600161423a565b815181106117c5576117c56141c0565b60200101906001600160f81b031916908160001a90535060041c600f166f181899199a1a9b1b9c1cb0b131b232b360811b8160108110611807576118076141c0565b1a60f81b86611817846002613ecb565b81518110611827576118276141c0565b60200101906001600160f81b031916908160001a90535050808061184a906141ea565b915050611742565b50600061185e836127b1565b611867856127b1565b60405160200161187892919061466b565b60405160208183030381529060405290506118b6818660405160200161189f9291906146b6565b60408051601f198184030181529190528790612187565b6118df896040516020016118ca91906146ed565b604051602081830303815290604052866128b1565b6118f7576118f78160405160200161189f9190614726565b505b5080611904816141ea565b9150506116e5565b5080611917816141ea565b9150506116d9565b506040805180820190915260068152651e17b9bb339f60d11b6020820152611948908390612187565b50949350505050565b6060600061197f61076f6040518060400160405280600681526020016565346562313760d01b815250611600565b9050600061198c8261290a565b9050611a0a6119996108e0565b6119a46101f46127b1565b6119ad30612a6e565b600b546119c79061010090046001600160a01b0316612a84565b856040518060600160405280602f81526020016159c0602f91396040516020016119f6969594939291906147a1565b60405160208183030381529060405261290a565b604051602001611a1a91906148ab565b6040516020818303038152906040529250505090565b6060611a3b82611fd0565b611a575760405162461bcd60e51b8152600401610cf490613fca565b6000611a628361140e565b925050506000611a7184612a94565b90506000611a7e85612b71565b90506000806000806000611a918a612c54565b945094509450945094506000611aa68b61111b565b9050619c40611ab7826103e8613ecb565b611ac19190613f00565b6040805161406081018252614040815260006020918201908152825180840190935260018352605b60f81b91830191909152919250611b01908290612187565b60005b6004811015611ba6576000611b22611b1d83600161423a565b6127b1565b8c8360048110611b3457611b346141c0565b6020020151604051602001611b4a9291906148e1565b60408051601f198184030181529190529050611b668382612187565b6003821015611b9357604080518082019091526002815261016160f51b6020820152611b93908490612187565b5080611b9e816141ea565b915050611b04565b50611bb08c61268a565b15611c0b576000611bc08d612d3a565b604051602001611bd09190614941565b60408051601f198184030181528282019091526002825261016160f51b60208301529150611bff908390612187565b611c098282612187565b505b6000611c168a6127b1565b604051602001611c26919061499e565b60408051601f198184030181528282019091526002825261016160f51b60208301529150611c55908390612187565b611c5f8282612187565b604080518082019091526002815261016160f51b6020820152611c83908390612187565b611cc9611ca26103fc611c988c6103e8613ecb565b611b1d9190613f00565b604051602001611cb29190614a2b565b60408051601f198184030181529190528390612187565b604080518082019091526002815261016160f51b6020820152611ced908390612187565b611d12611d02610bf4611c988b6103e8613ecb565b604051602001611cb29190614a9e565b604080518082019091526002815261016160f51b6020820152611d36908390612187565b611d5b611d4b610bf4611c988a6103e8613ecb565b604051602001611cb29190614b75565b604080518082019091526002815261016160f51b6020820152611d7f908390612187565b611da4611d94610bf4611c98896103e8613ecb565b604051602001611cb29190614b80565b604080518082019091526002815261016160f51b6020820152611dc8908390612187565b611ded611ddd6103fc611c98886103e8613ecb565b604051602001611cb29190614c55565b604080518082019091526002815261016160f51b6020820152611e11908390612187565b611e32611e22611b1d600487613f00565b604051602001611cb29190614c60565b604080518082019091526002815261016160f51b6020820152611e56908390612187565b611e72611e62846127b1565b604051602001611cb29190614cce565b6040805180820190915260018152605d60f81b6020820152611e95908390612187565b509b9a5050505050505050505050565b611ead61211e565b6001600160a01b038116611ed35760405162461bcd60e51b8152600401610cf490614d84565b6112df816123df565b611ee461211e565b611f2382828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612d4d92505050565b600b60016101000a8154816001600160a01b0302191690836001600160a01b031602179055505050565b60006301ffc9a760e01b6001600160e01b031983161480611f7e57506380ac58cd60e01b6001600160e01b03198316145b806108da5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806108da57506301ffc9a760e01b6001600160e01b03198316146108da565b6000600154821080156108da575050600090815260056020526040902054600160e01b161590565b6000816001548110156120465760008181526005602052604081205490600160e01b82169003612044575b80600003611111575060001901600081815260056020526040902054612023565b505b604051636f96cda160e11b815260040160405180910390fd5b600060e882811c90612072868684612db2565b62ffffff16901b95945050505050565b804710156120a25760405162461bcd60e51b8152600401610cf490614dc8565b6000826001600160a01b0316826040516120bb90614dd8565b60006040518083038185875af1925050503d80600081146120f8576040519150601f19603f3d011682016040523d82523d6000602084013e6120fd565b606091505b5050905080610d915760405162461bcd60e51b8152600401610cf490614e3a565b6000546001600160a01b0316331461124c5760405162461bcd60e51b8152600401610cf490614e7c565b600061215382612dd1565b6060015182604051602001612169929190614e97565b60408051601f19818403018152919052805160209091012092915050565b601f1982015182518251603f199092019182906121a4908361423a565b11156121c25760405162461bcd60e51b8152600401610cf490614ee9565b6113d88484612e48565b606060006121ed731909d49b585d9a55a792636fd81cacd61f787a9e612a84565b905060006121fc603785613ecb565b9050600061220b60378361423a565b60408051603780825261070082019092529192506000918291602082016106e080368337019050509050835b838110156122f95760008661224d836002613ecb565b8151811061225d5761225d6141c0565b016020015160f81c9050600087612275846002613ecb565b61228090600161423a565b81518110612290576122906141c0565b016020015160f81c905061ff00600883901b1681176127108110156122e357808587815181106122c2576122c26141c0565b61ffff90921660209283029190910190910152856122df816141ea565b9650505b50505080806122f1906141ea565b915050612237565b506000826001600160401b0381111561231457612314613b38565b60405190808252806020026020018201604052801561233d578160200160208202803683370190505b50905060005b8381101561239c5782818151811061235d5761235d6141c0565b6020026020010151828281518110612377576123776141c0565b61ffff9092166020928302919091019091015280612394816141ea565b915050612343565b50979650505050505050565b606060006123c97382eb97f77615ff2c8bac2989e8da9e39cf9d91d3612a84565b905061138d6123d88285612e7e565b6003612f4e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b33321461244e5760405162461bcd60e51b8152600401610cf490613f3e565b6127108161245f6002546001540390565b612469919061423a565b11156124875760405162461bcd60e51b8152600401610cf490614f23565b6000612494601e83613f00565b905060006124a3601e846141d6565b905060005b828110156124cd576124bb85601e61302b565b806124c5816141ea565b9150506124a8565b5080156113d8576113d8848261302b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612513903390899088908890600401614f33565b6020604051808303816000875af192505050801561254e575060408051601f3d908101601f1916820190925261254b91810190614f78565b60015b6125ac573d80801561257c576040519150601f19603f3d011682016040523d82523d6000602084013e612581565b606091505b5080516000036125a4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060006125d68361140e565b5050905060006125e584610dbd565b905060006125f28361290a565b905060006125ff8361290a565b905061266061260d87613157565b600b546126279061010090046001600160a01b0316612a84565b84846040518060600160405280602f81526020016159c0602f913961264b8c611a30565b6040516020016119f696959493929190614fd5565b60405160200161267091906148ab565b604051602081830303815290604052945050505050919050565b6000603b6126978361269e565b1092915050565b6000806126ab6001611fd0565b156126d2576126ba6001612dd1565b606001516126ca906127106150e9565b62ffffff1690505b6127106005600160e21b036126e7838661423a565b6126f19190613ecb565b61138d91906141d6565b6127036137f9565b6000612722738fbb1af81d6ecd8b2acb0fb47f2077001f79e501612a84565b90506000612731600485613ecb565b9050600061274060048361423a565b90506000825b828110156127a757848181518110612760576127606141c0565b016020015160f81c86836004811061277a5761277a6141c0565b60ff909216602092909202015281612791816141ea565b925050808061279f906141ea565b915050612746565b5050505050919050565b6060816000036127d85750506040805180820190915260018152600360fc1b602082015290565b8160005b811561280257806127ec816141ea565b91506127fb9050600a83613f00565b91506127dc565b6000816001600160401b0381111561281c5761281c613b38565b6040519080825280601f01601f191660200182016040528015612846576020820181803683370190505b5090505b84156111135761285b600183613f88565b9150612868600a866141d6565b61287390603061423a565b60f81b818381518110612888576128886141c0565b60200101906001600160f81b031916908160001a9053506128aa600a86613f00565b945061284a565b6000816040516020016128c49190615110565b60405160208183030381529060405280519060200120836040516020016128eb9190615110565b6040516020818303038152906040528051906020012014905092915050565b6060815160000361292957505060408051602081019091526000815290565b60006040518060600160405280604081526020016159806040913990506000600384516002612958919061423a565b6129629190613f00565b61296d906004613ecb565b9050600061297c82602061423a565b6001600160401b0381111561299357612993613b38565b6040519080825280601f01601f1916602001820160405280156129bd576020820181803683370190505b509050818152600183018586518101602084015b81831015612a29576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016129d1565b600389510660018114612a435760028114612a5457612a60565b613d3d60f01b600119830152612a60565b603d60f81b6000198301525b509398975050505050505050565b60606108da6001600160a01b0383166014613188565b60606108da8260016000196132f3565b600080612aa08361140e565b509150506000805b6004811015612b305760005b6004811015612b1f57808214158015612afe5750838160048110612ada57612ada6141c0565b602002015160ff16848360048110612af457612af46141c0565b602002015160ff16145b15612b0f57612b0c836141ea565b92505b612b18816141ea565b9050612ab4565b50612b29816141ea565b9050612aa8565b5080600003612b43575060009392505050565b80600203612b55575060019392505050565b80600603612b67575060029392505050565b5060039392505050565b600080612b917382eb97f77615ff2c8bac2989e8da9e39cf9d91d3612a84565b90506000612b9e8461140e565b5091505060005b6004811015612c4c576000612bbb82600161423a565b90505b6004811015612c3b57808214612c2b576000612bf385858560048110612be657612be66141c0565b602002015160ff16612e7e565b90506000612c0d86868560048110612be657612be66141c0565b9050612c1c6105c8838361339d565b612c26908861423a565b965050505b612c34816141ea565b9050612bbe565b50612c45816141ea565b9050612ba5565b505050919050565b600080600080600080612c7a7382eb97f77615ff2c8bac2989e8da9e39cf9d91d3612a84565b90506000612c878861140e565b5091505060005b6004811015612d2e576000612caf84848460048110612be657612be66141c0565b90506000806000612cbf8461348e565b91945092509050612cd0838d61423a565b9b50612cdc828c61423a565b9a50612ce8818b61423a565b9950612cf384613516565b612d029062ffffff168a61423a565b9850612d0d84613579565b612d17908961423a565b97505050505080612d27906141ea565b9050612c8e565b50505091939590929450565b60606108da612d488361269e565b6135fd565b600080612d7883604051602001612d649190615126565b60405160208183030381529060405261376d565b90508051602082016000f091506001600160a01b038216612dac5760405163046a55db60e11b815260040160405180910390fd5b50919050565b60006001600160a01b03841615612dc95781611113565b611113613783565b6040805160808101825260008082526020820181905291810182905260608101919091526108da612e0183611ff8565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b8051602082019150808201602084510184015b81841015612e73578351815260209384019301612e5b565b505082510190915250565b60008083612e8d846003613ecb565b81518110612e9d57612e9d6141c0565b0160200151612eb29060f81c62010000615131565b62ffffff169050600084612ec7856003613ecb565b612ed290600161423a565b81518110612ee257612ee26141c0565b0160200151612ef69060f81c61010061515c565b61ffff169050600085612f0a866003613ecb565b612f1590600261423a565b81518110612f2557612f256141c0565b016020015160f81c905080612f3a838561423a565b612f44919061423a565b9695505050505050565b60606000612f5d836002613ecb565b6001600160401b03811115612f7457612f74613b38565b6040519080825280601f01601f191660200182016040528015612f9e576020820181803683370190505b5080519091505b8015613023576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612fd357612fd36141c0565b1a60f81b82612fe3600184613f88565b81518110612ff357612ff36141c0565b60200101906001600160f81b031916908160001a90535060049490941c938061301b81615184565b915050612fa5565b509392505050565b60015460008290036130505760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600090815260066020526040812080546801000000000000000185020190556130a790849061308a90828161205f565b6001851460e11b174260a01b176001600160a01b03919091161790565b6000828152600560205260408120919091556001600160a01b0384169083830190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461312d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016130f5565b508160000361314e57604051622e076360e81b815260040160405180910390fd5b60015550505050565b6060613162826127b1565b60405160200161317291906151b3565b6040516020818303038152906040529050919050565b60606000613197836002613ecb565b6131a290600261423a565b6001600160401b038111156131b9576131b9613b38565b6040519080825280601f01601f1916602001820160405280156131e3576020820181803683370190505b509050600360fc1b816000815181106131fe576131fe6141c0565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061322d5761322d6141c0565b60200101906001600160f81b031916908160001a9053506000613251846002613ecb565b61325c90600161423a565b90505b60018111156132d4576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613290576132906141c0565b1a60f81b8282815181106132a6576132a66141c0565b60200101906001600160f81b031916908160001a90535060049490941c936132cd81615184565b905061325f565b50831561138d5760405162461bcd60e51b8152600401610cf4906151f0565b6060833b600081900361331657505060408051602081019091526000815261138d565b8084111561333457505060408051602081019091526000815261138d565b8383101561335b5780848460405163162544fd60e11b8152600401610cf493929190615200565b83830384820360008282106133705782613372565b815b60408051603f8301601f19168101909152818152955090508087602087018a3c505050509392505050565b600060ff601084811c821691600886811c821692828816929087901c81169187901c8116908716866133cf87856137b2565b905060006133e78762ffffff168562ffffff166137b2565b905060006133ff8762ffffff168562ffffff166137b2565b905060006064613410600284615331565b61341b90600b613ecb565b6134259190613f00565b6064613432600286615331565b61343d90603b613ecb565b6134479190613f00565b6064613454600288615331565b61345f90601e613ecb565b6134699190613f00565b613473919061423a565b61347d919061423a565b9d9c50505050505050505050505050565b6000808060ff601085901c811690600886901c81169086166134b08183615346565b6134ba9084615382565b6134c6906101fe615346565b6134d08285615346565b6134da9084615382565b6134e6906101fe615346565b6134f08486615346565b6134fa9084615382565b613506906101fe615346565b9550955095505050509193909250565b600060ff80831690600884901c811690601085901c166103e861353a846072615131565b6135468461024b615131565b6135528461012b615131565b61355c91906150e9565b61356691906150e9565b61357091906153be565b95945050505050565b600060ff601083901c811690600884901c8116908416836135a38461359e85856137d4565b6137d4565b905060006135ba856135b586866137ea565b6137ea565b9050816000036135d1575060009695505050505050565b816135dc8282613f88565b6135e8906103e8613ecb565b6135f29190613f00565b979650505050505050565b6060603b821061360c57600080fd5b600061362b7311b00edc96deb626bbc02d0a8353c0b4d4db2696612a84565b9050600061365b61363e60176002613ecb565b604080518281016060018252910181526000602090910190815290565b9050600061366a856017613ecb565b90505b61367885600161423a565b613683906017613ecb565b81101561302357600083828151811061369e5761369e6141c0565b602001015160f81c60f81b6040516020016136b991906153e3565b60408051601f198184030181528282528051602091820120838301835260018452601f60fa1b8483015291519193506136f3929101615110565b6040516020818303038152906040528051906020012081036137155750613023565b61375c84838151811061372a5761372a6141c0565b602001015160f81c60f81b60405160200161374591906153e3565b60408051601f198184030181529190528490612187565b50613766816141ea565b905061366d565b6060815182604051602001613172929190615437565b6000803a434244488536613798600187613f88565b403360405160200161216999989796959493929190615498565b60008183116137ca576137c58383613f88565b61138d565b61138d8284613f88565b60008183116137e3578161138d565b5090919050565b60008183106137e3578161138d565b60405180608001604052806004906020820280368337509192915050565b60405180608001604052806004905b60608152602001906001900390816138265790505090565b6001600160e01b031981165b81146112df57600080fd5b80356108da8161383e565b60006020828403121561387557613875600080fd5b60006111138484613855565b8015155b82525050565b602081016108da8284613881565b60005b838110156138b457818101518382015260200161389c565b838111156113d85750506000910152565b60006138cf825190565b8084526020840193506138e6818560208601613899565b601f01601f19169290920192915050565b6020808252810161138d81846138c5565b8061384a565b80356108da81613908565b60006020828403121561392e5761392e600080fd5b6000611113848461390e565b60006001600160a01b0382166108da565b6138858161393a565b602081016108da828461394b565b61384a8161393a565b80356108da81613962565b6000806040838503121561398c5761398c600080fd5b6000613998858561396b565b92505060206139a98582860161390e565b9150509250929050565b60006108da8261393a565b60006108da826139b3565b613885816139be565b602081016108da82846139c9565b6001600160601b038116613885565b602081016108da82846139e0565b80613885565b602081016108da82846139fd565b600080600060608486031215613a2957613a29600080fd5b6000613a35868661396b565b9350506020613a468682870161396b565b9250506040613a578682870161390e565b9150509250925092565b60008060408385031215613a7757613a77600080fd5b6000613998858561390e565b60408101613a91828561394b565b61138d60208301846139fd565b600060208284031215613ab357613ab3600080fd5b6000611113848461396b565b80151561384a565b80356108da81613abf565b60008060408385031215613ae857613ae8600080fd5b6000613af4858561396b565b92505060206139a985828601613ac7565b60008060408385031215613b1b57613b1b600080fd5b6000613b27858561390e565b92505060206139a98582860161396b565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715613b7357613b73613b38565b6040525050565b6000613b8560405190565b9050613b918282613b4e565b919050565b60006001600160401b03821115613baf57613baf613b38565b601f19601f83011660200192915050565b82818337506000910152565b6000613bdf613bda84613b96565b613b7a565b905082815260208101848484011115613bfa57613bfa600080fd5b613023848285613bc0565b600082601f830112613c1957613c19600080fd5b8135611113848260208601613bcc565b60008060008060808587031215613c4257613c42600080fd5b6000613c4e878761396b565b9450506020613c5f8782880161396b565b9350506040613c708782880161390e565b92505060608501356001600160401b03811115613c8f57613c8f600080fd5b613c9b87828801613c05565b91505092959194509250565b60ff8116613885565b6000613cbc8383613ca7565b505060200190565b6004818060005b83811015610c1f578151613cdf8782613cb0565b965060208301925050600101613ccb565b600061138d83836138c5565b6000600483608081018480855b85811015613d3a5784840389528151613d228582613cf0565b94506020830160209a909a0199925050600101613d09565b5091979650505050505050565b60c08082528101613d5881866138c5565b9050613d676020830185613cc4565b81810360a08301526135708184613cfc565b60008060408385031215613d8f57613d8f600080fd5b6000613d9b858561390e565b92505060208301356001600160401b03811115613dba57613dba600080fd5b6139a985828601613c05565b60008060408385031215613ddc57613ddc600080fd5b6000613b27858561396b565b60008083601f840112613dfd57613dfd600080fd5b5081356001600160401b03811115613e1757613e17600080fd5b602083019150836001820283011115610cce57610cce600080fd5b60008060208385031215613e4857613e48600080fd5b82356001600160401b03811115613e6157613e61600080fd5b613e6d85828601613de8565b92509250509250929050565b634e487b7160e01b600052602260045260246000fd5b600281046001821680613ea357607f821691505b602082108103612dac57612dac613e79565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613ee557613ee5613eb5565b500290565b634e487b7160e01b600052601260045260246000fd5b6000825b925082613f1357613f13613eea565b500490565b600c81526000602082016b4e6f20636f6e74726163747360a01b815291505b5060200190565b602080825281016108da81613f18565b60138152600060208201724e6f7468696e6720746f20776974686472617760681b81529150613f37565b602080825281016108da81613f4e565b600082821015613f9a57613f9a613eb5565b500390565b6014815260006020820173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81529150613f37565b602080825281016108da81613f9f565b7f3c626f64793e3c7374796c653e626f64797b646973706c61793a666c65783b6181527f6c69676e2d6974656d733a63656e7465723b206a7573746966792d636f6e746560208201527f6e743a63656e7465723b706f736974696f6e3a72656c61746976653b7d20726560408201527f63747b637572736f723a706f696e7465727d202a7b626f782d73697a696e673a60608201527f626f726465722d626f783b6d617267696e3a303b70616464696e673a303b626f60808201527f726465723a303b20757365722d73656c6563743a206e6f6e653b7d207376677b60a08201527f77696474683a20313030253b6865696768743a20313030253b6d61782d77696460c08201527f74683a20313030253b206d61782d6865696768743a20313030253b706f73697460e08201527f696f6e3a66697865643b746f703a303b6c6566743a303b7472616e736974696f6101008201527f6e3a20302e347320616c6c3b206f7061636974793a20303b20706f696e7465726101208201527f2d6576656e74733a206e6f6e653b7d207376672e76697369626c657b6f7061636101408201527f6974793a20313b20706f696e7465722d6576656e74733a20756e7365743b7d3c6101608201526617b9ba3cb6329f60c91b610180820152600061018782016108da565b634e487b7160e01b600052603260045260246000fd5b6000826141e5576141e5613eea565b500690565b600060001982036141fd576141fd613eb5565b5060010190565b61ffff811661384a565b80516108da81614204565b60006020828403121561422e5761422e600080fd5b6000611113848461420e565b6000821982111561424d5761424d613eb5565b500190565b601e81526000602082017f496e636f727265637420616d6f756e74206f662065746865722073656e74000081529150613f37565b602080825281016108da81614252565b7f3c7265637420636c6173733d2262222077696474683d2232342220686569676881527f743d2232342220783d22302220793d2230222066696c6c3d2223000000000000602082015260005b50603a0190565b60006142f3825190565b614301818560208601613899565b9290920192915050565b600061431682614296565b915061432282846142e9565b631110179f60e11b815291506004820161138d565b7f3c7265637420636c6173733d2262222077696474683d2232302220686569676881527f743d2232302220783d22322220793d2233222066696c6c3d2223000000000000602082015260006142e2565b600061431682614337565b7f3c7265637420636c6173733d2262222077696474683d2231362220686569676881527f743d2231362220783d22342220793d2236222066696c6c3d2223000000000000602082015260006142e2565b600061431682614392565b7f3c7265637420636c6173733d2262222077696474683d2231322220686569676881527f743d2231322220783d22362220793d2239222066696c6c3d2223000000000000602082015260006142e2565b6000614316826143ed565b61ffff8116613885565b602081016108da8284614448565b600061446e613bda84613b96565b90508281526020810184848401111561448957614489600080fd5b613023848285613899565b600082601f8301126144a8576144a8600080fd5b8151611113848260208601614460565b6000602082840312156144cd576144cd600080fd5b81516001600160401b038111156144e6576144e6600080fd5b61111384828501614494565b7f3c73766720636c6173733d22736d616c6c222077696474683d2231323030222081527f6865696768743d2231323030222073686170652d72656e646572696e673d226360208201527f7269737045646765732220786d6c6e733d22687474703a2f2f7777772e77332e60408201527f6f72672f323030302f737667222076657273696f6e3d22312e3222207669657760608201527f426f783d22302030203234203234223e3c7374796c653e726563742e78317b6660808201527f696c6c3a202336333835393664387d20726563743a6e6f74282e62297b77696460a08201527f74683a3170783b6865696768743a3170787d3c2f7374796c653e3c726563742060c08201527f783d22302220793d223022207374796c653d2277696474683a313030253b686560e08201527f696768743a31303025222066696c6c3d222336333835393622202f3e00000000610100820152600061011c82016108da565b681e3932b1ba103c1e9160b91b815260005b5060090190565b600061467682614652565b915061468282856142e9565b6411103c9e9160d91b81529150600582015b915061111382846142e9565b68222066696c6c3d222360b81b81526000614664565b60006146c282856142e9565b91506146cd826146a0565b91506146d982846142e9565b6211179f60e91b8152915060038201611113565b60006146f982846142e9565b61333360f11b81526002019392505050565b6a2220636c6173733d22783160a81b815260005b50600b0190565b600061473282846142e9565b915061473d8261470b565b6211179f60e91b815291506003820161138d565b607b60f81b815260006141fd565b7116113332b2afb932b1b4b834b2b73a111d1160711b815260005b5060120190565b6f1116113232b9b1b934b83a34b7b7111d60811b815260005b5060100190565b60006147ac82614751565b67113730b6b2911d1160c11b815260080191506147c982896142e9565b7f222c2273656c6c65725f6665655f62617369735f706f696e7473223a000000008152601c0191506147fb82886142e9565b91506148068261475f565b915061481282876142e9565b915061481d82614781565b915061482982866142e9565b7f2c22696d616765223a22646174613a696d6167652f7376672b786d6c3b626173815263194d8d0b60e21b6020820152602401915061486882856142e9565b7211161132bc3a32b93730b62fb634b735911d1160691b8152601301915061489082846142e9565b61227d60f01b81529150600282015b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000601d82015b915061138d82846142e9565b7503d913a3930b4ba2fba3cb832911d1129b8bab0b932960551b8152601601600061490c82856142e9565b6c222c202276616c7565223a222360981b8152600d01915061492e82846142e9565b61227d60f01b8152915060028201611113565b7f7b2274726169745f74797065223a2231206f662031222c202276616c7565223a8152601160f91b6020820152602101600061497d82846142e9565b61227d60f01b815291506002820161138d565b607d60f81b815260006141fd565b7f7b2274726169745f74797065223a224475706c696361746520436f6c6f72204381527f6f756e74222c2022646973706c61795f74797065223a20226e756d626572222c60208201527f20226d61785f76616c7565223a20332c202276616c7565223a0000000000000060408201526000605982015b9150614a2082846142e9565b915061138d82614990565b7f7b2274726169745f74797065223a22436f6c6f7220566172696174696f6e222c81527f2022646973706c61795f74797065223a20226e756d626572222c20226d61785f6020820152753b30b63ab2911d10189818181610113b30b63ab2911d60511b6040820152600060568201614a14565b7f7b2274726169745f74797065223a225265646e657373222c2022646973706c6181527f795f74797065223a20226e756d626572222c20226d61785f76616c7565223a2060208201526d189818181610113b30b63ab2911d60911b60408201526000604e8201614a14565b7f7b2274726169745f74797065223a22477265656e6e657373222c20226469737081527f6c61795f74797065223a20226e756d626572222c20226d61785f76616c75652260208201526f1d10189818181610113b30b63ab2911d60811b604082015260005b5060500190565b6000614a1482614b09565b7f7b2274726169745f74797065223a22426c75656e657373222c2022646973706c81527f61795f74797065223a20226e756d626572222c20226d61785f76616c7565223a60208201526e10189818181610113b30b63ab2911d60891b60408201526000604f8201614a14565b7f7b2274726169745f74797065223a224c756d696e616e6365222c20226469737081527f6c61795f74797065223a20226e756d626572222c20226d61785f76616c75652260208201526f1d10189818181610113b30b63ab2911d60811b60408201526000614b6e565b6000614a1482614bec565b7f7b2274726169745f74797065223a2253617475726174696f6e222c202264697381527f706c61795f74797065223a20226e756d626572222c20226d61785f76616c7565602082015270111d10189818181610113b30b63ab2911d60791b6040820152600060518201614a14565b7f7b2274726169745f74797065223a225261726974792053636f7265222c20226481527f6973706c61795f74797065223a20226e756d626572222c20226d61785f76616c6020820152723ab2911d10189818181610113b30b63ab2911d60691b6040820152600060538201614a14565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291505b5060400190565b602080825281016108da81614d3e565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150613f37565b602080825281016108da81614d94565b6000816108da565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150614d7d565b602080825281016108da81614de0565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613f37565b602080825281016108da81614e4a565b62ffffff8116613885565b60408101613a918285614e8c565b602781526000602082017f44796e616d69634275666665723a20417070656e64696e67206f7574206f66208152663137bab732399760c91b60208201529150614d7d565b602080825281016108da81614ea5565b60138152600060208201724d696e74206578636565647320737570706c7960681b81529150613f37565b602080825281016108da81614ef9565b60808101614f41828761394b565b614f4e602083018661394b565b614f5b60408301856139fd565b8181036060830152612f4481846138c5565b80516108da8161383e565b600060208284031215614f8d57614f8d600080fd5b60006111138484614f6d565b7111161132bc3a32b93730b62fbab936111d1160711b8152600061477a565b6f011161130ba3a3934b13aba32b9911d160851b8152600061479a565b6000614fe082614751565b67113730b6b2911d1160c11b81526008019150614ffd82896142e9565b915061500882614781565b915061501482886142e9565b7f2c22696d6167655f64617461223a22646174613a696d6167652f7376672b786d8152681b0ed8985cd94d8d0b60ba1b6020820152602901915061505882876142e9565b7f222c22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d81527f6c3b636861727365743d7574662d383b6261736536342c000000000000000000602082015260370191506150b082866142e9565b91506150bb82614f99565b91506150c782856142e9565b91506150d282614fb8565b91506150de82846142e9565b915061489f82614990565b600062ffffff8216915062ffffff831692508262ffffff0382111561424d5761424d613eb5565b600061138d82846142e9565b60008082526141fd565b60006148d58261511c565b600062ffffff8216915062ffffff831692508162ffffff0483118215151615613ee557613ee5613eb5565b600061ffff8216915061ffff831692508161ffff0483118215151615613ee557613ee5613eb5565b60008161519357615193613eb5565b506000190190565b6a436c69636b42616974202360a81b8152600061471f565b60006148d58261519b565b60208082527f537472696e67733a20686578206c656e67746820696e73756666696369656e7491019081526000613f37565b602080825281016108da816151be565b6060810161520e82866139fd565b61521b60208301856139fd565b61111360408301846139fd565b80825b60018511156152675780860481111561524657615246613eb5565b600185161561525457908102905b80026152608560011c90565b945061522b565b94509492505050565b60008261527f5750600161138d565b8161528c5750600061138d565b81600181146152a257600281146152ac576152d9565b600191505061138d565b60ff8411156152bd576152bd613eb5565b8360020a9150848211156152d3576152d3613eb5565b5061138d565b5060208310610133831016604e8410600b8410161715615307575081810a838111156137c5576137c5613eb5565b6153148484846001615228565b9250905081840481111561532a5761532a613eb5565b0292915050565b600060ff8316925061138d6000198484615270565b6000816001600160ff1b030383136000831215161561536757615367613eb5565b81600160ff1b03831260008312161561424d5761424d613eb5565b600082600160ff1b018212600084121516156153a0576153a0613eb5565b826001600160ff1b03018213600084121615613f9a57613f9a613eb5565b600062ffffff8216915062ffffff8316613f04565b6001600160f81b03198116613885565b60006153ef82846153d3565b50600101919050565b606360f81b815260006141fd565b60006108da8260e01b90565b61388563ffffffff8216615406565b6880600e6000396000f360b81b81526000614664565b6000615442826153f8565b915061544e8285615412565b60048201915061469482615421565b600061546a838584613bc0565b50500190565b60006108da8260601b90565b60006108da82615470565b6138856154938261393a565b61547c565b60006154a4828c6139fd565b6020820191506154b4828b6139fd565b6020820191506154c4828a6139fd565b6020820191506154d482896139fd565b6020820191506154e482886139fd565b6020820191506154f582868861545d565b915061550182856139fd565b6020820191506155118284615487565b50601401999850505050505050505056fe3c73766720636c6173733d226269672076697369626c65222077696474683d223132303022206865696768743d2231323030222073686170652d72656e646572696e673d2263726973704564676573222076696577426f783d22302030203234203234222076657273696f6e3d22312e312220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e3c7363726970743e66756e6374696f6e20696e697428297b76617220632c623d646f63756d656e742e717565727953656c6563746f72416c6c28222e736d616c6c22292c613d646f63756d656e742e717565727953656c6563746f7228222e62696722292c643d21313b6c657420653d613d3e6e65772050726f6d69736528623d3e73657454696d656f75742828293d3e7b6228297d2c6129293b612e6164644576656e744c697374656e65722822746f7563687374617274222c6173796e6320613d3e7b612e746f75636865732e6c656e6774683e312626286576656e742e73746f7050726f7061676174696f6e28292c6177616974206628292c672829297d293b76617220663d6173796e632066756e6374696f6e28297b666f72285b6964782c656c5d6f6628643d21302c625b305d2e636c6173734c6973742e616464282276697369626c6522292c612e636c6173734c6973742e72656d6f7665282276697369626c6522292c646f63756d656e742e717565727953656c6563746f72416c6c28222e736d616c6c22292e656e74726965732829292930213d6964782626656c2e636c6173734c6973742e746f67676c65282276697369626c6522292c6177616974206528343030293b666f72285b6964782c656c5d6f662041727261792e66726f6d2862292e7265766572736528292e656e747269657328292933213d696478262628656c2e636c6173734c6973742e746f67676c65282276697369626c6522292c617761697420652834303029293b643d21317d2c673d66756e6374696f6e28297b636c65617254696d656f75742863292c647c7c28612e636c6173734c6973742e616464282276697369626c6522292c622e666f724561636828613d3e612e636c6173734c6973742e72656d6f7665282276697369626c65222929297d3b612e6164644576656e744c697374656e65722822636c69636b222c6173796e6320643d3e7b696628642e73686966744b6579297b6177616974206628292c6728293b72657475726e7d76617220653d642e7461726765742c683d625b5b2e2e2e652e706172656e74456c656d656e742e6368696c6472656e5d2e696e6465784f662865295d3b68262628612e636c6173734c6973742e72656d6f7665282276697369626c6522292c682e636c6173734c6973742e616464282276697369626c6522292c633d73657454696d656f757428672c34653329297d292c622e666f724561636828613d3e612e6164644576656e744c697374656e65722822636c69636b222c6729297d696e697428293c2f7363726970743e3c2f626f64793e3c2f68746d6c3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f68747470733a2f2f7777772e63617073756c6532312e636f6d2f636f6c6c656374696f6e732f636c69636b62616974a264697066735822122017143316d64e573619c6cd348c6158c040e0faa0e8850d509c1c9e82168afe1064736f6c634300080f0033
Deployed Bytecode
0x6080604052600436106102b25760003560e01c80636c4ed3c611610175578063c4204d02116100dc578063e36daaa111610095578063f2824b531161006f578063f2824b5314610838578063f2fde38b14610858578063f754dd9b14610878578063ff89554014610898576102b9565b8063e36daaa1146107ba578063e8a3d485146107da578063e985e9c5146107ef576102b9565b8063c4204d0214610718578063c87b56dd14610740578063cebe02b3146103f6578063cf34842514610760578063d5abeb011461078f578063dc2c7aa2146107a5576102b9565b8063a0712d681161012e578063a0712d6814610668578063a22cb4651461067b578063a87f30ef1461069b578063b39528e7146106bb578063b88d4fde146106e3578063c07a98d514610703576102b9565b80636c4ed3c6146105cd57806370a08231146105ed578063715018a61461060d5780638ba4cc3c146106225780638da5cb5b1461063557806395d89b4114610653576102b9565b80632fe619f61161021957806359c74f29116101d257806359c74f29146105235780635b92ac0d146105385780635fa33a54146105525780636352211e1461056d5780636696f9101461058d578063677342ce146105ad576102b9565b80632fe619f61461046e5780633ba523c7146104965780633ccfd60b146104b157806342842e0e146104c657806350271c16146104e6578063577a551b146104fb576102b9565b806318160ddd1161026b57806318160ddd146103bf578063204385f6146103e1578063225993ff146103f657806323b872dd1461040b5780632977c4001461042b5780632a55205a14610440576102b9565b806301ffc9a7146102c057806306fdde03146102f6578063081812fc14610318578063095ea7b3146103455780630f5a9f89146103675780631808d4341461039c576102b9565b366102b957005b6060516080f35b3480156102cc57600080fd5b506102e06102db366004613860565b6108c0565b6040516102ed919061388b565b60405180910390f35b34801561030257600080fd5b5061030b6108e0565b6040516102ed91906138f7565b34801561032457600080fd5b50610338610333366004613919565b610972565b6040516102ed9190613954565b34801561035157600080fd5b50610365610360366004613976565b6109b6565b005b34801561037357600080fd5b5061038f7316f5a35647d6f03d5d3da7b35409d65ba03af3b281565b6040516102ed91906139d2565b3480156103a857600080fd5b506103b26101f481565b6040516102ed91906139ef565b3480156103cb57600080fd5b50600254600154035b6040516102ed9190613a03565b3480156103ed57600080fd5b506103d4601781565b34801561040257600080fd5b5061030b610a56565b34801561041757600080fd5b50610365610426366004613a11565b610a72565b34801561043757600080fd5b506103d460db81565b34801561044c57600080fd5b5061046061045b366004613a61565b610c27565b6040516102ed929190613a83565b34801561047a57600080fd5b50610338738fbb1af81d6ecd8b2acb0fb47f2077001f79e50181565b3480156104a257600080fd5b506103d4662386f26fc1000081565b3480156104bd57600080fd5b50610365610cd5565b3480156104d257600080fd5b506103656104e1366004613a11565b610d76565b3480156104f257600080fd5b506103d4603b81565b34801561050757600080fd5b50610338731909d49b585d9a55a792636fd81cacd61f787a9e81565b34801561052f57600080fd5b50610365610d96565b34801561054457600080fd5b50600b546102e09060ff1681565b34801561055e57600080fd5b506103d46005600160e21b0381565b34801561057957600080fd5b50610338610588366004613919565b610db2565b34801561059957600080fd5b5061030b6105a8366004613919565b610dbd565b3480156105b957600080fd5b506103d46105c8366004613919565b610f9d565b3480156105d957600080fd5b506103d46105e8366004613919565b61111b565b3480156105f957600080fd5b506103d4610608366004613a9e565b6111ec565b34801561061957600080fd5b5061036561123a565b610365610630366004613976565b61124e565b34801561064157600080fd5b506000546001600160a01b0316610338565b34801561065f57600080fd5b5061030b61128f565b610365610676366004613919565b61129e565b34801561068757600080fd5b50610365610696366004613ad2565b6112e2565b3480156106a757600080fd5b506103d46106b6366004613b05565b61137a565b3480156106c757600080fd5b506103387357b7304a79918d47ac0122bedbeb874a804b699081565b3480156106ef57600080fd5b506103656106fe366004613c29565b611394565b34801561070f57600080fd5b506103d4601e81565b34801561072457600080fd5b506103387382eb97f77615ff2c8bac2989e8da9e39cf9d91d381565b34801561074c57600080fd5b5061030b61075b366004613919565b6113de565b34801561076c57600080fd5b5061078061077b366004613919565b61140e565b6040516102ed93929190613d47565b34801561079b57600080fd5b506103d461271081565b3480156107b157600080fd5b506103d4603781565b3480156107c657600080fd5b5061030b6107d5366004613d79565b611600565b3480156107e657600080fd5b5061030b611951565b3480156107fb57600080fd5b506102e061080a366004613dc6565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561084457600080fd5b5061030b610853366004613919565b611a30565b34801561086457600080fd5b50610365610873366004613a9e565b611ea5565b34801561088457600080fd5b50610365610893366004613e32565b611edc565b3480156108a457600080fd5b506103387311b00edc96deb626bbc02d0a8353c0b4d4db269681565b60006108cb82611f4d565b806108da57506108da82611f9b565b92915050565b6060600380546108ef90613e8f565b80601f016020809104026020016040519081016040528092919081815260200182805461091b90613e8f565b80156109685780601f1061093d57610100808354040283529160200191610968565b820191906000526020600020905b81548152906001019060200180831161094b57829003601f168201915b5050505050905090565b600061097d82611fd0565b61099a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006109c182610db2565b9050336001600160a01b038216146109fa576109dd813361080a565b6109fa576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6040518060600160405280602f81526020016159c0602f913981565b6000610a7d82611ff8565b9050836001600160a01b0316816001600160a01b031614610ab05760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b03881690911417610afd57610ae0863361080a565b610afd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610b2457604051633a954ecd60e21b815260040160405180910390fd5b8015610b2f57600082555b6001600160a01b03808716600090815260066020526040808220805460001901905591871681522080546001019055610b8885610b6d88828761205f565b600160e11b174260a01b176001600160a01b03919091161790565b600085815260056020526040812091909155600160e11b84169003610bdd57600184016000818152600560205260408120549003610bdb576001548114610bdb5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610c9c5750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610cbb906001600160601b031687613ecb565b610cc59190613f00565b91519350909150505b9250929050565b333214610cfd5760405162461bcd60e51b8152600401610cf490613f3e565b60405180910390fd5b60004711610d1d5760405162461bcd60e51b8152600401610cf490613f78565b476000610d2b600283613f00565b9050610d4b73c2172a6315c1d7f6855768f843c420ebb36eda9782612082565b610d7273f98537696e2cf486f8f32604b2ca2cda120dbba8610d6d8385613f88565b612082565b5050565b610d9183838360405180602001604052806000815250611394565b505050565b610d9e61211e565b600b805460ff19811660ff90911615179055565b60006108da82611ff8565b6060610dc882611fd0565b610de45760405162461bcd60e51b8152600401610cf490613fca565b604080516202006081019091526202004081526000602090910181815290610e0b84612148565b9050600080610e198661140e565b5091509150610e586040518060400160405280600f81526020016e1e10a227a1aa2ca82290343a36b61f60891b8152508561218790919063ffffffff16565b610e81604051602001610e6a90613fda565b60408051601f198184030181529190528590612187565b60005b6004811015610f62576000610eb1838360048110610ea457610ea46141c0565b602002015160ff166121cc565b90506000838360048110610ec757610ec76141c0565b602002015160ff1615610f035781825187610ee291906141d6565b81518110610ef257610ef26141c0565b602002602001015161ffff16610f0f565b610f0f612710876141d6565b9050610f1d61271087613f00565b9550610f4f610f48826107d5878760048110610f3b57610f3b6141c0565b602002015160ff166123a8565b8890612187565b505080610f5b906141ea565b9050610e84565b50610f6d8483612187565b610f936040518061040001604052806103c781526020016155b96103c791398590612187565b5091949350505050565b600081600003610faf57506000919050565b50600181600160801b8110610fc95760409190911b9060801c5b680100000000000000008110610fe45760209190911b9060401c5b6401000000008110610ffb5760109190911b9060201c5b6201000081106110105760089190911b9060101c5b61010081106110245760049190911b9060081c5b601081106110375760029190911b9060041c5b6004811061104757600182901b91505b600182848161105857611058613eea565b048301901c9150600182848161107057611070613eea565b048301901c9150600182848161108857611088613eea565b048301901c915060018284816110a0576110a0613eea565b048301901c915060018284816110b8576110b8613eea565b048301901c915060018284816110d0576110d0613eea565b048301901c915060018284816110e8576110e8613eea565b048301901c9150600082848161110057611100613eea565b049050808310156111115782611113565b805b949350505050565b6000806111278361140e565b9250505060005b60048110156111e5577357b7304a79918d47ac0122bedbeb874a804b699063154f7e37838360048110611163576111636141c0565b60200201516040518263ffffffff1660e01b815260040161118491906138f7565b602060405180830381865afa1580156111a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c59190614219565b6111d39061ffff168461423a565b92506111de816141ea565b905061112e565b5050919050565b60006001600160a01b038216611215576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b61124261211e565b61124c60006123df565b565b600b5460ff1661125d57600080fd5b34611268823361137a565b146112855760405162461bcd60e51b8152600401610cf490614286565b610d72828261242f565b6060600480546108ef90613e8f565b600b5460ff166112ad57600080fd5b346112b8823361137a565b146112d55760405162461bcd60e51b8152600401610cf490614286565b6112df338261242f565b50565b336001600160a01b0383160361130b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061136e90859061388b565b60405180910390a35050565b600061138d662386f26fc1000084613ecb565b9392505050565b61139f848484610a72565b6001600160a01b0383163b156113d8576113bb848484846124de565b6113d8576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606113e982611fd0565b6114055760405162461bcd60e51b8152600401610cf490613fca565b6108da826125c9565b60606114186137f9565b611420613817565b61142984611fd0565b6114455760405162461bcd60e51b8152600401610cf490613fca565b600061145085612148565b905061145b8561268a565b156114785761147161146c8661269e565b6126fb565b92506114cf565b60005b60048110156114cd5761148f60db836141d6565b8482600481106114a1576114a16141c0565b60ff90921660209290920201526114b960db83613f00565b9150806114c5816141ea565b91505061147b565b505b60005b6004811015611517576114f0848260048110610f3b57610f3b6141c0565b838260048110611502576115026141c0565b6020020152611510816141ea565b90506114d2565b506040805162020060810190915262020040815260006020909101818152905061155a6040518060c0016040528060968152602001615523609691398290612187565b82516040516115869161156f9160200161430b565b60408051601f198184030181529190528290612187565b60208084015160405161159e9261156f929101614387565b60408084015190516115b69161156f916020016143e2565b60608301516040516115ce9161156f9160200161443d565b6040805180820190915260068152651e17b9bb339f60d11b60208201526115f6908290612187565b9592945090925050565b604051631f2f054b60e11b81526060906000907316f5a35647d6f03d5d3da7b35409d65ba03af3b290633e5e0a969061163d908790600401614452565b600060405180830381865afa15801561165a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261168291908101906144b8565b6040805162020060810190915262020040815260006020909101818152919250506116b560405160200161156f906144f2565b60408051600880825281830190925260009160208201818036833701905050905060005b601881101561191f5760005b601881101561190c576000816116fc846018613ecb565b611706919061423a565b611711906004613ecb565b905060008661172183600361423a565b81518110611731576117316141c0565b016020015160f81c11156118f95760005b600481101561185257600087611758838561423a565b81518110611768576117686141c0565b016020015160f81c90506f181899199a1a9b1b9c1cb0b131b232b360811b600f82166010811061179a5761179a6141c0565b1a60f81b866117aa846002613ecb565b6117b590600161423a565b815181106117c5576117c56141c0565b60200101906001600160f81b031916908160001a90535060041c600f166f181899199a1a9b1b9c1cb0b131b232b360811b8160108110611807576118076141c0565b1a60f81b86611817846002613ecb565b81518110611827576118276141c0565b60200101906001600160f81b031916908160001a90535050808061184a906141ea565b915050611742565b50600061185e836127b1565b611867856127b1565b60405160200161187892919061466b565b60405160208183030381529060405290506118b6818660405160200161189f9291906146b6565b60408051601f198184030181529190528790612187565b6118df896040516020016118ca91906146ed565b604051602081830303815290604052866128b1565b6118f7576118f78160405160200161189f9190614726565b505b5080611904816141ea565b9150506116e5565b5080611917816141ea565b9150506116d9565b506040805180820190915260068152651e17b9bb339f60d11b6020820152611948908390612187565b50949350505050565b6060600061197f61076f6040518060400160405280600681526020016565346562313760d01b815250611600565b9050600061198c8261290a565b9050611a0a6119996108e0565b6119a46101f46127b1565b6119ad30612a6e565b600b546119c79061010090046001600160a01b0316612a84565b856040518060600160405280602f81526020016159c0602f91396040516020016119f6969594939291906147a1565b60405160208183030381529060405261290a565b604051602001611a1a91906148ab565b6040516020818303038152906040529250505090565b6060611a3b82611fd0565b611a575760405162461bcd60e51b8152600401610cf490613fca565b6000611a628361140e565b925050506000611a7184612a94565b90506000611a7e85612b71565b90506000806000806000611a918a612c54565b945094509450945094506000611aa68b61111b565b9050619c40611ab7826103e8613ecb565b611ac19190613f00565b6040805161406081018252614040815260006020918201908152825180840190935260018352605b60f81b91830191909152919250611b01908290612187565b60005b6004811015611ba6576000611b22611b1d83600161423a565b6127b1565b8c8360048110611b3457611b346141c0565b6020020151604051602001611b4a9291906148e1565b60408051601f198184030181529190529050611b668382612187565b6003821015611b9357604080518082019091526002815261016160f51b6020820152611b93908490612187565b5080611b9e816141ea565b915050611b04565b50611bb08c61268a565b15611c0b576000611bc08d612d3a565b604051602001611bd09190614941565b60408051601f198184030181528282019091526002825261016160f51b60208301529150611bff908390612187565b611c098282612187565b505b6000611c168a6127b1565b604051602001611c26919061499e565b60408051601f198184030181528282019091526002825261016160f51b60208301529150611c55908390612187565b611c5f8282612187565b604080518082019091526002815261016160f51b6020820152611c83908390612187565b611cc9611ca26103fc611c988c6103e8613ecb565b611b1d9190613f00565b604051602001611cb29190614a2b565b60408051601f198184030181529190528390612187565b604080518082019091526002815261016160f51b6020820152611ced908390612187565b611d12611d02610bf4611c988b6103e8613ecb565b604051602001611cb29190614a9e565b604080518082019091526002815261016160f51b6020820152611d36908390612187565b611d5b611d4b610bf4611c988a6103e8613ecb565b604051602001611cb29190614b75565b604080518082019091526002815261016160f51b6020820152611d7f908390612187565b611da4611d94610bf4611c98896103e8613ecb565b604051602001611cb29190614b80565b604080518082019091526002815261016160f51b6020820152611dc8908390612187565b611ded611ddd6103fc611c98886103e8613ecb565b604051602001611cb29190614c55565b604080518082019091526002815261016160f51b6020820152611e11908390612187565b611e32611e22611b1d600487613f00565b604051602001611cb29190614c60565b604080518082019091526002815261016160f51b6020820152611e56908390612187565b611e72611e62846127b1565b604051602001611cb29190614cce565b6040805180820190915260018152605d60f81b6020820152611e95908390612187565b509b9a5050505050505050505050565b611ead61211e565b6001600160a01b038116611ed35760405162461bcd60e51b8152600401610cf490614d84565b6112df816123df565b611ee461211e565b611f2382828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612d4d92505050565b600b60016101000a8154816001600160a01b0302191690836001600160a01b031602179055505050565b60006301ffc9a760e01b6001600160e01b031983161480611f7e57506380ac58cd60e01b6001600160e01b03198316145b806108da5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806108da57506301ffc9a760e01b6001600160e01b03198316146108da565b6000600154821080156108da575050600090815260056020526040902054600160e01b161590565b6000816001548110156120465760008181526005602052604081205490600160e01b82169003612044575b80600003611111575060001901600081815260056020526040902054612023565b505b604051636f96cda160e11b815260040160405180910390fd5b600060e882811c90612072868684612db2565b62ffffff16901b95945050505050565b804710156120a25760405162461bcd60e51b8152600401610cf490614dc8565b6000826001600160a01b0316826040516120bb90614dd8565b60006040518083038185875af1925050503d80600081146120f8576040519150601f19603f3d011682016040523d82523d6000602084013e6120fd565b606091505b5050905080610d915760405162461bcd60e51b8152600401610cf490614e3a565b6000546001600160a01b0316331461124c5760405162461bcd60e51b8152600401610cf490614e7c565b600061215382612dd1565b6060015182604051602001612169929190614e97565b60408051601f19818403018152919052805160209091012092915050565b601f1982015182518251603f199092019182906121a4908361423a565b11156121c25760405162461bcd60e51b8152600401610cf490614ee9565b6113d88484612e48565b606060006121ed731909d49b585d9a55a792636fd81cacd61f787a9e612a84565b905060006121fc603785613ecb565b9050600061220b60378361423a565b60408051603780825261070082019092529192506000918291602082016106e080368337019050509050835b838110156122f95760008661224d836002613ecb565b8151811061225d5761225d6141c0565b016020015160f81c9050600087612275846002613ecb565b61228090600161423a565b81518110612290576122906141c0565b016020015160f81c905061ff00600883901b1681176127108110156122e357808587815181106122c2576122c26141c0565b61ffff90921660209283029190910190910152856122df816141ea565b9650505b50505080806122f1906141ea565b915050612237565b506000826001600160401b0381111561231457612314613b38565b60405190808252806020026020018201604052801561233d578160200160208202803683370190505b50905060005b8381101561239c5782818151811061235d5761235d6141c0565b6020026020010151828281518110612377576123776141c0565b61ffff9092166020928302919091019091015280612394816141ea565b915050612343565b50979650505050505050565b606060006123c97382eb97f77615ff2c8bac2989e8da9e39cf9d91d3612a84565b905061138d6123d88285612e7e565b6003612f4e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b33321461244e5760405162461bcd60e51b8152600401610cf490613f3e565b6127108161245f6002546001540390565b612469919061423a565b11156124875760405162461bcd60e51b8152600401610cf490614f23565b6000612494601e83613f00565b905060006124a3601e846141d6565b905060005b828110156124cd576124bb85601e61302b565b806124c5816141ea565b9150506124a8565b5080156113d8576113d8848261302b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612513903390899088908890600401614f33565b6020604051808303816000875af192505050801561254e575060408051601f3d908101601f1916820190925261254b91810190614f78565b60015b6125ac573d80801561257c576040519150601f19603f3d011682016040523d82523d6000602084013e612581565b606091505b5080516000036125a4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060006125d68361140e565b5050905060006125e584610dbd565b905060006125f28361290a565b905060006125ff8361290a565b905061266061260d87613157565b600b546126279061010090046001600160a01b0316612a84565b84846040518060600160405280602f81526020016159c0602f913961264b8c611a30565b6040516020016119f696959493929190614fd5565b60405160200161267091906148ab565b604051602081830303815290604052945050505050919050565b6000603b6126978361269e565b1092915050565b6000806126ab6001611fd0565b156126d2576126ba6001612dd1565b606001516126ca906127106150e9565b62ffffff1690505b6127106005600160e21b036126e7838661423a565b6126f19190613ecb565b61138d91906141d6565b6127036137f9565b6000612722738fbb1af81d6ecd8b2acb0fb47f2077001f79e501612a84565b90506000612731600485613ecb565b9050600061274060048361423a565b90506000825b828110156127a757848181518110612760576127606141c0565b016020015160f81c86836004811061277a5761277a6141c0565b60ff909216602092909202015281612791816141ea565b925050808061279f906141ea565b915050612746565b5050505050919050565b6060816000036127d85750506040805180820190915260018152600360fc1b602082015290565b8160005b811561280257806127ec816141ea565b91506127fb9050600a83613f00565b91506127dc565b6000816001600160401b0381111561281c5761281c613b38565b6040519080825280601f01601f191660200182016040528015612846576020820181803683370190505b5090505b84156111135761285b600183613f88565b9150612868600a866141d6565b61287390603061423a565b60f81b818381518110612888576128886141c0565b60200101906001600160f81b031916908160001a9053506128aa600a86613f00565b945061284a565b6000816040516020016128c49190615110565b60405160208183030381529060405280519060200120836040516020016128eb9190615110565b6040516020818303038152906040528051906020012014905092915050565b6060815160000361292957505060408051602081019091526000815290565b60006040518060600160405280604081526020016159806040913990506000600384516002612958919061423a565b6129629190613f00565b61296d906004613ecb565b9050600061297c82602061423a565b6001600160401b0381111561299357612993613b38565b6040519080825280601f01601f1916602001820160405280156129bd576020820181803683370190505b509050818152600183018586518101602084015b81831015612a29576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016129d1565b600389510660018114612a435760028114612a5457612a60565b613d3d60f01b600119830152612a60565b603d60f81b6000198301525b509398975050505050505050565b60606108da6001600160a01b0383166014613188565b60606108da8260016000196132f3565b600080612aa08361140e565b509150506000805b6004811015612b305760005b6004811015612b1f57808214158015612afe5750838160048110612ada57612ada6141c0565b602002015160ff16848360048110612af457612af46141c0565b602002015160ff16145b15612b0f57612b0c836141ea565b92505b612b18816141ea565b9050612ab4565b50612b29816141ea565b9050612aa8565b5080600003612b43575060009392505050565b80600203612b55575060019392505050565b80600603612b67575060029392505050565b5060039392505050565b600080612b917382eb97f77615ff2c8bac2989e8da9e39cf9d91d3612a84565b90506000612b9e8461140e565b5091505060005b6004811015612c4c576000612bbb82600161423a565b90505b6004811015612c3b57808214612c2b576000612bf385858560048110612be657612be66141c0565b602002015160ff16612e7e565b90506000612c0d86868560048110612be657612be66141c0565b9050612c1c6105c8838361339d565b612c26908861423a565b965050505b612c34816141ea565b9050612bbe565b50612c45816141ea565b9050612ba5565b505050919050565b600080600080600080612c7a7382eb97f77615ff2c8bac2989e8da9e39cf9d91d3612a84565b90506000612c878861140e565b5091505060005b6004811015612d2e576000612caf84848460048110612be657612be66141c0565b90506000806000612cbf8461348e565b91945092509050612cd0838d61423a565b9b50612cdc828c61423a565b9a50612ce8818b61423a565b9950612cf384613516565b612d029062ffffff168a61423a565b9850612d0d84613579565b612d17908961423a565b97505050505080612d27906141ea565b9050612c8e565b50505091939590929450565b60606108da612d488361269e565b6135fd565b600080612d7883604051602001612d649190615126565b60405160208183030381529060405261376d565b90508051602082016000f091506001600160a01b038216612dac5760405163046a55db60e11b815260040160405180910390fd5b50919050565b60006001600160a01b03841615612dc95781611113565b611113613783565b6040805160808101825260008082526020820181905291810182905260608101919091526108da612e0183611ff8565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b8051602082019150808201602084510184015b81841015612e73578351815260209384019301612e5b565b505082510190915250565b60008083612e8d846003613ecb565b81518110612e9d57612e9d6141c0565b0160200151612eb29060f81c62010000615131565b62ffffff169050600084612ec7856003613ecb565b612ed290600161423a565b81518110612ee257612ee26141c0565b0160200151612ef69060f81c61010061515c565b61ffff169050600085612f0a866003613ecb565b612f1590600261423a565b81518110612f2557612f256141c0565b016020015160f81c905080612f3a838561423a565b612f44919061423a565b9695505050505050565b60606000612f5d836002613ecb565b6001600160401b03811115612f7457612f74613b38565b6040519080825280601f01601f191660200182016040528015612f9e576020820181803683370190505b5080519091505b8015613023576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612fd357612fd36141c0565b1a60f81b82612fe3600184613f88565b81518110612ff357612ff36141c0565b60200101906001600160f81b031916908160001a90535060049490941c938061301b81615184565b915050612fa5565b509392505050565b60015460008290036130505760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600090815260066020526040812080546801000000000000000185020190556130a790849061308a90828161205f565b6001851460e11b174260a01b176001600160a01b03919091161790565b6000828152600560205260408120919091556001600160a01b0384169083830190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461312d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016130f5565b508160000361314e57604051622e076360e81b815260040160405180910390fd5b60015550505050565b6060613162826127b1565b60405160200161317291906151b3565b6040516020818303038152906040529050919050565b60606000613197836002613ecb565b6131a290600261423a565b6001600160401b038111156131b9576131b9613b38565b6040519080825280601f01601f1916602001820160405280156131e3576020820181803683370190505b509050600360fc1b816000815181106131fe576131fe6141c0565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061322d5761322d6141c0565b60200101906001600160f81b031916908160001a9053506000613251846002613ecb565b61325c90600161423a565b90505b60018111156132d4576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613290576132906141c0565b1a60f81b8282815181106132a6576132a66141c0565b60200101906001600160f81b031916908160001a90535060049490941c936132cd81615184565b905061325f565b50831561138d5760405162461bcd60e51b8152600401610cf4906151f0565b6060833b600081900361331657505060408051602081019091526000815261138d565b8084111561333457505060408051602081019091526000815261138d565b8383101561335b5780848460405163162544fd60e11b8152600401610cf493929190615200565b83830384820360008282106133705782613372565b815b60408051603f8301601f19168101909152818152955090508087602087018a3c505050509392505050565b600060ff601084811c821691600886811c821692828816929087901c81169187901c8116908716866133cf87856137b2565b905060006133e78762ffffff168562ffffff166137b2565b905060006133ff8762ffffff168562ffffff166137b2565b905060006064613410600284615331565b61341b90600b613ecb565b6134259190613f00565b6064613432600286615331565b61343d90603b613ecb565b6134479190613f00565b6064613454600288615331565b61345f90601e613ecb565b6134699190613f00565b613473919061423a565b61347d919061423a565b9d9c50505050505050505050505050565b6000808060ff601085901c811690600886901c81169086166134b08183615346565b6134ba9084615382565b6134c6906101fe615346565b6134d08285615346565b6134da9084615382565b6134e6906101fe615346565b6134f08486615346565b6134fa9084615382565b613506906101fe615346565b9550955095505050509193909250565b600060ff80831690600884901c811690601085901c166103e861353a846072615131565b6135468461024b615131565b6135528461012b615131565b61355c91906150e9565b61356691906150e9565b61357091906153be565b95945050505050565b600060ff601083901c811690600884901c8116908416836135a38461359e85856137d4565b6137d4565b905060006135ba856135b586866137ea565b6137ea565b9050816000036135d1575060009695505050505050565b816135dc8282613f88565b6135e8906103e8613ecb565b6135f29190613f00565b979650505050505050565b6060603b821061360c57600080fd5b600061362b7311b00edc96deb626bbc02d0a8353c0b4d4db2696612a84565b9050600061365b61363e60176002613ecb565b604080518281016060018252910181526000602090910190815290565b9050600061366a856017613ecb565b90505b61367885600161423a565b613683906017613ecb565b81101561302357600083828151811061369e5761369e6141c0565b602001015160f81c60f81b6040516020016136b991906153e3565b60408051601f198184030181528282528051602091820120838301835260018452601f60fa1b8483015291519193506136f3929101615110565b6040516020818303038152906040528051906020012081036137155750613023565b61375c84838151811061372a5761372a6141c0565b602001015160f81c60f81b60405160200161374591906153e3565b60408051601f198184030181529190528490612187565b50613766816141ea565b905061366d565b6060815182604051602001613172929190615437565b6000803a434244488536613798600187613f88565b403360405160200161216999989796959493929190615498565b60008183116137ca576137c58383613f88565b61138d565b61138d8284613f88565b60008183116137e3578161138d565b5090919050565b60008183106137e3578161138d565b60405180608001604052806004906020820280368337509192915050565b60405180608001604052806004905b60608152602001906001900390816138265790505090565b6001600160e01b031981165b81146112df57600080fd5b80356108da8161383e565b60006020828403121561387557613875600080fd5b60006111138484613855565b8015155b82525050565b602081016108da8284613881565b60005b838110156138b457818101518382015260200161389c565b838111156113d85750506000910152565b60006138cf825190565b8084526020840193506138e6818560208601613899565b601f01601f19169290920192915050565b6020808252810161138d81846138c5565b8061384a565b80356108da81613908565b60006020828403121561392e5761392e600080fd5b6000611113848461390e565b60006001600160a01b0382166108da565b6138858161393a565b602081016108da828461394b565b61384a8161393a565b80356108da81613962565b6000806040838503121561398c5761398c600080fd5b6000613998858561396b565b92505060206139a98582860161390e565b9150509250929050565b60006108da8261393a565b60006108da826139b3565b613885816139be565b602081016108da82846139c9565b6001600160601b038116613885565b602081016108da82846139e0565b80613885565b602081016108da82846139fd565b600080600060608486031215613a2957613a29600080fd5b6000613a35868661396b565b9350506020613a468682870161396b565b9250506040613a578682870161390e565b9150509250925092565b60008060408385031215613a7757613a77600080fd5b6000613998858561390e565b60408101613a91828561394b565b61138d60208301846139fd565b600060208284031215613ab357613ab3600080fd5b6000611113848461396b565b80151561384a565b80356108da81613abf565b60008060408385031215613ae857613ae8600080fd5b6000613af4858561396b565b92505060206139a985828601613ac7565b60008060408385031215613b1b57613b1b600080fd5b6000613b27858561390e565b92505060206139a98582860161396b565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715613b7357613b73613b38565b6040525050565b6000613b8560405190565b9050613b918282613b4e565b919050565b60006001600160401b03821115613baf57613baf613b38565b601f19601f83011660200192915050565b82818337506000910152565b6000613bdf613bda84613b96565b613b7a565b905082815260208101848484011115613bfa57613bfa600080fd5b613023848285613bc0565b600082601f830112613c1957613c19600080fd5b8135611113848260208601613bcc565b60008060008060808587031215613c4257613c42600080fd5b6000613c4e878761396b565b9450506020613c5f8782880161396b565b9350506040613c708782880161390e565b92505060608501356001600160401b03811115613c8f57613c8f600080fd5b613c9b87828801613c05565b91505092959194509250565b60ff8116613885565b6000613cbc8383613ca7565b505060200190565b6004818060005b83811015610c1f578151613cdf8782613cb0565b965060208301925050600101613ccb565b600061138d83836138c5565b6000600483608081018480855b85811015613d3a5784840389528151613d228582613cf0565b94506020830160209a909a0199925050600101613d09565b5091979650505050505050565b60c08082528101613d5881866138c5565b9050613d676020830185613cc4565b81810360a08301526135708184613cfc565b60008060408385031215613d8f57613d8f600080fd5b6000613d9b858561390e565b92505060208301356001600160401b03811115613dba57613dba600080fd5b6139a985828601613c05565b60008060408385031215613ddc57613ddc600080fd5b6000613b27858561396b565b60008083601f840112613dfd57613dfd600080fd5b5081356001600160401b03811115613e1757613e17600080fd5b602083019150836001820283011115610cce57610cce600080fd5b60008060208385031215613e4857613e48600080fd5b82356001600160401b03811115613e6157613e61600080fd5b613e6d85828601613de8565b92509250509250929050565b634e487b7160e01b600052602260045260246000fd5b600281046001821680613ea357607f821691505b602082108103612dac57612dac613e79565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613ee557613ee5613eb5565b500290565b634e487b7160e01b600052601260045260246000fd5b6000825b925082613f1357613f13613eea565b500490565b600c81526000602082016b4e6f20636f6e74726163747360a01b815291505b5060200190565b602080825281016108da81613f18565b60138152600060208201724e6f7468696e6720746f20776974686472617760681b81529150613f37565b602080825281016108da81613f4e565b600082821015613f9a57613f9a613eb5565b500390565b6014815260006020820173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81529150613f37565b602080825281016108da81613f9f565b7f3c626f64793e3c7374796c653e626f64797b646973706c61793a666c65783b6181527f6c69676e2d6974656d733a63656e7465723b206a7573746966792d636f6e746560208201527f6e743a63656e7465723b706f736974696f6e3a72656c61746976653b7d20726560408201527f63747b637572736f723a706f696e7465727d202a7b626f782d73697a696e673a60608201527f626f726465722d626f783b6d617267696e3a303b70616464696e673a303b626f60808201527f726465723a303b20757365722d73656c6563743a206e6f6e653b7d207376677b60a08201527f77696474683a20313030253b6865696768743a20313030253b6d61782d77696460c08201527f74683a20313030253b206d61782d6865696768743a20313030253b706f73697460e08201527f696f6e3a66697865643b746f703a303b6c6566743a303b7472616e736974696f6101008201527f6e3a20302e347320616c6c3b206f7061636974793a20303b20706f696e7465726101208201527f2d6576656e74733a206e6f6e653b7d207376672e76697369626c657b6f7061636101408201527f6974793a20313b20706f696e7465722d6576656e74733a20756e7365743b7d3c6101608201526617b9ba3cb6329f60c91b610180820152600061018782016108da565b634e487b7160e01b600052603260045260246000fd5b6000826141e5576141e5613eea565b500690565b600060001982036141fd576141fd613eb5565b5060010190565b61ffff811661384a565b80516108da81614204565b60006020828403121561422e5761422e600080fd5b6000611113848461420e565b6000821982111561424d5761424d613eb5565b500190565b601e81526000602082017f496e636f727265637420616d6f756e74206f662065746865722073656e74000081529150613f37565b602080825281016108da81614252565b7f3c7265637420636c6173733d2262222077696474683d2232342220686569676881527f743d2232342220783d22302220793d2230222066696c6c3d2223000000000000602082015260005b50603a0190565b60006142f3825190565b614301818560208601613899565b9290920192915050565b600061431682614296565b915061432282846142e9565b631110179f60e11b815291506004820161138d565b7f3c7265637420636c6173733d2262222077696474683d2232302220686569676881527f743d2232302220783d22322220793d2233222066696c6c3d2223000000000000602082015260006142e2565b600061431682614337565b7f3c7265637420636c6173733d2262222077696474683d2231362220686569676881527f743d2231362220783d22342220793d2236222066696c6c3d2223000000000000602082015260006142e2565b600061431682614392565b7f3c7265637420636c6173733d2262222077696474683d2231322220686569676881527f743d2231322220783d22362220793d2239222066696c6c3d2223000000000000602082015260006142e2565b6000614316826143ed565b61ffff8116613885565b602081016108da8284614448565b600061446e613bda84613b96565b90508281526020810184848401111561448957614489600080fd5b613023848285613899565b600082601f8301126144a8576144a8600080fd5b8151611113848260208601614460565b6000602082840312156144cd576144cd600080fd5b81516001600160401b038111156144e6576144e6600080fd5b61111384828501614494565b7f3c73766720636c6173733d22736d616c6c222077696474683d2231323030222081527f6865696768743d2231323030222073686170652d72656e646572696e673d226360208201527f7269737045646765732220786d6c6e733d22687474703a2f2f7777772e77332e60408201527f6f72672f323030302f737667222076657273696f6e3d22312e3222207669657760608201527f426f783d22302030203234203234223e3c7374796c653e726563742e78317b6660808201527f696c6c3a202336333835393664387d20726563743a6e6f74282e62297b77696460a08201527f74683a3170783b6865696768743a3170787d3c2f7374796c653e3c726563742060c08201527f783d22302220793d223022207374796c653d2277696474683a313030253b686560e08201527f696768743a31303025222066696c6c3d222336333835393622202f3e00000000610100820152600061011c82016108da565b681e3932b1ba103c1e9160b91b815260005b5060090190565b600061467682614652565b915061468282856142e9565b6411103c9e9160d91b81529150600582015b915061111382846142e9565b68222066696c6c3d222360b81b81526000614664565b60006146c282856142e9565b91506146cd826146a0565b91506146d982846142e9565b6211179f60e91b8152915060038201611113565b60006146f982846142e9565b61333360f11b81526002019392505050565b6a2220636c6173733d22783160a81b815260005b50600b0190565b600061473282846142e9565b915061473d8261470b565b6211179f60e91b815291506003820161138d565b607b60f81b815260006141fd565b7116113332b2afb932b1b4b834b2b73a111d1160711b815260005b5060120190565b6f1116113232b9b1b934b83a34b7b7111d60811b815260005b5060100190565b60006147ac82614751565b67113730b6b2911d1160c11b815260080191506147c982896142e9565b7f222c2273656c6c65725f6665655f62617369735f706f696e7473223a000000008152601c0191506147fb82886142e9565b91506148068261475f565b915061481282876142e9565b915061481d82614781565b915061482982866142e9565b7f2c22696d616765223a22646174613a696d6167652f7376672b786d6c3b626173815263194d8d0b60e21b6020820152602401915061486882856142e9565b7211161132bc3a32b93730b62fb634b735911d1160691b8152601301915061489082846142e9565b61227d60f01b81529150600282015b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000601d82015b915061138d82846142e9565b7503d913a3930b4ba2fba3cb832911d1129b8bab0b932960551b8152601601600061490c82856142e9565b6c222c202276616c7565223a222360981b8152600d01915061492e82846142e9565b61227d60f01b8152915060028201611113565b7f7b2274726169745f74797065223a2231206f662031222c202276616c7565223a8152601160f91b6020820152602101600061497d82846142e9565b61227d60f01b815291506002820161138d565b607d60f81b815260006141fd565b7f7b2274726169745f74797065223a224475706c696361746520436f6c6f72204381527f6f756e74222c2022646973706c61795f74797065223a20226e756d626572222c60208201527f20226d61785f76616c7565223a20332c202276616c7565223a0000000000000060408201526000605982015b9150614a2082846142e9565b915061138d82614990565b7f7b2274726169745f74797065223a22436f6c6f7220566172696174696f6e222c81527f2022646973706c61795f74797065223a20226e756d626572222c20226d61785f6020820152753b30b63ab2911d10189818181610113b30b63ab2911d60511b6040820152600060568201614a14565b7f7b2274726169745f74797065223a225265646e657373222c2022646973706c6181527f795f74797065223a20226e756d626572222c20226d61785f76616c7565223a2060208201526d189818181610113b30b63ab2911d60911b60408201526000604e8201614a14565b7f7b2274726169745f74797065223a22477265656e6e657373222c20226469737081527f6c61795f74797065223a20226e756d626572222c20226d61785f76616c75652260208201526f1d10189818181610113b30b63ab2911d60811b604082015260005b5060500190565b6000614a1482614b09565b7f7b2274726169745f74797065223a22426c75656e657373222c2022646973706c81527f61795f74797065223a20226e756d626572222c20226d61785f76616c7565223a60208201526e10189818181610113b30b63ab2911d60891b60408201526000604f8201614a14565b7f7b2274726169745f74797065223a224c756d696e616e6365222c20226469737081527f6c61795f74797065223a20226e756d626572222c20226d61785f76616c75652260208201526f1d10189818181610113b30b63ab2911d60811b60408201526000614b6e565b6000614a1482614bec565b7f7b2274726169745f74797065223a2253617475726174696f6e222c202264697381527f706c61795f74797065223a20226e756d626572222c20226d61785f76616c7565602082015270111d10189818181610113b30b63ab2911d60791b6040820152600060518201614a14565b7f7b2274726169745f74797065223a225261726974792053636f7265222c20226481527f6973706c61795f74797065223a20226e756d626572222c20226d61785f76616c6020820152723ab2911d10189818181610113b30b63ab2911d60691b6040820152600060538201614a14565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291505b5060400190565b602080825281016108da81614d3e565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150613f37565b602080825281016108da81614d94565b6000816108da565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150614d7d565b602080825281016108da81614de0565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613f37565b602080825281016108da81614e4a565b62ffffff8116613885565b60408101613a918285614e8c565b602781526000602082017f44796e616d69634275666665723a20417070656e64696e67206f7574206f66208152663137bab732399760c91b60208201529150614d7d565b602080825281016108da81614ea5565b60138152600060208201724d696e74206578636565647320737570706c7960681b81529150613f37565b602080825281016108da81614ef9565b60808101614f41828761394b565b614f4e602083018661394b565b614f5b60408301856139fd565b8181036060830152612f4481846138c5565b80516108da8161383e565b600060208284031215614f8d57614f8d600080fd5b60006111138484614f6d565b7111161132bc3a32b93730b62fbab936111d1160711b8152600061477a565b6f011161130ba3a3934b13aba32b9911d160851b8152600061479a565b6000614fe082614751565b67113730b6b2911d1160c11b81526008019150614ffd82896142e9565b915061500882614781565b915061501482886142e9565b7f2c22696d6167655f64617461223a22646174613a696d6167652f7376672b786d8152681b0ed8985cd94d8d0b60ba1b6020820152602901915061505882876142e9565b7f222c22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d81527f6c3b636861727365743d7574662d383b6261736536342c000000000000000000602082015260370191506150b082866142e9565b91506150bb82614f99565b91506150c782856142e9565b91506150d282614fb8565b91506150de82846142e9565b915061489f82614990565b600062ffffff8216915062ffffff831692508262ffffff0382111561424d5761424d613eb5565b600061138d82846142e9565b60008082526141fd565b60006148d58261511c565b600062ffffff8216915062ffffff831692508162ffffff0483118215151615613ee557613ee5613eb5565b600061ffff8216915061ffff831692508161ffff0483118215151615613ee557613ee5613eb5565b60008161519357615193613eb5565b506000190190565b6a436c69636b42616974202360a81b8152600061471f565b60006148d58261519b565b60208082527f537472696e67733a20686578206c656e67746820696e73756666696369656e7491019081526000613f37565b602080825281016108da816151be565b6060810161520e82866139fd565b61521b60208301856139fd565b61111360408301846139fd565b80825b60018511156152675780860481111561524657615246613eb5565b600185161561525457908102905b80026152608560011c90565b945061522b565b94509492505050565b60008261527f5750600161138d565b8161528c5750600061138d565b81600181146152a257600281146152ac576152d9565b600191505061138d565b60ff8411156152bd576152bd613eb5565b8360020a9150848211156152d3576152d3613eb5565b5061138d565b5060208310610133831016604e8410600b8410161715615307575081810a838111156137c5576137c5613eb5565b6153148484846001615228565b9250905081840481111561532a5761532a613eb5565b0292915050565b600060ff8316925061138d6000198484615270565b6000816001600160ff1b030383136000831215161561536757615367613eb5565b81600160ff1b03831260008312161561424d5761424d613eb5565b600082600160ff1b018212600084121516156153a0576153a0613eb5565b826001600160ff1b03018213600084121615613f9a57613f9a613eb5565b600062ffffff8216915062ffffff8316613f04565b6001600160f81b03198116613885565b60006153ef82846153d3565b50600101919050565b606360f81b815260006141fd565b60006108da8260e01b90565b61388563ffffffff8216615406565b6880600e6000396000f360b81b81526000614664565b6000615442826153f8565b915061544e8285615412565b60048201915061469482615421565b600061546a838584613bc0565b50500190565b60006108da8260601b90565b60006108da82615470565b6138856154938261393a565b61547c565b60006154a4828c6139fd565b6020820191506154b4828b6139fd565b6020820191506154c4828a6139fd565b6020820191506154d482896139fd565b6020820191506154e482886139fd565b6020820191506154f582868861545d565b915061550182856139fd565b6020820191506155118284615487565b50601401999850505050505050505056fe3c73766720636c6173733d226269672076697369626c65222077696474683d223132303022206865696768743d2231323030222073686170652d72656e646572696e673d2263726973704564676573222076696577426f783d22302030203234203234222076657273696f6e3d22312e312220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e3c7363726970743e66756e6374696f6e20696e697428297b76617220632c623d646f63756d656e742e717565727953656c6563746f72416c6c28222e736d616c6c22292c613d646f63756d656e742e717565727953656c6563746f7228222e62696722292c643d21313b6c657420653d613d3e6e65772050726f6d69736528623d3e73657454696d656f75742828293d3e7b6228297d2c6129293b612e6164644576656e744c697374656e65722822746f7563687374617274222c6173796e6320613d3e7b612e746f75636865732e6c656e6774683e312626286576656e742e73746f7050726f7061676174696f6e28292c6177616974206628292c672829297d293b76617220663d6173796e632066756e6374696f6e28297b666f72285b6964782c656c5d6f6628643d21302c625b305d2e636c6173734c6973742e616464282276697369626c6522292c612e636c6173734c6973742e72656d6f7665282276697369626c6522292c646f63756d656e742e717565727953656c6563746f72416c6c28222e736d616c6c22292e656e74726965732829292930213d6964782626656c2e636c6173734c6973742e746f67676c65282276697369626c6522292c6177616974206528343030293b666f72285b6964782c656c5d6f662041727261792e66726f6d2862292e7265766572736528292e656e747269657328292933213d696478262628656c2e636c6173734c6973742e746f67676c65282276697369626c6522292c617761697420652834303029293b643d21317d2c673d66756e6374696f6e28297b636c65617254696d656f75742863292c647c7c28612e636c6173734c6973742e616464282276697369626c6522292c622e666f724561636828613d3e612e636c6173734c6973742e72656d6f7665282276697369626c65222929297d3b612e6164644576656e744c697374656e65722822636c69636b222c6173796e6320643d3e7b696628642e73686966744b6579297b6177616974206628292c6728293b72657475726e7d76617220653d642e7461726765742c683d625b5b2e2e2e652e706172656e74456c656d656e742e6368696c6472656e5d2e696e6465784f662865295d3b68262628612e636c6173734c6973742e72656d6f7665282276697369626c6522292c682e636c6173734c6973742e616464282276697369626c6522292c633d73657454696d656f757428672c34653329297d292c622e666f724561636828613d3e612e6164644576656e744c697374656e65722822636c69636b222c6729297d696e697428293c2f7363726970743e3c2f626f64793e3c2f68746d6c3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f68747470733a2f2f7777772e63617073756c6532312e636f6d2f636f6c6c656374696f6e732f636c69636b62616974a264697066735822122017143316d64e573619c6cd348c6158c040e0faa0e8850d509c1c9e82168afe1064736f6c634300080f0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,352.76 | 0.1924 | $645.07 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.