ERC-721
Overview
Max Total Supply
485 MESSAGE
Holders
474
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MESSAGELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Message
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "openzeppelin-solidity/contracts/utils/Strings.sol"; import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; import "./DrawSvgOps.sol"; /** /////////////////////////////////////// /////////////////////////////////////// ///,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,// ///..................................// /// // /// // /// //usr: hello world // /// // /// // /// // /// // /////////////////////////////////////// ///,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,// ///..................................// /// // /// // /// //pub: hello world // /// // /// // /// // /// // ///////(O)///////////////////////////// /////////////////////////////////////// I hope you all have fun. Be nice. MESSAGE 2021 Sterling Crispin https://www.sterlingcrispin.com/message.html **/ contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /// [MIT License] /// @title ERC721Tradable /// @notice Edited ERC721Tradable.sol from OpenSea without mintTo and other garbo IDC about abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable { using SafeMath for uint256; address proxyRegistryAddress; uint256 private _currentTokenId = 0; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; _initializeEIP712(_name); } // OpenSea friendly func function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } } /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; uint256 encodedLen = 4 * ((len + 2) / 3); bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } } /// ~~~~~~~~~~~~~ /// [MIT License] /// @title Message /// @notice An experiment in communication. /// @author Sterling Crispin <[email protected]> contract Message is ERC721Tradable { using Strings for string; uint256 constant MAXTOKENS = 482;// 512 total tokens uint256 OWNERTOKENS = 30; bool internal mintingEnabled = false; string internal constant spanA = '<tspan x="40" dy="25">'; string internal constant spanZ = '</tspan>'; string internal constant svgStart = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 400 400" width="800" height="800"><defs><linearGradient id="grad" x1="0" x2="0" y1="0" y2="1"><stop offset="0%" stop-color="dimgrey" /><stop offset="10%" stop-color="black" /></linearGradient><radialGradient id="grad2" cx="0.5" cy="0.9" r="1.2" fx="0.5" fy="0.9" spreadMethod="repeat"><stop offset="0%" stop-color="red"/><stop offset="100%" stop-color="blue"/></radialGradient></defs><style>.base { fill:'; string internal constant svgO1 = 'font-family: monospace; font-size: 15px; }</style><rect y="8" width="100%" height="100%" fill="url(#grad'; string internal constant svgB1 = '<rect y="50%" width="100%" height="100%" fill="url(#grad'; string internal constant svgB2 = ')" />'; string internal constant svgO3 = '<text x="20" y="60" class="base">//usr: '; string internal constant svgP2 = '<text x="20" y="250" class="base">//pub: '; string internal constant svgEnd = '<rect width="100%" height="100%" fill="none" stroke="dimgrey" stroke-width="20"/><circle cx="20" cy="395" r="3" fill="limegreen"/></svg>'; string internal constant errBad = "Writing disabled due to Something Bad"; string internal constant errPub = "Public Message is not enabled"; string internal constant errOwn = "You are not the owner"; string internal constant upgradeMetaEnd = '"},'; string internal constant upgradeAvailMeta = '{"trait_type": "Upgrades Available","value": "'; string internal constant upgradeUsedMeta = '{"trait_type": "Upgrades Used","value": "'; string internal constant upgradeWigMeta = '{"trait_type": "Wiggle","value": "'; string internal constant ugSphereMeta = '{"trait_type": "Spheres","value": "'; string internal constant ugGradMeta = '{"trait_type": "Sunrise","value": "'; string internal constant rarityMeta = '{"trait_type": "Vibe","value":'; uint256 internal constant size = 400; struct MsgData{ address owner; // 0 = Owner Only, 1 = Public Enabled , 2 = disabled due to lawsuit or Something Bad uint256 writeState; uint256 publicLineCount; string[5] publicMessage; uint256 ownerLineCount; string[5] ownerMessage; // green = 0, cool = 1, rare = 2, coolRare = 3, neat = 4 uint256 rareType; // wiggle 0, spheres 1, grad 2, available = 3, used = 4 string[5] upgradeMeta; // svg code string upgrade; // wiggle 0, spheres 1, grad 2 uint256[3] upgradeUsed; uint256 upgradeAvailable; } mapping(uint256 => MsgData) public allMessage; constructor(address _proxyRegistryAddress) ERC721Tradable("Message", "MESSAGE", _proxyRegistryAddress) {} function readUpgradeMetadata(uint256 tokenId) public view returns(string[5] memory){ return allMessage[tokenId].upgradeMeta; } function readWriteState(uint256 tokenId) public view returns (uint256){ return allMessage[tokenId].writeState; } function readRarityType(uint256 tokenId) public view returns (uint256){ return allMessage[tokenId].rareType; } function readPublicMessage(uint256 tokenId) public view returns (string[5] memory){ return allMessage[tokenId].publicMessage; } function readPublicLineCount(uint256 tokenId) public view returns (uint256){ return allMessage[tokenId].publicLineCount; } function readOwnerMessage(uint256 tokenId) public view returns (string[5] memory){ return allMessage[tokenId].ownerMessage; } function readOwnerLineCount(uint256 tokenId) public view returns (uint256){ return allMessage[tokenId].ownerLineCount; } function checkOwner(uint256 tokenId) private view{ require(allMessage[tokenId].writeState != 2, errBad); require(allMessage[tokenId].owner == _msgSender(), errOwn); } function clearOwnerMessage(uint256 tokenId) private { allMessage[tokenId].ownerMessage = ["","","","",""]; } function ownerWriteSingleLine(uint256 tokenId, string memory messageMaxCharacterPerLineAbout30) public { checkOwner(tokenId); clearOwnerMessage(tokenId); allMessage[tokenId].ownerMessage[0] = string(abi.encodePacked(messageMaxCharacterPerLineAbout30 )); allMessage[tokenId].ownerLineCount = 1; } function ownerWriteTwoLines(uint256 tokenId, string[2] memory messageMaxCharacterPerLineAbout30) public { checkOwner(tokenId); clearOwnerMessage(tokenId); allMessage[tokenId].ownerMessage[0] = string(abi.encodePacked(messageMaxCharacterPerLineAbout30[0])); allMessage[tokenId].ownerMessage[1] = string(abi.encodePacked(spanA,messageMaxCharacterPerLineAbout30[1],spanZ)); allMessage[tokenId].ownerLineCount = 2; } function ownerWriteMultiLines(uint256 tokenId, string[5] memory messageMaxCharacterPerLineAbout30) public { checkOwner(tokenId); allMessage[tokenId].ownerMessage[0] = string(abi.encodePacked(messageMaxCharacterPerLineAbout30[0])); allMessage[tokenId].ownerMessage[1] = string(abi.encodePacked(spanA,messageMaxCharacterPerLineAbout30[1],spanZ)); allMessage[tokenId].ownerMessage[2] = string(abi.encodePacked(spanA,messageMaxCharacterPerLineAbout30[2],spanZ)); allMessage[tokenId].ownerMessage[3] = string(abi.encodePacked(spanA,messageMaxCharacterPerLineAbout30[3],spanZ)); allMessage[tokenId].ownerMessage[4] = string(abi.encodePacked(spanA,messageMaxCharacterPerLineAbout30[4],spanZ)); allMessage[tokenId].ownerLineCount = 5; } function ownerWriteDrawing(uint256 tokenId, string memory svgCommand) public { checkOwner(tokenId); clearOwnerMessage(tokenId); allMessage[tokenId].ownerMessage[0] = string(abi.encodePacked('</text>',svgCommand,'<text>')); allMessage[tokenId].ownerLineCount = 1; } function ownerTogglePublicWrite(uint256 tokenId, bool toggle) public { checkOwner(tokenId); allMessage[tokenId].writeState = toggle ? 1 : 0; } function checkPublic(uint256 tokenId) private view { require(allMessage[tokenId].writeState == 1, errPub); } function clearPublicMessage(uint256 tokenId) private { allMessage[tokenId].publicMessage = ["","","","",""]; } function publicWriteSingleLine(uint256 tokenId, string memory messageMaxCharacterPerLineAbout30) public { checkPublic(tokenId); clearPublicMessage(tokenId); allMessage[tokenId].publicMessage[0] = string(abi.encodePacked(messageMaxCharacterPerLineAbout30 )); allMessage[tokenId].publicLineCount = 1; } function publicWriteTwoLines(uint256 tokenId, string[2] memory messageMaxCharacterPerLineAbout30) public { checkPublic(tokenId); clearPublicMessage(tokenId); allMessage[tokenId].publicMessage[0] = string(abi.encodePacked(messageMaxCharacterPerLineAbout30[0])); allMessage[tokenId].publicMessage[1] = string(abi.encodePacked(spanA,messageMaxCharacterPerLineAbout30[1],spanZ)); allMessage[tokenId].publicLineCount = 2; } function publicWriteMultiLine(uint256 tokenId, string[5] memory messageMaxCharacterPerLineAbout30) public { checkPublic(tokenId); allMessage[tokenId].publicMessage[0] = string(abi.encodePacked(messageMaxCharacterPerLineAbout30[0])); allMessage[tokenId].publicMessage[1] = string(abi.encodePacked(spanA,messageMaxCharacterPerLineAbout30[1],spanZ)); allMessage[tokenId].publicMessage[2] = string(abi.encodePacked(spanA,messageMaxCharacterPerLineAbout30[2],spanZ)); allMessage[tokenId].publicMessage[3] = string(abi.encodePacked(spanA,messageMaxCharacterPerLineAbout30[3],spanZ)); allMessage[tokenId].publicMessage[4] = string(abi.encodePacked(spanA,messageMaxCharacterPerLineAbout30[4],spanZ)); allMessage[tokenId].publicLineCount = 5; } function publicWriteDrawing(uint256 tokenId, string memory svgCommand) public { checkPublic(tokenId); clearPublicMessage(tokenId); allMessage[tokenId].publicMessage[0] = string(abi.encodePacked('</text>',svgCommand,'<text>')); allMessage[tokenId].publicLineCount = 1; } // lucky you function mint() public { require(mintingEnabled,"Public minting not currently enabled"); require(balanceOf(_msgSender()) < 1, "Limit is 1 per wallet"); require(totalSupply() < MAXTOKENS, "Max tokens have already been minted."); _privateMint(_msgSender()); } // lucky me function contractOwnerMint(address newOwner) public onlyOwner { require(OWNERTOKENS > 0, "Maxed"); OWNERTOKENS -= 1; _privateMint(newOwner); } // I won't use this on influencers function contractOwnerToggleCool(uint256 tokenId, bool toggle) public onlyOwner { allMessage[tokenId].rareType = toggle ? 1 : 0; } // For emergency use only... function contractOwnerToggleNice(uint256 tokenId, bool toggle) public onlyOwner { allMessage[tokenId].writeState = toggle ? 0 : 2; if(toggle == false){ clearPublicMessage(tokenId); clearOwnerMessage(tokenId); allMessage[tokenId].writeState = 2; allMessage[tokenId].rareType = 0; allMessage[tokenId].ownerLineCount = 1; allMessage[tokenId].publicLineCount = 1; allMessage[tokenId].upgradeAvailable = 0; allMessage[tokenId].upgradeUsed =[0,0,0]; allMessage[tokenId].upgrade = ""; allMessage[tokenId].upgradeMeta = ["","","","",""]; } } function contractOwnerToggleMinting(bool toggle) public onlyOwner { mintingEnabled = toggle; } // BOT OPERATOR WARNING: if you attack this // I'll call contractOwnerToggleNice() removing rarity // and disabling your shit, so don't fuck around and find out. function rand(uint256 num) private view returns (uint256) { return uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp, num, totalSupply()))) % num; } function _privateMint(address newOwner) private { uint256 newToken = totalSupply()+1; // 25% if(rand(4) == 0){ allMessage[newToken].rareType = 4; } // 14% if(rand(7) == 0){ allMessage[newToken].rareType = 1; } // 8% if(rand(13) == 0){ allMessage[newToken].rareType = 2; } // 0.13% ish if(rand(1234) == 0){ allMessage[newToken].rareType = 3; } // 12% if(rand(8) == 0){ allMessage[newToken].upgradeAvailable = rand(4)+1; } else { allMessage[newToken].upgradeAvailable = 0; } allMessage[newToken].publicMessage = ["hello world","","","",""]; allMessage[newToken].ownerMessage = allMessage[newToken].publicMessage; allMessage[newToken].upgrade = ""; allMessage[newToken].publicLineCount = 1; allMessage[newToken].ownerLineCount = 1; allMessage[newToken].writeState = 1; allMessage[newToken].upgradeUsed = [0,0,0]; refreshAvailableUpgradeMetadata(newToken); _safeMint(newOwner,newToken); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); allMessage[tokenId].owner = to; } function isApprovedForAll(address _owner, address _operator) override public view returns (bool){ if (owner() == _owner && _owner == _operator) { return true; } ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if ( owner() == _owner && address(proxyRegistry.proxies(_owner)) == _operator ) { return true; } return false; } function ugType0(uint256 tokenId) private { allMessage[tokenId].upgrade = string(abi.encodePacked(allMessage[tokenId].upgrade, DrawSvgOps.Wiggle(size))); allMessage[tokenId].upgradeUsed[0] += 1; allMessage[tokenId].upgradeMeta[0] = string(abi.encodePacked(upgradeWigMeta, TypeConversions.uint2str(allMessage[tokenId].upgradeUsed[0]), upgradeMetaEnd)); } function ugType1(uint256 tokenId) private { allMessage[tokenId].upgrade = string(abi.encodePacked(allMessage[tokenId].upgrade, DrawSvgOps.Ellipse(size))); allMessage[tokenId].upgradeUsed[1] += 1; allMessage[tokenId].upgradeMeta[1] = string(abi.encodePacked(ugSphereMeta, TypeConversions.uint2str(allMessage[tokenId].upgradeUsed[1]), upgradeMetaEnd)); } function refreshAvailableUpgradeMetadata(uint256 tokenId) private{ allMessage[tokenId].upgradeMeta[3] = string(abi.encodePacked( upgradeAvailMeta, TypeConversions.uint2str(allMessage[tokenId].upgradeAvailable), upgradeMetaEnd)); } function upgradeMessage(uint256 tokenId) public{ require(allMessage[tokenId].owner == _msgSender(), errOwn); require(allMessage[tokenId].upgradeAvailable > 0, 'No remaining upgrades'); allMessage[tokenId].upgradeAvailable -= 1; uint256 ugType = rand(3); if(ugType == 0){ ugType0(tokenId); } else if (ugType == 1){ ugType1(tokenId); } else if (ugType == 2){ if(allMessage[tokenId].upgradeUsed[2] < 1){ allMessage[tokenId].upgradeUsed[2] += 1; allMessage[tokenId].upgradeMeta[2] = string(abi.encodePacked( ugGradMeta, TypeConversions.uint2str(allMessage[tokenId].upgradeUsed[2]), upgradeMetaEnd)); } else { ugType0(tokenId); } } refreshAvailableUpgradeMetadata(tokenId); allMessage[tokenId].upgradeMeta[4] = string(abi.encodePacked( upgradeUsedMeta, TypeConversions.uint2str(allMessage[tokenId].upgradeUsed[0] + allMessage[tokenId].upgradeUsed[1] + allMessage[tokenId].upgradeUsed[2]), upgradeMetaEnd)); } function tokenURI(uint256 tokenId) override public view returns (string memory) { MsgData memory msgCopy = allMessage[tokenId]; string memory attr = string(abi.encodePacked('"attributes": [', msgCopy.upgradeMeta[0],msgCopy.upgradeMeta[1],msgCopy.upgradeMeta[2],msgCopy.upgradeMeta[3],msgCopy.upgradeMeta[4])); string memory fontColor = 'limegreen;'; if(msgCopy.rareType == 4){ fontColor = 'yellow;'; attr = string(abi.encodePacked(attr,rarityMeta, '"I just think they\'re neat"}')); } else if(msgCopy.rareType == 1){ fontColor = 'cornflowerblue;'; attr = string(abi.encodePacked(attr,rarityMeta,'"Oh, wow. Cool."}')); } else if(msgCopy.rareType == 2){ fontColor = 'red;'; attr = string(abi.encodePacked(attr,rarityMeta,'"Looks Rare"}')); } else if(msgCopy.rareType == 3){ fontColor = 'red;font-style: oblique;font-weight: 900;letter-spacing: 3px;'; attr = string(abi.encodePacked(attr,rarityMeta,'"Looks Rare and Cool"}')); } else { attr = string(abi.encodePacked(attr,rarityMeta,'"Green"}')); } string memory grad = msgCopy.upgradeUsed[2] == 0 ? "" : "2"; string memory box2 = ''; if(msgCopy.writeState==1){ box2 = string(abi.encodePacked(svgB1,grad,svgB2)); } string memory output = string(abi.encodePacked(svgStart,fontColor,svgO1,grad,svgB2,box2,svgO3)); output = string(abi.encodePacked(output, msgCopy.ownerMessage[0],msgCopy.ownerMessage[1],msgCopy.ownerMessage[2], msgCopy.ownerMessage[3],msgCopy.ownerMessage[4])); if(msgCopy.writeState==1){ output = string(abi.encodePacked(output, '</text>',svgP2, msgCopy.publicMessage[0],msgCopy.publicMessage[1],msgCopy.publicMessage[2])); output = string(abi.encodePacked(output, msgCopy.publicMessage[3],msgCopy.publicMessage[4])); } output = string(abi.encodePacked(output,'</text>', msgCopy.upgrade, svgEnd)); string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "Message #', Strings.toString(tokenId), '", "description": "Message is an experiment in communication. Write via contract, refresh metadata. Be nice. https://sterlingcrispin.com/message.html",', attr ,'], "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}')))); output = string(abi.encodePacked('data:application/json;base64,', json)); return output; } }
// SPDX-License-Identifier: Mixed... pragma solidity ^0.8.0; library TypeConversions { // borrowed from https://github.com/provable-things/ethereum-api/issues/102 function uint2str(uint256 _i) internal pure returns (string memory str){ if (_i == 0){ return "0"; } uint256 j = _i; uint256 length; while (j != 0){ length++; j /= 10; } bytes memory bstr = new bytes(length); uint256 k = length; j = _i; while (j != 0){ bstr[--k] = bytes1(uint8(48 + j % 10)); j /= 10; } str = string(bstr); } } /// Copyright (c) Sterling Crispin /// All rights reserved. /// @title DrawSvgOps /// @notice Provides some drawing functions used in MESSAGE /// @author Sterling Crispin <[email protected]> library DrawSvgOps { string internal constant elli1 = '<ellipse cx="'; string internal constant elli2 = '" cy="'; string internal constant elli3 = '" rx="'; string internal constant elli4 = '" ry="'; string internal constant elli5 = '" stroke="mediumpurple" stroke-dasharray="'; string internal constant upgradeShapeEnd = '" fill-opacity="0"/>'; string internal constant strBlank = ' '; function rand(uint num) internal view returns (uint256) { return uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp, num))) % num; } function Ellipse(uint256 size) external view returns (string memory){ string memory xLoc = TypeConversions.uint2str(rand(size-1)); string memory yLoc = TypeConversions.uint2str(rand(size-2)); string memory output = string(abi.encodePacked( elli1,xLoc, elli2,yLoc, elli3,TypeConversions.uint2str(rand(size-3)), elli4,TypeConversions.uint2str(rand(size-3)))); output = string(abi.encodePacked( output, elli5,TypeConversions.uint2str(rand(7)+1),upgradeShapeEnd, elli1,xLoc, elli2,yLoc )); output = string(abi.encodePacked( output,elli3, TypeConversions.uint2str(rand(size-4)), elli4,TypeConversions.uint2str(rand(size-5)), elli5,TypeConversions.uint2str(rand(6)+1),upgradeShapeEnd )); output = string(abi.encodePacked( output, elli1,xLoc, elli2,yLoc, elli3,TypeConversions.uint2str(rand(size-5)), elli4)); output = string(abi.encodePacked( output,TypeConversions.uint2str(rand(size-6)), elli5,TypeConversions.uint2str(rand(4)+1),upgradeShapeEnd )); return output; } function Wiggle(uint256 size) external view returns (string memory){ string memory output = string(abi.encodePacked( '<path d="M ', TypeConversions.uint2str(rand(size-1)), strBlank, TypeConversions.uint2str(rand(size-2)), strBlank, 'Q ', TypeConversions.uint2str(rand(size-3)), strBlank)); output = string(abi.encodePacked(output, TypeConversions.uint2str(rand(size-4)), ', ', TypeConversions.uint2str(rand(size-5)), strBlank, TypeConversions.uint2str(rand(size-6)), strBlank, 'T ', TypeConversions.uint2str(rand(size-7)), strBlank, TypeConversions.uint2str(rand(size-8)), '"' )); output = string(abi.encodePacked(output, ' stroke="red" stroke-dasharray="',TypeConversions.uint2str(rand(7)+1), upgradeShapeEnd )); return output; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20 }, "evmVersion": "london", "libraries": { "/Users/sterlingcrispin/code/ConceptualLandscapesCONCEPT/Messages/contracts/DrawSvgOps.sol": { "DrawSvgOps": "0x8fB38aC11A7d57337B99D19a155D939bF0896599" } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allMessage","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"writeState","type":"uint256"},{"internalType":"uint256","name":"publicLineCount","type":"uint256"},{"internalType":"uint256","name":"ownerLineCount","type":"uint256"},{"internalType":"uint256","name":"rareType","type":"uint256"},{"internalType":"string","name":"upgrade","type":"string"},{"internalType":"uint256","name":"upgradeAvailable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"contractOwnerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"toggle","type":"bool"}],"name":"contractOwnerToggleCool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"toggle","type":"bool"}],"name":"contractOwnerToggleMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"toggle","type":"bool"}],"name":"contractOwnerToggleNice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"toggle","type":"bool"}],"name":"ownerTogglePublicWrite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"svgCommand","type":"string"}],"name":"ownerWriteDrawing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string[5]","name":"messageMaxCharacterPerLineAbout30","type":"string[5]"}],"name":"ownerWriteMultiLines","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"messageMaxCharacterPerLineAbout30","type":"string"}],"name":"ownerWriteSingleLine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string[2]","name":"messageMaxCharacterPerLineAbout30","type":"string[2]"}],"name":"ownerWriteTwoLines","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"svgCommand","type":"string"}],"name":"publicWriteDrawing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string[5]","name":"messageMaxCharacterPerLineAbout30","type":"string[5]"}],"name":"publicWriteMultiLine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"messageMaxCharacterPerLineAbout30","type":"string"}],"name":"publicWriteSingleLine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string[2]","name":"messageMaxCharacterPerLineAbout30","type":"string[2]"}],"name":"publicWriteTwoLines","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"readOwnerLineCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"readOwnerMessage","outputs":[{"internalType":"string[5]","name":"","type":"string[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"readPublicLineCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"readPublicMessage","outputs":[{"internalType":"string[5]","name":"","type":"string[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"readRarityType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"readUpgradeMetadata","outputs":[{"internalType":"string[5]","name":"","type":"string[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"readWriteState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"upgradeMessage","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a805460ff199081169091556000600f55601e6010556011805490911690553480156200003157600080fd5b50604051620061ce380380620061ce83398101604081905262000054916200037f565b604051806040016040528060078152602001664d65737361676560c81b815250604051806040016040528060078152602001664d45535341474560c81b8152508282828160009080519060200190620000af929190620002d9565b508051620000c5906001906020840190620002d9565b5050506000620000da6200015860201b60201c565b600d80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600e80546001600160a01b0319166001600160a01b0383161790556200014e8362000174565b50505050620003ee565b60006200016f620001d860201b62002eb11760201c565b905090565b600a5460ff1615620001bd5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640160405180910390fd5b620001c88162000237565b50600a805460ff19166001179055565b6000333014156200023157600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620002349050565b50335b90565b6040518060800160405280604f81526020016200617f604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600b55565b828054620002e790620003b1565b90600052602060002090601f0160209004810192826200030b576000855562000356565b82601f106200032657805160ff191683800117855562000356565b8280016001018555821562000356579182015b828111156200035657825182559160200191906001019062000339565b506200036492915062000368565b5090565b5b8082111562000364576000815560010162000369565b6000602082840312156200039257600080fd5b81516001600160a01b0381168114620003aa57600080fd5b9392505050565b600181811c90821680620003c657607f821691505b60208210811415620003e857634e487b7160e01b600052602260045260246000fd5b50919050565b615d8180620003fe6000396000f3fe6080604052600436106102275760003560e01c80635f21b7171161012a5780635f21b717146105555780635f795567146105755780636352211e146105955780636842b554146105b557806370a08231146105d5578063715018a6146105f557806377bd4b6f1461060a5780638cd3b08b1461063a5780638da5cb5b1461066d57806395d89b4114610682578063a22cb46514610697578063b88d4fde146106b7578063c4aba96c146106d7578063c87b56dd146106f7578063c992808a14610717578063d3391bf814610737578063db38f26b14610757578063e54b153514610777578063e8c3b1b814610797578063e985e9c5146107b7578063f0e1bf16146107d7578063f2fde38b146107f7578063f30d9e8a14610817578063f49306191461083757600080fd5b806209fbf41461022c57806301db4c1a1461024e57806301ffc9a71461028457806302fcd557146102b457806306fdde03146102d4578063081812fc146102f6578063095ea7b3146103235780630c53c51c146103435780630f7e5970146103565780631249c58b1461038357806312790b9d1461039857806313c6e55f146103b857806318160ddd146103d857806320379ee5146103f757806323b872dd1461040c5780632d0335ab1461042c5780632d22c059146104625780632f745c59146104925780633408e470146104b257806342842e0e146104c557806347bd6e42146104e55780634cdf76f7146105055780634f6ccce714610535575b600080fd5b34801561023857600080fd5b5061024c61024736600461489b565b610867565b005b34801561025a57600080fd5b5061026e6102693660046148e1565b6108d8565b60405161027b9190614952565b60405180910390f35b34801561029057600080fd5b506102a461029f3660046149b5565b6109b3565b604051901515815260200161027b565b3480156102c057600080fd5b5061024c6102cf3660046149d2565b6109de565b3480156102e057600080fd5b506102e9610ad7565b60405161027b9190614a76565b34801561030257600080fd5b506103166103113660046148e1565b610b69565b60405161027b9190614a89565b34801561032f57600080fd5b5061024c61033e366004614ab2565b610bf6565b6102e9610351366004614ade565b610d19565b34801561036257600080fd5b506102e9604051806040016040528060018152602001603160f81b81525081565b34801561038f57600080fd5b5061024c610f02565b3480156103a457600080fd5b5061026e6103b33660046148e1565b611029565b3480156103c457600080fd5b5061024c6103d336600461489b565b6110f9565b3480156103e457600080fd5b506008545b60405190815260200161027b565b34801561040357600080fd5b50600b546103e9565b34801561041857600080fd5b5061024c610427366004614b5b565b61116a565b34801561043857600080fd5b506103e9610447366004614b9c565b6001600160a01b03166000908152600c602052604090205490565b34801561046e57600080fd5b506103e961047d3660046148e1565b6000908152601260205260409020600e015490565b34801561049e57600080fd5b506103e96104ad366004614ab2565b6111a2565b3480156104be57600080fd5b50466103e9565b3480156104d157600080fd5b5061024c6104e0366004614b5b565b611238565b3480156104f157600080fd5b5061026e6105003660046148e1565b611253565b34801561051157600080fd5b506103e96105203660046148e1565b60009081526012602052604090206008015490565b34801561054157600080fd5b506103e96105503660046148e1565b611323565b34801561056157600080fd5b5061024c610570366004614b9c565b6113b6565b34801561058157600080fd5b5061024c610590366004614bb9565b611454565b3480156105a157600080fd5b506103166105b03660046148e1565b6116db565b3480156105c157600080fd5b5061024c6105d0366004614c61565b611752565b3480156105e157600080fd5b506103e96105f0366004614b9c565b6117a4565b34801561060157600080fd5b5061024c61182b565b34801561061657600080fd5b506103e96106253660046148e1565b60009081526012602052604090206001015490565b34801561064657600080fd5b5061065a6106553660046148e1565b6118b4565b60405161027b9796959493929190614c7c565b34801561067957600080fd5b50610316611985565b34801561068e57600080fd5b506102e9611994565b3480156106a357600080fd5b5061024c6106b2366004614cc9565b6119a3565b3480156106c357600080fd5b5061024c6106d2366004614cfe565b611aa1565b3480156106e357600080fd5b5061024c6106f2366004614d69565b611ae0565b34801561070357600080fd5b506102e96107123660046148e1565b611b19565b34801561072357600080fd5b5061024c61073236600461489b565b612408565b34801561074357600080fd5b5061024c6107523660046148e1565b61242b565b34801561076357600080fd5b5061024c610772366004614d69565b612701565b34801561078357600080fd5b5061024c61079236600461489b565b612770565b3480156107a357600080fd5b5061024c6107b2366004614bb9565b612793565b3480156107c357600080fd5b506102a46107d2366004614d8c565b612a1a565b3480156107e357600080fd5b5061024c6107f23660046149d2565b612b36565b34801561080357600080fd5b5061024c610812366004614b9c565b612c2d565b34801561082357600080fd5b5061024c610832366004614d69565b612d2d565b34801561084357600080fd5b506103e96108523660046148e1565b60009081526012602052604090206002015490565b61087082612f0e565b61087982612f7c565b8060405160200161088a9190614de1565b60408051601f19818403018152918152600084815260126020529081206003010190805190602001906108be929190614534565b505060009081526012602052604090206001600290910155565b6108e06145b8565b600082815260126020526040808220815160a081019092529091600390910190600590835b828210156109a857838201805461091b90614e36565b80601f016020809104026020016040519081016040528092919081815260200182805461094790614e36565b80156109945780601f1061096957610100808354040283529160200191610994565b820191906000526020600020905b81548152906001019060200180831161097757829003601f168201915b505050505081526020019060010190610905565b505050509050919050565b60006001600160e01b0319821663780e9d6360e01b14806109d857506109d882612fec565b92915050565b6109e78261303c565b6109f082613103565b8051604051610a029190602001614e71565b60408051601f1981840301815291815260008481526012602052908120600901019080519060200190610a36929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b818401529351610a8994919201614e8d565b60408051601f1981840301815291815260008481526012602052206009016001019080519060200190610abd929190614534565b505060009081526012602052604090206002600890910155565b606060008054610ae690614e36565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1290614e36565b8015610b5f5780601f10610b3457610100808354040283529160200191610b5f565b820191906000526020600020905b815481529060010190602001808311610b4257829003601f168201915b5050505050905090565b6000610b7482613173565b610bda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c01826116db565b9050806001600160a01b0316836001600160a01b03161415610c6f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bd1565b806001600160a01b0316610c81613190565b6001600160a01b03161480610c9d5750610c9d816107d2613190565b610d0a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610bd1565b610d14838361319f565b505050565b60408051606081810183526001600160a01b0388166000818152600c602090815290859020548452830152918101869052610d57878287878761320d565b610dad5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610bd1565b6001600160a01b0387166000908152600c6020526040902054610dd19060016132fd565b6001600160a01b0388166000908152600c60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610e2190899033908a90614ed0565b60405180910390a1600080306001600160a01b0316888a604051602001610e49929190614f05565b60408051601f1981840301815290829052610e6391614e71565b6000604051808303816000865af19150503d8060008114610ea0576040519150601f19603f3d011682016040523d82523d6000602084013e610ea5565b606091505b509150915081610ef65760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b6044820152606401610bd1565b98975050505050505050565b60115460ff16610f605760405162461bcd60e51b8152602060048201526024808201527f5075626c6963206d696e74696e67206e6f742063757272656e746c7920656e61604482015263189b195960e21b6064820152608401610bd1565b6001610f6d6105f0613190565b10610fb25760405162461bcd60e51b8152602060048201526015602482015274131a5b5a5d081a5cc80c481c195c881dd85b1b195d605a1b6044820152606401610bd1565b6101e2610fbe60085490565b106110175760405162461bcd60e51b8152602060048201526024808201527f4d617820746f6b656e73206861766520616c7265616479206265656e206d696e6044820152633a32b21760e11b6064820152608401610bd1565b611027611022613190565b613310565b565b6110316145b8565b600082815260126020526040808220815160a081019092529091600990910190600590835b828210156109a857838201805461106c90614e36565b80601f016020809104026020016040519081016040528092919081815260200182805461109890614e36565b80156110e55780601f106110ba576101008083540402835291602001916110e5565b820191906000526020600020905b8154815290600101906020018083116110c857829003601f168201915b505050505081526020019060010190611056565b6111028261303c565b61110b82613103565b8060405160200161111c9190614de1565b60408051601f1981840301815291815260008481526012602052908120600901019080519060200190611150929190614534565b505060009081526012602052604090206001600890910155565b61117b611175613190565b82613548565b6111975760405162461bcd60e51b8152600401610bd190614f37565b610d14838383613612565b60006111ad836117a4565b821061120f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bd1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610d1483838360405180602001604052806000815250611aa1565b61125b6145b8565b600082815260126020526040808220815160a081019092529091600f90910190600590835b828210156109a857838201805461129690614e36565b80601f01602080910402602001604051908101604052809291908181526020018280546112c290614e36565b801561130f5780601f106112e45761010080835404028352916020019161130f565b820191906000526020600020905b8154815290600101906020018083116112f257829003601f168201915b505050505081526020019060010190611280565b600061132e60085490565b82106113915760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bd1565b600882815481106113a4576113a4614e20565b90600052602060002001549050919050565b6113be613190565b6001600160a01b03166113cf611985565b6001600160a01b0316146113f55760405162461bcd60e51b8152600401610bd190614f88565b60006010541161142f5760405162461bcd60e51b815260206004820152600560248201526413585e195960da1b6044820152606401610bd1565b6001601060008282546114429190614fd3565b90915550611451905081613310565b50565b61145d8261303c565b805160405161146f9190602001614e71565b60408051601f19818403018152918152600084815260126020529081206009010190805190602001906114a3929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b8184015293516114f694919201614e8d565b60408051601f198184030181529181526000848152601260205220600901600101908051906020019061152a929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838301518351808501855260088152671e17ba39b830b71f60c11b81840152935161157d94919201614e8d565b60408051601f19818403018152918152600084815260126020522060090160020190805190602001906115b1929190614534565b506040805180820182526016815260008051602061580183398151915260208083019190915260608401518351808501855260088152671e17ba39b830b71f60c11b81840152935161160594919201614e8d565b60408051601f1981840301815291815260008481526012602052206009016003019080519060200190611639929190614534565b506040805180820182526016815260008051602061580183398151915260208083019190915260808401518351808501855260088152671e17ba39b830b71f60c11b81840152935161168d94919201614e8d565b60408051601f19818403018152918152600084815260126020522060090160040190805190602001906116c1929190614534565b505060009081526012602052604090206005600890910155565b6000818152600260205260408120546001600160a01b0316806109d85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bd1565b61175a613190565b6001600160a01b031661176b611985565b6001600160a01b0316146117915760405162461bcd60e51b8152600401610bd190614f88565b6011805460ff1916911515919091179055565b60006001600160a01b03821661180f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bd1565b506001600160a01b031660009081526003602052604090205490565b611833613190565b6001600160a01b0316611844611985565b6001600160a01b03161461186a5760405162461bcd60e51b8152600401610bd190614f88565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b60126020526000908152604090208054600182015460028301546008840154600e8501546014860180546001600160a01b03909616969495939492939192916118fc90614e36565b80601f016020809104026020016040519081016040528092919081815260200182805461192890614e36565b80156119755780601f1061194a57610100808354040283529160200191611975565b820191906000526020600020905b81548152906001019060200180831161195857829003601f168201915b5050505050908060180154905087565b600d546001600160a01b031690565b606060018054610ae690614e36565b6119ab613190565b6001600160a01b0316826001600160a01b03161415611a085760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610bd1565b8060056000611a15613190565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611a59613190565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a95911515815260200190565b60405180910390a35050565b611ab2611aac613190565b83613548565b611ace5760405162461bcd60e51b8152600401610bd190614f37565b611ada848484846137bd565b50505050565b611ae98261303c565b80611af5576000611af8565b60015b60ff1660126000848152602001908152602001600020600101819055505050565b600081815260126020908152604080832081516101608101835281546001600160a01b03168152600182015493810193909352600281015483830152815160a0810190925260609392918285019060038301600586835b82821015611c13578382018054611b8690614e36565b80601f0160208091040260200160405190810160405280929190818152602001828054611bb290614e36565b8015611bff5780601f10611bd457610100808354040283529160200191611bff565b820191906000526020600020905b815481529060010190602001808311611be257829003601f168201915b505050505081526020019060010190611b70565b50505090825250600882015460208201526040805160a0810182529101906009830160056000835b82821015611cde578382018054611c5190614e36565b80601f0160208091040260200160405190810160405280929190818152602001828054611c7d90614e36565b8015611cca5780601f10611c9f57610100808354040283529160200191611cca565b820191906000526020600020905b815481529060010190602001808311611cad57829003601f168201915b505050505081526020019060010190611c3b565b50505090825250600e82015460208201526040805160a081018252910190600f830160056000835b82821015611da9578382018054611d1c90614e36565b80601f0160208091040260200160405190810160405280929190818152602001828054611d4890614e36565b8015611d955780601f10611d6a57610100808354040283529160200191611d95565b820191906000526020600020905b815481529060010190602001808311611d7857829003601f168201915b505050505081526020019060010190611d06565b505050508152602001601482018054611dc190614e36565b80601f0160208091040260200160405190810160405280929190818152602001828054611ded90614e36565b8015611e3a5780601f10611e0f57610100808354040283529160200191611e3a565b820191906000526020600020905b815481529060010190602001808311611e1d57829003601f168201915b505050918352505060408051606081019182905260209092019190601584019060039082845b815481526020019060010190808311611e605750505050508152602001601882015481525050905060008160e00151600060058110611ea157611ea1614e20565b6020908102919091015160e08401518083015160408083015160608401516080909401519151611ed8969394919391929101614fea565b60408051601f19818403018152828201909152600a8252696c696d65677265656e3b60b01b602083015260c084015190925060041415611f80576040518060400160405280600781526020016679656c6c6f773b60c81b8152509050816040518060400160405280601e8152602001600080516020615969833981519152815250604051602001611f6a929190615077565b60405160208183030381529060405291506120f5565b8260c0015160011415611fed576040518060400160405280600f81526020016e636f726e666c6f776572626c75653b60881b8152509050816040518060400160405280601e8152602001600080516020615969833981519152815250604051602001611f6a9291906150cd565b8260c001516002141561204f57604051806040016040528060048152602001637265643b60e01b8152509050816040518060400160405280601e8152602001600080516020615969833981519152815250604051602001611f6a929190615118565b8260c00151600314156120ad576040518060600160405280603d81526020016158b1603d91399050816040518060400160405280601e8152602001600080516020615969833981519152815250604051602001611f6a92919061515f565b816040518060400160405280601e81526020016000805160206159698339815191528152506040516020016120e39291906151af565b60405160208183030381529060405291505b610120830151604001516000901561212657604051806040016040528060018152602001601960f91b815250612137565b604051806020016040528060008152505b905060006040518060200160405280600081525090508460200151600114156121b6576040518060600160405280603881526020016158ee603891398260405180604001604052806005815260200164149110179f60d91b8152506040516020016121a493929190614e8d565b60405160208183030381529060405290505b60006040518061022001604052806101ee8152602001615a256101ee9139846040518060a0016040528060688152602001615849606891398560405180604001604052806005815260200164149110179f60d91b815250866040518060600160405280602881526020016158216028913960405160200161223d97969594939291906151f1565b6040516020818303038152906040529050808660a0015160006005811061226657612266614e20565b6020908102919091015160a0890151808301516040808301516060840151608090940151915161229e97969394919391929101615283565b60405160208183030381529060405290508560200151600114156123575780604051806060016040528060298152602001615989602991396060880151805160208083015160409384015193516122f9969594919201615302565b604051602081830303815290604052905080866060015160036005811061232257612322614e20565b602002015160608801516004602002015160405160200161234593929190614e8d565b60405160208183030381529060405290505b808661010001516040518060c0016040528060888152602001615c53608891396040516020016123899392919061537a565b604051602081830303815290604052905060006123d86123a88a6137f0565b876123b2856138ed565b6040516020016123c4939291906153d3565b6040516020818303038152906040526138ed565b9050806040516020016123eb9190615534565b60408051601f198184030181529190529998505050505050505050565b6124118261303c565b61241a82613103565b8060405160200161111c9190614e71565b612433613190565b60008281526012602090815260409182902054825180840190935260158352742cb7ba9030b932903737ba103a34329037bbb732b960591b9183019190915290916001600160a01b0391821691161461249f5760405162461bcd60e51b8152600401610bd19190614a76565b506000818152601260205260409020601801546124f65760405162461bcd60e51b81526020600482015260156024820152744e6f2072656d61696e696e6720757067726164657360581b6044820152606401610bd1565b6000818152601260205260408120601801805460019290612518908490614fd3565b909155506000905061252a6003613a52565b90508061253f5761253a82613aa3565b612643565b80600114156125515761253a82613c46565b8060021415612643576000828152601260205260409020601701546001111561263a576000828152601260205260408120601701805460019290612596908490615579565b909155505060408051606081019091526023808252615d04602083013960008381526012602052604090206125d29060150160025b0154613dd7565b60405180604001604052806003815260200162089f4b60ea1b81525060405160200161260093929190614e8d565b60408051601f198184030181529181526000848152601260205220600f016002019080519060200190612634929190614534565b50612643565b61264382613aa3565b61264c82613edf565b604051806060016040528060298152602001615cdb6029913960008381526012602052604090206017810154601682015460159092015461269f9261269091615579565b61269a9190615579565b613dd7565b60405180604001604052806003815260200162089f4b60ea1b8152506040516020016126cd93929190614e8d565b60408051601f198184030181529181526000848152601260205220600f016004019080519060200190610d14929190614534565b612709613190565b6001600160a01b031661271a611985565b6001600160a01b0316146127405760405162461bcd60e51b8152600401610bd190614f88565b8061274c57600061274f565b60015b60ff1660126000848152602001908152602001600020600e01819055505050565b61277982612f0e565b61278282612f7c565b8060405160200161088a9190614e71565b61279c82612f0e565b80516040516127ae9190602001614e71565b60408051601f19818403018152918152600084815260126020529081206003010190805190602001906127e2929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b81840152935161283594919201614e8d565b60408051601f1981840301815291815260008481526012602052206003016001019080519060200190612869929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838301518351808501855260088152671e17ba39b830b71f60c11b8184015293516128bc94919201614e8d565b60408051601f19818403018152918152600084815260126020522060030160020190805190602001906128f0929190614534565b506040805180820182526016815260008051602061580183398151915260208083019190915260608401518351808501855260088152671e17ba39b830b71f60c11b81840152935161294494919201614e8d565b60408051601f1981840301815291815260008481526012602052206003908101019080519060200190612978929190614534565b506040805180820182526016815260008051602061580183398151915260208083019190915260808401518351808501855260088152671e17ba39b830b71f60c11b8184015293516129cc94919201614e8d565b60408051601f1981840301815291815260008481526012602052206003016004019080519060200190612a00929190614534565b505060009081526012602052604090206005600290910155565b6000826001600160a01b0316612a2e611985565b6001600160a01b0316148015612a555750816001600160a01b0316836001600160a01b0316145b15612a62575060016109d8565b600e546001600160a01b03908116908416612a7b611985565b6001600160a01b0316148015612b1d5750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b8152600401612ac29190614a89565b60206040518083038186803b158015612ada57600080fd5b505afa158015612aee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b129190615591565b6001600160a01b0316145b15612b2c5760019150506109d8565b5060009392505050565b612b3f82612f0e565b612b4882612f7c565b8051604051612b5a9190602001614e71565b60408051601f1981840301815291815260008481526012602052908120600301019080519060200190612b8e929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b818401529351612be194919201614e8d565b60408051601f1981840301815291815260008481526012602052206003016001019080519060200190612c15929190614534565b50506000908152601260205260409020600290810155565b612c35613190565b6001600160a01b0316612c46611985565b6001600160a01b031614612c6c5760405162461bcd60e51b8152600401610bd190614f88565b6001600160a01b038116612cd15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bd1565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b612d35613190565b6001600160a01b0316612d46611985565b6001600160a01b031614612d6c5760405162461bcd60e51b8152600401610bd190614f88565b80612d78576002612d7b565b60005b600083815260126020526040902060ff9190911660019091015580612ead57612da382612f7c565b612dac82613103565b600082815260126020818152604080842060026001808301829055600e8301879055600883018190559082015560188101859055815160608101835285815280840186905291820185905293869052919052612e0d916015019060036145df565b50604080516020808201808452600080845286815260129092529290209051612e3c9260149092019190614534565b506040805160c081018252600060a0820181815282528251602081810185528282528084019190915283518082018552828152838501528351808201855282815260608401528351808201855282815260808401528582526012905291909120610d1491600f909101906005614612565b5050565b600033301415612f0857600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150612f0b9050565b50335b90565b60126000828152602001908152602001600020600101546001146040518060400160405280601d81526020017f5075626c6963204d657373616765206973206e6f7420656e61626c656400000081525090612ead5760405162461bcd60e51b8152600401610bd19190614a76565b6040805160c081018252600060a0820181815282528251602081810185528282528084019190915283518082018552828152838501528351808201855282815260608401528351808201855282815260808401528482526012905291909120612ead916003909101906005614612565b60006001600160e01b031982166380ac58cd60e01b148061301d57506001600160e01b03198216635b5e139f60e01b145b806109d857506301ffc9a760e01b6001600160e01b03198316146109d8565b601260008281526020019081526020016000206001015460021415604051806060016040528060258152602001615d27602591399061308e5760405162461bcd60e51b8152600401610bd19190614a76565b50613097613190565b60008281526012602090815260409182902054825180840190935260158352742cb7ba9030b932903737ba103a34329037bbb732b960591b9183019190915290916001600160a01b03918216911614612ead5760405162461bcd60e51b8152600401610bd19190614a76565b6040805160c081018252600060a0820181815282528251602081810185528282528084019190915283518082018552828152838501528351808201855282815260608401528351808201855282815260808401528482526012905291909120612ead916009909101906005614612565b6000908152600260205260409020546001600160a01b0316151590565b600061319a612eb1565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906131d4826116db565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166132735760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610bd1565b600161328661328187613f66565b613fe3565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156132d4573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006133098284615579565b9392505050565b600061331b60085490565b613326906001615579565b90506133326004613a52565b61334d5760008181526012602052604090206004600e909101555b6133576007613a52565b6133725760008181526012602052604090206001600e909101555b61337c600d613a52565b6133975760008181526012602052604090206002600e909101555b6133a26104d2613a52565b6133bd5760008181526012602052604090206003600e909101555b6133c76008613a52565b6133f7576133d56004613a52565b6133e0906001615579565b60008281526012602052604090206018015561340a565b6000818152601260205260408120601801555b6040805160e081018252600b60a082019081526a1a195b1b1bc81ddbdc9b1960aa1b60c0830152815281516020818101845260008083528184019290925283518082018552828152838501528351808201855282815260608401528351808201855282815260808401528482526012905291909120613490916003909101906005614612565b5060008181526012602052604090206134b2906009810190600301600561465e565b506040805160208082018084526000808452858152601290925292902090516134e19260149092019190614534565b5060008181526012602081815260408084206001600282018190556008820181905581810155815160608101835285815280840186905291820185905293859052919052613534916015019060036145df565b5061353e81613edf565b612ead8282614013565b600061355382613173565b6135b45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bd1565b60006135bf836116db565b9050806001600160a01b0316846001600160a01b031614806135fa5750836001600160a01b03166135ef84610b69565b6001600160a01b0316145b8061360a575061360a8185612a1a565b949350505050565b826001600160a01b0316613625826116db565b6001600160a01b03161461368d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bd1565b6001600160a01b0382166136ef5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bd1565b6136fa83838361402d565b61370560008261319f565b6001600160a01b038316600090815260036020526040812080546001929061372e908490614fd3565b90915550506001600160a01b038216600090815260036020526040812080546001929061375c908490615579565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6137c8848484613612565b6137d484848484614067565b611ada5760405162461bcd60e51b8152600401610bd1906155ae565b6060816138145750506040805180820190915260018152600360fc1b602082015290565b8160005b811561383e578061382881615600565b91506138379050600a83615631565b9150613818565b6000816001600160401b0381111561385857613858614786565b6040519080825280601f01601f191660200182016040528015613882576020820181803683370190505b5090505b841561360a57613897600183614fd3565b91506138a4600a86615645565b6138af906030615579565b60f81b8183815181106138c4576138c4614e20565b60200101906001600160f81b031916908160001a9053506138e6600a86615631565b9450613886565b80516060908061390d575050604080516020810190915260008152919050565b6000600361391c836002615579565b6139269190615631565b613931906004615659565b90506000613940826020615579565b6001600160401b0381111561395757613957614786565b6040519080825280601f01601f191660200182016040528015613981576020820181803683370190505b5090506000604051806060016040528060408152602001615c13604091399050600181016020830160005b86811015613a0d576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016139ac565b506003860660018114613a275760028114613a3857613a44565b613d3d60f01b600119830152613a44565b603d60f81b6000198301525b505050918152949350505050565b600081444284613a6160085490565b6040805160208101959095528401929092526060830152608082015260a0016040516020818303038152906040528051906020012060001c6109d89190615645565b60008181526012602052604090819020905163c092feef60e01b81526101906004820152601490910190738fb38ac11a7d57337b99d19a155d939bf08965999063c092feef9060240160006040518083038186803b158015613b0457600080fd5b505af4158015613b18573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b409190810190615678565b604051602001613b519291906156e5565b60408051601f198184030181529181526000838152601260209081529190208251613b859360149092019290910190614534565b506000818152601260205260408120601501805460019290613ba8908490615579565b909155505060408051606081019091526022808252615a0360208301396000828152601260205260408120613be2916015909101906125cb565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001613c1093929190614e8d565b60408051601f1981840301815291815260008381526012602052908120600f01905b019080519060200190612ead929190614534565b60008181526012602052604090819020905163732360a960e11b81526101906004820152601490910190738fb38ac11a7d57337b99d19a155d939bf08965999063e646c1529060240160006040518083038186803b158015613ca757600080fd5b505af4158015613cbb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613ce39190810190615678565b604051602001613cf49291906156e5565b60408051601f198184030181529181526000838152601260209081529190208251613d289360149092019290910190614534565b506000818152601260205260408120601601805460019290613d4b908490615579565b9091555050604080516060810190915260238082526159e060208301396000828152601260205260409020613d849060150160016125cb565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001613db293929190614e8d565b60408051601f198184030181529181526000838152601260205220600f016001613c32565b606081613dfb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613e255780613e0f81615600565b9150613e1e9050600a83615631565b9150613dff565b6000816001600160401b03811115613e3f57613e3f614786565b6040519080825280601f01601f191660200182016040528015613e69576020820181803683370190505b508593509050815b8315613ed657613e82600a85615645565b613e8d906030615579565b60f81b82613e9a83615783565b92508281518110613ead57613ead614e20565b60200101906001600160f81b031916908160001a905350613ecf600a85615631565b9350613e71565b50949350505050565b6040518060600160405280602e81526020016159b2602e9139600082815260126020526040902060180154613f1390613dd7565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001613f4193929190614e8d565b60408051601f198184030181529181526000838152601260205220600f016003613c32565b60006040518060800160405280604381526020016159266043913980516020918201208351848301516040808701518051908601209051613fc6950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000613fee600b5490565b60405161190160f01b6020820152602281019190915260428101839052606201613fc6565b612ead82826040518060200160405280600081525061417b565b6140388383836141ae565b600090815260126020526040902080546001600160a01b0319166001600160a01b039290921691909117905550565b60006001600160a01b0384163b1561417057836001600160a01b031663150b7a02614090613190565b8786866040518563ffffffff1660e01b81526004016140b2949392919061579a565b602060405180830381600087803b1580156140cc57600080fd5b505af19250505080156140fc575060408051601f3d908101601f191682019092526140f9918101906157cd565b60015b614156573d80801561412a576040519150601f19603f3d011682016040523d82523d6000602084013e61412f565b606091505b50805161414e5760405162461bcd60e51b8152600401610bd1906155ae565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061360a565b506001949350505050565b6141858383614266565b6141926000848484614067565b610d145760405162461bcd60e51b8152600401610bd1906155ae565b6001600160a01b0383166142095761420481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61422c565b816001600160a01b0316836001600160a01b03161461422c5761422c83826143a4565b6001600160a01b03821661424357610d1481614441565b826001600160a01b0316826001600160a01b031614610d1457610d1482826144f0565b6001600160a01b0382166142bc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bd1565b6142c581613173565b156143115760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610bd1565b61431d6000838361402d565b6001600160a01b0382166000908152600360205260408120805460019290614346908490615579565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016143b1846117a4565b6143bb9190614fd3565b60008381526007602052604090205490915080821461440e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061445390600190614fd3565b6000838152600960205260408120546008805493945090928490811061447b5761447b614e20565b90600052602060002001549050806008838154811061449c5761449c614e20565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806144d4576144d46157ea565b6001900381819060005260206000200160009055905550505050565b60006144fb836117a4565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461454090614e36565b90600052602060002090601f01602090048101928261456257600085556145a8565b82601f1061457b57805160ff19168380011785556145a8565b828001600101855582156145a8579182015b828111156145a857825182559160200191906001019061458d565b506145b492915061469f565b5090565b6040518060a001604052806005905b60608152602001906001900390816145c75790505090565b82600381019282156145a8579160200282015b828111156145a8578251829060ff169055916020019190600101906145f2565b8260058101928215614652579160200282015b828111156146525782518051614642918491602090910190614534565b5091602001919060010190614625565b506145b49291506146b4565b8260058101928215614652579182015b8281111561465257828290805461468490614e36565b61468f9291906146d1565b509160010191906001019061466e565b5b808211156145b457600081556001016146a0565b808211156145b45760006146c8828261474c565b506001016146b4565b8280546146dd90614e36565b90600052602060002090601f0160209004810192826146ff57600085556145a8565b82601f1061471057805485556145a8565b828001600101855582156145a857600052602060002091601f016020900482015b828111156145a8578254825591600101919060010190614731565b50805461475890614e36565b6000825580601f10614768575050565b601f016020900490600052602060002090810190611451919061469f565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156147be576147be614786565b60405290565b60405160a081016001600160401b03811182821017156147be576147be614786565b604051601f8201601f191681016001600160401b038111828210171561480e5761480e614786565b604052919050565b60006001600160401b0382111561482f5761482f614786565b50601f01601f191660200190565b600061485061484b84614816565b6147e6565b905082815283838301111561486457600080fd5b828260208301376000602084830101529392505050565b600082601f83011261488c57600080fd5b6133098383356020850161483d565b600080604083850312156148ae57600080fd5b8235915060208301356001600160401b038111156148cb57600080fd5b6148d78582860161487b565b9150509250929050565b6000602082840312156148f357600080fd5b5035919050565b60005b838110156149155781810151838201526020016148fd565b83811115611ada5750506000910152565b6000815180845261493e8160208601602086016148fa565b601f01601f19169290920160200192915050565b602080825260009060c0830183820185845b600581101561499357601f19878503018352614981848351614926565b93509184019190840190600101614964565b50919695505050505050565b6001600160e01b03198116811461145157600080fd5b6000602082840312156149c757600080fd5b81356133098161499f565b600080604083850312156149e557600080fd5b823591506020808401356001600160401b0380821115614a0457600080fd5b818601915086601f830112614a1857600080fd5b6000614a2261479c565b80604085018a811115614a33578384fd5b855b81811015614a6557803586811115614a4b578586fd5b614a578d828a0161487b565b855250928701928701614a35565b50979a909950975050505050505050565b6020815260006133096020830184614926565b6001600160a01b0391909116815260200190565b6001600160a01b038116811461145157600080fd5b60008060408385031215614ac557600080fd5b8235614ad081614a9d565b946020939093013593505050565b600080600080600060a08688031215614af657600080fd5b8535614b0181614a9d565b945060208601356001600160401b03811115614b1c57600080fd5b614b288882890161487b565b9450506040860135925060608601359150608086013560ff81168114614b4d57600080fd5b809150509295509295909350565b600080600060608486031215614b7057600080fd5b8335614b7b81614a9d565b92506020840135614b8b81614a9d565b929592945050506040919091013590565b600060208284031215614bae57600080fd5b813561330981614a9d565b60008060408385031215614bcc57600080fd5b823591506020808401356001600160401b0380821115614beb57600080fd5b818601915086601f830112614bff57600080fd5b6000614c096147c4565b8060a085018a811115614c1a578384fd5b855b81811015614a6557803586811115614c32578586fd5b614c3e8d828a0161487b565b855250928701928701614c1c565b80358015158114614c5c57600080fd5b919050565b600060208284031215614c7357600080fd5b61330982614c4c565b60018060a01b038816815286602082015285604082015284606082015283608082015260e060a08201526000614cb560e0830185614926565b90508260c083015298975050505050505050565b60008060408385031215614cdc57600080fd5b8235614ce781614a9d565b9150614cf560208401614c4c565b90509250929050565b60008060008060808587031215614d1457600080fd5b8435614d1f81614a9d565b93506020850135614d2f81614a9d565b92506040850135915060608501356001600160401b03811115614d5157600080fd5b614d5d8782880161487b565b91505092959194509250565b60008060408385031215614d7c57600080fd5b82359150614cf560208401614c4c565b60008060408385031215614d9f57600080fd5b8235614daa81614a9d565b91506020830135614dba81614a9d565b809150509250929050565b60008151614dd78185602086016148fa565b9290920192915050565b661e17ba32bc3a1f60c91b815260008251614e038160078501602087016148fa565b651e3a32bc3a1f60d11b6007939091019283015250600d01919050565b634e487b7160e01b600052603260045260246000fd5b600181811c90821680614e4a57607f821691505b60208210811415614e6b57634e487b7160e01b600052602260045260246000fd5b50919050565b60008251614e838184602087016148fa565b9190910192915050565b60008451614e9f8184602089016148fa565b845190830190614eb38183602089016148fa565b8451910190614ec68183602088016148fa565b0195945050505050565b6001600160a01b03848116825283166020820152606060408201819052600090614efc90830184614926565b95945050505050565b60008351614f178184602088016148fa565b60609390931b6001600160601b0319169190920190815260140192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015614fe557614fe5614fbd565b500390565b6e2261747472696275746573223a205b60881b8152855160009061501581600f850160208b016148fa565b86519083019061502c81600f840160208b016148fa565b865191019061504281600f840160208a016148fa565b85519101600f01906150588183602089016148fa565b845191019061506b8183602088016148fa565b01979650505050505050565b600083516150898184602088016148fa565b83519083019061509d8183602088016148fa565b7b2249206a757374207468696e6b2074686579277265206e656174227d60201b9101908152601c01949350505050565b600083516150df8184602088016148fa565b8351908301906150f38183602088016148fa565b70224f682c20776f772e20436f6f6c2e227d60781b9101908152601101949350505050565b6000835161512a8184602088016148fa565b83519083019061513e8183602088016148fa565b6c224c6f6f6b732052617265227d60981b9101908152600d01949350505050565b600083516151718184602088016148fa565b8351908301906151858183602088016148fa565b75224c6f6f6b73205261726520616e6420436f6f6c227d60501b9101908152601601949350505050565b600083516151c18184602088016148fa565b8351908301906151d58183602088016148fa565b6722477265656e227d60c01b9101908152600801949350505050565b6000885160206152048285838e016148fa565b8951918401916152178184848e016148fa565b89519201916152298184848d016148fa565b885192019161523b8184848c016148fa565b875192019161524d8184848b016148fa565b865192019161525f8184848a016148fa565b855192019161527181848489016148fa565b919091019a9950505050505050505050565b6000875160206152968285838d016148fa565b8851918401916152a98184848d016148fa565b88519201916152bb8184848c016148fa565b87519201916152cd8184848b016148fa565b86519201916152df8184848a016148fa565b85519201916152f181848489016148fa565b919091019998505050505050505050565b60008651615314818460208b016148fa565b661e17ba32bc3a1f60c91b9083019081528651615338816007840160208b016148fa565b865191019061534e816007840160208a016148fa565b85519101906153648160078401602089016148fa565b845191016007019061506b8183602088016148fa565b6000845161538c8184602089016148fa565b661e17ba32bc3a1f60c91b90830190815284516153b08160078401602089016148fa565b84519101906153c68160078401602088016148fa565b0160070195945050505050565b727b226e616d65223a20224d657373616765202360681b815283516000906154028160138501602089016148fa565b7f222c20226465736372697074696f6e223a20224d65737361676520697320616e6013918401918201527f206578706572696d656e7420696e20636f6d6d756e69636174696f6e2e20577260338201527f6974652076696120636f6e74726163742c2072656672657368206d657461646160538201527f74612e204265206e6963652e2068747470733a2f2f737465726c696e676372696073820152761cdc1a5b8b98dbdb4bdb595cdcd859d94b9a1d1b5b088b604a1b609382015284516154d18160aa8401602089016148fa565b7f5d2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b60aa92909101918201526618985cd94d8d0b60ca1b60ca82015261552a61551c60d1830186614dc5565b61227d60f01b815260020190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161556c81601d8501602087016148fa565b91909101601d0192915050565b6000821982111561558c5761558c614fbd565b500190565b6000602082840312156155a357600080fd5b815161330981614a9d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060001982141561561457615614614fbd565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826156405761564061561b565b500490565b6000826156545761565461561b565b500690565b600081600019048311821515161561567357615673614fbd565b500290565b60006020828403121561568a57600080fd5b81516001600160401b038111156156a057600080fd5b8201601f810184136156b157600080fd5b80516156bf61484b82614816565b8181528560208385010111156156d457600080fd5b614efc8260208301602086016148fa565b600080845481600182811c91508083168061570157607f831692505b602080841082141561572157634e487b7160e01b86526022600452602486fd5b818015615735576001811461574657615773565b60ff19861689528489019650615773565b60008b81526020902060005b8681101561576b5781548b820152908501908301615752565b505084890196505b505050505050614efc8185614dc5565b60008161579257615792614fbd565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061552a90830184614926565b6000602082840312156157df57600080fd5b81516133098161499f565b634e487b7160e01b600052603160045260246000fdfe3c747370616e20783d223430222064793d223235223e000000000000000000003c7465787420783d2232302220793d2236302220636c6173733d2262617365223e2f2f7573723a20666f6e742d66616d696c793a206d6f6e6f73706163653b20666f6e742d73697a653a20313570783b207d3c2f7374796c653e3c7265637420793d2238222077696474683d223130302522206865696768743d2231303025222066696c6c3d2275726c2823677261647265643b666f6e742d7374796c653a206f626c697175653b666f6e742d7765696768743a203930303b6c65747465722d73706163696e673a203370783b3c7265637420793d22353025222077696474683d223130302522206865696768743d2231303025222066696c6c3d2275726c2823677261644d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265297b2274726169745f74797065223a202256696265222c2276616c7565223a00003c7465787420783d2232302220793d223235302220636c6173733d2262617365223e2f2f7075623a207b2274726169745f74797065223a2022557067726164657320417661696c61626c65222c2276616c7565223a20227b2274726169745f74797065223a202253706865726573222c2276616c7565223a20227b2274726169745f74797065223a2022576967676c65222c2276616c7565223a20223c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302034303020343030222077696474683d2238303022206865696768743d22383030223e3c646566733e3c6c696e6561724772616469656e742069643d226772616422202078313d2230222078323d2230222079313d2230222079323d2231223e3c73746f70206f66667365743d223025222073746f702d636f6c6f723d2264696d6772657922202f3e3c73746f70206f66667365743d22313025222073746f702d636f6c6f723d22626c61636b22202f3e3c2f6c696e6561724772616469656e743e3c72616469616c4772616469656e742069643d226772616432222063783d22302e35222063793d22302e392220723d22312e32222066783d22302e35222066793d22302e3922207370726561644d6574686f643d22726570656174223e3c73746f70206f66667365743d223025222073746f702d636f6c6f723d22726564222f3e3c73746f70206f66667365743d2231303025222073746f702d636f6c6f723d22626c7565222f3e3c2f72616469616c4772616469656e743e3c2f646566733e3c7374796c653e2e62617365207b2066696c6c3a4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d226e6f6e6522207374726f6b653d2264696d6772657922207374726f6b652d77696474683d223230222f3e3c636972636c652063783d223230222063793d223339352220723d2233222066696c6c3d226c696d65677265656e222f3e3c2f7376673e7b2274726169745f74797065223a202255706772616465732055736564222c2276616c7565223a20227b2274726169745f74797065223a202253756e72697365222c2276616c7565223a202257726974696e672064697361626c65642064756520746f20536f6d657468696e6720426164a26469706673582212206818d80ece09fb0fdf838cca4dcd1a5a80539ce6cb4e2380842a40649e12b94264736f6c63430008090033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106102275760003560e01c80635f21b7171161012a5780635f21b717146105555780635f795567146105755780636352211e146105955780636842b554146105b557806370a08231146105d5578063715018a6146105f557806377bd4b6f1461060a5780638cd3b08b1461063a5780638da5cb5b1461066d57806395d89b4114610682578063a22cb46514610697578063b88d4fde146106b7578063c4aba96c146106d7578063c87b56dd146106f7578063c992808a14610717578063d3391bf814610737578063db38f26b14610757578063e54b153514610777578063e8c3b1b814610797578063e985e9c5146107b7578063f0e1bf16146107d7578063f2fde38b146107f7578063f30d9e8a14610817578063f49306191461083757600080fd5b806209fbf41461022c57806301db4c1a1461024e57806301ffc9a71461028457806302fcd557146102b457806306fdde03146102d4578063081812fc146102f6578063095ea7b3146103235780630c53c51c146103435780630f7e5970146103565780631249c58b1461038357806312790b9d1461039857806313c6e55f146103b857806318160ddd146103d857806320379ee5146103f757806323b872dd1461040c5780632d0335ab1461042c5780632d22c059146104625780632f745c59146104925780633408e470146104b257806342842e0e146104c557806347bd6e42146104e55780634cdf76f7146105055780634f6ccce714610535575b600080fd5b34801561023857600080fd5b5061024c61024736600461489b565b610867565b005b34801561025a57600080fd5b5061026e6102693660046148e1565b6108d8565b60405161027b9190614952565b60405180910390f35b34801561029057600080fd5b506102a461029f3660046149b5565b6109b3565b604051901515815260200161027b565b3480156102c057600080fd5b5061024c6102cf3660046149d2565b6109de565b3480156102e057600080fd5b506102e9610ad7565b60405161027b9190614a76565b34801561030257600080fd5b506103166103113660046148e1565b610b69565b60405161027b9190614a89565b34801561032f57600080fd5b5061024c61033e366004614ab2565b610bf6565b6102e9610351366004614ade565b610d19565b34801561036257600080fd5b506102e9604051806040016040528060018152602001603160f81b81525081565b34801561038f57600080fd5b5061024c610f02565b3480156103a457600080fd5b5061026e6103b33660046148e1565b611029565b3480156103c457600080fd5b5061024c6103d336600461489b565b6110f9565b3480156103e457600080fd5b506008545b60405190815260200161027b565b34801561040357600080fd5b50600b546103e9565b34801561041857600080fd5b5061024c610427366004614b5b565b61116a565b34801561043857600080fd5b506103e9610447366004614b9c565b6001600160a01b03166000908152600c602052604090205490565b34801561046e57600080fd5b506103e961047d3660046148e1565b6000908152601260205260409020600e015490565b34801561049e57600080fd5b506103e96104ad366004614ab2565b6111a2565b3480156104be57600080fd5b50466103e9565b3480156104d157600080fd5b5061024c6104e0366004614b5b565b611238565b3480156104f157600080fd5b5061026e6105003660046148e1565b611253565b34801561051157600080fd5b506103e96105203660046148e1565b60009081526012602052604090206008015490565b34801561054157600080fd5b506103e96105503660046148e1565b611323565b34801561056157600080fd5b5061024c610570366004614b9c565b6113b6565b34801561058157600080fd5b5061024c610590366004614bb9565b611454565b3480156105a157600080fd5b506103166105b03660046148e1565b6116db565b3480156105c157600080fd5b5061024c6105d0366004614c61565b611752565b3480156105e157600080fd5b506103e96105f0366004614b9c565b6117a4565b34801561060157600080fd5b5061024c61182b565b34801561061657600080fd5b506103e96106253660046148e1565b60009081526012602052604090206001015490565b34801561064657600080fd5b5061065a6106553660046148e1565b6118b4565b60405161027b9796959493929190614c7c565b34801561067957600080fd5b50610316611985565b34801561068e57600080fd5b506102e9611994565b3480156106a357600080fd5b5061024c6106b2366004614cc9565b6119a3565b3480156106c357600080fd5b5061024c6106d2366004614cfe565b611aa1565b3480156106e357600080fd5b5061024c6106f2366004614d69565b611ae0565b34801561070357600080fd5b506102e96107123660046148e1565b611b19565b34801561072357600080fd5b5061024c61073236600461489b565b612408565b34801561074357600080fd5b5061024c6107523660046148e1565b61242b565b34801561076357600080fd5b5061024c610772366004614d69565b612701565b34801561078357600080fd5b5061024c61079236600461489b565b612770565b3480156107a357600080fd5b5061024c6107b2366004614bb9565b612793565b3480156107c357600080fd5b506102a46107d2366004614d8c565b612a1a565b3480156107e357600080fd5b5061024c6107f23660046149d2565b612b36565b34801561080357600080fd5b5061024c610812366004614b9c565b612c2d565b34801561082357600080fd5b5061024c610832366004614d69565b612d2d565b34801561084357600080fd5b506103e96108523660046148e1565b60009081526012602052604090206002015490565b61087082612f0e565b61087982612f7c565b8060405160200161088a9190614de1565b60408051601f19818403018152918152600084815260126020529081206003010190805190602001906108be929190614534565b505060009081526012602052604090206001600290910155565b6108e06145b8565b600082815260126020526040808220815160a081019092529091600390910190600590835b828210156109a857838201805461091b90614e36565b80601f016020809104026020016040519081016040528092919081815260200182805461094790614e36565b80156109945780601f1061096957610100808354040283529160200191610994565b820191906000526020600020905b81548152906001019060200180831161097757829003601f168201915b505050505081526020019060010190610905565b505050509050919050565b60006001600160e01b0319821663780e9d6360e01b14806109d857506109d882612fec565b92915050565b6109e78261303c565b6109f082613103565b8051604051610a029190602001614e71565b60408051601f1981840301815291815260008481526012602052908120600901019080519060200190610a36929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b818401529351610a8994919201614e8d565b60408051601f1981840301815291815260008481526012602052206009016001019080519060200190610abd929190614534565b505060009081526012602052604090206002600890910155565b606060008054610ae690614e36565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1290614e36565b8015610b5f5780601f10610b3457610100808354040283529160200191610b5f565b820191906000526020600020905b815481529060010190602001808311610b4257829003601f168201915b5050505050905090565b6000610b7482613173565b610bda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c01826116db565b9050806001600160a01b0316836001600160a01b03161415610c6f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bd1565b806001600160a01b0316610c81613190565b6001600160a01b03161480610c9d5750610c9d816107d2613190565b610d0a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610bd1565b610d14838361319f565b505050565b60408051606081810183526001600160a01b0388166000818152600c602090815290859020548452830152918101869052610d57878287878761320d565b610dad5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610bd1565b6001600160a01b0387166000908152600c6020526040902054610dd19060016132fd565b6001600160a01b0388166000908152600c60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610e2190899033908a90614ed0565b60405180910390a1600080306001600160a01b0316888a604051602001610e49929190614f05565b60408051601f1981840301815290829052610e6391614e71565b6000604051808303816000865af19150503d8060008114610ea0576040519150601f19603f3d011682016040523d82523d6000602084013e610ea5565b606091505b509150915081610ef65760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b6044820152606401610bd1565b98975050505050505050565b60115460ff16610f605760405162461bcd60e51b8152602060048201526024808201527f5075626c6963206d696e74696e67206e6f742063757272656e746c7920656e61604482015263189b195960e21b6064820152608401610bd1565b6001610f6d6105f0613190565b10610fb25760405162461bcd60e51b8152602060048201526015602482015274131a5b5a5d081a5cc80c481c195c881dd85b1b195d605a1b6044820152606401610bd1565b6101e2610fbe60085490565b106110175760405162461bcd60e51b8152602060048201526024808201527f4d617820746f6b656e73206861766520616c7265616479206265656e206d696e6044820152633a32b21760e11b6064820152608401610bd1565b611027611022613190565b613310565b565b6110316145b8565b600082815260126020526040808220815160a081019092529091600990910190600590835b828210156109a857838201805461106c90614e36565b80601f016020809104026020016040519081016040528092919081815260200182805461109890614e36565b80156110e55780601f106110ba576101008083540402835291602001916110e5565b820191906000526020600020905b8154815290600101906020018083116110c857829003601f168201915b505050505081526020019060010190611056565b6111028261303c565b61110b82613103565b8060405160200161111c9190614de1565b60408051601f1981840301815291815260008481526012602052908120600901019080519060200190611150929190614534565b505060009081526012602052604090206001600890910155565b61117b611175613190565b82613548565b6111975760405162461bcd60e51b8152600401610bd190614f37565b610d14838383613612565b60006111ad836117a4565b821061120f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bd1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610d1483838360405180602001604052806000815250611aa1565b61125b6145b8565b600082815260126020526040808220815160a081019092529091600f90910190600590835b828210156109a857838201805461129690614e36565b80601f01602080910402602001604051908101604052809291908181526020018280546112c290614e36565b801561130f5780601f106112e45761010080835404028352916020019161130f565b820191906000526020600020905b8154815290600101906020018083116112f257829003601f168201915b505050505081526020019060010190611280565b600061132e60085490565b82106113915760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bd1565b600882815481106113a4576113a4614e20565b90600052602060002001549050919050565b6113be613190565b6001600160a01b03166113cf611985565b6001600160a01b0316146113f55760405162461bcd60e51b8152600401610bd190614f88565b60006010541161142f5760405162461bcd60e51b815260206004820152600560248201526413585e195960da1b6044820152606401610bd1565b6001601060008282546114429190614fd3565b90915550611451905081613310565b50565b61145d8261303c565b805160405161146f9190602001614e71565b60408051601f19818403018152918152600084815260126020529081206009010190805190602001906114a3929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b8184015293516114f694919201614e8d565b60408051601f198184030181529181526000848152601260205220600901600101908051906020019061152a929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838301518351808501855260088152671e17ba39b830b71f60c11b81840152935161157d94919201614e8d565b60408051601f19818403018152918152600084815260126020522060090160020190805190602001906115b1929190614534565b506040805180820182526016815260008051602061580183398151915260208083019190915260608401518351808501855260088152671e17ba39b830b71f60c11b81840152935161160594919201614e8d565b60408051601f1981840301815291815260008481526012602052206009016003019080519060200190611639929190614534565b506040805180820182526016815260008051602061580183398151915260208083019190915260808401518351808501855260088152671e17ba39b830b71f60c11b81840152935161168d94919201614e8d565b60408051601f19818403018152918152600084815260126020522060090160040190805190602001906116c1929190614534565b505060009081526012602052604090206005600890910155565b6000818152600260205260408120546001600160a01b0316806109d85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bd1565b61175a613190565b6001600160a01b031661176b611985565b6001600160a01b0316146117915760405162461bcd60e51b8152600401610bd190614f88565b6011805460ff1916911515919091179055565b60006001600160a01b03821661180f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bd1565b506001600160a01b031660009081526003602052604090205490565b611833613190565b6001600160a01b0316611844611985565b6001600160a01b03161461186a5760405162461bcd60e51b8152600401610bd190614f88565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b60126020526000908152604090208054600182015460028301546008840154600e8501546014860180546001600160a01b03909616969495939492939192916118fc90614e36565b80601f016020809104026020016040519081016040528092919081815260200182805461192890614e36565b80156119755780601f1061194a57610100808354040283529160200191611975565b820191906000526020600020905b81548152906001019060200180831161195857829003601f168201915b5050505050908060180154905087565b600d546001600160a01b031690565b606060018054610ae690614e36565b6119ab613190565b6001600160a01b0316826001600160a01b03161415611a085760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610bd1565b8060056000611a15613190565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611a59613190565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a95911515815260200190565b60405180910390a35050565b611ab2611aac613190565b83613548565b611ace5760405162461bcd60e51b8152600401610bd190614f37565b611ada848484846137bd565b50505050565b611ae98261303c565b80611af5576000611af8565b60015b60ff1660126000848152602001908152602001600020600101819055505050565b600081815260126020908152604080832081516101608101835281546001600160a01b03168152600182015493810193909352600281015483830152815160a0810190925260609392918285019060038301600586835b82821015611c13578382018054611b8690614e36565b80601f0160208091040260200160405190810160405280929190818152602001828054611bb290614e36565b8015611bff5780601f10611bd457610100808354040283529160200191611bff565b820191906000526020600020905b815481529060010190602001808311611be257829003601f168201915b505050505081526020019060010190611b70565b50505090825250600882015460208201526040805160a0810182529101906009830160056000835b82821015611cde578382018054611c5190614e36565b80601f0160208091040260200160405190810160405280929190818152602001828054611c7d90614e36565b8015611cca5780601f10611c9f57610100808354040283529160200191611cca565b820191906000526020600020905b815481529060010190602001808311611cad57829003601f168201915b505050505081526020019060010190611c3b565b50505090825250600e82015460208201526040805160a081018252910190600f830160056000835b82821015611da9578382018054611d1c90614e36565b80601f0160208091040260200160405190810160405280929190818152602001828054611d4890614e36565b8015611d955780601f10611d6a57610100808354040283529160200191611d95565b820191906000526020600020905b815481529060010190602001808311611d7857829003601f168201915b505050505081526020019060010190611d06565b505050508152602001601482018054611dc190614e36565b80601f0160208091040260200160405190810160405280929190818152602001828054611ded90614e36565b8015611e3a5780601f10611e0f57610100808354040283529160200191611e3a565b820191906000526020600020905b815481529060010190602001808311611e1d57829003601f168201915b505050918352505060408051606081019182905260209092019190601584019060039082845b815481526020019060010190808311611e605750505050508152602001601882015481525050905060008160e00151600060058110611ea157611ea1614e20565b6020908102919091015160e08401518083015160408083015160608401516080909401519151611ed8969394919391929101614fea565b60408051601f19818403018152828201909152600a8252696c696d65677265656e3b60b01b602083015260c084015190925060041415611f80576040518060400160405280600781526020016679656c6c6f773b60c81b8152509050816040518060400160405280601e8152602001600080516020615969833981519152815250604051602001611f6a929190615077565b60405160208183030381529060405291506120f5565b8260c0015160011415611fed576040518060400160405280600f81526020016e636f726e666c6f776572626c75653b60881b8152509050816040518060400160405280601e8152602001600080516020615969833981519152815250604051602001611f6a9291906150cd565b8260c001516002141561204f57604051806040016040528060048152602001637265643b60e01b8152509050816040518060400160405280601e8152602001600080516020615969833981519152815250604051602001611f6a929190615118565b8260c00151600314156120ad576040518060600160405280603d81526020016158b1603d91399050816040518060400160405280601e8152602001600080516020615969833981519152815250604051602001611f6a92919061515f565b816040518060400160405280601e81526020016000805160206159698339815191528152506040516020016120e39291906151af565b60405160208183030381529060405291505b610120830151604001516000901561212657604051806040016040528060018152602001601960f91b815250612137565b604051806020016040528060008152505b905060006040518060200160405280600081525090508460200151600114156121b6576040518060600160405280603881526020016158ee603891398260405180604001604052806005815260200164149110179f60d91b8152506040516020016121a493929190614e8d565b60405160208183030381529060405290505b60006040518061022001604052806101ee8152602001615a256101ee9139846040518060a0016040528060688152602001615849606891398560405180604001604052806005815260200164149110179f60d91b815250866040518060600160405280602881526020016158216028913960405160200161223d97969594939291906151f1565b6040516020818303038152906040529050808660a0015160006005811061226657612266614e20565b6020908102919091015160a0890151808301516040808301516060840151608090940151915161229e97969394919391929101615283565b60405160208183030381529060405290508560200151600114156123575780604051806060016040528060298152602001615989602991396060880151805160208083015160409384015193516122f9969594919201615302565b604051602081830303815290604052905080866060015160036005811061232257612322614e20565b602002015160608801516004602002015160405160200161234593929190614e8d565b60405160208183030381529060405290505b808661010001516040518060c0016040528060888152602001615c53608891396040516020016123899392919061537a565b604051602081830303815290604052905060006123d86123a88a6137f0565b876123b2856138ed565b6040516020016123c4939291906153d3565b6040516020818303038152906040526138ed565b9050806040516020016123eb9190615534565b60408051601f198184030181529190529998505050505050505050565b6124118261303c565b61241a82613103565b8060405160200161111c9190614e71565b612433613190565b60008281526012602090815260409182902054825180840190935260158352742cb7ba9030b932903737ba103a34329037bbb732b960591b9183019190915290916001600160a01b0391821691161461249f5760405162461bcd60e51b8152600401610bd19190614a76565b506000818152601260205260409020601801546124f65760405162461bcd60e51b81526020600482015260156024820152744e6f2072656d61696e696e6720757067726164657360581b6044820152606401610bd1565b6000818152601260205260408120601801805460019290612518908490614fd3565b909155506000905061252a6003613a52565b90508061253f5761253a82613aa3565b612643565b80600114156125515761253a82613c46565b8060021415612643576000828152601260205260409020601701546001111561263a576000828152601260205260408120601701805460019290612596908490615579565b909155505060408051606081019091526023808252615d04602083013960008381526012602052604090206125d29060150160025b0154613dd7565b60405180604001604052806003815260200162089f4b60ea1b81525060405160200161260093929190614e8d565b60408051601f198184030181529181526000848152601260205220600f016002019080519060200190612634929190614534565b50612643565b61264382613aa3565b61264c82613edf565b604051806060016040528060298152602001615cdb6029913960008381526012602052604090206017810154601682015460159092015461269f9261269091615579565b61269a9190615579565b613dd7565b60405180604001604052806003815260200162089f4b60ea1b8152506040516020016126cd93929190614e8d565b60408051601f198184030181529181526000848152601260205220600f016004019080519060200190610d14929190614534565b612709613190565b6001600160a01b031661271a611985565b6001600160a01b0316146127405760405162461bcd60e51b8152600401610bd190614f88565b8061274c57600061274f565b60015b60ff1660126000848152602001908152602001600020600e01819055505050565b61277982612f0e565b61278282612f7c565b8060405160200161088a9190614e71565b61279c82612f0e565b80516040516127ae9190602001614e71565b60408051601f19818403018152918152600084815260126020529081206003010190805190602001906127e2929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b81840152935161283594919201614e8d565b60408051601f1981840301815291815260008481526012602052206003016001019080519060200190612869929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838301518351808501855260088152671e17ba39b830b71f60c11b8184015293516128bc94919201614e8d565b60408051601f19818403018152918152600084815260126020522060030160020190805190602001906128f0929190614534565b506040805180820182526016815260008051602061580183398151915260208083019190915260608401518351808501855260088152671e17ba39b830b71f60c11b81840152935161294494919201614e8d565b60408051601f1981840301815291815260008481526012602052206003908101019080519060200190612978929190614534565b506040805180820182526016815260008051602061580183398151915260208083019190915260808401518351808501855260088152671e17ba39b830b71f60c11b8184015293516129cc94919201614e8d565b60408051601f1981840301815291815260008481526012602052206003016004019080519060200190612a00929190614534565b505060009081526012602052604090206005600290910155565b6000826001600160a01b0316612a2e611985565b6001600160a01b0316148015612a555750816001600160a01b0316836001600160a01b0316145b15612a62575060016109d8565b600e546001600160a01b03908116908416612a7b611985565b6001600160a01b0316148015612b1d5750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b8152600401612ac29190614a89565b60206040518083038186803b158015612ada57600080fd5b505afa158015612aee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b129190615591565b6001600160a01b0316145b15612b2c5760019150506109d8565b5060009392505050565b612b3f82612f0e565b612b4882612f7c565b8051604051612b5a9190602001614e71565b60408051601f1981840301815291815260008481526012602052908120600301019080519060200190612b8e929190614534565b5060408051808201825260168152600080516020615801833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b818401529351612be194919201614e8d565b60408051601f1981840301815291815260008481526012602052206003016001019080519060200190612c15929190614534565b50506000908152601260205260409020600290810155565b612c35613190565b6001600160a01b0316612c46611985565b6001600160a01b031614612c6c5760405162461bcd60e51b8152600401610bd190614f88565b6001600160a01b038116612cd15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bd1565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b612d35613190565b6001600160a01b0316612d46611985565b6001600160a01b031614612d6c5760405162461bcd60e51b8152600401610bd190614f88565b80612d78576002612d7b565b60005b600083815260126020526040902060ff9190911660019091015580612ead57612da382612f7c565b612dac82613103565b600082815260126020818152604080842060026001808301829055600e8301879055600883018190559082015560188101859055815160608101835285815280840186905291820185905293869052919052612e0d916015019060036145df565b50604080516020808201808452600080845286815260129092529290209051612e3c9260149092019190614534565b506040805160c081018252600060a0820181815282528251602081810185528282528084019190915283518082018552828152838501528351808201855282815260608401528351808201855282815260808401528582526012905291909120610d1491600f909101906005614612565b5050565b600033301415612f0857600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150612f0b9050565b50335b90565b60126000828152602001908152602001600020600101546001146040518060400160405280601d81526020017f5075626c6963204d657373616765206973206e6f7420656e61626c656400000081525090612ead5760405162461bcd60e51b8152600401610bd19190614a76565b6040805160c081018252600060a0820181815282528251602081810185528282528084019190915283518082018552828152838501528351808201855282815260608401528351808201855282815260808401528482526012905291909120612ead916003909101906005614612565b60006001600160e01b031982166380ac58cd60e01b148061301d57506001600160e01b03198216635b5e139f60e01b145b806109d857506301ffc9a760e01b6001600160e01b03198316146109d8565b601260008281526020019081526020016000206001015460021415604051806060016040528060258152602001615d27602591399061308e5760405162461bcd60e51b8152600401610bd19190614a76565b50613097613190565b60008281526012602090815260409182902054825180840190935260158352742cb7ba9030b932903737ba103a34329037bbb732b960591b9183019190915290916001600160a01b03918216911614612ead5760405162461bcd60e51b8152600401610bd19190614a76565b6040805160c081018252600060a0820181815282528251602081810185528282528084019190915283518082018552828152838501528351808201855282815260608401528351808201855282815260808401528482526012905291909120612ead916009909101906005614612565b6000908152600260205260409020546001600160a01b0316151590565b600061319a612eb1565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906131d4826116db565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166132735760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610bd1565b600161328661328187613f66565b613fe3565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156132d4573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006133098284615579565b9392505050565b600061331b60085490565b613326906001615579565b90506133326004613a52565b61334d5760008181526012602052604090206004600e909101555b6133576007613a52565b6133725760008181526012602052604090206001600e909101555b61337c600d613a52565b6133975760008181526012602052604090206002600e909101555b6133a26104d2613a52565b6133bd5760008181526012602052604090206003600e909101555b6133c76008613a52565b6133f7576133d56004613a52565b6133e0906001615579565b60008281526012602052604090206018015561340a565b6000818152601260205260408120601801555b6040805160e081018252600b60a082019081526a1a195b1b1bc81ddbdc9b1960aa1b60c0830152815281516020818101845260008083528184019290925283518082018552828152838501528351808201855282815260608401528351808201855282815260808401528482526012905291909120613490916003909101906005614612565b5060008181526012602052604090206134b2906009810190600301600561465e565b506040805160208082018084526000808452858152601290925292902090516134e19260149092019190614534565b5060008181526012602081815260408084206001600282018190556008820181905581810155815160608101835285815280840186905291820185905293859052919052613534916015019060036145df565b5061353e81613edf565b612ead8282614013565b600061355382613173565b6135b45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bd1565b60006135bf836116db565b9050806001600160a01b0316846001600160a01b031614806135fa5750836001600160a01b03166135ef84610b69565b6001600160a01b0316145b8061360a575061360a8185612a1a565b949350505050565b826001600160a01b0316613625826116db565b6001600160a01b03161461368d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bd1565b6001600160a01b0382166136ef5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bd1565b6136fa83838361402d565b61370560008261319f565b6001600160a01b038316600090815260036020526040812080546001929061372e908490614fd3565b90915550506001600160a01b038216600090815260036020526040812080546001929061375c908490615579565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6137c8848484613612565b6137d484848484614067565b611ada5760405162461bcd60e51b8152600401610bd1906155ae565b6060816138145750506040805180820190915260018152600360fc1b602082015290565b8160005b811561383e578061382881615600565b91506138379050600a83615631565b9150613818565b6000816001600160401b0381111561385857613858614786565b6040519080825280601f01601f191660200182016040528015613882576020820181803683370190505b5090505b841561360a57613897600183614fd3565b91506138a4600a86615645565b6138af906030615579565b60f81b8183815181106138c4576138c4614e20565b60200101906001600160f81b031916908160001a9053506138e6600a86615631565b9450613886565b80516060908061390d575050604080516020810190915260008152919050565b6000600361391c836002615579565b6139269190615631565b613931906004615659565b90506000613940826020615579565b6001600160401b0381111561395757613957614786565b6040519080825280601f01601f191660200182016040528015613981576020820181803683370190505b5090506000604051806060016040528060408152602001615c13604091399050600181016020830160005b86811015613a0d576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016139ac565b506003860660018114613a275760028114613a3857613a44565b613d3d60f01b600119830152613a44565b603d60f81b6000198301525b505050918152949350505050565b600081444284613a6160085490565b6040805160208101959095528401929092526060830152608082015260a0016040516020818303038152906040528051906020012060001c6109d89190615645565b60008181526012602052604090819020905163c092feef60e01b81526101906004820152601490910190738fb38ac11a7d57337b99d19a155d939bf08965999063c092feef9060240160006040518083038186803b158015613b0457600080fd5b505af4158015613b18573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b409190810190615678565b604051602001613b519291906156e5565b60408051601f198184030181529181526000838152601260209081529190208251613b859360149092019290910190614534565b506000818152601260205260408120601501805460019290613ba8908490615579565b909155505060408051606081019091526022808252615a0360208301396000828152601260205260408120613be2916015909101906125cb565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001613c1093929190614e8d565b60408051601f1981840301815291815260008381526012602052908120600f01905b019080519060200190612ead929190614534565b60008181526012602052604090819020905163732360a960e11b81526101906004820152601490910190738fb38ac11a7d57337b99d19a155d939bf08965999063e646c1529060240160006040518083038186803b158015613ca757600080fd5b505af4158015613cbb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613ce39190810190615678565b604051602001613cf49291906156e5565b60408051601f198184030181529181526000838152601260209081529190208251613d289360149092019290910190614534565b506000818152601260205260408120601601805460019290613d4b908490615579565b9091555050604080516060810190915260238082526159e060208301396000828152601260205260409020613d849060150160016125cb565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001613db293929190614e8d565b60408051601f198184030181529181526000838152601260205220600f016001613c32565b606081613dfb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613e255780613e0f81615600565b9150613e1e9050600a83615631565b9150613dff565b6000816001600160401b03811115613e3f57613e3f614786565b6040519080825280601f01601f191660200182016040528015613e69576020820181803683370190505b508593509050815b8315613ed657613e82600a85615645565b613e8d906030615579565b60f81b82613e9a83615783565b92508281518110613ead57613ead614e20565b60200101906001600160f81b031916908160001a905350613ecf600a85615631565b9350613e71565b50949350505050565b6040518060600160405280602e81526020016159b2602e9139600082815260126020526040902060180154613f1390613dd7565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001613f4193929190614e8d565b60408051601f198184030181529181526000838152601260205220600f016003613c32565b60006040518060800160405280604381526020016159266043913980516020918201208351848301516040808701518051908601209051613fc6950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000613fee600b5490565b60405161190160f01b6020820152602281019190915260428101839052606201613fc6565b612ead82826040518060200160405280600081525061417b565b6140388383836141ae565b600090815260126020526040902080546001600160a01b0319166001600160a01b039290921691909117905550565b60006001600160a01b0384163b1561417057836001600160a01b031663150b7a02614090613190565b8786866040518563ffffffff1660e01b81526004016140b2949392919061579a565b602060405180830381600087803b1580156140cc57600080fd5b505af19250505080156140fc575060408051601f3d908101601f191682019092526140f9918101906157cd565b60015b614156573d80801561412a576040519150601f19603f3d011682016040523d82523d6000602084013e61412f565b606091505b50805161414e5760405162461bcd60e51b8152600401610bd1906155ae565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061360a565b506001949350505050565b6141858383614266565b6141926000848484614067565b610d145760405162461bcd60e51b8152600401610bd1906155ae565b6001600160a01b0383166142095761420481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61422c565b816001600160a01b0316836001600160a01b03161461422c5761422c83826143a4565b6001600160a01b03821661424357610d1481614441565b826001600160a01b0316826001600160a01b031614610d1457610d1482826144f0565b6001600160a01b0382166142bc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bd1565b6142c581613173565b156143115760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610bd1565b61431d6000838361402d565b6001600160a01b0382166000908152600360205260408120805460019290614346908490615579565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016143b1846117a4565b6143bb9190614fd3565b60008381526007602052604090205490915080821461440e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061445390600190614fd3565b6000838152600960205260408120546008805493945090928490811061447b5761447b614e20565b90600052602060002001549050806008838154811061449c5761449c614e20565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806144d4576144d46157ea565b6001900381819060005260206000200160009055905550505050565b60006144fb836117a4565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461454090614e36565b90600052602060002090601f01602090048101928261456257600085556145a8565b82601f1061457b57805160ff19168380011785556145a8565b828001600101855582156145a8579182015b828111156145a857825182559160200191906001019061458d565b506145b492915061469f565b5090565b6040518060a001604052806005905b60608152602001906001900390816145c75790505090565b82600381019282156145a8579160200282015b828111156145a8578251829060ff169055916020019190600101906145f2565b8260058101928215614652579160200282015b828111156146525782518051614642918491602090910190614534565b5091602001919060010190614625565b506145b49291506146b4565b8260058101928215614652579182015b8281111561465257828290805461468490614e36565b61468f9291906146d1565b509160010191906001019061466e565b5b808211156145b457600081556001016146a0565b808211156145b45760006146c8828261474c565b506001016146b4565b8280546146dd90614e36565b90600052602060002090601f0160209004810192826146ff57600085556145a8565b82601f1061471057805485556145a8565b828001600101855582156145a857600052602060002091601f016020900482015b828111156145a8578254825591600101919060010190614731565b50805461475890614e36565b6000825580601f10614768575050565b601f016020900490600052602060002090810190611451919061469f565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156147be576147be614786565b60405290565b60405160a081016001600160401b03811182821017156147be576147be614786565b604051601f8201601f191681016001600160401b038111828210171561480e5761480e614786565b604052919050565b60006001600160401b0382111561482f5761482f614786565b50601f01601f191660200190565b600061485061484b84614816565b6147e6565b905082815283838301111561486457600080fd5b828260208301376000602084830101529392505050565b600082601f83011261488c57600080fd5b6133098383356020850161483d565b600080604083850312156148ae57600080fd5b8235915060208301356001600160401b038111156148cb57600080fd5b6148d78582860161487b565b9150509250929050565b6000602082840312156148f357600080fd5b5035919050565b60005b838110156149155781810151838201526020016148fd565b83811115611ada5750506000910152565b6000815180845261493e8160208601602086016148fa565b601f01601f19169290920160200192915050565b602080825260009060c0830183820185845b600581101561499357601f19878503018352614981848351614926565b93509184019190840190600101614964565b50919695505050505050565b6001600160e01b03198116811461145157600080fd5b6000602082840312156149c757600080fd5b81356133098161499f565b600080604083850312156149e557600080fd5b823591506020808401356001600160401b0380821115614a0457600080fd5b818601915086601f830112614a1857600080fd5b6000614a2261479c565b80604085018a811115614a33578384fd5b855b81811015614a6557803586811115614a4b578586fd5b614a578d828a0161487b565b855250928701928701614a35565b50979a909950975050505050505050565b6020815260006133096020830184614926565b6001600160a01b0391909116815260200190565b6001600160a01b038116811461145157600080fd5b60008060408385031215614ac557600080fd5b8235614ad081614a9d565b946020939093013593505050565b600080600080600060a08688031215614af657600080fd5b8535614b0181614a9d565b945060208601356001600160401b03811115614b1c57600080fd5b614b288882890161487b565b9450506040860135925060608601359150608086013560ff81168114614b4d57600080fd5b809150509295509295909350565b600080600060608486031215614b7057600080fd5b8335614b7b81614a9d565b92506020840135614b8b81614a9d565b929592945050506040919091013590565b600060208284031215614bae57600080fd5b813561330981614a9d565b60008060408385031215614bcc57600080fd5b823591506020808401356001600160401b0380821115614beb57600080fd5b818601915086601f830112614bff57600080fd5b6000614c096147c4565b8060a085018a811115614c1a578384fd5b855b81811015614a6557803586811115614c32578586fd5b614c3e8d828a0161487b565b855250928701928701614c1c565b80358015158114614c5c57600080fd5b919050565b600060208284031215614c7357600080fd5b61330982614c4c565b60018060a01b038816815286602082015285604082015284606082015283608082015260e060a08201526000614cb560e0830185614926565b90508260c083015298975050505050505050565b60008060408385031215614cdc57600080fd5b8235614ce781614a9d565b9150614cf560208401614c4c565b90509250929050565b60008060008060808587031215614d1457600080fd5b8435614d1f81614a9d565b93506020850135614d2f81614a9d565b92506040850135915060608501356001600160401b03811115614d5157600080fd5b614d5d8782880161487b565b91505092959194509250565b60008060408385031215614d7c57600080fd5b82359150614cf560208401614c4c565b60008060408385031215614d9f57600080fd5b8235614daa81614a9d565b91506020830135614dba81614a9d565b809150509250929050565b60008151614dd78185602086016148fa565b9290920192915050565b661e17ba32bc3a1f60c91b815260008251614e038160078501602087016148fa565b651e3a32bc3a1f60d11b6007939091019283015250600d01919050565b634e487b7160e01b600052603260045260246000fd5b600181811c90821680614e4a57607f821691505b60208210811415614e6b57634e487b7160e01b600052602260045260246000fd5b50919050565b60008251614e838184602087016148fa565b9190910192915050565b60008451614e9f8184602089016148fa565b845190830190614eb38183602089016148fa565b8451910190614ec68183602088016148fa565b0195945050505050565b6001600160a01b03848116825283166020820152606060408201819052600090614efc90830184614926565b95945050505050565b60008351614f178184602088016148fa565b60609390931b6001600160601b0319169190920190815260140192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015614fe557614fe5614fbd565b500390565b6e2261747472696275746573223a205b60881b8152855160009061501581600f850160208b016148fa565b86519083019061502c81600f840160208b016148fa565b865191019061504281600f840160208a016148fa565b85519101600f01906150588183602089016148fa565b845191019061506b8183602088016148fa565b01979650505050505050565b600083516150898184602088016148fa565b83519083019061509d8183602088016148fa565b7b2249206a757374207468696e6b2074686579277265206e656174227d60201b9101908152601c01949350505050565b600083516150df8184602088016148fa565b8351908301906150f38183602088016148fa565b70224f682c20776f772e20436f6f6c2e227d60781b9101908152601101949350505050565b6000835161512a8184602088016148fa565b83519083019061513e8183602088016148fa565b6c224c6f6f6b732052617265227d60981b9101908152600d01949350505050565b600083516151718184602088016148fa565b8351908301906151858183602088016148fa565b75224c6f6f6b73205261726520616e6420436f6f6c227d60501b9101908152601601949350505050565b600083516151c18184602088016148fa565b8351908301906151d58183602088016148fa565b6722477265656e227d60c01b9101908152600801949350505050565b6000885160206152048285838e016148fa565b8951918401916152178184848e016148fa565b89519201916152298184848d016148fa565b885192019161523b8184848c016148fa565b875192019161524d8184848b016148fa565b865192019161525f8184848a016148fa565b855192019161527181848489016148fa565b919091019a9950505050505050505050565b6000875160206152968285838d016148fa565b8851918401916152a98184848d016148fa565b88519201916152bb8184848c016148fa565b87519201916152cd8184848b016148fa565b86519201916152df8184848a016148fa565b85519201916152f181848489016148fa565b919091019998505050505050505050565b60008651615314818460208b016148fa565b661e17ba32bc3a1f60c91b9083019081528651615338816007840160208b016148fa565b865191019061534e816007840160208a016148fa565b85519101906153648160078401602089016148fa565b845191016007019061506b8183602088016148fa565b6000845161538c8184602089016148fa565b661e17ba32bc3a1f60c91b90830190815284516153b08160078401602089016148fa565b84519101906153c68160078401602088016148fa565b0160070195945050505050565b727b226e616d65223a20224d657373616765202360681b815283516000906154028160138501602089016148fa565b7f222c20226465736372697074696f6e223a20224d65737361676520697320616e6013918401918201527f206578706572696d656e7420696e20636f6d6d756e69636174696f6e2e20577260338201527f6974652076696120636f6e74726163742c2072656672657368206d657461646160538201527f74612e204265206e6963652e2068747470733a2f2f737465726c696e676372696073820152761cdc1a5b8b98dbdb4bdb595cdcd859d94b9a1d1b5b088b604a1b609382015284516154d18160aa8401602089016148fa565b7f5d2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b60aa92909101918201526618985cd94d8d0b60ca1b60ca82015261552a61551c60d1830186614dc5565b61227d60f01b815260020190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161556c81601d8501602087016148fa565b91909101601d0192915050565b6000821982111561558c5761558c614fbd565b500190565b6000602082840312156155a357600080fd5b815161330981614a9d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060001982141561561457615614614fbd565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826156405761564061561b565b500490565b6000826156545761565461561b565b500690565b600081600019048311821515161561567357615673614fbd565b500290565b60006020828403121561568a57600080fd5b81516001600160401b038111156156a057600080fd5b8201601f810184136156b157600080fd5b80516156bf61484b82614816565b8181528560208385010111156156d457600080fd5b614efc8260208301602086016148fa565b600080845481600182811c91508083168061570157607f831692505b602080841082141561572157634e487b7160e01b86526022600452602486fd5b818015615735576001811461574657615773565b60ff19861689528489019650615773565b60008b81526020902060005b8681101561576b5781548b820152908501908301615752565b505084890196505b505050505050614efc8185614dc5565b60008161579257615792614fbd565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061552a90830184614926565b6000602082840312156157df57600080fd5b81516133098161499f565b634e487b7160e01b600052603160045260246000fdfe3c747370616e20783d223430222064793d223235223e000000000000000000003c7465787420783d2232302220793d2236302220636c6173733d2262617365223e2f2f7573723a20666f6e742d66616d696c793a206d6f6e6f73706163653b20666f6e742d73697a653a20313570783b207d3c2f7374796c653e3c7265637420793d2238222077696474683d223130302522206865696768743d2231303025222066696c6c3d2275726c2823677261647265643b666f6e742d7374796c653a206f626c697175653b666f6e742d7765696768743a203930303b6c65747465722d73706163696e673a203370783b3c7265637420793d22353025222077696474683d223130302522206865696768743d2231303025222066696c6c3d2275726c2823677261644d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265297b2274726169745f74797065223a202256696265222c2276616c7565223a00003c7465787420783d2232302220793d223235302220636c6173733d2262617365223e2f2f7075623a207b2274726169745f74797065223a2022557067726164657320417661696c61626c65222c2276616c7565223a20227b2274726169745f74797065223a202253706865726573222c2276616c7565223a20227b2274726169745f74797065223a2022576967676c65222c2276616c7565223a20223c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302034303020343030222077696474683d2238303022206865696768743d22383030223e3c646566733e3c6c696e6561724772616469656e742069643d226772616422202078313d2230222078323d2230222079313d2230222079323d2231223e3c73746f70206f66667365743d223025222073746f702d636f6c6f723d2264696d6772657922202f3e3c73746f70206f66667365743d22313025222073746f702d636f6c6f723d22626c61636b22202f3e3c2f6c696e6561724772616469656e743e3c72616469616c4772616469656e742069643d226772616432222063783d22302e35222063793d22302e392220723d22312e32222066783d22302e35222066793d22302e3922207370726561644d6574686f643d22726570656174223e3c73746f70206f66667365743d223025222073746f702d636f6c6f723d22726564222f3e3c73746f70206f66667365743d2231303025222073746f702d636f6c6f723d22626c7565222f3e3c2f72616469616c4772616469656e743e3c2f646566733e3c7374796c653e2e62617365207b2066696c6c3a4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d226e6f6e6522207374726f6b653d2264696d6772657922207374726f6b652d77696474683d223230222f3e3c636972636c652063783d223230222063793d223339352220723d2233222066696c6c3d226c696d65677265656e222f3e3c2f7376673e7b2274726169745f74797065223a202255706772616465732055736564222c2276616c7565223a20227b2274726169745f74797065223a202253756e72697365222c2276616c7565223a202257726974696e672064697361626c65642064756520746f20536f6d657468696e6720426164a26469706673582212206818d80ece09fb0fdf838cca4dcd1a5a80539ce6cb4e2380842a40649e12b94264736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
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.