ERC-721
Overview
Max Total Supply
512 DGNRTVGMS
Holders
248
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DGNRTVGMSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
DegenerativeGames
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; import { ERC721A } from "erc721a/contracts/ERC721A.sol"; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import "./IAutoglyphs.sol"; import './Utils.sol'; import "./Array.sol"; import "./Base64.sol"; /* @title DegenerativeGames @author @marka_eth */ contract DegenerativeGames is ERC721A, Ownable { IAutoglyphs public glyphs = IAutoglyphs(0xd4e4078ca3495DE5B1d4dB434BEbc5a986197782); uint public price = 0.083 ether; uint256 public constant MAX_SUPPLY = 512; uint256 public constant Total_Lifetime_Blocks = 216290735; uint256 internal constant Initial_Cells = 4318; uint256 internal constant Cells_To_Ignore = 30; uint256 internal constant Reduced_Cells = Initial_Cells - Cells_To_Ignore; string internal constant _THANKYOUCONWAY = "class Game{#e=[];#t=[];#s=!0;constructor(e){this.canvas=e,this.board=new Board(this.canvas),this.board.drawBackground(),this.launch=this.launch.bind(this),this.initBrowserEvents()}launch(){if(this.board.drawBackground(),0===this.#e.length&&this.firstGeneration(),this.#s)for(let e=0;e<this.board.size.cellNumberX;e++)for(let t=0;t<this.board.size.cellNumberY;t++)this.#e[e][t].draw();else{const e=this.serializeState();this.#t.includes(e)?(console.log('Generations:',loopCounter),this.#s=!this.#s):(loopCounter++,2===this.#t.length&&this.#t.shift(),this.#t.push(e));for(let e=0;e<this.board.size.cellNumberX;e++)for(let t=0;t<this.board.size.cellNumberY;t++)this.setCellNeighborsByCoords(e,t);for(let e=0;e<this.board.size.cellNumberX;e++)for(let t=0;t<this.board.size.cellNumberY;t++)this.#e[e][t].next()}setTimeout((()=>{requestAnimationFrame(this.launch)}),CELL_SPEED)}serializeState(){return this.#e.map((e=>e.map((e=>e.alive?'1':'0')).join(''))).join('|')}firstGeneration(){this.board.drawBackground();for(let e=0;e<this.board.size.cellNumberX;e++){this.#e[e]=[];for(let t=0;t<this.board.size.cellNumberY;t++)this.#e[e][t]=new Cell(this.board.context,e,t,this.board.size.cellSize),this.#e[e][t].alive=0,this.#e[e][t].draw()}}setCellNeighborsByCoords(e,t){let s=0;const i=[[e,t+1],[e,t-1],[e+1,t],[e-1,t],[e+1,t+1],[e-1,t-1],[e+1,t-1],[e-1,t+1]];for(const e of i){let[t,i]=e;t<0&&(t=this.board.size.cellNumberX-1),t>=this.board.size.cellNumberX&&(t=0),i<0&&(i=this.board.size.cellNumberY-1),i>=this.board.size.cellNumberY&&(i=0),this.#e[t]?.[i]?.alive&&s++}this.#e[e][t].neighbors=s}drawFromFlatArray(e){for(let t=0;t<4096;t++){let s=Math.floor(t/64)+CELL_PADDING,i=t%64+CELL_PADDING;1===e[t]&&(this.#e[i][s].alive=!0),this.#e[i][s].draw()}}stop(){loopCounter=0,CELL_SPEED=100,this.#s=!0;for(let e=0;e<this.board.size.cellNumberX;e++)for(let t=0;t<this.board.size.cellNumberY;t++)this.#e[e][t].alive=0;game.drawFromFlatArray(flatArray)}initBrowserEvents(){addEventListener('keypress',(({code:e})=>{switch(e){case'Space':case'KeyP':this.#s=!this.#s;break;case'KeyN':this.stop();break;case'KeyW':CELL_SPEED>20&&(CELL_SPEED-=20);break;case'KeyS':CELL_SPEED<1e3&&(CELL_SPEED+=20);break;case'KeyE':window.location.href=canvas.toDataURL('image/png').replace('image/png','image/octet-stream')}})),this.canvas.addEventListener('click',(()=>{this.#s=!this.#s}))}}class Board{#i=BOARD_WIDTH+2*BOARD_PADDING;#l=BOARD_HEIGHT+2*BOARD_PADDING;#a=DEFAULT_CELL_SIZE;#r='#000';constructor(e){this.canvas=e,this.ctx=this.canvas.getContext('2d'),this.canvas.width=this.#i,this.canvas.height=this.#l}drawBackground(){this.ctx.fillStyle=this.#r,this.ctx.fillRect(0,0,this.#i,this.#l)}get size(){return{cellNumberX:Math.ceil(this.#i/this.#a),cellNumberY:Math.ceil(this.#l/this.#a),cellSize:this.#a}}get context(){return this.ctx}}class Cell{#h=!0;#o=0;#c='#fff';constructor(e,t,s,i){this.ctx=e,this.x=t,this.y=s,this.cellSize=i}next(){this.#h||3!==this.#o?this.#h=this.#h&&(2===this.#o||3===this.#o):this.#h=!0,this.draw()}draw(){this.#h&&(this.ctx.fillStyle=this.#c,this.ctx.fillRect(...this.position))}get position(){return[this.x*this.cellSize,this.y*this.cellSize,this.cellSize,this.cellSize]}set alive(e){this.#h=e}get alive(){return this.#h}set neighbors(e){this.#o=e}}const canvas=document.getElementById('g'),SIZE_FACTOR=4,BOARD_WIDTH=2048,BOARD_HEIGHT=2048,BOARD_PADDING=384;let loopCounter=0;const DEFAULT_CELL_SIZE=32,CELL_PADDING=12;let CELL_SPEED=100;const game=new Game(canvas);game.launch();const pattern=/<p>.<\\/p>/g,matches=flatString.match(pattern),flatArray=matches.map((e=>e.includes('#')?1:0));game.drawFromFlatArray(flatArray);"; event Infinity(uint tokenId); bool mintEnabled; struct DegenerativeGame { uint256 num; uint256 birthBlock; bool infinity; uint256 infinityBlock; } mapping(uint256 => DegenerativeGame) public degengames; error MintClosed(); error MintedOut(); error NoContracts(); error NonceAlreadyUsed(); error InvalidSignature(); error InfinityIsInfinite(); error WrongPrice(); constructor() ERC721A("DegenerativeGames", "DGNRTVGMS") Ownable(msg.sender) { } function mint() external payable { if (msg.sender != tx.origin) revert NoContracts(); if (mintEnabled == false) revert MintClosed(); if (totalSupply() + 1 > MAX_SUPPLY ) revert MintedOut(); if (msg.value != price) revert WrongPrice(); uint256 tokenId = uint256(totalSupply() + 1); degengames[tokenId] = DegenerativeGame({ num: tokenId, birthBlock: block.number, infinity: false, infinityBlock: 0 }); _mint(msg.sender, 1); } function promoMint(address _to, uint _count) external onlyOwner { if (totalSupply() + _count > MAX_SUPPLY) revert MintedOut(); for (uint256 i = 1; i <= _count; i++) { uint256 tokenId = uint256(totalSupply() + 1); degengames[tokenId] = DegenerativeGame({ num: tokenId, birthBlock: block.number, infinity: false, infinityBlock: 0 }); _mint(_to, 1); } } /// @notice *PERMANENTLY* sets a token to Infinity mode /// @dev Shout out to those that dare call their functions or contracts Infinity /// @param tokenId The tokenId, from 1 to tokenCounter (max MAX_SUPPLY) function enterInfinity(uint tokenId) public { require(msg.sender == ownerOf(tokenId)); if ( degengames[tokenId].infinity == true) revert MintClosed(); degengames[tokenId].infinity = true; degengames[tokenId].infinityBlock = block.number; emit Infinity(tokenId); } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); return buildMetadata(_tokenId); } function buildMetadata(uint256 _tokenId) internal view returns (string memory) { DegenerativeGame memory currentDG = degengames[_tokenId]; bytes memory svg = getGlyphSVG(_tokenId); bytes memory combinedSVG = abi.encodePacked( '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 1760 1760" style="background: black;">', '<style>', '@font-face{ font-family: "markaglyph"; font-display: block; src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAKMAA4AAAAABkQAAAI2AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGhwGYACCSggEEQgKcH4LDAABNgIkAxIEIAWELgcsG1EFIJ6FsfMijAaFKizPWf3nRTxP7cfv3N193zwaYulbRjyZRCKNiCeqWCpWkk3/CdVIY+ZZNd1+mgSEvEEl/fNBRVEdCJNCacVhVDUSyeA85D8WTqrVjv/fTe6iCD7nugfdy7LegTQWxRJwAZXAmMBFkrBn3qClCB+faS4SJaleCLzfeH0R+LT55idOfiuPAcbMUVAQBK3+yCMd5U754h7tOB+sRaLohgEEAE5dqvVxtZVbqU9Uz7ghANiEoaJiHgOHyYJ5il1gQBPFVm4P+sGi/9BvCEAGCCAFBQAQUAFo4ow2lwtITwEdGEHFGCYBDcskEFpro914uzDajQxOD+Q2v4Zf3+nFL5bP/H/8AM+Dld3vQcXf9ecD6hvNVInjoIo6jo+1/Hd0nswQ+heutrK7/w2N1h/DDqPnk/UMGALGq2eUJ7IRFNgB9BbszVbMGgg6MUctiGA/F8CEJwJYUsRAjLiKgWLQYwHVDj8BzUi2YaAzmZMYGDCSK2Rpw9gLVYg5bSgm3IbqmCc0c8lAZzHeNwyYS0vFytrF1sTI2B7R9RiIwAkFNtLQsTVDSkjdyskAPvsZ9IynsQg7hdUDdGx1GgCXm3Z3jMxdrI1hLhnaGc0v6zFwxsDIwVzHFm44KwJHrSzti2/eGhkggosjIZItMZuCzxFw+mDgqCaX3diOBrTucgoJA18nwncCB31bwNQFsrUzAVhAOM4HJiQ21mDxKvddbtrKHKMAfdZBAAB0TEfhgGkAAA==) format("woff2")}' ' .r{ width: 1280px; height: 1300px; font-size: 26px; display: grid; box-sizing: border-box; grid-template-columns: repeat(64, 20px); grid-template-rows: repeat(64, 20px); grid-gap: 0px; justify-content: space-evenly; }', ' p{ font-family: "markaglyph", monospace; text-align: center; display: flex; justify-content: center; align-items: center; color: white;}', '</style>', '<foreignObject x="0" y="0" width="1280" height="1300" style="transform: translate(240px, 240px);">', '<div xmlns="http://www.w3.org/1999/xhtml" class="meta">', '<div class="r">', svg, '</div>', '</div>', '</foreignObject>', "</svg>" ); bytes memory combinedHTML = abi.encodePacked( '<!DOCTYPE html>', '<html>', '<head>', '</head>', '<body>', "<style>html,body{height: 100%; margin: 0; padding: 0;display: flex;justify-content: center; align-items: center; background: #000;overflow: none;} #g{max-width: 100%;}</style>", "<canvas id='g'></canvas>", '<script>', 'const flatString = \' ', svg, ' \' ; ', _THANKYOUCONWAY, '</script>', '</body>', '</html>' ); bytes memory name = abi.encodePacked( "DegenerativeGame #", toString(currentDG.num) ); bytes memory metadata = abi.encodePacked( '{', '"name":"', name,'",', '"image": ', '"data:image/svg+xml;base64,', Base64.encode(combinedSVG), '",', '"animation_url": ', '"data:text/html;base64,', Base64.encode(combinedHTML), '",', '"attributes": [', attributes(currentDG), ']', '}' ); return string( abi.encodePacked( "data:application/json;base64,", Base64.encode(metadata) ) ); } function getGlyphSVG( uint _tokenId ) public view returns (bytes memory svg) { DegenerativeGame memory currentDG = degengames[_tokenId]; bytes memory glyphData = bytes(glyphs.tokenURI(_tokenId)); uint256 len = glyphData.length; bytes[] memory fragments = new bytes[](len); uint cells; if(currentDG.infinity) { cells = calculateCurrentCells(currentDG.infinityBlock); } else { cells = calculateCurrentCells(currentDG.birthBlock); } for (uint256 i = Cells_To_Ignore; i < cells; ) { bytes1 inst = glyphData[i]; if (inst == 0x25) { unchecked { i += 2; } } else if (inst == 0x2E) { fragments[i] = abi.encodePacked('<p>', '#' , '</p>' ); } else { fragments[i] = abi.encodePacked('<p>', '.' , '</p>' ); } unchecked { i++; } } svg = abi.encodePacked(svg, Array.join(fragments)); } function calculateCurrentCells(uint256 birthDate) public view returns (uint256) { uint256 currentBlock = block.number; if (currentBlock <= birthDate) { return Initial_Cells; } uint256 blocksPassed = currentBlock - birthDate; if (blocksPassed >= Total_Lifetime_Blocks) { return 0; } uint256 reductionCount = blocksPassed * Reduced_Cells / Total_Lifetime_Blocks; uint256 currentCells = Initial_Cells - reductionCount; return currentCells; } function attributes(DegenerativeGame memory currentDG) internal pure returns (bytes memory) { return abi.encodePacked( (currentDG.infinity == false) ? trait('Mode', 'Degenerative', ',') : trait('Mode', 'Infinity', ','), (currentDG.infinity == true ) ? trait('Infinity Block', toString(currentDG.infinityBlock) , ',') : '', trait('Birth Block', toString(currentDG.birthBlock) , '') ); } function trait(string memory traitType, string memory traitValue, string memory append) internal pure returns (string memory) { return string(abi.encodePacked( '{', '"trait_type": "', traitType, '",' '"value": "', traitValue, '"' '}', append )); } function toString(uint value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint temp = value; uint 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); } function _startTokenId() internal view virtual override returns (uint) { return 1; } function setMintOpen(bool _val) external onlyOwner { mintEnabled = _val; } function withdraw() external onlyOwner { (bool sent, ) = payable(owner()).call{value: address(this).balance}(""); require(sent, "Withdraw failed"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides a function for encoding some bytes in base64 library Base64 { string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE; // 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) {} { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, 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; } }
// SPDX-License-Identifier: MIT /* * @title Arrays Utils * @author Clement Walter <[email protected]> * * @notice An attempt at implementing some of the widely used javascript's Array functions in solidity. */ pragma solidity ^0.8.21; error EmptyArray(); error GlueOutOfBounds(uint256 length); library Array { function join(string[] memory a, string memory glue) internal pure returns (string memory) { uint256 inputPointer; uint256 gluePointer; assembly { inputPointer := a gluePointer := glue } return string(_joinReferenceType(inputPointer, gluePointer)); } function join(string[] memory a) internal pure returns (string memory) { return join(a, ""); } function join(bytes[] memory a, bytes memory glue) internal pure returns (bytes memory) { uint256 inputPointer; uint256 gluePointer; assembly { inputPointer := a gluePointer := glue } return _joinReferenceType(inputPointer, gluePointer); } function join(bytes[] memory a) internal pure returns (bytes memory) { return join(a, bytes("")); } function join(bytes2[] memory a) internal pure returns (bytes memory) { uint256 pointer; assembly { pointer := a } return _joinValueType(pointer, 2, 0); } /// @dev Join the underlying array of bytes2 to a string. function join(uint16[] memory a) internal pure returns (bytes memory) { uint256 pointer; assembly { pointer := a } return _joinValueType(pointer, 2, 256 - 16); } function join(bytes3[] memory a) internal pure returns (bytes memory) { uint256 pointer; assembly { pointer := a } return _joinValueType(pointer, 3, 0); } function join(bytes4[] memory a) internal pure returns (bytes memory) { uint256 pointer; assembly { pointer := a } return _joinValueType(pointer, 4, 0); } function join(bytes8[] memory a) internal pure returns (bytes memory) { uint256 pointer; assembly { pointer := a } return _joinValueType(pointer, 8, 0); } function join(bytes16[] memory a) internal pure returns (bytes memory) { uint256 pointer; assembly { pointer := a } return _joinValueType(pointer, 16, 0); } function join(bytes32[] memory a) internal pure returns (bytes memory) { uint256 pointer; assembly { pointer := a } return _joinValueType(pointer, 32, 0); } function _joinValueType( uint256 a, uint256 typeLength, uint256 shiftLeft ) private pure returns (bytes memory) { bytes memory tempBytes; assembly { let inputLength := mload(a) let inputData := add(a, 0x20) let end := add(inputData, mul(inputLength, 0x20)) // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // Initialize the length of the final bytes: length is typeLength x inputLength (array of bytes4) mstore(tempBytes, mul(inputLength, typeLength)) let memoryPointer := add(tempBytes, 0x20) // Iterate over all bytes4 for { let pointer := inputData } lt(pointer, end) { pointer := add(pointer, 0x20) } { let currentSlot := shl(shiftLeft, mload(pointer)) mstore(memoryPointer, currentSlot) memoryPointer := add(memoryPointer, typeLength) } mstore(0x40, and(add(memoryPointer, 31), not(31))) } return tempBytes; } function _joinReferenceType(uint256 inputPointer, uint256 gluePointer) internal pure returns (bytes memory tempBytes) { assembly { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // Skip the first 32 bytes where we will store the length of the result let memoryPointer := add(tempBytes, 0x20) // Load glue let glueLength := mload(gluePointer) if gt(glueLength, 0x20) { revert(gluePointer, 0x20) } let glue := mload(add(gluePointer, 0x20)) // Load the length (first 32 bytes) let inputLength := mload(inputPointer) let inputData := add(inputPointer, 0x20) let end := add(inputData, mul(inputLength, 0x20)) // Initialize the length of the final string let stringLength := 0 // Iterate over all strings (a string is itself an array). for { let pointer := inputData } lt(pointer, end) { pointer := add(pointer, 0x20) } { let currentStringArray := mload(pointer) let currentStringLength := mload(currentStringArray) stringLength := add(stringLength, currentStringLength) let currentStringBytesCount := add( div(currentStringLength, 0x20), gt(mod(currentStringLength, 0x20), 0) ) let currentPointer := add(currentStringArray, 0x20) for { let copiedBytesCount := 0 } lt(copiedBytesCount, currentStringBytesCount) { copiedBytesCount := add(copiedBytesCount, 1) } { mstore( add(memoryPointer, mul(copiedBytesCount, 0x20)), mload(currentPointer) ) currentPointer := add(currentPointer, 0x20) } memoryPointer := add(memoryPointer, currentStringLength) mstore(memoryPointer, glue) memoryPointer := add(memoryPointer, glueLength) } mstore( tempBytes, add(stringLength, mul(sub(inputLength, 1), glueLength)) ) mstore(0x40, and(add(memoryPointer, 31), not(31))) } return tempBytes; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; library Utils { uint256 internal constant MULTIPLIER = 100; uint256 internal constant GOLDEN_RATIO = 161803; /** * Compute the largest integer smaller than or equal to the square root of `n` */ // function floorSqrt(uint256 n) internal pure returns (uint256) { unchecked { // if (n > 0) { // uint256 x = n / 2 + 1; // uint256 y = (x + n / x) / 2; // while (x > y) { // x = y; // y = (x + n / x) / 2; // } // return x; // } // return 0; // }} /** * Compute the smallest integer larger than or equal to the square root of `n` */ // function ceilSqrt(uint256 n) internal pure returns (uint256) { unchecked { // uint256 x = floorSqrt(n); // return x ** 2 == n ? x : x + 1; // }} // function lerp(int256 targetFrom, int256 targetTo, int256 currentFrom, int256 currentTo, int current) internal pure returns (int256) { unchecked { // int256 t = 0; // int256 divisor = currentTo - currentFrom - 1; // if (divisor > 0) { // t = (current - currentFrom) * int256(MULTIPLIER) / (divisor); // } // return targetFrom * int256(MULTIPLIER) + t * (targetTo - targetFrom); // }} function toByteArray(bytes32 _bytes32) internal pure returns (bytes memory result) { uint8 i = 0; while(i < 32 && _bytes32[i] != 0) { i++; } bytes memory bytesArray = new bytes(i); for (i = 0; i < 32 && _bytes32[i] != 0; i++) { bytesArray[i] = _bytes32[i]; } return bytesArray; } function toString(bytes32 _bytes32) internal pure returns (string memory result) { return string(toByteArray(_bytes32)); } // todo: check this function toStringBytes3(bytes3 _bytes) public pure returns (string memory) { bytes memory hexChars = "0123456789abcdef"; bytes memory hexString = new bytes(6); // Since bytes3 contains 3 bytes, resulting in 6 hex characters for (uint i = 0; i < 3; i++) { hexString[i * 2] = hexChars[uint8(_bytes[i] >> 4)]; hexString[1 + i * 2] = hexChars[uint8(_bytes[i] & 0x0f)]; } return string(hexString); } /* Gas Efficient uint/int to string functions Copied from: https://github.com/Vectorized/solady/blob/main/src/utils/LibString.sol */ /// @dev Returns the base 10 decimal representation of `value`. function toString(uint256 value) internal pure returns (string memory str) { /// @solidity memory-safe-assembly assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, add(str, 0x20)) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str let w := not(0) // Tsk. // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. for { let temp := value } 1 {} { str := add(str, w) // `sub(str, 1)`. // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /// @dev Returns the base 10 decimal representation of `value`. function toString(int256 value) internal pure returns (string memory str) { if (value >= 0) { return toString(uint256(value)); } unchecked { str = toString(uint256(-value)); } /// @solidity memory-safe-assembly assembly { // We still have some spare memory space on the left, // as we have allocated 3 words (96 bytes) for up to 78 digits. let length := mload(str) // Load the string length. mstore(str, 0x2d) // Store the '-' character. str := sub(str, 1) // Move back the string pointer by a byte. mstore(str, add(length, 1)) // Update the string length. } } /// @dev Encodes `data` using the base64 encoding described in RFC 4648. /// See: https://datatracker.ietf.org/doc/html/rfc4648 /// @param fileSafe Whether to replace '+' with '-' and '/' with '_'. /// @param noPadding Whether to strip away the padding. function encode(bytes memory data, bool fileSafe, bool noPadding) internal pure returns (string memory result) { /// @solidity memory-safe-assembly assembly { let dataLength := mload(data) if dataLength { // Multiply by 4/3 rounded up. // The `shl(2, ...)` is equivalent to multiplying by 4. let encodedLength := shl(2, div(add(dataLength, 2), 3)) // Set `result` to point to the start of the free memory. result := mload(0x40) // Store the table into the scratch space. // Offsetted by -1 byte so that the `mload` will load the character. // We will rewrite the free memory pointer at `0x40` later with // the allocated size. // The magic constant 0x0670 will turn "-_" into "+/". mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef") mstore(0x3f, xor("ghijklmnopqrstuvwxyz0123456789-_", mul(iszero(fileSafe), 0x0670))) // Skip the first slot, which stores the length. let ptr := add(result, 0x20) let end := add(ptr, encodedLength) // Run over the input, 3 bytes at a time. for {} 1 {} { data := add(data, 3) // Advance 3 bytes. let input := mload(data) // Write 4 bytes. Optimized for fewer stack operations. mstore8(0, mload(and(shr(18, input), 0x3F))) mstore8(1, mload(and(shr(12, input), 0x3F))) mstore8(2, mload(and(shr(6, input), 0x3F))) mstore8(3, mload(and(input, 0x3F))) mstore(ptr, mload(0x00)) ptr := add(ptr, 4) // Advance 4 bytes. if iszero(lt(ptr, end)) { break } } mstore(0x40, add(end, 0x20)) // Allocate the memory. // Equivalent to `o = [0, 2, 1][dataLength % 3]`. let o := div(2, mod(dataLength, 3)) // Offset `ptr` and pad with '='. We can simply write over the end. mstore(sub(ptr, o), shl(240, 0x3d3d)) // Set `o` to zero if there is padding. o := mul(iszero(iszero(noPadding)), o) mstore(sub(ptr, o), 0) // Zeroize the slot after the string. mstore(result, sub(encodedLength, o)) // Store the length. } } } /// @dev Encodes `data` using the base64 encoding described in RFC 4648. /// Equivalent to `encode(data, false, false)`. function encode(bytes memory data) internal pure returns (string memory result) { result = encode(data, false, false); } /// @dev Encodes `data` using the base64 encoding described in RFC 4648. /// Equivalent to `encode(data, fileSafe, false)`. function encode(bytes memory data, bool fileSafe) internal pure returns (string memory result) { result = encode(data, fileSafe, false); } // /// @dev Returns a concatenated string of `a` and `b`. // /// Cheaper than `string.concat()` and does not de-align the free memory pointer. // function concat(string memory a, string memory b) // internal // pure // returns (string memory result) // { // /// @solidity memory-safe-assembly // assembly { // let w := not(0x1f) // result := mload(0x40) // let aLength := mload(a) // // Copy `a` one word at a time, backwards. // for { let o := and(add(aLength, 0x20), w) } 1 {} { // mstore(add(result, o), mload(add(a, o))) // o := add(o, w) // `sub(o, 0x20)`. // if iszero(o) { break } // } // let bLength := mload(b) // let output := add(result, aLength) // // Copy `b` one word at a time, backwards. // for { let o := and(add(bLength, 0x20), w) } 1 {} { // mstore(add(output, o), mload(add(b, o))) // o := add(o, w) // `sub(o, 0x20)`. // if iszero(o) { break } // } // let totalLength := add(aLength, bLength) // let last := add(add(result, 0x20), totalLength) // // Zeroize the slot after the string. // mstore(last, 0) // // Stores the length. // mstore(result, totalLength) // // Allocate memory for the length and the bytes, // // rounded up to a multiple of 32. // mstore(0x40, and(add(last, 0x1f), w)) // } // } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; interface IAutoglyphs { function symbolScheme(uint256 index) external view returns (uint8); function tokenURI(uint256 index) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 // ERC721A Contracts v4.3.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()`. * * The `_sequentialUpTo()` function can be overriden to enable spot mints * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`. * * 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 { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). 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; // The amount of tokens minted above `_sequentialUpTo()`. // We call these spot mints (i.e. non-sequential mints). uint256 private _spotMinted; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID for sequential mints. * * Override this function to change the starting token ID for sequential mints. * * Note: The value returned must never change after any tokens have been minted. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the maximum token ID (inclusive) for sequential mints. * * Override this function to return a value less than 2**256 - 1, * but greater than `_startTokenId()`, to enable spot (non-sequential) mints. * * Note: The value returned must never change after any tokens have been minted. */ function _sequentialUpTo() internal view virtual returns (uint256) { return type(uint256).max; } /** * @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 result) { // Counter underflow is impossible as `_burnCounter` cannot be incremented // more than `_currentIndex + _spotMinted - _startTokenId()` times. unchecked { // With spot minting, the intermediate `result` can be temporarily negative, // and the computation must be unchecked. result = _currentIndex - _burnCounter - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256 result) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { result = _currentIndex - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } /** * @dev Returns the total number of tokens that are spot-minted. */ function _totalSpotMinted() internal view virtual returns (uint256) { return _spotMinted; } // ============================================================= // 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.selector); 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.selector); 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 Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @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); } } /** * @dev Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; if (tokenId > _sequentialUpTo()) { if (_packedOwnershipExists(packed)) return packed; _revert(OwnerQueryForNonexistentToken.selector); } // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // 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, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @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. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @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.selector); 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 { _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 result) { if (_startTokenId() <= tokenId) { if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]); if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `packed` represents a token that exists. */ function _packedOwnershipExists(uint256 packed) private pure returns (bool result) { assembly { // The following is equivalent to `owner != address(0) && burned == false`. // Symbolically tested. result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_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].value`. 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 payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (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.selector); _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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // 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. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable 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 payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } /** * @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.selector); } 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.selector); _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: // - `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) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); do { assembly { // 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`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _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.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _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) ); if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); 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.selector); } } while (index < end); // This prevents reentrancy to `_safeMint`. // It does not prevent reentrancy to `_safeMintSpot`. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } /** * @dev Mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * Emits a {Transfer} event for each mint. */ function _mintSpot(address to, uint256 tokenId) internal virtual { if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector); uint256 prevOwnershipPacked = _packedOwnerships[tokenId]; if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector); _beforeTokenTransfers(address(0), to, tokenId, 1); // Overflows are incredibly unrealistic. // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1. // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `true` (as `quantity == 1`). _packedOwnerships[tokenId] = _packOwnershipData( to, _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked) ); // Updates: // - `balance += 1`. // - `numberMinted += 1`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1; // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); assembly { // 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`. tokenId // `tokenId`. ) } ++_spotMinted; } _afterTokenTransfers(address(0), to, tokenId, 1); } /** * @dev Safely mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * See {_mintSpot}. * * Emits a {Transfer} event. */ function _safeMintSpot( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mintSpot(to, tokenId); unchecked { if (to.code.length != 0) { uint256 currentSpotMinted = _spotMinted; if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } // This prevents reentrancy to `_safeMintSpot`. // It does not prevent reentrancy to `_safeMint`. if (_spotMinted != currentSpotMinted) revert(); } } } /** * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`. */ function _safeMintSpot(address to, uint256 tokenId) internal virtual { _safeMintSpot(to, tokenId, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // 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.selector); } _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 + _spotMinted` 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.selector); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.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(); /** * 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(); /** * `_sequentialUpTo()` must be greater than `_startTokenId()`. */ error SequentialUpToTooSmall(); /** * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`. */ error SequentialMintExceedsLimit(); /** * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`. */ error SpotMintTokenIdTooSmall(); /** * Cannot mint over a token that already exists. */ error TokenAlreadyExists(); /** * The feature is not compatible with spot mints. */ error NotCompatibleWithSpotMints(); // ============================================================= // 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 payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @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 payable; /** * @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 payable; /** * @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 // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InfinityIsInfinite","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"MintClosed","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedOut","type":"error"},{"inputs":[],"name":"NoContracts","type":"error"},{"inputs":[],"name":"NonceAlreadyUsed","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","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":"WrongPrice","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":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Infinity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Total_Lifetime_Blocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","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":"birthDate","type":"uint256"}],"name":"calculateCurrentCells","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"degengames","outputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"uint256","name":"birthBlock","type":"uint256"},{"internalType":"bool","name":"infinity","type":"bool"},{"internalType":"uint256","name":"infinityBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"enterInfinity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getGlyphSVG","outputs":[{"internalType":"bytes","name":"svg","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"glyphs","outputs":[{"internalType":"contract IAutoglyphs","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"promoMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setMintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405273d4e4078ca3495de5b1d4db434bebc5a986197782600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550670126e00f6c5b8000600b5534801561006f575f80fd5b50336040518060400160405280601181526020017f446567656e6572617469766547616d65730000000000000000000000000000008152506040518060400160405280600981526020017f44474e525456474d53000000000000000000000000000000000000000000000081525081600290816100ec9190610504565b5080600390816100fc9190610504565b5061010b6101d060201b60201c565b5f8190555061011e6101d060201b60201c565b61012c6101d860201b60201c565b10156101495761014863fed8210f60e01b6101ff60201b60201c565b5b50505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101bb575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016101b29190610612565b60405180910390fd5b6101ca8161020760201b60201c565b5061062b565b5f6001905090565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b805f5260045ffd5b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061034557607f821691505b60208210810361035857610357610301565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026103ba7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261037f565b6103c4868361037f565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6104086104036103fe846103dc565b6103e5565b6103dc565b9050919050565b5f819050919050565b610421836103ee565b61043561042d8261040f565b84845461038b565b825550505050565b5f90565b61044961043d565b610454818484610418565b505050565b5b818110156104775761046c5f82610441565b60018101905061045a565b5050565b601f8211156104bc5761048d8161035e565b61049684610370565b810160208510156104a5578190505b6104b96104b185610370565b830182610459565b50505b505050565b5f82821c905092915050565b5f6104dc5f19846008026104c1565b1980831691505092915050565b5f6104f483836104cd565b9150826002028217905092915050565b61050d826102ca565b67ffffffffffffffff811115610526576105256102d4565b5b610530825461032e565b61053b82828561047b565b5f60209050601f83116001811461056c575f841561055a578287015190505b61056485826104e9565b8655506105cb565b601f19841661057a8661035e565b5f5b828110156105a15784890151825560018201915060208501945060208101905061057c565b868310156105be57848901516105ba601f8916826104cd565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6105fc826105d3565b9050919050565b61060c816105f2565b82525050565b5f6020820190506106255f830184610603565b92915050565b615ae0806106385f395ff3fe6080604052600436106101c1575f3560e01c8063715018a6116100f6578063c87b56dd11610094578063e985e9c511610063578063e985e9c5146105da578063f0c293dc14610616578063f2fde38b14610652578063f8004d311461067a576101c1565b8063c87b56dd146104f9578063ce00ea1214610535578063d5d69a4b1461055f578063d7fb44471461059e576101c1565b8063a035b1fe116100d0578063a035b1fe14610463578063a22cb4651461048d578063a2a3eb4d146104b5578063b88d4fde146104dd576101c1565b8063715018a6146103f95780638da5cb5b1461040f57806395d89b4114610439576101c1565b806332cb6b0c116101635780636352211e1161013d5780636352211e1461032f578063659bec321461036b5780636c49876e1461039557806370a08231146103bd576101c1565b806332cb6b0c146102d35780633ccfd60b146102fd57806342842e0e14610313576101c1565b8063095ea7b31161019f578063095ea7b3146102675780631249c58b1461028357806318160ddd1461028d57806323b872dd146102b7576101c1565b806301ffc9a7146101c557806306fdde0314610201578063081812fc1461022b575b5f80fd5b3480156101d0575f80fd5b506101eb60048036038101906101e69190612899565b6106a2565b6040516101f891906128de565b60405180910390f35b34801561020c575f80fd5b50610215610733565b6040516102229190612967565b60405180910390f35b348015610236575f80fd5b50610251600480360381019061024c91906129ba565b6107c3565b60405161025e9190612a24565b60405180910390f35b610281600480360381019061027c9190612a67565b61081c565b005b61028b61082c565b005b348015610298575f80fd5b506102a16109fd565b6040516102ae9190612ab4565b60405180910390f35b6102d160048036038101906102cc9190612acd565b610a48565b005b3480156102de575f80fd5b506102e7610cf3565b6040516102f49190612ab4565b60405180910390f35b348015610308575f80fd5b50610311610cf9565b005b61032d60048036038101906103289190612acd565b610db3565b005b34801561033a575f80fd5b50610355600480360381019061035091906129ba565b610dd2565b6040516103629190612a24565b60405180910390f35b348015610376575f80fd5b5061037f610de3565b60405161038c9190612b78565b60405180910390f35b3480156103a0575f80fd5b506103bb60048036038101906103b691906129ba565b610e08565b005b3480156103c8575f80fd5b506103e360048036038101906103de9190612b91565b610f24565b6040516103f09190612ab4565b60405180910390f35b348015610404575f80fd5b5061040d610fb8565b005b34801561041a575f80fd5b50610423610fcb565b6040516104309190612a24565b60405180910390f35b348015610444575f80fd5b5061044d610ff3565b60405161045a9190612967565b60405180910390f35b34801561046e575f80fd5b50610477611083565b6040516104849190612ab4565b60405180910390f35b348015610498575f80fd5b506104b360048036038101906104ae9190612be6565b611089565b005b3480156104c0575f80fd5b506104db60048036038101906104d69190612a67565b61118f565b005b6104f760048036038101906104f29190612d50565b61129f565b005b348015610504575f80fd5b5061051f600480360381019061051a91906129ba565b6112f0565b60405161052c9190612967565b60405180910390f35b348015610540575f80fd5b5061054961134a565b6040516105569190612ab4565b60405180910390f35b34801561056a575f80fd5b50610585600480360381019061058091906129ba565b611352565b6040516105959493929190612dd0565b60405180910390f35b3480156105a9575f80fd5b506105c460048036038101906105bf91906129ba565b61138a565b6040516105d19190612ab4565b60405180910390f35b3480156105e5575f80fd5b5061060060048036038101906105fb9190612e13565b61140f565b60405161060d91906128de565b60405180910390f35b348015610621575f80fd5b5061063c600480360381019061063791906129ba565b61149d565b6040516106499190612ea3565b60405180910390f35b34801561065d575f80fd5b5061067860048036038101906106739190612b91565b611771565b005b348015610685575f80fd5b506106a0600480360381019061069b9190612ec3565b6117f5565b005b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106fc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061072c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461074290612f1b565b80601f016020809104026020016040519081016040528092919081815260200182805461076e90612f1b565b80156107b95780601f10610790576101008083540402835291602001916107b9565b820191905f5260205f20905b81548152906001019060200180831161079c57829003601f168201915b5050505050905090565b5f6107cd82611819565b6107e2576107e163cf4700e460e01b6118bc565b5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610828828260016118c4565b5050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610891576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f1515600c5f9054906101000a900460ff161515036108dc576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61020060016108e96109fd565b6108f39190612f78565b111561092b576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b543414610966576040517ff7760f2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60016109716109fd565b61097b9190612f78565b905060405180608001604052808281526020014381526020015f151581526020015f815250600d5f8381526020019081526020015f205f820151815f0155602082015181600101556040820151816002015f6101000a81548160ff021916908315150217905550606082015181600301559050506109fa3360016119ee565b50565b5f610a06611b62565b6001545f54030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610a38611b6a565b14610a4557600854810190505b90565b5f610a5282611b91565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ac757610ac663a114810060e01b6118bc565b5b5f80610ad284611ca0565b91509150610ae88187610ae3611cc3565b611cca565b610b1357610afd86610af8611cc3565b61140f565b610b1257610b116359c896be60e01b6118bc565b5b5b610b208686866001611d0d565b8015610b2a575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550610bf285610bce888887611d13565b7c020000000000000000000000000000000000000000000000000000000017611d3a565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603610c6e575f6001850190505f60045f8381526020019081526020015f205403610c6c575f548114610c6b578360045f8381526020019081526020015f20819055505b5b505b5f73ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a45f8103610cdd57610cdc63ea553b3460e01b6118bc565b5b610cea8787876001611d64565b50505050505050565b61020081565b610d01611d6a565b5f610d0a610fcb565b73ffffffffffffffffffffffffffffffffffffffff1647604051610d2d90612fd8565b5f6040518083038185875af1925050503d805f8114610d67576040519150601f19603f3d011682016040523d82523d5f602084013e610d6c565b606091505b5050905080610db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da790613036565b60405180910390fd5b50565b610dcd83838360405180602001604052805f81525061129f565b505050565b5f610ddc82611b91565b9050919050565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e1181610dd2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e47575f80fd5b60011515600d5f8381526020019081526020015f206002015f9054906101000a900460ff16151503610ea5576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600d5f8381526020019081526020015f206002015f6101000a81548160ff02191690831515021790555043600d5f8381526020019081526020015f20600301819055507f56ec42389c2de8ea4b948435ba87e064cc2df4255125fe012ebff57f2c659e0a81604051610f199190612ab4565b60405180910390a150565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f6957610f68638f4eb60460e01b6118bc565b5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b610fc0611d6a565b610fc95f611df1565b565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461100290612f1b565b80601f016020809104026020016040519081016040528092919081815260200182805461102e90612f1b565b80156110795780601f1061105057610100808354040283529160200191611079565b820191905f5260205f20905b81548152906001019060200180831161105c57829003601f168201915b5050505050905090565b600b5481565b8060075f611095611cc3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661113e611cc3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161118391906128de565b60405180910390a35050565b611197611d6a565b610200816111a36109fd565b6111ad9190612f78565b11156111e5576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f600190505b81811161129a575f60016111fd6109fd565b6112079190612f78565b905060405180608001604052808281526020014381526020015f151581526020015f815250600d5f8381526020019081526020015f205f820151815f0155602082015181600101556040820151816002015f6101000a81548160ff021916908315150217905550606082015181600301559050506112868460016119ee565b50808061129290613054565b9150506111eb565b505050565b6112aa848484610a48565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146112ea576112d484848484611eb4565b6112e9576112e863d1a57ed660e01b6118bc565b5b5b50505050565b60606112fb82611819565b61133a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113319061310b565b60405180910390fd5b61134382611fde565b9050919050565b630ce455af81565b600d602052805f5260405f205f91509050805f015490806001015490806002015f9054906101000a900460ff16908060030154905084565b5f804390508281116113a1576110de91505061140a565b5f83826113ae9190613129565b9050630ce455af81106113c5575f9250505061140a565b5f630ce455af601e6110de6113da9190613129565b836113e5919061315c565b6113ef91906131ca565b90505f816110de6114009190613129565b9050809450505050505b919050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b60605f600d5f8481526020019081526020015f206040518060800160405290815f820154815260200160018201548152602001600282015f9054906101000a900460ff1615151515815260200160038201548152505090505f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd856040518263ffffffff1660e01b81526004016115509190612ab4565b5f60405180830381865afa15801561156a573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f820116820180604052508101906115929190613298565b90505f815190505f8167ffffffffffffffff8111156115b4576115b3612c2c565b5b6040519080825280602002602001820160405280156115e757816020015b60608152602001906001900390816115d25790505b5090505f84604001511561160957611602856060015161138a565b9050611619565b611616856020015161138a565b90505b5f601e90505b8181101561173a575f85828151811061163b5761163a6132df565b5b602001015160f81c60f81b9050602560f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916036116805760028201915061172c565b602e60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916036116ee576040516020016116bc906133f4565b6040516020818303038152906040528483815181106116de576116dd6132df565b5b602002602001018190525061172b565b6040516020016116fd90613468565b60405160208183030381529060405284838151811061171f5761171e6132df565b5b60200260200101819052505b5b81806001019250505061161f565b508561174583612149565b6040516020016117569291906134c2565b60405160208183030381529060405295505050505050919050565b611779611d6a565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117e9575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016117e09190612a24565b60405180910390fd5b6117f281611df1565b50565b6117fd611d6a565b80600c5f6101000a81548160ff02191690831515021790555050565b5f81611823611b62565b116118b657611830611b6a565b8211156118585761185160045f8481526020019081526020015f205461216a565b90506118b7565b5f548210156118b5575f5b5f60045f8581526020019081526020015f20549150810361188f5782611888906134e5565b9250611863565b5f7c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b805f5260045ffd5b5f6118ce83610dd2565b905081801561191057508073ffffffffffffffffffffffffffffffffffffffff166118f7611cc3565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561193c5761192681611921611cc3565b61140f565b61193b5761193a63cfb3b94260e01b6118bc565b5b5b8360065f8581526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b5f805490505f8203611a0b57611a0a63b562e8dd60e01b6118bc565b5b611a175f848385611d0d565b611a3583611a265f865f611d13565b611a2f856121aa565b17611d3a565b60045f8381526020019081526020015f2081905550600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505f73ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690505f8103611ae657611ae5632e07630060e01b6118bc565b5b5f83830190505f839050611af8611b6a565b600183031115611b1357611b126381647e3a60e01b6118bc565b5b5b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4818160010191508103611b1457815f81905550505050611b5d5f848385611d64565b505050565b5f6001905090565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b5f81611b9b611b62565b11611c8a5760045f8381526020019081526020015f20549050611bbc611b6a565b821115611be157611bcc8161216a565b611c9b57611be063df2d9b4260e01b6118bc565b5b5f8103611c62575f548210611c0157611c0063df2d9b4260e01b6118bc565b5b5b60045f836001900393508381526020019081526020015f205490505f810315611c5d575f7c010000000000000000000000000000000000000000000000000000000082160315611c9b57611c5c63df2d9b4260e01b6118bc565b5b611c02565b5f7c010000000000000000000000000000000000000000000000000000000082160315611c9b575b611c9a63df2d9b4260e01b6118bc565b5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8611d298686846121b9565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611d726121c1565b73ffffffffffffffffffffffffffffffffffffffff16611d90610fcb565b73ffffffffffffffffffffffffffffffffffffffff1614611def57611db36121c1565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611de69190612a24565b60405180910390fd5b565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611ed9611cc3565b8786866040518563ffffffff1660e01b8152600401611efb949392919061350c565b6020604051808303815f875af1925050508015611f3657506040513d601f19601f82011682018060405250810190611f33919061356a565b60015b611f8b573d805f8114611f64576040519150601f19603f3d011682016040523d82523d5f602084013e611f69565b606091505b505f815103611f8357611f8263d1a57ed660e01b6118bc565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60605f600d5f8481526020019081526020015f206040518060800160405290815f820154815260200160018201548152602001600282015f9054906101000a900460ff1615151515815260200160038201548152505090505f6120408461149d565b90505f81604051602001612054919061402a565b60405160208183030381529060405290505f8260405180610e600160405280610e2f8152602001614c7c610e2f9139604051602001612094929190614574565b60405160208183030381529060405290505f6120b2855f01516121c8565b6040516020016120c29190614670565b60405160208183030381529060405290505f816120de85612321565b6120e785612321565b6120f0896124a0565b6040516020016121039493929190614975565b604051602081830303815290604052905061211d81612321565b60405160200161212d9190614a80565b6040516020818303038152906040529650505050505050919050565b60606121638260405180602001604052805f815250612733565b9050919050565b5f7c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b5f6001821460e11b9050919050565b5f9392505050565b5f33905090565b60605f820361220e576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061231c565b5f8290505f5b5f821461223d57808061222690613054565b915050600a8261223691906131ca565b9150612214565b5f8167ffffffffffffffff81111561225857612257612c2c565b5b6040519080825280601f01601f19166020018201604052801561228a5781602001600182028036833780820191505090505b5090505b5f8514612315576001826122a29190613129565b9150600a856122b19190614aa1565b60306122bd9190612f78565b60f81b8183815181106122d3576122d26132df565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600a8561230e91906131ca565b945061228e565b8093505050505b919050565b60605f8251036123415760405180602001604052805f815250905061249b565b5f604051806060016040528060408152602001614c3c6040913990505f60036002855161236e9190612f78565b61237891906131ca565b6004612384919061315c565b90505f6020826123949190612f78565b67ffffffffffffffff8111156123ad576123ac612c2c565b5b6040519080825280601f01601f1916602001820160405280156123df5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b8183101561245a576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b8252600182019150506123f3565b60038951066001811461247457600281146124845761248f565b613d3d60f01b600283035261248f565b603d60f81b60018303525b50505050508093505050505b919050565b60605f151582604001511515146125605761255b6040518060400160405280600481526020017f4d6f6465000000000000000000000000000000000000000000000000000000008152506040518060400160405280600881526020017f496e66696e6974790000000000000000000000000000000000000000000000008152506040518060400160405280600181526020017f2c00000000000000000000000000000000000000000000000000000000000000815250612751565b61260b565b61260a6040518060400160405280600481526020017f4d6f6465000000000000000000000000000000000000000000000000000000008152506040518060400160405280600c81526020017f446567656e6572617469766500000000000000000000000000000000000000008152506040518060400160405280600181526020017f2c00000000000000000000000000000000000000000000000000000000000000815250612751565b5b60011515836040015115151461262f5760405180602001604052805f8152506126b1565b6126b06040518060400160405280600e81526020017f496e66696e69747920426c6f636b00000000000000000000000000000000000081525061267585606001516121c8565b6040518060400160405280600181526020017f2c00000000000000000000000000000000000000000000000000000000000000815250612751565b5b61270b6040518060400160405280600b81526020017f426972746820426c6f636b0000000000000000000000000000000000000000008152506126f786602001516121c8565b60405180602001604052805f815250612751565b60405160200161271d93929190614ad1565b6040516020818303038152906040529050919050565b60605f808491508390506127478282612780565b9250505092915050565b606083838360405160200161276893929190614bdf565b60405160208183030381529060405290509392505050565b60606040519050602081018251602081111561279b57602084fd5b60208401518551602087016020820281015f825b82811015612810578051805180840193505f60208206116020820401602083015f5b828110156127f3578151602082028e01526020820191506001810190506127d1565b50828c019b50898c528a8c019b50505050506020810190506127af565b5085600185030281018852601f19601f8801166040525050505050505092915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61287881612844565b8114612882575f80fd5b50565b5f813590506128938161286f565b92915050565b5f602082840312156128ae576128ad61283c565b5b5f6128bb84828501612885565b91505092915050565b5f8115159050919050565b6128d8816128c4565b82525050565b5f6020820190506128f15f8301846128cf565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612939826128f7565b6129438185612901565b9350612953818560208601612911565b61295c8161291f565b840191505092915050565b5f6020820190508181035f83015261297f818461292f565b905092915050565b5f819050919050565b61299981612987565b81146129a3575f80fd5b50565b5f813590506129b481612990565b92915050565b5f602082840312156129cf576129ce61283c565b5b5f6129dc848285016129a6565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612a0e826129e5565b9050919050565b612a1e81612a04565b82525050565b5f602082019050612a375f830184612a15565b92915050565b612a4681612a04565b8114612a50575f80fd5b50565b5f81359050612a6181612a3d565b92915050565b5f8060408385031215612a7d57612a7c61283c565b5b5f612a8a85828601612a53565b9250506020612a9b858286016129a6565b9150509250929050565b612aae81612987565b82525050565b5f602082019050612ac75f830184612aa5565b92915050565b5f805f60608486031215612ae457612ae361283c565b5b5f612af186828701612a53565b9350506020612b0286828701612a53565b9250506040612b13868287016129a6565b9150509250925092565b5f819050919050565b5f612b40612b3b612b36846129e5565b612b1d565b6129e5565b9050919050565b5f612b5182612b26565b9050919050565b5f612b6282612b47565b9050919050565b612b7281612b58565b82525050565b5f602082019050612b8b5f830184612b69565b92915050565b5f60208284031215612ba657612ba561283c565b5b5f612bb384828501612a53565b91505092915050565b612bc5816128c4565b8114612bcf575f80fd5b50565b5f81359050612be081612bbc565b92915050565b5f8060408385031215612bfc57612bfb61283c565b5b5f612c0985828601612a53565b9250506020612c1a85828601612bd2565b9150509250929050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612c628261291f565b810181811067ffffffffffffffff82111715612c8157612c80612c2c565b5b80604052505050565b5f612c93612833565b9050612c9f8282612c59565b919050565b5f67ffffffffffffffff821115612cbe57612cbd612c2c565b5b612cc78261291f565b9050602081019050919050565b828183375f83830152505050565b5f612cf4612cef84612ca4565b612c8a565b905082815260208101848484011115612d1057612d0f612c28565b5b612d1b848285612cd4565b509392505050565b5f82601f830112612d3757612d36612c24565b5b8135612d47848260208601612ce2565b91505092915050565b5f805f8060808587031215612d6857612d6761283c565b5b5f612d7587828801612a53565b9450506020612d8687828801612a53565b9350506040612d97878288016129a6565b925050606085013567ffffffffffffffff811115612db857612db7612840565b5b612dc487828801612d23565b91505092959194509250565b5f608082019050612de35f830187612aa5565b612df06020830186612aa5565b612dfd60408301856128cf565b612e0a6060830184612aa5565b95945050505050565b5f8060408385031215612e2957612e2861283c565b5b5f612e3685828601612a53565b9250506020612e4785828601612a53565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f612e7582612e51565b612e7f8185612e5b565b9350612e8f818560208601612911565b612e988161291f565b840191505092915050565b5f6020820190508181035f830152612ebb8184612e6b565b905092915050565b5f60208284031215612ed857612ed761283c565b5b5f612ee584828501612bd2565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612f3257607f821691505b602082108103612f4557612f44612eee565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612f8282612987565b9150612f8d83612987565b9250828201905080821115612fa557612fa4612f4b565b5b92915050565b5f81905092915050565b50565b5f612fc35f83612fab565b9150612fce82612fb5565b5f82019050919050565b5f612fe282612fb8565b9150819050919050565b7f5769746864726177206661696c656400000000000000000000000000000000005f82015250565b5f613020600f83612901565b915061302b82612fec565b602082019050919050565b5f6020820190508181035f83015261304d81613014565b9050919050565b5f61305e82612987565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036130905761308f612f4b565b5b600182019050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f5f8201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b5f6130f5602f83612901565b91506131008261309b565b604082019050919050565b5f6020820190508181035f830152613122816130e9565b9050919050565b5f61313382612987565b915061313e83612987565b925082820390508181111561315657613155612f4b565b5b92915050565b5f61316682612987565b915061317183612987565b925082820261317f81612987565b9150828204841483151761319657613195612f4b565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6131d482612987565b91506131df83612987565b9250826131ef576131ee61319d565b5b828204905092915050565b5f67ffffffffffffffff82111561321457613213612c2c565b5b61321d8261291f565b9050602081019050919050565b5f61323c613237846131fa565b612c8a565b90508281526020810184848401111561325857613257612c28565b5b613263848285612911565b509392505050565b5f82601f83011261327f5761327e612c24565b5b815161328f84826020860161322a565b91505092915050565b5f602082840312156132ad576132ac61283c565b5b5f82015167ffffffffffffffff8111156132ca576132c9612840565b5b6132d68482850161326b565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81905092915050565b7f3c703e00000000000000000000000000000000000000000000000000000000005f82015250565b5f61334a60038361330c565b915061335582613316565b600382019050919050565b7f23000000000000000000000000000000000000000000000000000000000000005f82015250565b5f61339460018361330c565b915061339f82613360565b600182019050919050565b7f3c2f703e000000000000000000000000000000000000000000000000000000005f82015250565b5f6133de60048361330c565b91506133e9826133aa565b600482019050919050565b5f6133fe8261333e565b915061340982613388565b9150613414826133d2565b9150819050919050565b7f2e000000000000000000000000000000000000000000000000000000000000005f82015250565b5f61345260018361330c565b915061345d8261341e565b600182019050919050565b5f6134728261333e565b915061347d82613446565b9150613488826133d2565b9150819050919050565b5f61349c82612e51565b6134a68185612fab565b93506134b6818560208601612911565b80840191505092915050565b5f6134cd8285613492565b91506134d98284613492565b91508190509392505050565b5f6134ef82612987565b91505f820361350157613500612f4b565b5b600182039050919050565b5f60808201905061351f5f830187612a15565b61352c6020830186612a15565b6135396040830185612aa5565b818103606083015261354b8184612e6b565b905095945050505050565b5f815190506135648161286f565b92915050565b5f6020828403121561357f5761357e61283c565b5b5f61358c84828501613556565b91505092915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32305f8201527f30302f73766722207072657365727665417370656374526174696f3d22784d6960208201527f6e594d696e206d656574222076696577426f783d22302030203137363020313760408201527f363022207374796c653d226261636b67726f756e643a20626c61636b3b223e00606082015250565b5f61363b607f8361330c565b915061364682613595565b607f82019050919050565b7f3c7374796c653e000000000000000000000000000000000000000000000000005f82015250565b5f61368560078361330c565b915061369082613651565b600782019050919050565b7f40666f6e742d666163657b20666f6e742d66616d696c793a20226d61726b61675f8201527f6c797068223b20666f6e742d646973706c61793a20626c6f636b3b207372633a60208201527f2075726c28646174613a6170706c69636174696f6e2f666f6e742d776f66663260408201527f3b636861727365743d7574662d383b6261736536342c643039474d674142414160608201527f414141414b4d4141344141414141426b5141414149324141454141414141414160808201527f4141414141414141414141414141414141414141414150305a4756453063476860a08201527f774759414343536767454551674b6348344c444141424e67496b41784945494160c08201527f57454c67637347314546494a364673664d696a4161464b697a505766336e525460e08201527f785037636676334e3139337a776159756c62526a795a52434b4e6943657157436101008201527f70576b6b332f43645649592b5a5a4e64312b6d6753457645456c2f664e4252566101208201527f4564434a4e4361635668564455537965413835443857547172566a762f6654656101408201527f36694344376e7567666479374c656754515778524a77415a58416d4d42466b726101608201527f426e3371436c43422b66615334534a616c65434c7a66654830522b4c543535696101808201527f644f666975504163624d55564151424b332b79434d6435553735346837744f426101a08201527f2b7352614c6f686745454145356471765678745a5662715539557a376768414e6101c08201527f69456f614a6948674f4879594a35696c316751425046566d34502b7347692f396101e08201527f42764345414743434146425141515541466f346f77326c7774495477456447456102008201527f4846474359424463736b454670726f393134757a44616a51784f442b513276346102208201527f5a66332b6e464c3562502f482f38414d2b446c643376516358663965634436686102408201527f764e56496e6a6f496f366a6f2b312f4864306e7377512b68657574724b372f776102608201527f324e31682f444471506e6b2f554d47414c47713265554a374952464e674239426102808201527f62737a56624d476767364d5563746947412f463843454a774a59557352416a4c6102a08201527f694b67574c5159774856446a38427a5569325961417a6d5a4d59474443534b326102c08201527f52707739674c565967356253676d334962716d43633063386c415a7a48654e776102e08201527f7959533076467974724631735449324237523952694977416b464e744c5173546103008201527f5644536b6a6479736b415076735a3949796e73516737686455446447783147676103208201527f43586d335a336a4d7864724931684c686e6147633076367a46777873444977566103408201527f7a48466d34344b774a4872537a7469322f6547686b67676f736a495a49744d5a6103608201527f75437a7846772b6d4467714361583364694f4272547563676f4a4131386e776e6103808201527f634342333162774e51467372557a415668414f4d34484a695132316d44784b766103a08201527f64646274724b484b4d4166645a42414142305445666867476b4141413d3d29206103c08201527f666f726d61742822776f66663222297d202e727b2077696474683a20313238306103e08201527f70783b206865696768743a203133303070783b20666f6e742d73697a653a20326104008201527f3670783b20646973706c61793a20677269643b20626f782d73697a696e673a206104208201527f626f726465722d626f783b20677269642d74656d706c6174652d636f6c756d6e6104408201527f733a207265706561742836342c2032307078293b20677269642d74656d706c616104608201527f74652d726f77733a207265706561742836342c2032307078293b20677269642d6104808201527f6761703a203070783b206a7573746966792d636f6e74656e743a2073706163656104a08201527f2d6576656e6c793b20207d0000000000000000000000000000000000000000006104c082015250565b5f613c936104cb8361330c565b9150613c9e8261369b565b6104cb82019050919050565b7f20707b20666f6e742d66616d696c793a20226d61726b61676c797068222c206d5f8201527f6f6e6f73706163653b20746578742d616c69676e3a2063656e7465723b20646960208201527f73706c61793a20666c65783b206a7573746966792d636f6e74656e743a20636560408201527f6e7465723b20616c69676e2d6974656d733a2063656e7465723b20636f6c6f7260608201527f3a2077686974653b7d0000000000000000000000000000000000000000000000608082015250565b5f613d7660898361330c565b9150613d8182613caa565b608982019050919050565b7f3c2f7374796c653e0000000000000000000000000000000000000000000000005f82015250565b5f613dc060088361330c565b9150613dcb82613d8c565b600882019050919050565b7f3c666f726569676e4f626a65637420783d22302220793d2230222077696474685f8201527f3d223132383022206865696768743d223133303022207374796c653d2274726160208201527f6e73666f726d3a207472616e736c6174652832343070782c203234307078293b60408201527f223e000000000000000000000000000000000000000000000000000000000000606082015250565b5f613e7c60628361330c565b9150613e8782613dd6565b606282019050919050565b7f3c64697620786d6c6e733d22687474703a2f2f7777772e77332e6f72672f31395f8201527f39392f7868746d6c2220636c6173733d226d657461223e000000000000000000602082015250565b5f613eec60378361330c565b9150613ef782613e92565b603782019050919050565b7f3c6469762020636c6173733d2272223e000000000000000000000000000000005f82015250565b5f613f3660108361330c565b9150613f4182613f02565b601082019050919050565b7f3c2f6469763e00000000000000000000000000000000000000000000000000005f82015250565b5f613f8060068361330c565b9150613f8b82613f4c565b600682019050919050565b7f3c2f666f726569676e4f626a6563743e000000000000000000000000000000005f82015250565b5f613fca60108361330c565b9150613fd582613f96565b601082019050919050565b7f3c2f7376673e00000000000000000000000000000000000000000000000000005f82015250565b5f61401460068361330c565b915061401f82613fe0565b600682019050919050565b5f6140348261362f565b915061403f82613679565b915061404a82613c86565b915061405582613d6a565b915061406082613db4565b915061406b82613e70565b915061407682613ee0565b915061408182613f2a565b915061408d8284613492565b915061409882613f74565b91506140a382613f74565b91506140ae82613fbe565b91506140b982614008565b915081905092915050565b7f3c21444f43545950452068746d6c3e00000000000000000000000000000000005f82015250565b5f6140f8600f8361330c565b9150614103826140c4565b600f82019050919050565b7f3c68746d6c3e00000000000000000000000000000000000000000000000000005f82015250565b5f61414260068361330c565b915061414d8261410e565b600682019050919050565b7f3c686561643e00000000000000000000000000000000000000000000000000005f82015250565b5f61418c60068361330c565b915061419782614158565b600682019050919050565b7f3c2f686561643e000000000000000000000000000000000000000000000000005f82015250565b5f6141d660078361330c565b91506141e1826141a2565b600782019050919050565b7f3c626f64793e00000000000000000000000000000000000000000000000000005f82015250565b5f61422060068361330c565b915061422b826141ec565b600682019050919050565b7f3c7374796c653e68746d6c2c626f64797b6865696768743a20313030253b206d5f8201527f617267696e3a20303b2070616464696e673a20303b646973706c61793a20666c60208201527f65783b6a7573746966792d636f6e74656e743a2063656e7465723b20616c696760408201527f6e2d6974656d733a2063656e7465723b206261636b67726f756e643a2023303060608201527f303b6f766572666c6f773a206e6f6e653b7d2023677b6d61782d77696474683a60808201527f20313030253b7d3c2f7374796c653e000000000000000000000000000000000060a082015250565b5f61432860af8361330c565b915061433382614236565b60af82019050919050565b7f3c63616e7661732069643d2767273e3c2f63616e7661733e00000000000000005f82015250565b5f61437260188361330c565b915061437d8261433e565b601882019050919050565b7f3c7363726970743e0000000000000000000000000000000000000000000000005f82015250565b5f6143bc60088361330c565b91506143c782614388565b600882019050919050565b7f636f6e737420666c6174537472696e67203d20272000000000000000000000005f82015250565b5f61440660158361330c565b9150614411826143d2565b601582019050919050565b7f2027203b200000000000000000000000000000000000000000000000000000005f82015250565b5f61445060058361330c565b915061445b8261441c565b600582019050919050565b5f614470826128f7565b61447a818561330c565b935061448a818560208601612911565b80840191505092915050565b7f3c2f7363726970743e00000000000000000000000000000000000000000000005f82015250565b5f6144ca60098361330c565b91506144d582614496565b600982019050919050565b7f3c2f626f64793e000000000000000000000000000000000000000000000000005f82015250565b5f61451460078361330c565b915061451f826144e0565b600782019050919050565b7f3c2f68746d6c3e000000000000000000000000000000000000000000000000005f82015250565b5f61455e60078361330c565b91506145698261452a565b600782019050919050565b5f61457e826140ec565b915061458982614136565b915061459482614180565b915061459f826141ca565b91506145aa82614214565b91506145b58261431c565b91506145c082614366565b91506145cb826143b0565b91506145d6826143fa565b91506145e28285613492565b91506145ed82614444565b91506145f98284614466565b9150614604826144be565b915061460f82614508565b915061461a82614552565b91508190509392505050565b7f446567656e6572617469766547616d65202300000000000000000000000000005f82015250565b5f61465a60128361330c565b915061466582614626565b601282019050919050565b5f61467a8261464e565b91506146868284614466565b915081905092915050565b7f7b000000000000000000000000000000000000000000000000000000000000005f82015250565b5f6146c560018361330c565b91506146d082614691565b600182019050919050565b7f226e616d65223a220000000000000000000000000000000000000000000000005f82015250565b5f61470f60088361330c565b915061471a826146db565b600882019050919050565b7f222c0000000000000000000000000000000000000000000000000000000000005f82015250565b5f61475960028361330c565b915061476482614725565b600282019050919050565b7f22696d616765223a2000000000000000000000000000000000000000000000005f82015250565b5f6147a360098361330c565b91506147ae8261476f565b600982019050919050565b7f22646174613a696d6167652f7376672b786d6c3b6261736536342c00000000005f82015250565b5f6147ed601b8361330c565b91506147f8826147b9565b601b82019050919050565b7f22616e696d6174696f6e5f75726c223a200000000000000000000000000000005f82015250565b5f61483760118361330c565b915061484282614803565b601182019050919050565b7f22646174613a746578742f68746d6c3b6261736536342c0000000000000000005f82015250565b5f61488160178361330c565b915061488c8261484d565b601782019050919050565b7f2261747472696275746573223a205b00000000000000000000000000000000005f82015250565b5f6148cb600f8361330c565b91506148d682614897565b600f82019050919050565b7f5d000000000000000000000000000000000000000000000000000000000000005f82015250565b5f61491560018361330c565b9150614920826148e1565b600182019050919050565b7f7d000000000000000000000000000000000000000000000000000000000000005f82015250565b5f61495f60018361330c565b915061496a8261492b565b600182019050919050565b5f61497f826146b9565b915061498a82614703565b91506149968287613492565b91506149a18261474d565b91506149ac82614797565b91506149b7826147e1565b91506149c38286614466565b91506149ce8261474d565b91506149d98261482b565b91506149e482614875565b91506149f08285614466565b91506149fb8261474d565b9150614a06826148bf565b9150614a128284613492565b9150614a1d82614909565b9150614a2882614953565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000005f82015250565b5f614a6a601d8361330c565b9150614a7582614a36565b601d82019050919050565b5f614a8a82614a5e565b9150614a968284614466565b915081905092915050565b5f614aab82612987565b9150614ab683612987565b925082614ac657614ac561319d565b5b828206905092915050565b5f614adc8286614466565b9150614ae88285614466565b9150614af48284614466565b9150819050949350505050565b7f2274726169745f74797065223a202200000000000000000000000000000000005f82015250565b5f614b35600f8361330c565b9150614b4082614b01565b600f82019050919050565b7f222c2276616c7565223a202200000000000000000000000000000000000000005f82015250565b5f614b7f600c8361330c565b9150614b8a82614b4b565b600c82019050919050565b7f227d0000000000000000000000000000000000000000000000000000000000005f82015250565b5f614bc960028361330c565b9150614bd482614b95565b600282019050919050565b5f614be9826146b9565b9150614bf482614b29565b9150614c008286614466565b9150614c0b82614b73565b9150614c178285614466565b9150614c2282614bbd565b9150614c2e8284614466565b915081905094935050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f636c6173732047616d657b23653d5b5d3b23743d5b5d3b23733d21303b636f6e7374727563746f722865297b746869732e63616e7661733d652c746869732e626f6172643d6e657720426f61726428746869732e63616e766173292c746869732e626f6172642e647261774261636b67726f756e6428292c746869732e6c61756e63683d746869732e6c61756e63682e62696e642874686973292c746869732e696e697442726f777365724576656e747328297d6c61756e636828297b696628746869732e626f6172642e647261774261636b67726f756e6428292c303d3d3d746869732e23652e6c656e6774682626746869732e666972737447656e65726174696f6e28292c746869732e237329666f72286c657420653d303b653c746869732e626f6172642e73697a652e63656c6c4e756d626572583b652b2b29666f72286c657420743d303b743c746869732e626f6172642e73697a652e63656c6c4e756d626572593b742b2b29746869732e23655b655d5b745d2e6472617728293b656c73657b636f6e737420653d746869732e73657269616c697a65537461746528293b746869732e23742e696e636c756465732865293f28636f6e736f6c652e6c6f67282747656e65726174696f6e733a272c6c6f6f70436f756e746572292c746869732e23733d21746869732e2373293a286c6f6f70436f756e7465722b2b2c323d3d3d746869732e23742e6c656e6774682626746869732e23742e736869667428292c746869732e23742e70757368286529293b666f72286c657420653d303b653c746869732e626f6172642e73697a652e63656c6c4e756d626572583b652b2b29666f72286c657420743d303b743c746869732e626f6172642e73697a652e63656c6c4e756d626572593b742b2b29746869732e73657443656c6c4e65696768626f72734279436f6f72647328652c74293b666f72286c657420653d303b653c746869732e626f6172642e73697a652e63656c6c4e756d626572583b652b2b29666f72286c657420743d303b743c746869732e626f6172642e73697a652e63656c6c4e756d626572593b742b2b29746869732e23655b655d5b745d2e6e65787428297d73657454696d656f7574282828293d3e7b72657175657374416e696d6174696f6e4672616d6528746869732e6c61756e6368297d292c43454c4c5f5350454544297d73657269616c697a65537461746528297b72657475726e20746869732e23652e6d61702828653d3e652e6d61702828653d3e652e616c6976653f2731273a27302729292e6a6f696e2827272929292e6a6f696e28277c27297d666972737447656e65726174696f6e28297b746869732e626f6172642e647261774261636b67726f756e6428293b666f72286c657420653d303b653c746869732e626f6172642e73697a652e63656c6c4e756d626572583b652b2b297b746869732e23655b655d3d5b5d3b666f72286c657420743d303b743c746869732e626f6172642e73697a652e63656c6c4e756d626572593b742b2b29746869732e23655b655d5b745d3d6e65772043656c6c28746869732e626f6172642e636f6e746578742c652c742c746869732e626f6172642e73697a652e63656c6c53697a65292c746869732e23655b655d5b745d2e616c6976653d302c746869732e23655b655d5b745d2e6472617728297d7d73657443656c6c4e65696768626f72734279436f6f72647328652c74297b6c657420733d303b636f6e737420693d5b5b652c742b315d2c5b652c742d315d2c5b652b312c745d2c5b652d312c745d2c5b652b312c742b315d2c5b652d312c742d315d2c5b652b312c742d315d2c5b652d312c742b315d5d3b666f7228636f6e73742065206f662069297b6c65745b742c695d3d653b743c30262628743d746869732e626f6172642e73697a652e63656c6c4e756d626572582d31292c743e3d746869732e626f6172642e73697a652e63656c6c4e756d62657258262628743d30292c693c30262628693d746869732e626f6172642e73697a652e63656c6c4e756d626572592d31292c693e3d746869732e626f6172642e73697a652e63656c6c4e756d62657259262628693d30292c746869732e23655b745d3f2e5b695d3f2e616c6976652626732b2b7d746869732e23655b655d5b745d2e6e65696768626f72733d737d6472617746726f6d466c617441727261792865297b666f72286c657420743d303b743c343039363b742b2b297b6c657420733d4d6174682e666c6f6f7228742f3634292b43454c4c5f50414444494e472c693d742536342b43454c4c5f50414444494e473b313d3d3d655b745d262628746869732e23655b695d5b735d2e616c6976653d2130292c746869732e23655b695d5b735d2e6472617728297d7d73746f7028297b6c6f6f70436f756e7465723d302c43454c4c5f53504545443d3130302c746869732e23733d21303b666f72286c657420653d303b653c746869732e626f6172642e73697a652e63656c6c4e756d626572583b652b2b29666f72286c657420743d303b743c746869732e626f6172642e73697a652e63656c6c4e756d626572593b742b2b29746869732e23655b655d5b745d2e616c6976653d303b67616d652e6472617746726f6d466c6174417272617928666c61744172726179297d696e697442726f777365724576656e747328297b6164644576656e744c697374656e657228276b65797072657373272c28287b636f64653a657d293d3e7b7377697463682865297b63617365275370616365273a63617365274b657950273a746869732e23733d21746869732e23733b627265616b3b63617365274b65794e273a746869732e73746f7028293b627265616b3b63617365274b657957273a43454c4c5f53504545443e323026262843454c4c5f53504545442d3d3230293b627265616b3b63617365274b657953273a43454c4c5f53504545443c31653326262843454c4c5f53504545442b3d3230293b627265616b3b63617365274b657945273a77696e646f772e6c6f636174696f6e2e687265663d63616e7661732e746f4461746155524c2827696d6167652f706e6727292e7265706c6163652827696d6167652f706e67272c27696d6167652f6f637465742d73747265616d27297d7d29292c746869732e63616e7661732e6164644576656e744c697374656e65722827636c69636b272c2828293d3e7b746869732e23733d21746869732e23737d29297d7d636c61737320426f6172647b23693d424f4152445f57494454482b322a424f4152445f50414444494e473b236c3d424f4152445f4845494748542b322a424f4152445f50414444494e473b23613d44454641554c545f43454c4c5f53495a453b23723d2723303030273b636f6e7374727563746f722865297b746869732e63616e7661733d652c746869732e6374783d746869732e63616e7661732e676574436f6e746578742827326427292c746869732e63616e7661732e77696474683d746869732e23692c746869732e63616e7661732e6865696768743d746869732e236c7d647261774261636b67726f756e6428297b746869732e6374782e66696c6c5374796c653d746869732e23722c746869732e6374782e66696c6c5265637428302c302c746869732e23692c746869732e236c297d6765742073697a6528297b72657475726e7b63656c6c4e756d626572583a4d6174682e6365696c28746869732e23692f746869732e2361292c63656c6c4e756d626572593a4d6174682e6365696c28746869732e236c2f746869732e2361292c63656c6c53697a653a746869732e23617d7d67657420636f6e7465787428297b72657475726e20746869732e6374787d7d636c6173732043656c6c7b23683d21303b236f3d303b23633d2723666666273b636f6e7374727563746f7228652c742c732c69297b746869732e6374783d652c746869732e783d742c746869732e793d732c746869732e63656c6c53697a653d697d6e65787428297b746869732e23687c7c33213d3d746869732e236f3f746869732e23683d746869732e2368262628323d3d3d746869732e236f7c7c333d3d3d746869732e236f293a746869732e23683d21302c746869732e6472617728297d6472617728297b746869732e2368262628746869732e6374782e66696c6c5374796c653d746869732e23632c746869732e6374782e66696c6c52656374282e2e2e746869732e706f736974696f6e29297d67657420706f736974696f6e28297b72657475726e5b746869732e782a746869732e63656c6c53697a652c746869732e792a746869732e63656c6c53697a652c746869732e63656c6c53697a652c746869732e63656c6c53697a655d7d73657420616c6976652865297b746869732e23683d657d67657420616c69766528297b72657475726e20746869732e23687d736574206e65696768626f72732865297b746869732e236f3d657d7d636f6e73742063616e7661733d646f63756d656e742e676574456c656d656e744279496428276727292c53495a455f464143544f523d342c424f4152445f57494454483d323034382c424f4152445f4845494748543d323034382c424f4152445f50414444494e473d3338343b6c6574206c6f6f70436f756e7465723d303b636f6e73742044454641554c545f43454c4c5f53495a453d33322c43454c4c5f50414444494e473d31323b6c65742043454c4c5f53504545443d3130303b636f6e73742067616d653d6e65772047616d652863616e766173293b67616d652e6c61756e636828293b636f6e7374207061747465726e3d2f3c703e2e3c5c2f703e2f672c6d6174636865733d666c6174537472696e672e6d61746368287061747465726e292c666c617441727261793d6d6174636865732e6d61702828653d3e652e696e636c7564657328272327293f313a3029293b67616d652e6472617746726f6d466c6174417272617928666c61744172726179293ba264697066735822122049d62047000f98f96861bf057806b8fed8d9a9ec70c09f6126945ea566f616fc64736f6c63430008190033
Deployed Bytecode
0x6080604052600436106101c1575f3560e01c8063715018a6116100f6578063c87b56dd11610094578063e985e9c511610063578063e985e9c5146105da578063f0c293dc14610616578063f2fde38b14610652578063f8004d311461067a576101c1565b8063c87b56dd146104f9578063ce00ea1214610535578063d5d69a4b1461055f578063d7fb44471461059e576101c1565b8063a035b1fe116100d0578063a035b1fe14610463578063a22cb4651461048d578063a2a3eb4d146104b5578063b88d4fde146104dd576101c1565b8063715018a6146103f95780638da5cb5b1461040f57806395d89b4114610439576101c1565b806332cb6b0c116101635780636352211e1161013d5780636352211e1461032f578063659bec321461036b5780636c49876e1461039557806370a08231146103bd576101c1565b806332cb6b0c146102d35780633ccfd60b146102fd57806342842e0e14610313576101c1565b8063095ea7b31161019f578063095ea7b3146102675780631249c58b1461028357806318160ddd1461028d57806323b872dd146102b7576101c1565b806301ffc9a7146101c557806306fdde0314610201578063081812fc1461022b575b5f80fd5b3480156101d0575f80fd5b506101eb60048036038101906101e69190612899565b6106a2565b6040516101f891906128de565b60405180910390f35b34801561020c575f80fd5b50610215610733565b6040516102229190612967565b60405180910390f35b348015610236575f80fd5b50610251600480360381019061024c91906129ba565b6107c3565b60405161025e9190612a24565b60405180910390f35b610281600480360381019061027c9190612a67565b61081c565b005b61028b61082c565b005b348015610298575f80fd5b506102a16109fd565b6040516102ae9190612ab4565b60405180910390f35b6102d160048036038101906102cc9190612acd565b610a48565b005b3480156102de575f80fd5b506102e7610cf3565b6040516102f49190612ab4565b60405180910390f35b348015610308575f80fd5b50610311610cf9565b005b61032d60048036038101906103289190612acd565b610db3565b005b34801561033a575f80fd5b50610355600480360381019061035091906129ba565b610dd2565b6040516103629190612a24565b60405180910390f35b348015610376575f80fd5b5061037f610de3565b60405161038c9190612b78565b60405180910390f35b3480156103a0575f80fd5b506103bb60048036038101906103b691906129ba565b610e08565b005b3480156103c8575f80fd5b506103e360048036038101906103de9190612b91565b610f24565b6040516103f09190612ab4565b60405180910390f35b348015610404575f80fd5b5061040d610fb8565b005b34801561041a575f80fd5b50610423610fcb565b6040516104309190612a24565b60405180910390f35b348015610444575f80fd5b5061044d610ff3565b60405161045a9190612967565b60405180910390f35b34801561046e575f80fd5b50610477611083565b6040516104849190612ab4565b60405180910390f35b348015610498575f80fd5b506104b360048036038101906104ae9190612be6565b611089565b005b3480156104c0575f80fd5b506104db60048036038101906104d69190612a67565b61118f565b005b6104f760048036038101906104f29190612d50565b61129f565b005b348015610504575f80fd5b5061051f600480360381019061051a91906129ba565b6112f0565b60405161052c9190612967565b60405180910390f35b348015610540575f80fd5b5061054961134a565b6040516105569190612ab4565b60405180910390f35b34801561056a575f80fd5b50610585600480360381019061058091906129ba565b611352565b6040516105959493929190612dd0565b60405180910390f35b3480156105a9575f80fd5b506105c460048036038101906105bf91906129ba565b61138a565b6040516105d19190612ab4565b60405180910390f35b3480156105e5575f80fd5b5061060060048036038101906105fb9190612e13565b61140f565b60405161060d91906128de565b60405180910390f35b348015610621575f80fd5b5061063c600480360381019061063791906129ba565b61149d565b6040516106499190612ea3565b60405180910390f35b34801561065d575f80fd5b5061067860048036038101906106739190612b91565b611771565b005b348015610685575f80fd5b506106a0600480360381019061069b9190612ec3565b6117f5565b005b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106fc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061072c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461074290612f1b565b80601f016020809104026020016040519081016040528092919081815260200182805461076e90612f1b565b80156107b95780601f10610790576101008083540402835291602001916107b9565b820191905f5260205f20905b81548152906001019060200180831161079c57829003601f168201915b5050505050905090565b5f6107cd82611819565b6107e2576107e163cf4700e460e01b6118bc565b5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610828828260016118c4565b5050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610891576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f1515600c5f9054906101000a900460ff161515036108dc576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61020060016108e96109fd565b6108f39190612f78565b111561092b576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b543414610966576040517ff7760f2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60016109716109fd565b61097b9190612f78565b905060405180608001604052808281526020014381526020015f151581526020015f815250600d5f8381526020019081526020015f205f820151815f0155602082015181600101556040820151816002015f6101000a81548160ff021916908315150217905550606082015181600301559050506109fa3360016119ee565b50565b5f610a06611b62565b6001545f54030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610a38611b6a565b14610a4557600854810190505b90565b5f610a5282611b91565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ac757610ac663a114810060e01b6118bc565b5b5f80610ad284611ca0565b91509150610ae88187610ae3611cc3565b611cca565b610b1357610afd86610af8611cc3565b61140f565b610b1257610b116359c896be60e01b6118bc565b5b5b610b208686866001611d0d565b8015610b2a575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550610bf285610bce888887611d13565b7c020000000000000000000000000000000000000000000000000000000017611d3a565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603610c6e575f6001850190505f60045f8381526020019081526020015f205403610c6c575f548114610c6b578360045f8381526020019081526020015f20819055505b5b505b5f73ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a45f8103610cdd57610cdc63ea553b3460e01b6118bc565b5b610cea8787876001611d64565b50505050505050565b61020081565b610d01611d6a565b5f610d0a610fcb565b73ffffffffffffffffffffffffffffffffffffffff1647604051610d2d90612fd8565b5f6040518083038185875af1925050503d805f8114610d67576040519150601f19603f3d011682016040523d82523d5f602084013e610d6c565b606091505b5050905080610db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da790613036565b60405180910390fd5b50565b610dcd83838360405180602001604052805f81525061129f565b505050565b5f610ddc82611b91565b9050919050565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e1181610dd2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e47575f80fd5b60011515600d5f8381526020019081526020015f206002015f9054906101000a900460ff16151503610ea5576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600d5f8381526020019081526020015f206002015f6101000a81548160ff02191690831515021790555043600d5f8381526020019081526020015f20600301819055507f56ec42389c2de8ea4b948435ba87e064cc2df4255125fe012ebff57f2c659e0a81604051610f199190612ab4565b60405180910390a150565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f6957610f68638f4eb60460e01b6118bc565b5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b610fc0611d6a565b610fc95f611df1565b565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461100290612f1b565b80601f016020809104026020016040519081016040528092919081815260200182805461102e90612f1b565b80156110795780601f1061105057610100808354040283529160200191611079565b820191905f5260205f20905b81548152906001019060200180831161105c57829003601f168201915b5050505050905090565b600b5481565b8060075f611095611cc3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661113e611cc3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161118391906128de565b60405180910390a35050565b611197611d6a565b610200816111a36109fd565b6111ad9190612f78565b11156111e5576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f600190505b81811161129a575f60016111fd6109fd565b6112079190612f78565b905060405180608001604052808281526020014381526020015f151581526020015f815250600d5f8381526020019081526020015f205f820151815f0155602082015181600101556040820151816002015f6101000a81548160ff021916908315150217905550606082015181600301559050506112868460016119ee565b50808061129290613054565b9150506111eb565b505050565b6112aa848484610a48565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146112ea576112d484848484611eb4565b6112e9576112e863d1a57ed660e01b6118bc565b5b5b50505050565b60606112fb82611819565b61133a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113319061310b565b60405180910390fd5b61134382611fde565b9050919050565b630ce455af81565b600d602052805f5260405f205f91509050805f015490806001015490806002015f9054906101000a900460ff16908060030154905084565b5f804390508281116113a1576110de91505061140a565b5f83826113ae9190613129565b9050630ce455af81106113c5575f9250505061140a565b5f630ce455af601e6110de6113da9190613129565b836113e5919061315c565b6113ef91906131ca565b90505f816110de6114009190613129565b9050809450505050505b919050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b60605f600d5f8481526020019081526020015f206040518060800160405290815f820154815260200160018201548152602001600282015f9054906101000a900460ff1615151515815260200160038201548152505090505f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd856040518263ffffffff1660e01b81526004016115509190612ab4565b5f60405180830381865afa15801561156a573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f820116820180604052508101906115929190613298565b90505f815190505f8167ffffffffffffffff8111156115b4576115b3612c2c565b5b6040519080825280602002602001820160405280156115e757816020015b60608152602001906001900390816115d25790505b5090505f84604001511561160957611602856060015161138a565b9050611619565b611616856020015161138a565b90505b5f601e90505b8181101561173a575f85828151811061163b5761163a6132df565b5b602001015160f81c60f81b9050602560f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916036116805760028201915061172c565b602e60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916036116ee576040516020016116bc906133f4565b6040516020818303038152906040528483815181106116de576116dd6132df565b5b602002602001018190525061172b565b6040516020016116fd90613468565b60405160208183030381529060405284838151811061171f5761171e6132df565b5b60200260200101819052505b5b81806001019250505061161f565b508561174583612149565b6040516020016117569291906134c2565b60405160208183030381529060405295505050505050919050565b611779611d6a565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117e9575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016117e09190612a24565b60405180910390fd5b6117f281611df1565b50565b6117fd611d6a565b80600c5f6101000a81548160ff02191690831515021790555050565b5f81611823611b62565b116118b657611830611b6a565b8211156118585761185160045f8481526020019081526020015f205461216a565b90506118b7565b5f548210156118b5575f5b5f60045f8581526020019081526020015f20549150810361188f5782611888906134e5565b9250611863565b5f7c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b805f5260045ffd5b5f6118ce83610dd2565b905081801561191057508073ffffffffffffffffffffffffffffffffffffffff166118f7611cc3565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561193c5761192681611921611cc3565b61140f565b61193b5761193a63cfb3b94260e01b6118bc565b5b5b8360065f8581526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b5f805490505f8203611a0b57611a0a63b562e8dd60e01b6118bc565b5b611a175f848385611d0d565b611a3583611a265f865f611d13565b611a2f856121aa565b17611d3a565b60045f8381526020019081526020015f2081905550600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505f73ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690505f8103611ae657611ae5632e07630060e01b6118bc565b5b5f83830190505f839050611af8611b6a565b600183031115611b1357611b126381647e3a60e01b6118bc565b5b5b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4818160010191508103611b1457815f81905550505050611b5d5f848385611d64565b505050565b5f6001905090565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b5f81611b9b611b62565b11611c8a5760045f8381526020019081526020015f20549050611bbc611b6a565b821115611be157611bcc8161216a565b611c9b57611be063df2d9b4260e01b6118bc565b5b5f8103611c62575f548210611c0157611c0063df2d9b4260e01b6118bc565b5b5b60045f836001900393508381526020019081526020015f205490505f810315611c5d575f7c010000000000000000000000000000000000000000000000000000000082160315611c9b57611c5c63df2d9b4260e01b6118bc565b5b611c02565b5f7c010000000000000000000000000000000000000000000000000000000082160315611c9b575b611c9a63df2d9b4260e01b6118bc565b5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8611d298686846121b9565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611d726121c1565b73ffffffffffffffffffffffffffffffffffffffff16611d90610fcb565b73ffffffffffffffffffffffffffffffffffffffff1614611def57611db36121c1565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611de69190612a24565b60405180910390fd5b565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611ed9611cc3565b8786866040518563ffffffff1660e01b8152600401611efb949392919061350c565b6020604051808303815f875af1925050508015611f3657506040513d601f19601f82011682018060405250810190611f33919061356a565b60015b611f8b573d805f8114611f64576040519150601f19603f3d011682016040523d82523d5f602084013e611f69565b606091505b505f815103611f8357611f8263d1a57ed660e01b6118bc565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60605f600d5f8481526020019081526020015f206040518060800160405290815f820154815260200160018201548152602001600282015f9054906101000a900460ff1615151515815260200160038201548152505090505f6120408461149d565b90505f81604051602001612054919061402a565b60405160208183030381529060405290505f8260405180610e600160405280610e2f8152602001614c7c610e2f9139604051602001612094929190614574565b60405160208183030381529060405290505f6120b2855f01516121c8565b6040516020016120c29190614670565b60405160208183030381529060405290505f816120de85612321565b6120e785612321565b6120f0896124a0565b6040516020016121039493929190614975565b604051602081830303815290604052905061211d81612321565b60405160200161212d9190614a80565b6040516020818303038152906040529650505050505050919050565b60606121638260405180602001604052805f815250612733565b9050919050565b5f7c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b5f6001821460e11b9050919050565b5f9392505050565b5f33905090565b60605f820361220e576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061231c565b5f8290505f5b5f821461223d57808061222690613054565b915050600a8261223691906131ca565b9150612214565b5f8167ffffffffffffffff81111561225857612257612c2c565b5b6040519080825280601f01601f19166020018201604052801561228a5781602001600182028036833780820191505090505b5090505b5f8514612315576001826122a29190613129565b9150600a856122b19190614aa1565b60306122bd9190612f78565b60f81b8183815181106122d3576122d26132df565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600a8561230e91906131ca565b945061228e565b8093505050505b919050565b60605f8251036123415760405180602001604052805f815250905061249b565b5f604051806060016040528060408152602001614c3c6040913990505f60036002855161236e9190612f78565b61237891906131ca565b6004612384919061315c565b90505f6020826123949190612f78565b67ffffffffffffffff8111156123ad576123ac612c2c565b5b6040519080825280601f01601f1916602001820160405280156123df5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b8183101561245a576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b8252600182019150506123f3565b60038951066001811461247457600281146124845761248f565b613d3d60f01b600283035261248f565b603d60f81b60018303525b50505050508093505050505b919050565b60605f151582604001511515146125605761255b6040518060400160405280600481526020017f4d6f6465000000000000000000000000000000000000000000000000000000008152506040518060400160405280600881526020017f496e66696e6974790000000000000000000000000000000000000000000000008152506040518060400160405280600181526020017f2c00000000000000000000000000000000000000000000000000000000000000815250612751565b61260b565b61260a6040518060400160405280600481526020017f4d6f6465000000000000000000000000000000000000000000000000000000008152506040518060400160405280600c81526020017f446567656e6572617469766500000000000000000000000000000000000000008152506040518060400160405280600181526020017f2c00000000000000000000000000000000000000000000000000000000000000815250612751565b5b60011515836040015115151461262f5760405180602001604052805f8152506126b1565b6126b06040518060400160405280600e81526020017f496e66696e69747920426c6f636b00000000000000000000000000000000000081525061267585606001516121c8565b6040518060400160405280600181526020017f2c00000000000000000000000000000000000000000000000000000000000000815250612751565b5b61270b6040518060400160405280600b81526020017f426972746820426c6f636b0000000000000000000000000000000000000000008152506126f786602001516121c8565b60405180602001604052805f815250612751565b60405160200161271d93929190614ad1565b6040516020818303038152906040529050919050565b60605f808491508390506127478282612780565b9250505092915050565b606083838360405160200161276893929190614bdf565b60405160208183030381529060405290509392505050565b60606040519050602081018251602081111561279b57602084fd5b60208401518551602087016020820281015f825b82811015612810578051805180840193505f60208206116020820401602083015f5b828110156127f3578151602082028e01526020820191506001810190506127d1565b50828c019b50898c528a8c019b50505050506020810190506127af565b5085600185030281018852601f19601f8801166040525050505050505092915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61287881612844565b8114612882575f80fd5b50565b5f813590506128938161286f565b92915050565b5f602082840312156128ae576128ad61283c565b5b5f6128bb84828501612885565b91505092915050565b5f8115159050919050565b6128d8816128c4565b82525050565b5f6020820190506128f15f8301846128cf565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612939826128f7565b6129438185612901565b9350612953818560208601612911565b61295c8161291f565b840191505092915050565b5f6020820190508181035f83015261297f818461292f565b905092915050565b5f819050919050565b61299981612987565b81146129a3575f80fd5b50565b5f813590506129b481612990565b92915050565b5f602082840312156129cf576129ce61283c565b5b5f6129dc848285016129a6565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612a0e826129e5565b9050919050565b612a1e81612a04565b82525050565b5f602082019050612a375f830184612a15565b92915050565b612a4681612a04565b8114612a50575f80fd5b50565b5f81359050612a6181612a3d565b92915050565b5f8060408385031215612a7d57612a7c61283c565b5b5f612a8a85828601612a53565b9250506020612a9b858286016129a6565b9150509250929050565b612aae81612987565b82525050565b5f602082019050612ac75f830184612aa5565b92915050565b5f805f60608486031215612ae457612ae361283c565b5b5f612af186828701612a53565b9350506020612b0286828701612a53565b9250506040612b13868287016129a6565b9150509250925092565b5f819050919050565b5f612b40612b3b612b36846129e5565b612b1d565b6129e5565b9050919050565b5f612b5182612b26565b9050919050565b5f612b6282612b47565b9050919050565b612b7281612b58565b82525050565b5f602082019050612b8b5f830184612b69565b92915050565b5f60208284031215612ba657612ba561283c565b5b5f612bb384828501612a53565b91505092915050565b612bc5816128c4565b8114612bcf575f80fd5b50565b5f81359050612be081612bbc565b92915050565b5f8060408385031215612bfc57612bfb61283c565b5b5f612c0985828601612a53565b9250506020612c1a85828601612bd2565b9150509250929050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612c628261291f565b810181811067ffffffffffffffff82111715612c8157612c80612c2c565b5b80604052505050565b5f612c93612833565b9050612c9f8282612c59565b919050565b5f67ffffffffffffffff821115612cbe57612cbd612c2c565b5b612cc78261291f565b9050602081019050919050565b828183375f83830152505050565b5f612cf4612cef84612ca4565b612c8a565b905082815260208101848484011115612d1057612d0f612c28565b5b612d1b848285612cd4565b509392505050565b5f82601f830112612d3757612d36612c24565b5b8135612d47848260208601612ce2565b91505092915050565b5f805f8060808587031215612d6857612d6761283c565b5b5f612d7587828801612a53565b9450506020612d8687828801612a53565b9350506040612d97878288016129a6565b925050606085013567ffffffffffffffff811115612db857612db7612840565b5b612dc487828801612d23565b91505092959194509250565b5f608082019050612de35f830187612aa5565b612df06020830186612aa5565b612dfd60408301856128cf565b612e0a6060830184612aa5565b95945050505050565b5f8060408385031215612e2957612e2861283c565b5b5f612e3685828601612a53565b9250506020612e4785828601612a53565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f612e7582612e51565b612e7f8185612e5b565b9350612e8f818560208601612911565b612e988161291f565b840191505092915050565b5f6020820190508181035f830152612ebb8184612e6b565b905092915050565b5f60208284031215612ed857612ed761283c565b5b5f612ee584828501612bd2565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612f3257607f821691505b602082108103612f4557612f44612eee565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612f8282612987565b9150612f8d83612987565b9250828201905080821115612fa557612fa4612f4b565b5b92915050565b5f81905092915050565b50565b5f612fc35f83612fab565b9150612fce82612fb5565b5f82019050919050565b5f612fe282612fb8565b9150819050919050565b7f5769746864726177206661696c656400000000000000000000000000000000005f82015250565b5f613020600f83612901565b915061302b82612fec565b602082019050919050565b5f6020820190508181035f83015261304d81613014565b9050919050565b5f61305e82612987565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036130905761308f612f4b565b5b600182019050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f5f8201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b5f6130f5602f83612901565b91506131008261309b565b604082019050919050565b5f6020820190508181035f830152613122816130e9565b9050919050565b5f61313382612987565b915061313e83612987565b925082820390508181111561315657613155612f4b565b5b92915050565b5f61316682612987565b915061317183612987565b925082820261317f81612987565b9150828204841483151761319657613195612f4b565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6131d482612987565b91506131df83612987565b9250826131ef576131ee61319d565b5b828204905092915050565b5f67ffffffffffffffff82111561321457613213612c2c565b5b61321d8261291f565b9050602081019050919050565b5f61323c613237846131fa565b612c8a565b90508281526020810184848401111561325857613257612c28565b5b613263848285612911565b509392505050565b5f82601f83011261327f5761327e612c24565b5b815161328f84826020860161322a565b91505092915050565b5f602082840312156132ad576132ac61283c565b5b5f82015167ffffffffffffffff8111156132ca576132c9612840565b5b6132d68482850161326b565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81905092915050565b7f3c703e00000000000000000000000000000000000000000000000000000000005f82015250565b5f61334a60038361330c565b915061335582613316565b600382019050919050565b7f23000000000000000000000000000000000000000000000000000000000000005f82015250565b5f61339460018361330c565b915061339f82613360565b600182019050919050565b7f3c2f703e000000000000000000000000000000000000000000000000000000005f82015250565b5f6133de60048361330c565b91506133e9826133aa565b600482019050919050565b5f6133fe8261333e565b915061340982613388565b9150613414826133d2565b9150819050919050565b7f2e000000000000000000000000000000000000000000000000000000000000005f82015250565b5f61345260018361330c565b915061345d8261341e565b600182019050919050565b5f6134728261333e565b915061347d82613446565b9150613488826133d2565b9150819050919050565b5f61349c82612e51565b6134a68185612fab565b93506134b6818560208601612911565b80840191505092915050565b5f6134cd8285613492565b91506134d98284613492565b91508190509392505050565b5f6134ef82612987565b91505f820361350157613500612f4b565b5b600182039050919050565b5f60808201905061351f5f830187612a15565b61352c6020830186612a15565b6135396040830185612aa5565b818103606083015261354b8184612e6b565b905095945050505050565b5f815190506135648161286f565b92915050565b5f6020828403121561357f5761357e61283c565b5b5f61358c84828501613556565b91505092915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32305f8201527f30302f73766722207072657365727665417370656374526174696f3d22784d6960208201527f6e594d696e206d656574222076696577426f783d22302030203137363020313760408201527f363022207374796c653d226261636b67726f756e643a20626c61636b3b223e00606082015250565b5f61363b607f8361330c565b915061364682613595565b607f82019050919050565b7f3c7374796c653e000000000000000000000000000000000000000000000000005f82015250565b5f61368560078361330c565b915061369082613651565b600782019050919050565b7f40666f6e742d666163657b20666f6e742d66616d696c793a20226d61726b61675f8201527f6c797068223b20666f6e742d646973706c61793a20626c6f636b3b207372633a60208201527f2075726c28646174613a6170706c69636174696f6e2f666f6e742d776f66663260408201527f3b636861727365743d7574662d383b6261736536342c643039474d674142414160608201527f414141414b4d4141344141414141426b5141414149324141454141414141414160808201527f4141414141414141414141414141414141414141414150305a4756453063476860a08201527f774759414343536767454551674b6348344c444141424e67496b41784945494160c08201527f57454c67637347314546494a364673664d696a4161464b697a505766336e525460e08201527f785037636676334e3139337a776159756c62526a795a52434b4e6943657157436101008201527f70576b6b332f43645649592b5a5a4e64312b6d6753457645456c2f664e4252566101208201527f4564434a4e4361635668564455537965413835443857547172566a762f6654656101408201527f36694344376e7567666479374c656754515778524a77415a58416d4d42466b726101608201527f426e3371436c43422b66615334534a616c65434c7a66654830522b4c543535696101808201527f644f666975504163624d55564151424b332b79434d6435553735346837744f426101a08201527f2b7352614c6f686745454145356471765678745a5662715539557a376768414e6101c08201527f69456f614a6948674f4879594a35696c316751425046566d34502b7347692f396101e08201527f42764345414743434146425141515541466f346f77326c7774495477456447456102008201527f4846474359424463736b454670726f393134757a44616a51784f442b513276346102208201527f5a66332b6e464c3562502f482f38414d2b446c643376516358663965634436686102408201527f764e56496e6a6f496f366a6f2b312f4864306e7377512b68657574724b372f776102608201527f324e31682f444471506e6b2f554d47414c47713265554a374952464e674239426102808201527f62737a56624d476767364d5563746947412f463843454a774a59557352416a4c6102a08201527f694b67574c5159774856446a38427a5569325961417a6d5a4d59474443534b326102c08201527f52707739674c565967356253676d334962716d43633063386c415a7a48654e776102e08201527f7959533076467974724631735449324237523952694977416b464e744c5173546103008201527f5644536b6a6479736b415076735a3949796e73516737686455446447783147676103208201527f43586d335a336a4d7864724931684c686e6147633076367a46777873444977566103408201527f7a48466d34344b774a4872537a7469322f6547686b67676f736a495a49744d5a6103608201527f75437a7846772b6d4467714361583364694f4272547563676f4a4131386e776e6103808201527f634342333162774e51467372557a415668414f4d34484a695132316d44784b766103a08201527f64646274724b484b4d4166645a42414142305445666867476b4141413d3d29206103c08201527f666f726d61742822776f66663222297d202e727b2077696474683a20313238306103e08201527f70783b206865696768743a203133303070783b20666f6e742d73697a653a20326104008201527f3670783b20646973706c61793a20677269643b20626f782d73697a696e673a206104208201527f626f726465722d626f783b20677269642d74656d706c6174652d636f6c756d6e6104408201527f733a207265706561742836342c2032307078293b20677269642d74656d706c616104608201527f74652d726f77733a207265706561742836342c2032307078293b20677269642d6104808201527f6761703a203070783b206a7573746966792d636f6e74656e743a2073706163656104a08201527f2d6576656e6c793b20207d0000000000000000000000000000000000000000006104c082015250565b5f613c936104cb8361330c565b9150613c9e8261369b565b6104cb82019050919050565b7f20707b20666f6e742d66616d696c793a20226d61726b61676c797068222c206d5f8201527f6f6e6f73706163653b20746578742d616c69676e3a2063656e7465723b20646960208201527f73706c61793a20666c65783b206a7573746966792d636f6e74656e743a20636560408201527f6e7465723b20616c69676e2d6974656d733a2063656e7465723b20636f6c6f7260608201527f3a2077686974653b7d0000000000000000000000000000000000000000000000608082015250565b5f613d7660898361330c565b9150613d8182613caa565b608982019050919050565b7f3c2f7374796c653e0000000000000000000000000000000000000000000000005f82015250565b5f613dc060088361330c565b9150613dcb82613d8c565b600882019050919050565b7f3c666f726569676e4f626a65637420783d22302220793d2230222077696474685f8201527f3d223132383022206865696768743d223133303022207374796c653d2274726160208201527f6e73666f726d3a207472616e736c6174652832343070782c203234307078293b60408201527f223e000000000000000000000000000000000000000000000000000000000000606082015250565b5f613e7c60628361330c565b9150613e8782613dd6565b606282019050919050565b7f3c64697620786d6c6e733d22687474703a2f2f7777772e77332e6f72672f31395f8201527f39392f7868746d6c2220636c6173733d226d657461223e000000000000000000602082015250565b5f613eec60378361330c565b9150613ef782613e92565b603782019050919050565b7f3c6469762020636c6173733d2272223e000000000000000000000000000000005f82015250565b5f613f3660108361330c565b9150613f4182613f02565b601082019050919050565b7f3c2f6469763e00000000000000000000000000000000000000000000000000005f82015250565b5f613f8060068361330c565b9150613f8b82613f4c565b600682019050919050565b7f3c2f666f726569676e4f626a6563743e000000000000000000000000000000005f82015250565b5f613fca60108361330c565b9150613fd582613f96565b601082019050919050565b7f3c2f7376673e00000000000000000000000000000000000000000000000000005f82015250565b5f61401460068361330c565b915061401f82613fe0565b600682019050919050565b5f6140348261362f565b915061403f82613679565b915061404a82613c86565b915061405582613d6a565b915061406082613db4565b915061406b82613e70565b915061407682613ee0565b915061408182613f2a565b915061408d8284613492565b915061409882613f74565b91506140a382613f74565b91506140ae82613fbe565b91506140b982614008565b915081905092915050565b7f3c21444f43545950452068746d6c3e00000000000000000000000000000000005f82015250565b5f6140f8600f8361330c565b9150614103826140c4565b600f82019050919050565b7f3c68746d6c3e00000000000000000000000000000000000000000000000000005f82015250565b5f61414260068361330c565b915061414d8261410e565b600682019050919050565b7f3c686561643e00000000000000000000000000000000000000000000000000005f82015250565b5f61418c60068361330c565b915061419782614158565b600682019050919050565b7f3c2f686561643e000000000000000000000000000000000000000000000000005f82015250565b5f6141d660078361330c565b91506141e1826141a2565b600782019050919050565b7f3c626f64793e00000000000000000000000000000000000000000000000000005f82015250565b5f61422060068361330c565b915061422b826141ec565b600682019050919050565b7f3c7374796c653e68746d6c2c626f64797b6865696768743a20313030253b206d5f8201527f617267696e3a20303b2070616464696e673a20303b646973706c61793a20666c60208201527f65783b6a7573746966792d636f6e74656e743a2063656e7465723b20616c696760408201527f6e2d6974656d733a2063656e7465723b206261636b67726f756e643a2023303060608201527f303b6f766572666c6f773a206e6f6e653b7d2023677b6d61782d77696474683a60808201527f20313030253b7d3c2f7374796c653e000000000000000000000000000000000060a082015250565b5f61432860af8361330c565b915061433382614236565b60af82019050919050565b7f3c63616e7661732069643d2767273e3c2f63616e7661733e00000000000000005f82015250565b5f61437260188361330c565b915061437d8261433e565b601882019050919050565b7f3c7363726970743e0000000000000000000000000000000000000000000000005f82015250565b5f6143bc60088361330c565b91506143c782614388565b600882019050919050565b7f636f6e737420666c6174537472696e67203d20272000000000000000000000005f82015250565b5f61440660158361330c565b9150614411826143d2565b601582019050919050565b7f2027203b200000000000000000000000000000000000000000000000000000005f82015250565b5f61445060058361330c565b915061445b8261441c565b600582019050919050565b5f614470826128f7565b61447a818561330c565b935061448a818560208601612911565b80840191505092915050565b7f3c2f7363726970743e00000000000000000000000000000000000000000000005f82015250565b5f6144ca60098361330c565b91506144d582614496565b600982019050919050565b7f3c2f626f64793e000000000000000000000000000000000000000000000000005f82015250565b5f61451460078361330c565b915061451f826144e0565b600782019050919050565b7f3c2f68746d6c3e000000000000000000000000000000000000000000000000005f82015250565b5f61455e60078361330c565b91506145698261452a565b600782019050919050565b5f61457e826140ec565b915061458982614136565b915061459482614180565b915061459f826141ca565b91506145aa82614214565b91506145b58261431c565b91506145c082614366565b91506145cb826143b0565b91506145d6826143fa565b91506145e28285613492565b91506145ed82614444565b91506145f98284614466565b9150614604826144be565b915061460f82614508565b915061461a82614552565b91508190509392505050565b7f446567656e6572617469766547616d65202300000000000000000000000000005f82015250565b5f61465a60128361330c565b915061466582614626565b601282019050919050565b5f61467a8261464e565b91506146868284614466565b915081905092915050565b7f7b000000000000000000000000000000000000000000000000000000000000005f82015250565b5f6146c560018361330c565b91506146d082614691565b600182019050919050565b7f226e616d65223a220000000000000000000000000000000000000000000000005f82015250565b5f61470f60088361330c565b915061471a826146db565b600882019050919050565b7f222c0000000000000000000000000000000000000000000000000000000000005f82015250565b5f61475960028361330c565b915061476482614725565b600282019050919050565b7f22696d616765223a2000000000000000000000000000000000000000000000005f82015250565b5f6147a360098361330c565b91506147ae8261476f565b600982019050919050565b7f22646174613a696d6167652f7376672b786d6c3b6261736536342c00000000005f82015250565b5f6147ed601b8361330c565b91506147f8826147b9565b601b82019050919050565b7f22616e696d6174696f6e5f75726c223a200000000000000000000000000000005f82015250565b5f61483760118361330c565b915061484282614803565b601182019050919050565b7f22646174613a746578742f68746d6c3b6261736536342c0000000000000000005f82015250565b5f61488160178361330c565b915061488c8261484d565b601782019050919050565b7f2261747472696275746573223a205b00000000000000000000000000000000005f82015250565b5f6148cb600f8361330c565b91506148d682614897565b600f82019050919050565b7f5d000000000000000000000000000000000000000000000000000000000000005f82015250565b5f61491560018361330c565b9150614920826148e1565b600182019050919050565b7f7d000000000000000000000000000000000000000000000000000000000000005f82015250565b5f61495f60018361330c565b915061496a8261492b565b600182019050919050565b5f61497f826146b9565b915061498a82614703565b91506149968287613492565b91506149a18261474d565b91506149ac82614797565b91506149b7826147e1565b91506149c38286614466565b91506149ce8261474d565b91506149d98261482b565b91506149e482614875565b91506149f08285614466565b91506149fb8261474d565b9150614a06826148bf565b9150614a128284613492565b9150614a1d82614909565b9150614a2882614953565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000005f82015250565b5f614a6a601d8361330c565b9150614a7582614a36565b601d82019050919050565b5f614a8a82614a5e565b9150614a968284614466565b915081905092915050565b5f614aab82612987565b9150614ab683612987565b925082614ac657614ac561319d565b5b828206905092915050565b5f614adc8286614466565b9150614ae88285614466565b9150614af48284614466565b9150819050949350505050565b7f2274726169745f74797065223a202200000000000000000000000000000000005f82015250565b5f614b35600f8361330c565b9150614b4082614b01565b600f82019050919050565b7f222c2276616c7565223a202200000000000000000000000000000000000000005f82015250565b5f614b7f600c8361330c565b9150614b8a82614b4b565b600c82019050919050565b7f227d0000000000000000000000000000000000000000000000000000000000005f82015250565b5f614bc960028361330c565b9150614bd482614b95565b600282019050919050565b5f614be9826146b9565b9150614bf482614b29565b9150614c008286614466565b9150614c0b82614b73565b9150614c178285614466565b9150614c2282614bbd565b9150614c2e8284614466565b915081905094935050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f636c6173732047616d657b23653d5b5d3b23743d5b5d3b23733d21303b636f6e7374727563746f722865297b746869732e63616e7661733d652c746869732e626f6172643d6e657720426f61726428746869732e63616e766173292c746869732e626f6172642e647261774261636b67726f756e6428292c746869732e6c61756e63683d746869732e6c61756e63682e62696e642874686973292c746869732e696e697442726f777365724576656e747328297d6c61756e636828297b696628746869732e626f6172642e647261774261636b67726f756e6428292c303d3d3d746869732e23652e6c656e6774682626746869732e666972737447656e65726174696f6e28292c746869732e237329666f72286c657420653d303b653c746869732e626f6172642e73697a652e63656c6c4e756d626572583b652b2b29666f72286c657420743d303b743c746869732e626f6172642e73697a652e63656c6c4e756d626572593b742b2b29746869732e23655b655d5b745d2e6472617728293b656c73657b636f6e737420653d746869732e73657269616c697a65537461746528293b746869732e23742e696e636c756465732865293f28636f6e736f6c652e6c6f67282747656e65726174696f6e733a272c6c6f6f70436f756e746572292c746869732e23733d21746869732e2373293a286c6f6f70436f756e7465722b2b2c323d3d3d746869732e23742e6c656e6774682626746869732e23742e736869667428292c746869732e23742e70757368286529293b666f72286c657420653d303b653c746869732e626f6172642e73697a652e63656c6c4e756d626572583b652b2b29666f72286c657420743d303b743c746869732e626f6172642e73697a652e63656c6c4e756d626572593b742b2b29746869732e73657443656c6c4e65696768626f72734279436f6f72647328652c74293b666f72286c657420653d303b653c746869732e626f6172642e73697a652e63656c6c4e756d626572583b652b2b29666f72286c657420743d303b743c746869732e626f6172642e73697a652e63656c6c4e756d626572593b742b2b29746869732e23655b655d5b745d2e6e65787428297d73657454696d656f7574282828293d3e7b72657175657374416e696d6174696f6e4672616d6528746869732e6c61756e6368297d292c43454c4c5f5350454544297d73657269616c697a65537461746528297b72657475726e20746869732e23652e6d61702828653d3e652e6d61702828653d3e652e616c6976653f2731273a27302729292e6a6f696e2827272929292e6a6f696e28277c27297d666972737447656e65726174696f6e28297b746869732e626f6172642e647261774261636b67726f756e6428293b666f72286c657420653d303b653c746869732e626f6172642e73697a652e63656c6c4e756d626572583b652b2b297b746869732e23655b655d3d5b5d3b666f72286c657420743d303b743c746869732e626f6172642e73697a652e63656c6c4e756d626572593b742b2b29746869732e23655b655d5b745d3d6e65772043656c6c28746869732e626f6172642e636f6e746578742c652c742c746869732e626f6172642e73697a652e63656c6c53697a65292c746869732e23655b655d5b745d2e616c6976653d302c746869732e23655b655d5b745d2e6472617728297d7d73657443656c6c4e65696768626f72734279436f6f72647328652c74297b6c657420733d303b636f6e737420693d5b5b652c742b315d2c5b652c742d315d2c5b652b312c745d2c5b652d312c745d2c5b652b312c742b315d2c5b652d312c742d315d2c5b652b312c742d315d2c5b652d312c742b315d5d3b666f7228636f6e73742065206f662069297b6c65745b742c695d3d653b743c30262628743d746869732e626f6172642e73697a652e63656c6c4e756d626572582d31292c743e3d746869732e626f6172642e73697a652e63656c6c4e756d62657258262628743d30292c693c30262628693d746869732e626f6172642e73697a652e63656c6c4e756d626572592d31292c693e3d746869732e626f6172642e73697a652e63656c6c4e756d62657259262628693d30292c746869732e23655b745d3f2e5b695d3f2e616c6976652626732b2b7d746869732e23655b655d5b745d2e6e65696768626f72733d737d6472617746726f6d466c617441727261792865297b666f72286c657420743d303b743c343039363b742b2b297b6c657420733d4d6174682e666c6f6f7228742f3634292b43454c4c5f50414444494e472c693d742536342b43454c4c5f50414444494e473b313d3d3d655b745d262628746869732e23655b695d5b735d2e616c6976653d2130292c746869732e23655b695d5b735d2e6472617728297d7d73746f7028297b6c6f6f70436f756e7465723d302c43454c4c5f53504545443d3130302c746869732e23733d21303b666f72286c657420653d303b653c746869732e626f6172642e73697a652e63656c6c4e756d626572583b652b2b29666f72286c657420743d303b743c746869732e626f6172642e73697a652e63656c6c4e756d626572593b742b2b29746869732e23655b655d5b745d2e616c6976653d303b67616d652e6472617746726f6d466c6174417272617928666c61744172726179297d696e697442726f777365724576656e747328297b6164644576656e744c697374656e657228276b65797072657373272c28287b636f64653a657d293d3e7b7377697463682865297b63617365275370616365273a63617365274b657950273a746869732e23733d21746869732e23733b627265616b3b63617365274b65794e273a746869732e73746f7028293b627265616b3b63617365274b657957273a43454c4c5f53504545443e323026262843454c4c5f53504545442d3d3230293b627265616b3b63617365274b657953273a43454c4c5f53504545443c31653326262843454c4c5f53504545442b3d3230293b627265616b3b63617365274b657945273a77696e646f772e6c6f636174696f6e2e687265663d63616e7661732e746f4461746155524c2827696d6167652f706e6727292e7265706c6163652827696d6167652f706e67272c27696d6167652f6f637465742d73747265616d27297d7d29292c746869732e63616e7661732e6164644576656e744c697374656e65722827636c69636b272c2828293d3e7b746869732e23733d21746869732e23737d29297d7d636c61737320426f6172647b23693d424f4152445f57494454482b322a424f4152445f50414444494e473b236c3d424f4152445f4845494748542b322a424f4152445f50414444494e473b23613d44454641554c545f43454c4c5f53495a453b23723d2723303030273b636f6e7374727563746f722865297b746869732e63616e7661733d652c746869732e6374783d746869732e63616e7661732e676574436f6e746578742827326427292c746869732e63616e7661732e77696474683d746869732e23692c746869732e63616e7661732e6865696768743d746869732e236c7d647261774261636b67726f756e6428297b746869732e6374782e66696c6c5374796c653d746869732e23722c746869732e6374782e66696c6c5265637428302c302c746869732e23692c746869732e236c297d6765742073697a6528297b72657475726e7b63656c6c4e756d626572583a4d6174682e6365696c28746869732e23692f746869732e2361292c63656c6c4e756d626572593a4d6174682e6365696c28746869732e236c2f746869732e2361292c63656c6c53697a653a746869732e23617d7d67657420636f6e7465787428297b72657475726e20746869732e6374787d7d636c6173732043656c6c7b23683d21303b236f3d303b23633d2723666666273b636f6e7374727563746f7228652c742c732c69297b746869732e6374783d652c746869732e783d742c746869732e793d732c746869732e63656c6c53697a653d697d6e65787428297b746869732e23687c7c33213d3d746869732e236f3f746869732e23683d746869732e2368262628323d3d3d746869732e236f7c7c333d3d3d746869732e236f293a746869732e23683d21302c746869732e6472617728297d6472617728297b746869732e2368262628746869732e6374782e66696c6c5374796c653d746869732e23632c746869732e6374782e66696c6c52656374282e2e2e746869732e706f736974696f6e29297d67657420706f736974696f6e28297b72657475726e5b746869732e782a746869732e63656c6c53697a652c746869732e792a746869732e63656c6c53697a652c746869732e63656c6c53697a652c746869732e63656c6c53697a655d7d73657420616c6976652865297b746869732e23683d657d67657420616c69766528297b72657475726e20746869732e23687d736574206e65696768626f72732865297b746869732e236f3d657d7d636f6e73742063616e7661733d646f63756d656e742e676574456c656d656e744279496428276727292c53495a455f464143544f523d342c424f4152445f57494454483d323034382c424f4152445f4845494748543d323034382c424f4152445f50414444494e473d3338343b6c6574206c6f6f70436f756e7465723d303b636f6e73742044454641554c545f43454c4c5f53495a453d33322c43454c4c5f50414444494e473d31323b6c65742043454c4c5f53504545443d3130303b636f6e73742067616d653d6e65772047616d652863616e766173293b67616d652e6c61756e636828293b636f6e7374207061747465726e3d2f3c703e2e3c5c2f703e2f672c6d6174636865733d666c6174537472696e672e6d61746368287061747465726e292c666c617441727261793d6d6174636865732e6d61702828653d3e652e696e636c7564657328272327293f313a3029293b67616d652e6472617746726f6d466c6174417272617928666c61744172726179293ba264697066735822122049d62047000f98f96861bf057806b8fed8d9a9ec70c09f6126945ea566f616fc64736f6c63430008190033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.