ERC-721
Overview
Max Total Supply
252 USR MESSAGE
Holders
209
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 USR 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:
UsrMessage
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"; import "./StringHell.sol"; import "./v1ContractData.sol"; /** /////////////////////////////////////// /////////////////////////////////////// ///,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,// ///..................................// /// // /// // /// //usr: hello world // /// // /// // /// // /// // ///,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,// ///..................................// /// // /// // /// //pub: hello world // /// // /// // /// // /// // ///////(O)///////////////////////////// /////////////////////////////////////// I hope you all have fun. Be nice. Usr Message (Message V2) 2021 Sterling Crispin https://www.sterlingcrispin.com/message.html "If you have everything under control, you're not moving fast enough" **/ contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */ abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable { using SafeMath for uint256; address proxyRegistryAddress; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; _initializeEIP712(_name); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ 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); } } /// ~~~~~~~~~~~~~ /// stub to connect to the v1 contract abstract contract Message is ERC721 { function readRarityType(uint256 tokenId) public view returns (uint256){} } /// ~~~~~~~~~~~~~ /// [MIT License] /// @title UsrMessage /// @notice An experiment in communication. /// @author Sterling Crispin <[email protected]> contract UsrMessage is ERC721Tradable { using Strings for string; // ~~~ // v1 connection code Message v1Contract; // unfortunately I failed to provide an easy accessor to this data // so I had to scrape the v1 contract's current data and hard code these values struct v1TokenUpgradeStruct{ uint256 value; } mapping(uint256 => v1TokenUpgradeStruct) public v1TokenUpgradeMap; function ContractOwnerPopulateV1Upgrades() public onlyOwner { uint16[56] memory idx = v1ContractData.GetUpgradeIdx(); uint8[56] memory val = v1ContractData.GetUpgradeVal(); for(uint256 i; i < 56; i++){ v1TokenUpgradeMap[idx[i]].value = val[i]; } } function contractOwnerRegisterV1Contract(address addr) public onlyOwner{ v1Contract = Message(addr); } // ~~~ uint256 constant MAXTOKENS = 482;// 512 total tokens uint256 OWNERTOKENS = 30; bool internal mintingEnabled = false; string internal constant textTagOpen = '<text>'; string internal constant textTagClose = '</text>'; string internal constant spanA = '<tspan x="40" dy="25">'; string internal constant spanZ = '</tspan>'; string internal constant errBad = "Disabled"; string internal constant errPub = "Disabled"; string internal constant errOwn = "Not Owner"; string internal constant upgradeMetaEnd = '"},'; string internal constant traitMeta = '{"trait_type": '; string internal constant upgradeAvailMeta = '"Upgrade Available","value": "'; string internal constant upgradeUsedMeta = '"Upgrades Used","value": "'; string internal constant upgradeWigMeta = '"Wiggle","value": "'; string internal constant ugSphereMeta = '"Spheres","value": "'; string internal constant ugGradMeta = '"Sunrise","value": "'; string internal constant rarityMeta = '"Vibe","value":'; uint256 internal constant size = 400; struct MsgData{ address owner; bool claimed; // 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("Usr Message", "USR MESSAGE", _proxyRegistryAddress) {} function readUpgradeAvailable(uint256 tokenId) public view returns(uint256){ return allMessage[tokenId].upgradeAvailable; } function readUpgradeUsed(uint256 tokenId) public view returns(uint256[3] memory){ return allMessage[tokenId].upgradeUsed; } 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(textTagClose,svgCommand,textTagOpen)); 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(textTagClose,svgCommand,textTagOpen)); allMessage[tokenId].publicLineCount = 1; } // previous owners claim token function claimV1Token(uint256 tokenId) public { require(mintingEnabled,"Disabled"); require(_msgSender() == v1Contract.ownerOf(tokenId), errOwn); require(allMessage[tokenId].claimed == false, "v2 token already owned"); allMessage[tokenId].claimed = true; allMessage[tokenId].writeState = 1; allMessage[tokenId].publicLineCount = 1; allMessage[tokenId].ownerLineCount = 1; allMessage[tokenId].publicMessage = ["hello world","","","",""]; allMessage[tokenId].ownerMessage = allMessage[tokenId].publicMessage; allMessage[tokenId].rareType = v1Contract.readRarityType(tokenId); // restoring available upgrades from v1 data allMessage[tokenId].upgradeAvailable = v1TokenUpgradeMap[tokenId].value; allMessage[tokenId].upgradeUsed = [0,0,0]; refreshAvailableUpgradeMetadata(tokenId); _safeMint(_msgSender(),tokenId); } // 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 _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); allMessage[tokenId].owner = to; } 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( traitMeta, upgradeWigMeta, Strings.toString(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( traitMeta, ugSphereMeta, Strings.toString(allMessage[tokenId].upgradeUsed[1]), upgradeMetaEnd)); } function refreshAvailableUpgradeMetadata(uint256 tokenId) private { allMessage[tokenId].upgradeMeta[3] = string(abi.encodePacked( traitMeta, upgradeAvailMeta, Strings.toString(allMessage[tokenId].upgradeAvailable), upgradeMetaEnd)); } function upgradeMessage(uint256 tokenId) public { require(allMessage[tokenId].owner == _msgSender(), errOwn); require(allMessage[tokenId].upgradeAvailable > 0, 'No 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( traitMeta, ugGradMeta, Strings.toString(allMessage[tokenId].upgradeUsed[2]), upgradeMetaEnd)); } else { ugType0(tokenId); } } refreshAvailableUpgradeMetadata(tokenId); allMessage[tokenId].upgradeMeta[4] = string(abi.encodePacked( traitMeta, upgradeUsedMeta, Strings.toString(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;'; attr = string(abi.encodePacked(attr,traitMeta,rarityMeta)); if(msgCopy.rareType == 4){ fontColor = 'yellow;'; attr = string(abi.encodePacked(attr,'"I just think they\'re neat"}')); } else if(msgCopy.rareType == 1){ fontColor = 'cornflowerblue;'; attr = string(abi.encodePacked(attr,'"Oh, wow. Cool."}')); } else if(msgCopy.rareType == 2){ fontColor = 'red;'; attr = string(abi.encodePacked(attr,'"Looks Rare"}')); } else if(msgCopy.rareType == 3){ fontColor = 'red;font-style: oblique;font-weight: 900;letter-spacing: 3px;'; attr = string(abi.encodePacked(attr,'"Looks Rare and Cool"}')); } else { attr = string(abi.encodePacked(attr,'"Green"}')); } string memory grad = msgCopy.upgradeUsed[2] == 0 ? "" : "2"; string memory box2 = ''; if(msgCopy.writeState==1){ box2 = string(abi.encodePacked(StringHell.SvgB1(),grad,')" />')); } string memory output = string(abi.encodePacked( StringHell.SvgStart(), fontColor, StringHell.SvgO1(), grad, ')" />', box2, StringHell.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, textTagClose, StringHell.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, textTagClose, msgCopy.upgrade, StringHell.SvgEnd())); string memory json = Base64.encode(bytes(string(abi.encodePacked( '{"name": "Message #', Strings.toString(tokenId), StringHell.Desc(), attr , StringHell.JsonStub(), Base64.encode(bytes(output)), '"}')))); output = string(abi.encodePacked(StringHell.Json(), json)); return output; } }
// SPDX-License-Identifier: Mixed... pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/utils/Strings.sol"; /// 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 = Strings.toString(rand(size-1)); string memory yLoc = Strings.toString(rand(size-2)); string memory output = string(abi.encodePacked( elli1,xLoc, elli2,yLoc, elli3,Strings.toString(rand(size-3)), elli4,Strings.toString(rand(size-3)))); output = string(abi.encodePacked( output, elli5,Strings.toString(rand(7)+1),upgradeShapeEnd, elli1,xLoc, elli2,yLoc )); output = string(abi.encodePacked( output,elli3, Strings.toString(rand(size-4)), elli4,Strings.toString(rand(size-5)), elli5,Strings.toString(rand(6)+1),upgradeShapeEnd )); output = string(abi.encodePacked( output, elli1,xLoc, elli2,yLoc, elli3,Strings.toString(rand(size-5)), elli4)); output = string(abi.encodePacked( output,Strings.toString(rand(size-6)), elli5,Strings.toString(rand(4)+1),upgradeShapeEnd )); return output; } function Wiggle(uint256 size) external view returns (string memory){ string memory output = string(abi.encodePacked( '<path d="M ', Strings.toString(rand(size-1)), strBlank, Strings.toString(rand(size-2)), strBlank, 'Q ', Strings.toString(rand(size-3)), strBlank)); output = string(abi.encodePacked(output, Strings.toString(rand(size-4)), ', ', Strings.toString(rand(size-5)), strBlank, Strings.toString(rand(size-6)), strBlank, 'T ', Strings.toString(rand(size-7)), strBlank, Strings.toString(rand(size-8)), '"' )); output = string(abi.encodePacked(output, ' stroke="red" stroke-dasharray="',Strings.toString(rand(7)+1), upgradeShapeEnd )); return output; } }
// SPDX-License-Identifier: Mixed... pragma solidity ^0.8.0; /// @title StringHell /// @notice If you know a smarter way I could have done this feel free to email me /// @author Sterling Crispin <[email protected]> /// my contract is giant /// I had to do something with these strings library StringHell { 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 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 svgB1 = '<rect y="50%" width="100%" height="100%" fill="url(#grad'; 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 desc = '", "description": "Message is an experiment in communication. Write via contract, refresh metadata. Be nice. https://sterlingcrispin.com/message.html",'; string internal constant json = 'data:application/json;base64,'; string internal constant jsonStub = '], "image": "data:image/svg+xml;base64,'; function SvgStart() external pure returns (string memory){ return svgStart; } function SvgO1() external pure returns (string memory){ return svgO1; } function SvgEnd() external pure returns (string memory){ return svgEnd; } function SvgB1() external pure returns (string memory){ return svgB1; } function SvgO3() external pure returns (string memory){ return svgO3; } function SvgP2() external pure returns (string memory){ return svgP2; } function Desc() external pure returns (string memory){ return desc; } function Json() external pure returns (string memory){ return json; } function JsonStub() external pure returns (string memory){ return jsonStub; } }
// 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: Mixed... pragma solidity ^0.8.0; /// @title v1ContractData /// @notice If you know a smarter way I could have done this feel free to email me /// @author Sterling Crispin <[email protected]> // I neglected to write accessors for upgrades available and used // so I had to scrape my own metadata and put them here for v1 to v2 transfers library v1ContractData { function GetUpgradeIdx() external pure returns (uint16[56] memory){ uint16[56] memory idx = [7,13,18,31,35,61,65,71,76,83,131,140,158,169,180,182,194,200,202,206,207,213,215,234,243,252,258,272,277,282,283,305,320,322,323,324,332,337,349,357,371,384,387,389,399,400,410,411,434,435,445,453,456,470,475,476]; return idx; } function GetUpgradeVal() external pure returns (uint8[56] memory){ uint8[56] memory val = [1,1,3,1,3,4,1,3,2,3,2,3,4,4,2,2,1,1,1,1,4,2,3,4,4,4,4,4,1,3,3,3,1,2,3,2,4,4,1,4,4,1,4,4,1,2,4,3,2,4,2,1,3,1,1,3]; return val; } }
// 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": "0x5D20b683fc110Bb1b54D1883bbc1dB9d5B021903" }, "/Users/sterlingcrispin/code/ConceptualLandscapesCONCEPT/Messages/contracts/StringHell.sol": { "StringHell": "0xCd15DA0442883FD15A450265821f1Fa09359A547" }, "/Users/sterlingcrispin/code/ConceptualLandscapesCONCEPT/Messages/contracts/v1ContractData.sol": { "v1ContractData": "0x2acF2c715956DF23A017288658D5F34Ab0cBC5cc" } }, "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":"ContractOwnerPopulateV1Upgrades","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"bool","name":"claimed","type":"bool"},{"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":"uint256","name":"tokenId","type":"uint256"}],"name":"claimV1Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"contractOwnerRegisterV1Contract","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":"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":"readUpgradeAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"readUpgradeUsed","outputs":[{"internalType":"uint256[3]","name":"","type":"uint256[3]"}],"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"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"v1TokenUpgradeMap","outputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600a805460ff19908116909155601e6011556012805490911690553480156200002c57600080fd5b506040516200625f3803806200625f8339810160408190526200004f9162000382565b6040518060400160405280600b81526020016a557372204d65737361676560a81b8152506040518060400160405280600b81526020016a555352204d45535341474560a81b8152508282828160009080519060200190620000b2929190620002dc565b508051620000c8906001906020840190620002dc565b5050506000620000dd6200015b60201b60201c565b600d80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600e80546001600160a01b0319166001600160a01b038316179055620001518362000177565b50505050620003f1565b600062000172620001db60201b620036b11760201c565b905090565b600a5460ff1615620001c05760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640160405180910390fd5b620001cb816200023a565b50600a805460ff19166001179055565b6000333014156200023457600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620002379050565b50335b90565b6040518060800160405280604f815260200162006210604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600b55565b828054620002ea90620003b4565b90600052602060002090601f0160209004810192826200030e576000855562000359565b82601f106200032957805160ff191683800117855562000359565b8280016001018555821562000359579182015b82811115620003595782518255916020019190600101906200033c565b50620003679291506200036b565b5090565b5b808211156200036757600081556001016200036c565b6000602082840312156200039557600080fd5b81516001600160a01b0381168114620003ad57600080fd5b9392505050565b600181811c90821680620003c957607f821691505b60208210811415620003eb57634e487b7160e01b600052602260045260246000fd5b50919050565b615e0f80620004016000396000f3fe6080604052600436106102485760003560e01c80636842b554116101355780636842b554146105e257806370a0823114610602578063715018a61461062257806377bd4b6f146106375780637bd3018b146106675780638cd3b08b146106875780638da5cb5b146106bb57806395d89b41146106d057806398268e08146106e5578063a1def4fc14610705578063a22cb4651461071a578063b88d4fde1461073a578063c4aba96c1461075a578063c87b56dd1461077a578063c992808a1461079a578063d3391bf8146107ba578063db38f26b146107da578063e2f9156e146107fa578063e54b153514610827578063e8c3b1b814610847578063e985e9c514610867578063f0e1bf1614610887578063f2fde38b146108a7578063f30d9e8a146108c7578063f4930619146108e757600080fd5b806209fbf41461024d57806301db4c1a1461026f57806301ffc9a7146102a557806302fcd557146102d557806306fdde03146102f5578063081812fc14610317578063095ea7b3146103445780630c53c51c146103645780630f12ac2d146103775780630f7e5970146103b257806312790b9d146103df57806313c6e55f146103ff57806318160ddd1461041f57806320379ee51461043457806323b872dd146104495780632d0335ab146104695780632d22c0591461049f5780632f745c59146104cf5780633408e470146104ef57806342842e0e146105025780634cdf76f7146105225780634f6ccce7146105525780635f795567146105725780636352211e1461059257806365db92b3146105b2575b600080fd5b34801561025957600080fd5b5061026d610268366004614e30565b610917565b005b34801561027b57600080fd5b5061028f61028a366004614e76565b6109c9565b60405161029c9190614ee7565b60405180910390f35b3480156102b157600080fd5b506102c56102c0366004614f4a565b610aa4565b604051901515815260200161029c565b3480156102e157600080fd5b5061026d6102f0366004614f67565b610acf565b34801561030157600080fd5b5061030a610bc8565b60405161029c919061500b565b34801561032357600080fd5b50610337610332366004614e76565b610c5a565b60405161029c919061501e565b34801561035057600080fd5b5061026d61035f366004615047565b610ce7565b61030a610372366004615082565b610e0a565b34801561038357600080fd5b506103a4610392366004614e76565b60106020526000908152604090205481565b60405190815260200161029c565b3480156103be57600080fd5b5061030a604051806040016040528060018152602001603160f81b81525081565b3480156103eb57600080fd5b5061028f6103fa366004614e76565b610ff3565b34801561040b57600080fd5b5061026d61041a366004614e30565b6110c3565b34801561042b57600080fd5b506008546103a4565b34801561044057600080fd5b50600b546103a4565b34801561045557600080fd5b5061026d6104643660046150f9565b611175565b34801561047557600080fd5b506103a461048436600461513a565b6001600160a01b03166000908152600c602052604090205490565b3480156104ab57600080fd5b506103a46104ba366004614e76565b6000908152601360205260409020600e015490565b3480156104db57600080fd5b506103a46104ea366004615047565b6111ad565b3480156104fb57600080fd5b50466103a4565b34801561050e57600080fd5b5061026d61051d3660046150f9565b611243565b34801561052e57600080fd5b506103a461053d366004614e76565b60009081526013602052604090206008015490565b34801561055e57600080fd5b506103a461056d366004614e76565b61125e565b34801561057e57600080fd5b5061026d61058d366004615157565b6112f1565b34801561059e57600080fd5b506103376105ad366004614e76565b611578565b3480156105be57600080fd5b506103a46105cd366004614e76565b60009081526013602052604090206018015490565b3480156105ee57600080fd5b5061026d6105fd366004615200565b6115ef565b34801561060e57600080fd5b506103a461061d36600461513a565b611641565b34801561062e57600080fd5b5061026d6116c8565b34801561064357600080fd5b506103a4610652366004614e76565b60009081526013602052604090206001015490565b34801561067357600080fd5b5061026d610682366004614e76565b611751565b34801561069357600080fd5b506106a76106a2366004614e76565b611a84565b60405161029c98979695949392919061521b565b3480156106c757600080fd5b50610337611b59565b3480156106dc57600080fd5b5061030a611b68565b3480156106f157600080fd5b5061026d61070036600461513a565b611b77565b34801561071157600080fd5b5061026d611bd8565b34801561072657600080fd5b5061026d610735366004615273565b611d86565b34801561074657600080fd5b5061026d6107553660046152a8565b611e84565b34801561076657600080fd5b5061026d610775366004615313565b611ec3565b34801561078657600080fd5b5061030a610795366004614e76565b611efc565b3480156107a657600080fd5b5061026d6107b5366004614e30565b612b9c565b3480156107c657600080fd5b5061026d6107d5366004614e76565b612bbf565b3480156107e657600080fd5b5061026d6107f5366004615313565b612efa565b34801561080657600080fd5b5061081a610815366004614e76565b612f69565b60405161029c9190615336565b34801561083357600080fd5b5061026d610842366004614e30565b612fb8565b34801561085357600080fd5b5061026d610862366004615157565b612fdb565b34801561087357600080fd5b506102c5610882366004615367565b613262565b34801561089357600080fd5b5061026d6108a2366004614f67565b613336565b3480156108b357600080fd5b5061026d6108c236600461513a565b61342d565b3480156108d357600080fd5b5061026d6108e2366004615313565b61352d565b3480156108f357600080fd5b506103a4610902366004614e76565b60009081526013602052604090206002015490565b6109208261370e565b61092982613767565b604051806040016040528060078152602001661e17ba32bc3a1f60c91b81525081604051806040016040528060068152602001651e3a32bc3a1f60d11b81525060405160200161097b939291906153bc565b60408051601f19818403018152918152600084815260136020529081206003010190805190602001906109af929190614a90565b505060009081526013602052604090206001600290910155565b6109d1614b14565b600082815260136020526040808220815160a081019092529091600390910190600590835b82821015610a99578382018054610a0c90615415565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3890615415565b8015610a855780601f10610a5a57610100808354040283529160200191610a85565b820191906000526020600020905b815481529060010190602001808311610a6857829003601f168201915b5050505050815260200190600101906109f6565b505050509050919050565b60006001600160e01b0319821663780e9d6360e01b1480610ac95750610ac9826137d7565b92915050565b610ad882613827565b610ae1826138ea565b8051604051610af39190602001615450565b60408051601f1981840301815291815260008481526013602052908120600901019080519060200190610b27929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b818401529351610b7a949192016153bc565b60408051601f1981840301815291815260008481526013602052206009016001019080519060200190610bae929190614a90565b505060009081526013602052604090206002600890910155565b606060008054610bd790615415565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0390615415565b8015610c505780601f10610c2557610100808354040283529160200191610c50565b820191906000526020600020905b815481529060010190602001808311610c3357829003601f168201915b5050505050905090565b6000610c658261395a565b610ccb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610cf282611578565b9050806001600160a01b0316836001600160a01b03161415610d605760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cc2565b806001600160a01b0316610d72613977565b6001600160a01b03161480610d8e5750610d8e81610882613977565b610dfb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610cc2565b610e058383613986565b505050565b60408051606081810183526001600160a01b0388166000818152600c602090815290859020548452830152918101869052610e4887828787876139f4565b610e9e5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610cc2565b6001600160a01b0387166000908152600c6020526040902054610ec2906001613ae4565b6001600160a01b0388166000908152600c60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610f1290899033908a9061546c565b60405180910390a1600080306001600160a01b0316888a604051602001610f3a9291906154a1565b60408051601f1981840301815290829052610f5491615450565b6000604051808303816000865af19150503d8060008114610f91576040519150601f19603f3d011682016040523d82523d6000602084013e610f96565b606091505b509150915081610fe75760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b6044820152606401610cc2565b98975050505050505050565b610ffb614b14565b600082815260136020526040808220815160a081019092529091600990910190600590835b82821015610a9957838201805461103690615415565b80601f016020809104026020016040519081016040528092919081815260200182805461106290615415565b80156110af5780601f10611084576101008083540402835291602001916110af565b820191906000526020600020905b81548152906001019060200180831161109257829003601f168201915b505050505081526020019060010190611020565b6110cc82613827565b6110d5826138ea565b604051806040016040528060078152602001661e17ba32bc3a1f60c91b81525081604051806040016040528060068152602001651e3a32bc3a1f60d11b815250604051602001611127939291906153bc565b60408051601f198184030181529181526000848152601360205290812060090101908051906020019061115b929190614a90565b505060009081526013602052604090206001600890910155565b611186611180613977565b82613af7565b6111a25760405162461bcd60e51b8152600401610cc2906154d3565b610e05838383613bb9565b60006111b883611641565b821061121a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cc2565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610e0583838360405180602001604052806000815250611e84565b600061126960085490565b82106112cc5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cc2565b600882815481106112df576112df6153ff565b90600052602060002001549050919050565b6112fa82613827565b805160405161130c9190602001615450565b60408051601f1981840301815291815260008481526013602052908120600901019080519060200190611340929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b818401529351611393949192016153bc565b60408051601f19818403018152918152600084815260136020522060090160010190805190602001906113c7929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838301518351808501855260088152671e17ba39b830b71f60c11b81840152935161141a949192016153bc565b60408051601f198184030181529181526000848152601360205220600901600201908051906020019061144e929190614a90565b5060408051808201825260168152600080516020615cfa83398151915260208083019190915260608401518351808501855260088152671e17ba39b830b71f60c11b8184015293516114a2949192016153bc565b60408051601f19818403018152918152600084815260136020522060090160030190805190602001906114d6929190614a90565b5060408051808201825260168152600080516020615cfa83398151915260208083019190915260808401518351808501855260088152671e17ba39b830b71f60c11b81840152935161152a949192016153bc565b60408051601f198184030181529181526000848152601360205220600901600401908051906020019061155e929190614a90565b505060009081526013602052604090206005600890910155565b6000818152600260205260408120546001600160a01b031680610ac95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cc2565b6115f7613977565b6001600160a01b0316611608611b59565b6001600160a01b03161461162e5760405162461bcd60e51b8152600401610cc290615524565b6012805460ff1916911515919091179055565b60006001600160a01b0382166116ac5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610cc2565b506001600160a01b031660009081526003602052604090205490565b6116d0613977565b6001600160a01b03166116e1611b59565b6001600160a01b0316146117075760405162461bcd60e51b8152600401610cc290615524565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b60125460ff1661178e5760405162461bcd60e51b8152602060048201526008602482015267111a5cd8589b195960c21b6044820152606401610cc2565b600f546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e9060240160206040518083038186803b1580156117d257600080fd5b505afa1580156117e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180a9190615559565b6001600160a01b031661181b613977565b6001600160a01b031614604051806040016040528060098152602001682737ba1027bbb732b960b91b815250906118655760405162461bcd60e51b8152600401610cc2919061500b565b50600081815260136020526040902054600160a01b900460ff16156118c55760405162461bcd60e51b81526020600482015260166024820152751d8c881d1bdad95b88185b1c9958591e481bdddb995960521b6044820152606401610cc2565b6000818152601360208181526040808420805460ff60a01b1916600160a01b1781556001818101819055600282018190556008820155815160e081018352600b60a082019081526a1a195b1b1bc81ddbdc9b1960aa1b60c0830152815282518085018452868152818501528251808501845286815281840152825180850184528681526060820152825180850190935285835260808101929092529385905291905261197691600301906005614b3b565b5060008181526013602052604090206119989060098101906003016005614b87565b50600f54604051632d22c05960e01b8152600481018390526001600160a01b0390911690632d22c0599060240160206040518083038186803b1580156119dd57600080fd5b505afa1580156119f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a159190615576565b6000828152601360208181526040808420600e8101959095556010825280842054601886015580516060810182528481528083018590529081018490529285905252611a6691601501906003614bc8565b50611a7081613d64565b611a81611a7b613977565b82613e45565b50565b60136020526000908152604090208054600182015460028301546008840154600e8501546014860180546001600160a01b03871697600160a01b90970460ff16969190611ad090615415565b80601f0160208091040260200160405190810160405280929190818152602001828054611afc90615415565b8015611b495780601f10611b1e57610100808354040283529160200191611b49565b820191906000526020600020905b815481529060010190602001808311611b2c57829003601f168201915b5050505050908060180154905088565b600d546001600160a01b031690565b606060018054610bd790615415565b611b7f613977565b6001600160a01b0316611b90611b59565b6001600160a01b031614611bb65760405162461bcd60e51b8152600401610cc290615524565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b611be0613977565b6001600160a01b0316611bf1611b59565b6001600160a01b031614611c175760405162461bcd60e51b8152600401610cc290615524565b6000732acf2c715956df23a017288658d5f34ab0cbc5cc6393a6862d6040518163ffffffff1660e01b81526004016107006040518083038186803b158015611c5e57600080fd5b505af4158015611c72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c96919061558f565b90506000732acf2c715956df23a017288658d5f34ab0cbc5cc63883d6bc26040518163ffffffff1660e01b81526004016107006040518083038186803b158015611cdf57600080fd5b505af4158015611cf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d179190615601565b905060005b6038811015610e0557818160388110611d3757611d376153ff565b602002015160ff1660106000858460388110611d5557611d556153ff565b602002015161ffff168152602001908152602001600020600001819055508080611d7e90615677565b915050611d1c565b611d8e613977565b6001600160a01b0316826001600160a01b03161415611deb5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610cc2565b8060056000611df8613977565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611e3c613977565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e78911515815260200190565b60405180910390a35050565b611e95611e8f613977565b83613af7565b611eb15760405162461bcd60e51b8152600401610cc2906154d3565b611ebd84848484613e5f565b50505050565b611ecc82613827565b80611ed8576000611edb565b60015b60ff1660136000848152602001908152602001600020600101819055505050565b600081815260136020908152604080832081516101808101835281546001600160a01b0381168252600160a01b900460ff161515938101939093526001810154838301526002810154606080850191909152825160a08101909352939291608083019060038301600586835b8282101561200b578382018054611f7e90615415565b80601f0160208091040260200160405190810160405280929190818152602001828054611faa90615415565b8015611ff75780601f10611fcc57610100808354040283529160200191611ff7565b820191906000526020600020905b815481529060010190602001808311611fda57829003601f168201915b505050505081526020019060010190611f68565b50505090825250600882015460208201526040805160a0810182529101906009830160056000835b828210156120d657838201805461204990615415565b80601f016020809104026020016040519081016040528092919081815260200182805461207590615415565b80156120c25780601f10612097576101008083540402835291602001916120c2565b820191906000526020600020905b8154815290600101906020018083116120a557829003601f168201915b505050505081526020019060010190612033565b50505090825250600e82015460208201526040805160a081018252910190600f830160056000835b828210156121a157838201805461211490615415565b80601f016020809104026020016040519081016040528092919081815260200182805461214090615415565b801561218d5780601f106121625761010080835404028352916020019161218d565b820191906000526020600020905b81548152906001019060200180831161217057829003601f168201915b5050505050815260200190600101906120fe565b5050505081526020016014820180546121b990615415565b80601f01602080910402602001604051908101604052809291908181526020018280546121e590615415565b80156122325780601f1061220757610100808354040283529160200191612232565b820191906000526020600020905b81548152906001019060200180831161221557829003601f168201915b505050918352505060408051606081019182905260209092019190601584019060039082845b81548152602001906001019080831161225857505050505081526020016018820154815250509050600081610100015160006005811061229a5761229a6153ff565b6020908102919091015161010084015180830151604080830151606084015160809094015191516122d2969394919391929101615692565b60408051601f198184030181528282018252600a8352696c696d65677265656e3b60b01b60208481019190915282518084018452600f8082526e03d913a3930b4ba2fba3cb832911d1608d1b82840152845180860186529081526e112b34b1329116113b30b63ab2911d60891b81840152935192955061235893869391929091016153bc565b60405160208183030381529060405291508260e00151600414156123bf576040518060400160405280600781526020016679656c6c6f773b60c81b8152509050816040516020016123a9919061571f565b60405160208183030381529060405291506124a0565b8260e0015160011415612407576040518060400160405280600f81526020016e636f726e666c6f776572626c75653b60881b8152509050816040516020016123a9919061575f565b8260e001516002141561244457604051806040016040528060048152602001637265643b60e01b8152509050816040516020016123a99190615794565b8260e001516003141561247d576040518060600160405280603d8152602001615d1a603d91399050816040516020016123a991906157c5565b8160405160200161248e91906157ff565b60405160208183030381529060405291505b61014083015160400151600090156124d157604051806040016040528060018152602001601960f91b8152506124e2565b604051806020016040528060008152505b60408051602081018252600081529086015191925090600114156125a45773cd15da0442883fd15a450265821f1fa09359a5476326878b216040518163ffffffff1660e01b815260040160006040518083038186803b15801561254457600080fd5b505af4158015612558573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612580919081019061582b565b82604051602001612592929190615898565b60405160208183030381529060405290505b600073cd15da0442883fd15a450265821f1fa09359a547634402be596040518163ffffffff1660e01b815260040160006040518083038186803b1580156125ea57600080fd5b505af41580156125fe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612626919081019061582b565b8473cd15da0442883fd15a450265821f1fa09359a547632e173c9e6040518163ffffffff1660e01b815260040160006040518083038186803b15801561266b57600080fd5b505af415801561267f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526126a7919081019061582b565b858573cd15da0442883fd15a450265821f1fa09359a54763ed60c3696040518163ffffffff1660e01b815260040160006040518083038186803b1580156126ed57600080fd5b505af4158015612701573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612729919081019061582b565b60405160200161273e969594939291906158d7565b6040516020818303038152906040529050808660c00151600060058110612767576127676153ff565b6020908102919091015160c0890151808301516040808301516060840151608090940151915161279f9796939491939192910161596a565b60405160208183030381529060405290508560400151600114156128e05780604051806040016040528060078152602001661e17ba32bc3a1f60c91b81525073cd15da0442883fd15a450265821f1fa09359a5476304a0d8216040518163ffffffff1660e01b815260040160006040518083038186803b15801561282257600080fd5b505af4158015612836573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261285e919081019061582b565b6080890151805160208083015160409384015193516128829796959491920161596a565b60405160208183030381529060405290508086608001516003600581106128ab576128ab6153ff565b60200201516080880151600460200201516040516020016128ce939291906153bc565b60405160208183030381529060405290505b80604051806040016040528060078152602001661e17ba32bc3a1f60c91b81525087610120015173cd15da0442883fd15a450265821f1fa09359a547631cde66516040518163ffffffff1660e01b815260040160006040518083038186803b15801561294b57600080fd5b505af415801561295f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612987919081019061582b565b60405160200161299a94939291906159e9565b60405160208183030381529060405290506000612aeb6129b98a613e92565b73cd15da0442883fd15a450265821f1fa09359a54763d3bce20c6040518163ffffffff1660e01b815260040160006040518083038186803b1580156129fd57600080fd5b505af4158015612a11573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612a39919081019061582b565b8873cd15da0442883fd15a450265821f1fa09359a547638df430456040518163ffffffff1660e01b815260040160006040518083038186803b158015612a7e57600080fd5b505af4158015612a92573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612aba919081019061582b565b612ac387613f8f565b604051602001612ad7959493929190615a40565b604051602081830303815290604052613f8f565b905073cd15da0442883fd15a450265821f1fa09359a547636082b4896040518163ffffffff1660e01b815260040160006040518083038186803b158015612b3157600080fd5b505af4158015612b45573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b6d919081019061582b565b81604051602001612b7f929190615ade565b60408051601f198184030181529190529998505050505050505050565b612ba582613827565b612bae826138ea565b806040516020016111279190615450565b612bc7613977565b60008281526013602090815260409182902054825180840190935260098352682737ba1027bbb732b960b91b9183019190915290916001600160a01b03918216911614612c275760405162461bcd60e51b8152600401610cc2919061500b565b50600081815260136020526040902060180154612c745760405162461bcd60e51b815260206004820152600b60248201526a4e6f20757067726164657360a81b6044820152606401610cc2565b6000818152601360205260408120601801805460019290612c96908490615b0d565b9091555060009050612ca860036140f4565b905080612cbd57612cb882614145565b612dfc565b8060011415612ccf57612cb882614310565b8060021415612dfc5760008281526013602052604090206017015460011115612df3576000828152601360205260408120601701805460019290612d14908490615b24565b9091555050604080518082018252600f81526e03d913a3930b4ba2fba3cb832911d1608d1b6020808301919091528251808401845260148152731129bab73934b9b29116113b30b63ab2911d101160611b8183015260008681526013909252929020909190612d8a9060150160025b0154613e92565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001612db994939291906159e9565b60408051601f198184030181529181526000848152601360205220600f016002019080519060200190612ded929190614a90565b50612dfc565b612dfc82614145565b612e0582613d64565b604080518082018252600f81526e03d913a3930b4ba2fba3cb832911d1608d1b60208083019190915282518084018452601a815279112ab833b930b232b9902ab9b2b21116113b30b63ab2911d101160311b818301526000868152601390925292902060178101546016820154601590920154929392612e9792612e8891615b24565b612e929190615b24565b613e92565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001612ec694939291906159e9565b60408051601f198184030181529181526000848152601360205220600f016004019080519060200190610e05929190614a90565b612f02613977565b6001600160a01b0316612f13611b59565b6001600160a01b031614612f395760405162461bcd60e51b8152600401610cc290615524565b80612f45576000612f48565b60015b60ff1660136000848152602001908152602001600020600e01819055505050565b612f71614bfb565b6000828152601360205260409081902081516060810190925260150160038282826020028201915b815481526020019060010190808311612f995750505050509050919050565b612fc18261370e565b612fca82613767565b8060405160200161097b9190615450565b612fe48261370e565b8051604051612ff69190602001615450565b60408051601f198184030181529181526000848152601360205290812060030101908051906020019061302a929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b81840152935161307d949192016153bc565b60408051601f19818403018152918152600084815260136020522060030160010190805190602001906130b1929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838301518351808501855260088152671e17ba39b830b71f60c11b818401529351613104949192016153bc565b60408051601f1981840301815291815260008481526013602052206003016002019080519060200190613138929190614a90565b5060408051808201825260168152600080516020615cfa83398151915260208083019190915260608401518351808501855260088152671e17ba39b830b71f60c11b81840152935161318c949192016153bc565b60408051601f19818403018152918152600084815260136020522060039081010190805190602001906131c0929190614a90565b5060408051808201825260168152600080516020615cfa83398151915260208083019190915260808401518351808501855260088152671e17ba39b830b71f60c11b818401529351613214949192016153bc565b60408051601f1981840301815291815260008481526013602052206003016004019080519060200190613248929190614a90565b505060009081526013602052604090206005600290910155565b600e5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c45527919061329b90889060040161501e565b60206040518083038186803b1580156132b357600080fd5b505afa1580156132c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132eb9190615559565b6001600160a01b03161415613304576001915050610ac9565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b61333f8261370e565b61334882613767565b805160405161335a9190602001615450565b60408051601f198184030181529181526000848152601360205290812060030101908051906020019061338e929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b8184015293516133e1949192016153bc565b60408051601f1981840301815291815260008481526013602052206003016001019080519060200190613415929190614a90565b50506000908152601360205260409020600290810155565b613435613977565b6001600160a01b0316613446611b59565b6001600160a01b03161461346c5760405162461bcd60e51b8152600401610cc290615524565b6001600160a01b0381166134d15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cc2565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b613535613977565b6001600160a01b0316613546611b59565b6001600160a01b03161461356c5760405162461bcd60e51b8152600401610cc290615524565b8061357857600261357b565b60005b600083815260136020526040902060ff91909116600190910155806136ad576135a382613767565b6135ac826138ea565b600082815260136020818152604080842060026001808301829055600e830187905560088301819055908201556018810185905581516060810183528581528084018690529182018590529386905291905261360d91601501906003614bc8565b5060408051602080820180845260008084528681526013909252929020905161363c9260149092019190614a90565b506040805160c081018252600060a0820181815282528251602081810185528282528084019190915283518082018552828152838501528351808201855282815260608401528351808201855282815260808401528582526013905291909120610e0591600f909101906005614b3b565b5050565b60003330141561370857600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061370b9050565b50335b90565b601360008281526020019081526020016000206001015460011460405180604001604052806008815260200167111a5cd8589b195960c21b815250906136ad5760405162461bcd60e51b8152600401610cc2919061500b565b6040805160c081018252600060a08201818152825282516020818101855282825280840191909152835180820185528281528385015283518082018552828152606084015283518082018552828152608084015284825260139052919091206136ad916003909101906005614b3b565b60006001600160e01b031982166380ac58cd60e01b148061380857506001600160e01b03198216635b5e139f60e01b145b80610ac957506301ffc9a760e01b6001600160e01b0319831614610ac9565b60136000828152602001908152602001600020600101546002141560405180604001604052806008815260200167111a5cd8589b195960c21b815250906138815760405162461bcd60e51b8152600401610cc2919061500b565b5061388a613977565b60008281526013602090815260409182902054825180840190935260098352682737ba1027bbb732b960b91b9183019190915290916001600160a01b039182169116146136ad5760405162461bcd60e51b8152600401610cc2919061500b565b6040805160c081018252600060a08201818152825282516020818101855282825280840191909152835180820185528281528385015283518082018552828152606084015283518082018552828152608084015284825260139052919091206136ad916009909101906005614b3b565b6000908152600260205260409020546001600160a01b0316151590565b60006139816136b1565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906139bb82611578565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616613a5a5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610cc2565b6001613a6d613a68876144dc565b614559565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015613abb573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000613af08284615b24565b9392505050565b6000613b028261395a565b613b635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cc2565b6000613b6e83611578565b9050806001600160a01b0316846001600160a01b03161480613ba95750836001600160a01b0316613b9e84610c5a565b6001600160a01b0316145b8061332e575061332e8185613262565b826001600160a01b0316613bcc82611578565b6001600160a01b031614613c345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cc2565b6001600160a01b038216613c965760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cc2565b613ca1838383614589565b613cac600082613986565b6001600160a01b0383166000908152600360205260408120805460019290613cd5908490615b0d565b90915550506001600160a01b0382166000908152600360205260408120805460019290613d03908490615b24565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040518060400160405280600f81526020016e03d913a3930b4ba2fba3cb832911d1608d1b8152506040518060400160405280601e81526020017f225570677261646520417661696c61626c65222c2276616c7565223a20220000815250613de16013600085815260200190815260200160002060180154613e92565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001613e1094939291906159e9565b60408051601f198184030181529181526000838152601360205220600f0160035b0190805190602001906136ad929190614a90565b6136ad8282604051806020016040528060008152506145c3565b613e6a848484613bb9565b613e76848484846145f6565b611ebd5760405162461bcd60e51b8152600401610cc290615b3c565b606081613eb65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613ee05780613eca81615677565b9150613ed99050600a83615ba4565b9150613eba565b6000816001600160401b03811115613efa57613efa614d00565b6040519080825280601f01601f191660200182016040528015613f24576020820181803683370190505b5090505b841561332e57613f39600183615b0d565b9150613f46600a86615bb8565b613f51906030615b24565b60f81b818381518110613f6657613f666153ff565b60200101906001600160f81b031916908160001a905350613f88600a86615ba4565b9450613f28565b805160609080613faf575050604080516020810190915260008152919050565b60006003613fbe836002615b24565b613fc89190615ba4565b613fd3906004615bcc565b90506000613fe2826020615b24565b6001600160401b03811115613ff957613ff9614d00565b6040519080825280601f01601f191660200182016040528015614023576020820181803683370190505b5090506000604051806060016040528060408152602001615d9a604091399050600181016020830160005b868110156140af576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b83526004909201910161404e565b5060038606600181146140c957600281146140da576140e6565b613d3d60f01b6001198301526140e6565b603d60f81b6000198301525b505050918152949350505050565b60008144428461410360085490565b6040805160208101959095528401929092526060830152608082015260a0016040516020818303038152906040528051906020012060001c610ac99190615bb8565b60008181526013602052604090819020905163c092feef60e01b81526101906004820152601490910190735d20b683fc110bb1b54d1883bbc1db9d5b0219039063c092feef9060240160006040518083038186803b1580156141a657600080fd5b505af41580156141ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526141e2919081019061582b565b6040516020016141f3929190615beb565b60408051601f1981840301815291815260008381526013602090815291902082516142279360149092019290910190614a90565b50600081815260136020526040812060150180546001929061424a908490615b24565b9091555050604080518082018252600f81526e03d913a3930b4ba2fba3cb832911d1608d1b60208083019190915282518084018452601380825272112bb4b3b3b6329116113b30b63ab2911d101160691b82840152600086815292529281209192916142bb91601590910190612d83565b60405180604001604052806003815260200162089f4b60ea1b8152506040516020016142ea94939291906159e9565b60408051601f1981840301815291815260008381526013602052908120600f0190613e31565b60008181526013602052604090819020905163732360a960e11b81526101906004820152601490910190735d20b683fc110bb1b54d1883bbc1db9d5b0219039063e646c1529060240160006040518083038186803b15801561437157600080fd5b505af4158015614385573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526143ad919081019061582b565b6040516020016143be929190615beb565b60408051601f1981840301815291815260008381526013602090815291902082516143f29360149092019290910190614a90565b506000818152601360205260408120601601805460019290614415908490615b24565b9091555050604080518082018252600f81526e03d913a3930b4ba2fba3cb832911d1608d1b6020808301919091528251808401845260148152731129b83432b932b99116113b30b63ab2911d101160611b8183015260008581526013909252929020909190614488906015016001612d83565b60405180604001604052806003815260200162089f4b60ea1b8152506040516020016144b794939291906159e9565b60408051601f198184030181529181526000838152601360205220600f016001613e31565b6000604051806080016040528060438152602001615d57604391398051602091820120835184830151604080870151805190860120905161453c950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000614564600b5490565b60405161190160f01b602082015260228101919091526042810183905260620161453c565b61459483838361470a565b600090815260136020526040902080546001600160a01b0319166001600160a01b039290921691909117905550565b6145cd83836147c2565b6145da60008484846145f6565b610e055760405162461bcd60e51b8152600401610cc290615b3c565b60006001600160a01b0384163b156146ff57836001600160a01b031663150b7a0261461f613977565b8786866040518563ffffffff1660e01b81526004016146419493929190615c89565b602060405180830381600087803b15801561465b57600080fd5b505af192505050801561468b575060408051601f3d908101601f1916820190925261468891810190615cc6565b60015b6146e5573d8080156146b9576040519150601f19603f3d011682016040523d82523d6000602084013e6146be565b606091505b5080516146dd5760405162461bcd60e51b8152600401610cc290615b3c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061332e565b506001949350505050565b6001600160a01b0383166147655761476081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b614788565b816001600160a01b0316836001600160a01b031614614788576147888382614900565b6001600160a01b03821661479f57610e058161499d565b826001600160a01b0316826001600160a01b031614610e0557610e058282614a4c565b6001600160a01b0382166148185760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cc2565b6148218161395a565b1561486d5760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610cc2565b61487960008383614589565b6001600160a01b03821660009081526003602052604081208054600192906148a2908490615b24565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161490d84611641565b6149179190615b0d565b60008381526007602052604090205490915080821461496a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906149af90600190615b0d565b600083815260096020526040812054600880549394509092849081106149d7576149d76153ff565b9060005260206000200154905080600883815481106149f8576149f86153ff565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614a3057614a30615ce3565b6001900381819060005260206000200160009055905550505050565b6000614a5783611641565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054614a9c90615415565b90600052602060002090601f016020900481019282614abe5760008555614b04565b82601f10614ad757805160ff1916838001178555614b04565b82800160010185558215614b04579182015b82811115614b04578251825591602001919060010190614ae9565b50614b10929150614c19565b5090565b6040518060a001604052806005905b6060815260200190600190039081614b235790505090565b8260058101928215614b7b579160200282015b82811115614b7b5782518051614b6b918491602090910190614a90565b5091602001919060010190614b4e565b50614b10929150614c2e565b8260058101928215614b7b579182015b82811115614b7b578282908054614bad90615415565b614bb8929190614c4b565b5091600101919060010190614b97565b8260038101928215614b04579160200282015b82811115614b04578251829060ff16905591602001919060010190614bdb565b60405180606001604052806003906020820280368337509192915050565b5b80821115614b105760008155600101614c1a565b80821115614b10576000614c428282614cc6565b50600101614c2e565b828054614c5790615415565b90600052602060002090601f016020900481019282614c795760008555614b04565b82601f10614c8a5780548555614b04565b82800160010185558215614b0457600052602060002091601f016020900482015b82811115614b04578254825591600101919060010190614cab565b508054614cd290615415565b6000825580601f10614ce2575050565b601f016020900490600052602060002090810190611a819190614c19565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715614d3857614d38614d00565b60405290565b60405160a081016001600160401b0381118282101715614d3857614d38614d00565b60405161070081016001600160401b0381118282101715614d3857614d38614d00565b604051601f8201601f191681016001600160401b0381118282101715614dab57614dab614d00565b604052919050565b60006001600160401b03821115614dcc57614dcc614d00565b50601f01601f191660200190565b600082601f830112614deb57600080fd5b8135614dfe614df982614db3565b614d83565b818152846020838601011115614e1357600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215614e4357600080fd5b8235915060208301356001600160401b03811115614e6057600080fd5b614e6c85828601614dda565b9150509250929050565b600060208284031215614e8857600080fd5b5035919050565b60005b83811015614eaa578181015183820152602001614e92565b83811115611ebd5750506000910152565b60008151808452614ed3816020860160208601614e8f565b601f01601f19169290920160200192915050565b602080825260009060c0830183820185845b6005811015614f2857601f19878503018352614f16848351614ebb565b93509184019190840190600101614ef9565b50919695505050505050565b6001600160e01b031981168114611a8157600080fd5b600060208284031215614f5c57600080fd5b8135613af081614f34565b60008060408385031215614f7a57600080fd5b823591506020808401356001600160401b0380821115614f9957600080fd5b818601915086601f830112614fad57600080fd5b614fb5614d16565b806040840189811115614fc757600080fd5b845b81811015614ffb57803585811115614fe15760008081fd5b614fed8c828901614dda565b855250928601928601614fc9565b5096999098509650505050505050565b602081526000613af06020830184614ebb565b6001600160a01b0391909116815260200190565b6001600160a01b0381168114611a8157600080fd5b6000806040838503121561505a57600080fd5b823561506581615032565b946020939093013593505050565b60ff81168114611a8157600080fd5b600080600080600060a0868803121561509a57600080fd5b85356150a581615032565b945060208601356001600160401b038111156150c057600080fd5b6150cc88828901614dda565b945050604086013592506060860135915060808601356150eb81615073565b809150509295509295909350565b60008060006060848603121561510e57600080fd5b833561511981615032565b9250602084013561512981615032565b929592945050506040919091013590565b60006020828403121561514c57600080fd5b8135613af081615032565b6000806040838503121561516a57600080fd5b823591506020808401356001600160401b038082111561518957600080fd5b818601915086601f83011261519d57600080fd5b6151a5614d3e565b8060a08401898111156151b757600080fd5b845b81811015614ffb578035858111156151d15760008081fd5b6151dd8c828901614dda565b8552509286019286016151b9565b803580151581146151fb57600080fd5b919050565b60006020828403121561521257600080fd5b613af0826151eb565b600061010060018060a01b038b16835289151560208401528860408401528760608401528660808401528560a08401528060c084015261525d81840186614ebb565b9150508260e08301529998505050505050505050565b6000806040838503121561528657600080fd5b823561529181615032565b915061529f602084016151eb565b90509250929050565b600080600080608085870312156152be57600080fd5b84356152c981615032565b935060208501356152d981615032565b92506040850135915060608501356001600160401b038111156152fb57600080fd5b61530787828801614dda565b91505092959194509250565b6000806040838503121561532657600080fd5b8235915061529f602084016151eb565b60608101818360005b600381101561535e57815183526020928301929091019060010161533f565b50505092915050565b6000806040838503121561537a57600080fd5b823561538581615032565b9150602083013561539581615032565b809150509250929050565b600081516153b2818560208601614e8f565b9290920192915050565b600084516153ce818460208901614e8f565b8451908301906153e2818360208901614e8f565b84519101906153f5818360208801614e8f565b0195945050505050565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061542957607f821691505b6020821081141561544a57634e487b7160e01b600052602260045260246000fd5b50919050565b60008251615462818460208701614e8f565b9190910192915050565b6001600160a01b0384811682528316602082015260606040820181905260009061549890830184614ebb565b95945050505050565b600083516154b3818460208801614e8f565b60609390931b6001600160601b0319169190920190815260140192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561556b57600080fd5b8151613af081615032565b60006020828403121561558857600080fd5b5051919050565b60006107008083850312156155a357600080fd5b83601f8401126155b257600080fd5b6155ba614d60565b9083019080858311156155cc57600080fd5b845b838110156155f757805161ffff811681146155e95760008081fd5b8352602092830192016155ce565b5095945050505050565b600061070080838503121561561557600080fd5b83601f84011261562457600080fd5b61562c614d60565b90830190808583111561563e57600080fd5b845b838110156155f757805161565381615073565b835260209283019201615640565b634e487b7160e01b600052601160045260246000fd5b600060001982141561568b5761568b615661565b5060010190565b6e2261747472696275746573223a205b60881b81526000600f87516156bd8183860160208c01614e8f565b8751908401906156d38184840160208c01614e8f565b87519101906156e88184840160208b01614e8f565b86519101906156fd8184840160208a01614e8f565b85519101906157128184840160208901614e8f565b0101979650505050505050565b60008251615731818460208701614e8f565b7b2249206a757374207468696e6b2074686579277265206e656174227d60201b920191825250601c01919050565b60008251615771818460208701614e8f565b70224f682c20776f772e20436f6f6c2e227d60781b920191825250601101919050565b600082516157a6818460208701614e8f565b6c224c6f6f6b732052617265227d60981b920191825250600d01919050565b600082516157d7818460208701614e8f565b75224c6f6f6b73205261726520616e6420436f6f6c227d60501b920191825250601601919050565b60008251615811818460208701614e8f565b6722477265656e227d60c01b920191825250600801919050565b60006020828403121561583d57600080fd5b81516001600160401b0381111561585357600080fd5b8201601f8101841361586457600080fd5b8051615872614df982614db3565b81815285602083850101111561588757600080fd5b615498826020830160208601614e8f565b600083516158aa818460208801614e8f565b8351908301906158be818360208801614e8f565b64149110179f60d91b9101908152600501949350505050565b6000875160206158ea8285838d01614e8f565b8851918401916158fd8184848d01614e8f565b885192019161590f8184848c01614e8f565b87519201916159218184848b01614e8f565b64149110179f60d91b920191825285516159418160058501848a01614e8f565b85519201916159568160058501848901614e8f565b919091016005019998505050505050505050565b60008751602061597d8285838d01614e8f565b8851918401916159908184848d01614e8f565b88519201916159a28184848c01614e8f565b87519201916159b48184848b01614e8f565b86519201916159c68184848a01614e8f565b85519201916159d88184848901614e8f565b919091019998505050505050505050565b600085516159fb818460208a01614e8f565b855190830190615a0f818360208a01614e8f565b8551910190615a22818360208901614e8f565b8451910190615a35818360208801614e8f565b019695505050505050565b727b226e616d65223a20224d657373616765202360681b8152600060138751615a6f8183860160208c01614e8f565b875190840190615a858184840160208c01614e8f565b8751910190615a9a8184840160208b01614e8f565b8651910190615aaf8184840160208a01614e8f565b8551910190615ac48184840160208901614e8f565b61227d60f01b910191820152601501979650505050505050565b60008351615af0818460208801614e8f565b835190830190615b04818360208801614e8f565b01949350505050565b600082821015615b1f57615b1f615661565b500390565b60008219821115615b3757615b37615661565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082615bb357615bb3615b8e565b500490565b600082615bc757615bc7615b8e565b500690565b6000816000190483118215151615615be657615be6615661565b500290565b600080845481600182811c915080831680615c0757607f831692505b6020808410821415615c2757634e487b7160e01b86526022600452602486fd5b818015615c3b5760018114615c4c57615c79565b60ff19861689528489019650615c79565b60008b81526020902060005b86811015615c715781548b820152908501908301615c58565b505084890196505b50505050505061549881856153a0565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615cbc90830184614ebb565b9695505050505050565b600060208284031215615cd857600080fd5b8151613af081614f34565b634e487b7160e01b600052603160045260246000fdfe3c747370616e20783d223430222064793d223235223e000000000000000000007265643b666f6e742d7374796c653a206f626c697175653b666f6e742d7765696768743a203930303b6c65747465722d73706163696e673a203370783b4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220f8f6866f631e69923c16795be9633a1da330d89775165fbc4f3a363b645d785064736f6c63430008090033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106102485760003560e01c80636842b554116101355780636842b554146105e257806370a0823114610602578063715018a61461062257806377bd4b6f146106375780637bd3018b146106675780638cd3b08b146106875780638da5cb5b146106bb57806395d89b41146106d057806398268e08146106e5578063a1def4fc14610705578063a22cb4651461071a578063b88d4fde1461073a578063c4aba96c1461075a578063c87b56dd1461077a578063c992808a1461079a578063d3391bf8146107ba578063db38f26b146107da578063e2f9156e146107fa578063e54b153514610827578063e8c3b1b814610847578063e985e9c514610867578063f0e1bf1614610887578063f2fde38b146108a7578063f30d9e8a146108c7578063f4930619146108e757600080fd5b806209fbf41461024d57806301db4c1a1461026f57806301ffc9a7146102a557806302fcd557146102d557806306fdde03146102f5578063081812fc14610317578063095ea7b3146103445780630c53c51c146103645780630f12ac2d146103775780630f7e5970146103b257806312790b9d146103df57806313c6e55f146103ff57806318160ddd1461041f57806320379ee51461043457806323b872dd146104495780632d0335ab146104695780632d22c0591461049f5780632f745c59146104cf5780633408e470146104ef57806342842e0e146105025780634cdf76f7146105225780634f6ccce7146105525780635f795567146105725780636352211e1461059257806365db92b3146105b2575b600080fd5b34801561025957600080fd5b5061026d610268366004614e30565b610917565b005b34801561027b57600080fd5b5061028f61028a366004614e76565b6109c9565b60405161029c9190614ee7565b60405180910390f35b3480156102b157600080fd5b506102c56102c0366004614f4a565b610aa4565b604051901515815260200161029c565b3480156102e157600080fd5b5061026d6102f0366004614f67565b610acf565b34801561030157600080fd5b5061030a610bc8565b60405161029c919061500b565b34801561032357600080fd5b50610337610332366004614e76565b610c5a565b60405161029c919061501e565b34801561035057600080fd5b5061026d61035f366004615047565b610ce7565b61030a610372366004615082565b610e0a565b34801561038357600080fd5b506103a4610392366004614e76565b60106020526000908152604090205481565b60405190815260200161029c565b3480156103be57600080fd5b5061030a604051806040016040528060018152602001603160f81b81525081565b3480156103eb57600080fd5b5061028f6103fa366004614e76565b610ff3565b34801561040b57600080fd5b5061026d61041a366004614e30565b6110c3565b34801561042b57600080fd5b506008546103a4565b34801561044057600080fd5b50600b546103a4565b34801561045557600080fd5b5061026d6104643660046150f9565b611175565b34801561047557600080fd5b506103a461048436600461513a565b6001600160a01b03166000908152600c602052604090205490565b3480156104ab57600080fd5b506103a46104ba366004614e76565b6000908152601360205260409020600e015490565b3480156104db57600080fd5b506103a46104ea366004615047565b6111ad565b3480156104fb57600080fd5b50466103a4565b34801561050e57600080fd5b5061026d61051d3660046150f9565b611243565b34801561052e57600080fd5b506103a461053d366004614e76565b60009081526013602052604090206008015490565b34801561055e57600080fd5b506103a461056d366004614e76565b61125e565b34801561057e57600080fd5b5061026d61058d366004615157565b6112f1565b34801561059e57600080fd5b506103376105ad366004614e76565b611578565b3480156105be57600080fd5b506103a46105cd366004614e76565b60009081526013602052604090206018015490565b3480156105ee57600080fd5b5061026d6105fd366004615200565b6115ef565b34801561060e57600080fd5b506103a461061d36600461513a565b611641565b34801561062e57600080fd5b5061026d6116c8565b34801561064357600080fd5b506103a4610652366004614e76565b60009081526013602052604090206001015490565b34801561067357600080fd5b5061026d610682366004614e76565b611751565b34801561069357600080fd5b506106a76106a2366004614e76565b611a84565b60405161029c98979695949392919061521b565b3480156106c757600080fd5b50610337611b59565b3480156106dc57600080fd5b5061030a611b68565b3480156106f157600080fd5b5061026d61070036600461513a565b611b77565b34801561071157600080fd5b5061026d611bd8565b34801561072657600080fd5b5061026d610735366004615273565b611d86565b34801561074657600080fd5b5061026d6107553660046152a8565b611e84565b34801561076657600080fd5b5061026d610775366004615313565b611ec3565b34801561078657600080fd5b5061030a610795366004614e76565b611efc565b3480156107a657600080fd5b5061026d6107b5366004614e30565b612b9c565b3480156107c657600080fd5b5061026d6107d5366004614e76565b612bbf565b3480156107e657600080fd5b5061026d6107f5366004615313565b612efa565b34801561080657600080fd5b5061081a610815366004614e76565b612f69565b60405161029c9190615336565b34801561083357600080fd5b5061026d610842366004614e30565b612fb8565b34801561085357600080fd5b5061026d610862366004615157565b612fdb565b34801561087357600080fd5b506102c5610882366004615367565b613262565b34801561089357600080fd5b5061026d6108a2366004614f67565b613336565b3480156108b357600080fd5b5061026d6108c236600461513a565b61342d565b3480156108d357600080fd5b5061026d6108e2366004615313565b61352d565b3480156108f357600080fd5b506103a4610902366004614e76565b60009081526013602052604090206002015490565b6109208261370e565b61092982613767565b604051806040016040528060078152602001661e17ba32bc3a1f60c91b81525081604051806040016040528060068152602001651e3a32bc3a1f60d11b81525060405160200161097b939291906153bc565b60408051601f19818403018152918152600084815260136020529081206003010190805190602001906109af929190614a90565b505060009081526013602052604090206001600290910155565b6109d1614b14565b600082815260136020526040808220815160a081019092529091600390910190600590835b82821015610a99578382018054610a0c90615415565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3890615415565b8015610a855780601f10610a5a57610100808354040283529160200191610a85565b820191906000526020600020905b815481529060010190602001808311610a6857829003601f168201915b5050505050815260200190600101906109f6565b505050509050919050565b60006001600160e01b0319821663780e9d6360e01b1480610ac95750610ac9826137d7565b92915050565b610ad882613827565b610ae1826138ea565b8051604051610af39190602001615450565b60408051601f1981840301815291815260008481526013602052908120600901019080519060200190610b27929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b818401529351610b7a949192016153bc565b60408051601f1981840301815291815260008481526013602052206009016001019080519060200190610bae929190614a90565b505060009081526013602052604090206002600890910155565b606060008054610bd790615415565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0390615415565b8015610c505780601f10610c2557610100808354040283529160200191610c50565b820191906000526020600020905b815481529060010190602001808311610c3357829003601f168201915b5050505050905090565b6000610c658261395a565b610ccb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610cf282611578565b9050806001600160a01b0316836001600160a01b03161415610d605760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cc2565b806001600160a01b0316610d72613977565b6001600160a01b03161480610d8e5750610d8e81610882613977565b610dfb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610cc2565b610e058383613986565b505050565b60408051606081810183526001600160a01b0388166000818152600c602090815290859020548452830152918101869052610e4887828787876139f4565b610e9e5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610cc2565b6001600160a01b0387166000908152600c6020526040902054610ec2906001613ae4565b6001600160a01b0388166000908152600c60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610f1290899033908a9061546c565b60405180910390a1600080306001600160a01b0316888a604051602001610f3a9291906154a1565b60408051601f1981840301815290829052610f5491615450565b6000604051808303816000865af19150503d8060008114610f91576040519150601f19603f3d011682016040523d82523d6000602084013e610f96565b606091505b509150915081610fe75760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b6044820152606401610cc2565b98975050505050505050565b610ffb614b14565b600082815260136020526040808220815160a081019092529091600990910190600590835b82821015610a9957838201805461103690615415565b80601f016020809104026020016040519081016040528092919081815260200182805461106290615415565b80156110af5780601f10611084576101008083540402835291602001916110af565b820191906000526020600020905b81548152906001019060200180831161109257829003601f168201915b505050505081526020019060010190611020565b6110cc82613827565b6110d5826138ea565b604051806040016040528060078152602001661e17ba32bc3a1f60c91b81525081604051806040016040528060068152602001651e3a32bc3a1f60d11b815250604051602001611127939291906153bc565b60408051601f198184030181529181526000848152601360205290812060090101908051906020019061115b929190614a90565b505060009081526013602052604090206001600890910155565b611186611180613977565b82613af7565b6111a25760405162461bcd60e51b8152600401610cc2906154d3565b610e05838383613bb9565b60006111b883611641565b821061121a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cc2565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610e0583838360405180602001604052806000815250611e84565b600061126960085490565b82106112cc5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cc2565b600882815481106112df576112df6153ff565b90600052602060002001549050919050565b6112fa82613827565b805160405161130c9190602001615450565b60408051601f1981840301815291815260008481526013602052908120600901019080519060200190611340929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b818401529351611393949192016153bc565b60408051601f19818403018152918152600084815260136020522060090160010190805190602001906113c7929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838301518351808501855260088152671e17ba39b830b71f60c11b81840152935161141a949192016153bc565b60408051601f198184030181529181526000848152601360205220600901600201908051906020019061144e929190614a90565b5060408051808201825260168152600080516020615cfa83398151915260208083019190915260608401518351808501855260088152671e17ba39b830b71f60c11b8184015293516114a2949192016153bc565b60408051601f19818403018152918152600084815260136020522060090160030190805190602001906114d6929190614a90565b5060408051808201825260168152600080516020615cfa83398151915260208083019190915260808401518351808501855260088152671e17ba39b830b71f60c11b81840152935161152a949192016153bc565b60408051601f198184030181529181526000848152601360205220600901600401908051906020019061155e929190614a90565b505060009081526013602052604090206005600890910155565b6000818152600260205260408120546001600160a01b031680610ac95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cc2565b6115f7613977565b6001600160a01b0316611608611b59565b6001600160a01b03161461162e5760405162461bcd60e51b8152600401610cc290615524565b6012805460ff1916911515919091179055565b60006001600160a01b0382166116ac5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610cc2565b506001600160a01b031660009081526003602052604090205490565b6116d0613977565b6001600160a01b03166116e1611b59565b6001600160a01b0316146117075760405162461bcd60e51b8152600401610cc290615524565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b60125460ff1661178e5760405162461bcd60e51b8152602060048201526008602482015267111a5cd8589b195960c21b6044820152606401610cc2565b600f546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e9060240160206040518083038186803b1580156117d257600080fd5b505afa1580156117e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180a9190615559565b6001600160a01b031661181b613977565b6001600160a01b031614604051806040016040528060098152602001682737ba1027bbb732b960b91b815250906118655760405162461bcd60e51b8152600401610cc2919061500b565b50600081815260136020526040902054600160a01b900460ff16156118c55760405162461bcd60e51b81526020600482015260166024820152751d8c881d1bdad95b88185b1c9958591e481bdddb995960521b6044820152606401610cc2565b6000818152601360208181526040808420805460ff60a01b1916600160a01b1781556001818101819055600282018190556008820155815160e081018352600b60a082019081526a1a195b1b1bc81ddbdc9b1960aa1b60c0830152815282518085018452868152818501528251808501845286815281840152825180850184528681526060820152825180850190935285835260808101929092529385905291905261197691600301906005614b3b565b5060008181526013602052604090206119989060098101906003016005614b87565b50600f54604051632d22c05960e01b8152600481018390526001600160a01b0390911690632d22c0599060240160206040518083038186803b1580156119dd57600080fd5b505afa1580156119f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a159190615576565b6000828152601360208181526040808420600e8101959095556010825280842054601886015580516060810182528481528083018590529081018490529285905252611a6691601501906003614bc8565b50611a7081613d64565b611a81611a7b613977565b82613e45565b50565b60136020526000908152604090208054600182015460028301546008840154600e8501546014860180546001600160a01b03871697600160a01b90970460ff16969190611ad090615415565b80601f0160208091040260200160405190810160405280929190818152602001828054611afc90615415565b8015611b495780601f10611b1e57610100808354040283529160200191611b49565b820191906000526020600020905b815481529060010190602001808311611b2c57829003601f168201915b5050505050908060180154905088565b600d546001600160a01b031690565b606060018054610bd790615415565b611b7f613977565b6001600160a01b0316611b90611b59565b6001600160a01b031614611bb65760405162461bcd60e51b8152600401610cc290615524565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b611be0613977565b6001600160a01b0316611bf1611b59565b6001600160a01b031614611c175760405162461bcd60e51b8152600401610cc290615524565b6000732acf2c715956df23a017288658d5f34ab0cbc5cc6393a6862d6040518163ffffffff1660e01b81526004016107006040518083038186803b158015611c5e57600080fd5b505af4158015611c72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c96919061558f565b90506000732acf2c715956df23a017288658d5f34ab0cbc5cc63883d6bc26040518163ffffffff1660e01b81526004016107006040518083038186803b158015611cdf57600080fd5b505af4158015611cf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d179190615601565b905060005b6038811015610e0557818160388110611d3757611d376153ff565b602002015160ff1660106000858460388110611d5557611d556153ff565b602002015161ffff168152602001908152602001600020600001819055508080611d7e90615677565b915050611d1c565b611d8e613977565b6001600160a01b0316826001600160a01b03161415611deb5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610cc2565b8060056000611df8613977565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611e3c613977565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e78911515815260200190565b60405180910390a35050565b611e95611e8f613977565b83613af7565b611eb15760405162461bcd60e51b8152600401610cc2906154d3565b611ebd84848484613e5f565b50505050565b611ecc82613827565b80611ed8576000611edb565b60015b60ff1660136000848152602001908152602001600020600101819055505050565b600081815260136020908152604080832081516101808101835281546001600160a01b0381168252600160a01b900460ff161515938101939093526001810154838301526002810154606080850191909152825160a08101909352939291608083019060038301600586835b8282101561200b578382018054611f7e90615415565b80601f0160208091040260200160405190810160405280929190818152602001828054611faa90615415565b8015611ff75780601f10611fcc57610100808354040283529160200191611ff7565b820191906000526020600020905b815481529060010190602001808311611fda57829003601f168201915b505050505081526020019060010190611f68565b50505090825250600882015460208201526040805160a0810182529101906009830160056000835b828210156120d657838201805461204990615415565b80601f016020809104026020016040519081016040528092919081815260200182805461207590615415565b80156120c25780601f10612097576101008083540402835291602001916120c2565b820191906000526020600020905b8154815290600101906020018083116120a557829003601f168201915b505050505081526020019060010190612033565b50505090825250600e82015460208201526040805160a081018252910190600f830160056000835b828210156121a157838201805461211490615415565b80601f016020809104026020016040519081016040528092919081815260200182805461214090615415565b801561218d5780601f106121625761010080835404028352916020019161218d565b820191906000526020600020905b81548152906001019060200180831161217057829003601f168201915b5050505050815260200190600101906120fe565b5050505081526020016014820180546121b990615415565b80601f01602080910402602001604051908101604052809291908181526020018280546121e590615415565b80156122325780601f1061220757610100808354040283529160200191612232565b820191906000526020600020905b81548152906001019060200180831161221557829003601f168201915b505050918352505060408051606081019182905260209092019190601584019060039082845b81548152602001906001019080831161225857505050505081526020016018820154815250509050600081610100015160006005811061229a5761229a6153ff565b6020908102919091015161010084015180830151604080830151606084015160809094015191516122d2969394919391929101615692565b60408051601f198184030181528282018252600a8352696c696d65677265656e3b60b01b60208481019190915282518084018452600f8082526e03d913a3930b4ba2fba3cb832911d1608d1b82840152845180860186529081526e112b34b1329116113b30b63ab2911d60891b81840152935192955061235893869391929091016153bc565b60405160208183030381529060405291508260e00151600414156123bf576040518060400160405280600781526020016679656c6c6f773b60c81b8152509050816040516020016123a9919061571f565b60405160208183030381529060405291506124a0565b8260e0015160011415612407576040518060400160405280600f81526020016e636f726e666c6f776572626c75653b60881b8152509050816040516020016123a9919061575f565b8260e001516002141561244457604051806040016040528060048152602001637265643b60e01b8152509050816040516020016123a99190615794565b8260e001516003141561247d576040518060600160405280603d8152602001615d1a603d91399050816040516020016123a991906157c5565b8160405160200161248e91906157ff565b60405160208183030381529060405291505b61014083015160400151600090156124d157604051806040016040528060018152602001601960f91b8152506124e2565b604051806020016040528060008152505b60408051602081018252600081529086015191925090600114156125a45773cd15da0442883fd15a450265821f1fa09359a5476326878b216040518163ffffffff1660e01b815260040160006040518083038186803b15801561254457600080fd5b505af4158015612558573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612580919081019061582b565b82604051602001612592929190615898565b60405160208183030381529060405290505b600073cd15da0442883fd15a450265821f1fa09359a547634402be596040518163ffffffff1660e01b815260040160006040518083038186803b1580156125ea57600080fd5b505af41580156125fe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612626919081019061582b565b8473cd15da0442883fd15a450265821f1fa09359a547632e173c9e6040518163ffffffff1660e01b815260040160006040518083038186803b15801561266b57600080fd5b505af415801561267f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526126a7919081019061582b565b858573cd15da0442883fd15a450265821f1fa09359a54763ed60c3696040518163ffffffff1660e01b815260040160006040518083038186803b1580156126ed57600080fd5b505af4158015612701573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612729919081019061582b565b60405160200161273e969594939291906158d7565b6040516020818303038152906040529050808660c00151600060058110612767576127676153ff565b6020908102919091015160c0890151808301516040808301516060840151608090940151915161279f9796939491939192910161596a565b60405160208183030381529060405290508560400151600114156128e05780604051806040016040528060078152602001661e17ba32bc3a1f60c91b81525073cd15da0442883fd15a450265821f1fa09359a5476304a0d8216040518163ffffffff1660e01b815260040160006040518083038186803b15801561282257600080fd5b505af4158015612836573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261285e919081019061582b565b6080890151805160208083015160409384015193516128829796959491920161596a565b60405160208183030381529060405290508086608001516003600581106128ab576128ab6153ff565b60200201516080880151600460200201516040516020016128ce939291906153bc565b60405160208183030381529060405290505b80604051806040016040528060078152602001661e17ba32bc3a1f60c91b81525087610120015173cd15da0442883fd15a450265821f1fa09359a547631cde66516040518163ffffffff1660e01b815260040160006040518083038186803b15801561294b57600080fd5b505af415801561295f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612987919081019061582b565b60405160200161299a94939291906159e9565b60405160208183030381529060405290506000612aeb6129b98a613e92565b73cd15da0442883fd15a450265821f1fa09359a54763d3bce20c6040518163ffffffff1660e01b815260040160006040518083038186803b1580156129fd57600080fd5b505af4158015612a11573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612a39919081019061582b565b8873cd15da0442883fd15a450265821f1fa09359a547638df430456040518163ffffffff1660e01b815260040160006040518083038186803b158015612a7e57600080fd5b505af4158015612a92573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612aba919081019061582b565b612ac387613f8f565b604051602001612ad7959493929190615a40565b604051602081830303815290604052613f8f565b905073cd15da0442883fd15a450265821f1fa09359a547636082b4896040518163ffffffff1660e01b815260040160006040518083038186803b158015612b3157600080fd5b505af4158015612b45573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612b6d919081019061582b565b81604051602001612b7f929190615ade565b60408051601f198184030181529190529998505050505050505050565b612ba582613827565b612bae826138ea565b806040516020016111279190615450565b612bc7613977565b60008281526013602090815260409182902054825180840190935260098352682737ba1027bbb732b960b91b9183019190915290916001600160a01b03918216911614612c275760405162461bcd60e51b8152600401610cc2919061500b565b50600081815260136020526040902060180154612c745760405162461bcd60e51b815260206004820152600b60248201526a4e6f20757067726164657360a81b6044820152606401610cc2565b6000818152601360205260408120601801805460019290612c96908490615b0d565b9091555060009050612ca860036140f4565b905080612cbd57612cb882614145565b612dfc565b8060011415612ccf57612cb882614310565b8060021415612dfc5760008281526013602052604090206017015460011115612df3576000828152601360205260408120601701805460019290612d14908490615b24565b9091555050604080518082018252600f81526e03d913a3930b4ba2fba3cb832911d1608d1b6020808301919091528251808401845260148152731129bab73934b9b29116113b30b63ab2911d101160611b8183015260008681526013909252929020909190612d8a9060150160025b0154613e92565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001612db994939291906159e9565b60408051601f198184030181529181526000848152601360205220600f016002019080519060200190612ded929190614a90565b50612dfc565b612dfc82614145565b612e0582613d64565b604080518082018252600f81526e03d913a3930b4ba2fba3cb832911d1608d1b60208083019190915282518084018452601a815279112ab833b930b232b9902ab9b2b21116113b30b63ab2911d101160311b818301526000868152601390925292902060178101546016820154601590920154929392612e9792612e8891615b24565b612e929190615b24565b613e92565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001612ec694939291906159e9565b60408051601f198184030181529181526000848152601360205220600f016004019080519060200190610e05929190614a90565b612f02613977565b6001600160a01b0316612f13611b59565b6001600160a01b031614612f395760405162461bcd60e51b8152600401610cc290615524565b80612f45576000612f48565b60015b60ff1660136000848152602001908152602001600020600e01819055505050565b612f71614bfb565b6000828152601360205260409081902081516060810190925260150160038282826020028201915b815481526020019060010190808311612f995750505050509050919050565b612fc18261370e565b612fca82613767565b8060405160200161097b9190615450565b612fe48261370e565b8051604051612ff69190602001615450565b60408051601f198184030181529181526000848152601360205290812060030101908051906020019061302a929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b81840152935161307d949192016153bc565b60408051601f19818403018152918152600084815260136020522060030160010190805190602001906130b1929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838301518351808501855260088152671e17ba39b830b71f60c11b818401529351613104949192016153bc565b60408051601f1981840301815291815260008481526013602052206003016002019080519060200190613138929190614a90565b5060408051808201825260168152600080516020615cfa83398151915260208083019190915260608401518351808501855260088152671e17ba39b830b71f60c11b81840152935161318c949192016153bc565b60408051601f19818403018152918152600084815260136020522060039081010190805190602001906131c0929190614a90565b5060408051808201825260168152600080516020615cfa83398151915260208083019190915260808401518351808501855260088152671e17ba39b830b71f60c11b818401529351613214949192016153bc565b60408051601f1981840301815291815260008481526013602052206003016004019080519060200190613248929190614a90565b505060009081526013602052604090206005600290910155565b600e5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c45527919061329b90889060040161501e565b60206040518083038186803b1580156132b357600080fd5b505afa1580156132c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132eb9190615559565b6001600160a01b03161415613304576001915050610ac9565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b61333f8261370e565b61334882613767565b805160405161335a9190602001615450565b60408051601f198184030181529181526000848152601360205290812060030101908051906020019061338e929190614a90565b5060408051808201825260168152600080516020615cfa833981519152602080830191909152838101518351808501855260088152671e17ba39b830b71f60c11b8184015293516133e1949192016153bc565b60408051601f1981840301815291815260008481526013602052206003016001019080519060200190613415929190614a90565b50506000908152601360205260409020600290810155565b613435613977565b6001600160a01b0316613446611b59565b6001600160a01b03161461346c5760405162461bcd60e51b8152600401610cc290615524565b6001600160a01b0381166134d15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cc2565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b613535613977565b6001600160a01b0316613546611b59565b6001600160a01b03161461356c5760405162461bcd60e51b8152600401610cc290615524565b8061357857600261357b565b60005b600083815260136020526040902060ff91909116600190910155806136ad576135a382613767565b6135ac826138ea565b600082815260136020818152604080842060026001808301829055600e830187905560088301819055908201556018810185905581516060810183528581528084018690529182018590529386905291905261360d91601501906003614bc8565b5060408051602080820180845260008084528681526013909252929020905161363c9260149092019190614a90565b506040805160c081018252600060a0820181815282528251602081810185528282528084019190915283518082018552828152838501528351808201855282815260608401528351808201855282815260808401528582526013905291909120610e0591600f909101906005614b3b565b5050565b60003330141561370857600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061370b9050565b50335b90565b601360008281526020019081526020016000206001015460011460405180604001604052806008815260200167111a5cd8589b195960c21b815250906136ad5760405162461bcd60e51b8152600401610cc2919061500b565b6040805160c081018252600060a08201818152825282516020818101855282825280840191909152835180820185528281528385015283518082018552828152606084015283518082018552828152608084015284825260139052919091206136ad916003909101906005614b3b565b60006001600160e01b031982166380ac58cd60e01b148061380857506001600160e01b03198216635b5e139f60e01b145b80610ac957506301ffc9a760e01b6001600160e01b0319831614610ac9565b60136000828152602001908152602001600020600101546002141560405180604001604052806008815260200167111a5cd8589b195960c21b815250906138815760405162461bcd60e51b8152600401610cc2919061500b565b5061388a613977565b60008281526013602090815260409182902054825180840190935260098352682737ba1027bbb732b960b91b9183019190915290916001600160a01b039182169116146136ad5760405162461bcd60e51b8152600401610cc2919061500b565b6040805160c081018252600060a08201818152825282516020818101855282825280840191909152835180820185528281528385015283518082018552828152606084015283518082018552828152608084015284825260139052919091206136ad916009909101906005614b3b565b6000908152600260205260409020546001600160a01b0316151590565b60006139816136b1565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906139bb82611578565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616613a5a5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610cc2565b6001613a6d613a68876144dc565b614559565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015613abb573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000613af08284615b24565b9392505050565b6000613b028261395a565b613b635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cc2565b6000613b6e83611578565b9050806001600160a01b0316846001600160a01b03161480613ba95750836001600160a01b0316613b9e84610c5a565b6001600160a01b0316145b8061332e575061332e8185613262565b826001600160a01b0316613bcc82611578565b6001600160a01b031614613c345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cc2565b6001600160a01b038216613c965760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cc2565b613ca1838383614589565b613cac600082613986565b6001600160a01b0383166000908152600360205260408120805460019290613cd5908490615b0d565b90915550506001600160a01b0382166000908152600360205260408120805460019290613d03908490615b24565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040518060400160405280600f81526020016e03d913a3930b4ba2fba3cb832911d1608d1b8152506040518060400160405280601e81526020017f225570677261646520417661696c61626c65222c2276616c7565223a20220000815250613de16013600085815260200190815260200160002060180154613e92565b60405180604001604052806003815260200162089f4b60ea1b815250604051602001613e1094939291906159e9565b60408051601f198184030181529181526000838152601360205220600f0160035b0190805190602001906136ad929190614a90565b6136ad8282604051806020016040528060008152506145c3565b613e6a848484613bb9565b613e76848484846145f6565b611ebd5760405162461bcd60e51b8152600401610cc290615b3c565b606081613eb65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613ee05780613eca81615677565b9150613ed99050600a83615ba4565b9150613eba565b6000816001600160401b03811115613efa57613efa614d00565b6040519080825280601f01601f191660200182016040528015613f24576020820181803683370190505b5090505b841561332e57613f39600183615b0d565b9150613f46600a86615bb8565b613f51906030615b24565b60f81b818381518110613f6657613f666153ff565b60200101906001600160f81b031916908160001a905350613f88600a86615ba4565b9450613f28565b805160609080613faf575050604080516020810190915260008152919050565b60006003613fbe836002615b24565b613fc89190615ba4565b613fd3906004615bcc565b90506000613fe2826020615b24565b6001600160401b03811115613ff957613ff9614d00565b6040519080825280601f01601f191660200182016040528015614023576020820181803683370190505b5090506000604051806060016040528060408152602001615d9a604091399050600181016020830160005b868110156140af576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b83526004909201910161404e565b5060038606600181146140c957600281146140da576140e6565b613d3d60f01b6001198301526140e6565b603d60f81b6000198301525b505050918152949350505050565b60008144428461410360085490565b6040805160208101959095528401929092526060830152608082015260a0016040516020818303038152906040528051906020012060001c610ac99190615bb8565b60008181526013602052604090819020905163c092feef60e01b81526101906004820152601490910190735d20b683fc110bb1b54d1883bbc1db9d5b0219039063c092feef9060240160006040518083038186803b1580156141a657600080fd5b505af41580156141ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526141e2919081019061582b565b6040516020016141f3929190615beb565b60408051601f1981840301815291815260008381526013602090815291902082516142279360149092019290910190614a90565b50600081815260136020526040812060150180546001929061424a908490615b24565b9091555050604080518082018252600f81526e03d913a3930b4ba2fba3cb832911d1608d1b60208083019190915282518084018452601380825272112bb4b3b3b6329116113b30b63ab2911d101160691b82840152600086815292529281209192916142bb91601590910190612d83565b60405180604001604052806003815260200162089f4b60ea1b8152506040516020016142ea94939291906159e9565b60408051601f1981840301815291815260008381526013602052908120600f0190613e31565b60008181526013602052604090819020905163732360a960e11b81526101906004820152601490910190735d20b683fc110bb1b54d1883bbc1db9d5b0219039063e646c1529060240160006040518083038186803b15801561437157600080fd5b505af4158015614385573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526143ad919081019061582b565b6040516020016143be929190615beb565b60408051601f1981840301815291815260008381526013602090815291902082516143f29360149092019290910190614a90565b506000818152601360205260408120601601805460019290614415908490615b24565b9091555050604080518082018252600f81526e03d913a3930b4ba2fba3cb832911d1608d1b6020808301919091528251808401845260148152731129b83432b932b99116113b30b63ab2911d101160611b8183015260008581526013909252929020909190614488906015016001612d83565b60405180604001604052806003815260200162089f4b60ea1b8152506040516020016144b794939291906159e9565b60408051601f198184030181529181526000838152601360205220600f016001613e31565b6000604051806080016040528060438152602001615d57604391398051602091820120835184830151604080870151805190860120905161453c950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000614564600b5490565b60405161190160f01b602082015260228101919091526042810183905260620161453c565b61459483838361470a565b600090815260136020526040902080546001600160a01b0319166001600160a01b039290921691909117905550565b6145cd83836147c2565b6145da60008484846145f6565b610e055760405162461bcd60e51b8152600401610cc290615b3c565b60006001600160a01b0384163b156146ff57836001600160a01b031663150b7a0261461f613977565b8786866040518563ffffffff1660e01b81526004016146419493929190615c89565b602060405180830381600087803b15801561465b57600080fd5b505af192505050801561468b575060408051601f3d908101601f1916820190925261468891810190615cc6565b60015b6146e5573d8080156146b9576040519150601f19603f3d011682016040523d82523d6000602084013e6146be565b606091505b5080516146dd5760405162461bcd60e51b8152600401610cc290615b3c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061332e565b506001949350505050565b6001600160a01b0383166147655761476081600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b614788565b816001600160a01b0316836001600160a01b031614614788576147888382614900565b6001600160a01b03821661479f57610e058161499d565b826001600160a01b0316826001600160a01b031614610e0557610e058282614a4c565b6001600160a01b0382166148185760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cc2565b6148218161395a565b1561486d5760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610cc2565b61487960008383614589565b6001600160a01b03821660009081526003602052604081208054600192906148a2908490615b24565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161490d84611641565b6149179190615b0d565b60008381526007602052604090205490915080821461496a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906149af90600190615b0d565b600083815260096020526040812054600880549394509092849081106149d7576149d76153ff565b9060005260206000200154905080600883815481106149f8576149f86153ff565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614a3057614a30615ce3565b6001900381819060005260206000200160009055905550505050565b6000614a5783611641565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054614a9c90615415565b90600052602060002090601f016020900481019282614abe5760008555614b04565b82601f10614ad757805160ff1916838001178555614b04565b82800160010185558215614b04579182015b82811115614b04578251825591602001919060010190614ae9565b50614b10929150614c19565b5090565b6040518060a001604052806005905b6060815260200190600190039081614b235790505090565b8260058101928215614b7b579160200282015b82811115614b7b5782518051614b6b918491602090910190614a90565b5091602001919060010190614b4e565b50614b10929150614c2e565b8260058101928215614b7b579182015b82811115614b7b578282908054614bad90615415565b614bb8929190614c4b565b5091600101919060010190614b97565b8260038101928215614b04579160200282015b82811115614b04578251829060ff16905591602001919060010190614bdb565b60405180606001604052806003906020820280368337509192915050565b5b80821115614b105760008155600101614c1a565b80821115614b10576000614c428282614cc6565b50600101614c2e565b828054614c5790615415565b90600052602060002090601f016020900481019282614c795760008555614b04565b82601f10614c8a5780548555614b04565b82800160010185558215614b0457600052602060002091601f016020900482015b82811115614b04578254825591600101919060010190614cab565b508054614cd290615415565b6000825580601f10614ce2575050565b601f016020900490600052602060002090810190611a819190614c19565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715614d3857614d38614d00565b60405290565b60405160a081016001600160401b0381118282101715614d3857614d38614d00565b60405161070081016001600160401b0381118282101715614d3857614d38614d00565b604051601f8201601f191681016001600160401b0381118282101715614dab57614dab614d00565b604052919050565b60006001600160401b03821115614dcc57614dcc614d00565b50601f01601f191660200190565b600082601f830112614deb57600080fd5b8135614dfe614df982614db3565b614d83565b818152846020838601011115614e1357600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215614e4357600080fd5b8235915060208301356001600160401b03811115614e6057600080fd5b614e6c85828601614dda565b9150509250929050565b600060208284031215614e8857600080fd5b5035919050565b60005b83811015614eaa578181015183820152602001614e92565b83811115611ebd5750506000910152565b60008151808452614ed3816020860160208601614e8f565b601f01601f19169290920160200192915050565b602080825260009060c0830183820185845b6005811015614f2857601f19878503018352614f16848351614ebb565b93509184019190840190600101614ef9565b50919695505050505050565b6001600160e01b031981168114611a8157600080fd5b600060208284031215614f5c57600080fd5b8135613af081614f34565b60008060408385031215614f7a57600080fd5b823591506020808401356001600160401b0380821115614f9957600080fd5b818601915086601f830112614fad57600080fd5b614fb5614d16565b806040840189811115614fc757600080fd5b845b81811015614ffb57803585811115614fe15760008081fd5b614fed8c828901614dda565b855250928601928601614fc9565b5096999098509650505050505050565b602081526000613af06020830184614ebb565b6001600160a01b0391909116815260200190565b6001600160a01b0381168114611a8157600080fd5b6000806040838503121561505a57600080fd5b823561506581615032565b946020939093013593505050565b60ff81168114611a8157600080fd5b600080600080600060a0868803121561509a57600080fd5b85356150a581615032565b945060208601356001600160401b038111156150c057600080fd5b6150cc88828901614dda565b945050604086013592506060860135915060808601356150eb81615073565b809150509295509295909350565b60008060006060848603121561510e57600080fd5b833561511981615032565b9250602084013561512981615032565b929592945050506040919091013590565b60006020828403121561514c57600080fd5b8135613af081615032565b6000806040838503121561516a57600080fd5b823591506020808401356001600160401b038082111561518957600080fd5b818601915086601f83011261519d57600080fd5b6151a5614d3e565b8060a08401898111156151b757600080fd5b845b81811015614ffb578035858111156151d15760008081fd5b6151dd8c828901614dda565b8552509286019286016151b9565b803580151581146151fb57600080fd5b919050565b60006020828403121561521257600080fd5b613af0826151eb565b600061010060018060a01b038b16835289151560208401528860408401528760608401528660808401528560a08401528060c084015261525d81840186614ebb565b9150508260e08301529998505050505050505050565b6000806040838503121561528657600080fd5b823561529181615032565b915061529f602084016151eb565b90509250929050565b600080600080608085870312156152be57600080fd5b84356152c981615032565b935060208501356152d981615032565b92506040850135915060608501356001600160401b038111156152fb57600080fd5b61530787828801614dda565b91505092959194509250565b6000806040838503121561532657600080fd5b8235915061529f602084016151eb565b60608101818360005b600381101561535e57815183526020928301929091019060010161533f565b50505092915050565b6000806040838503121561537a57600080fd5b823561538581615032565b9150602083013561539581615032565b809150509250929050565b600081516153b2818560208601614e8f565b9290920192915050565b600084516153ce818460208901614e8f565b8451908301906153e2818360208901614e8f565b84519101906153f5818360208801614e8f565b0195945050505050565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061542957607f821691505b6020821081141561544a57634e487b7160e01b600052602260045260246000fd5b50919050565b60008251615462818460208701614e8f565b9190910192915050565b6001600160a01b0384811682528316602082015260606040820181905260009061549890830184614ebb565b95945050505050565b600083516154b3818460208801614e8f565b60609390931b6001600160601b0319169190920190815260140192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561556b57600080fd5b8151613af081615032565b60006020828403121561558857600080fd5b5051919050565b60006107008083850312156155a357600080fd5b83601f8401126155b257600080fd5b6155ba614d60565b9083019080858311156155cc57600080fd5b845b838110156155f757805161ffff811681146155e95760008081fd5b8352602092830192016155ce565b5095945050505050565b600061070080838503121561561557600080fd5b83601f84011261562457600080fd5b61562c614d60565b90830190808583111561563e57600080fd5b845b838110156155f757805161565381615073565b835260209283019201615640565b634e487b7160e01b600052601160045260246000fd5b600060001982141561568b5761568b615661565b5060010190565b6e2261747472696275746573223a205b60881b81526000600f87516156bd8183860160208c01614e8f565b8751908401906156d38184840160208c01614e8f565b87519101906156e88184840160208b01614e8f565b86519101906156fd8184840160208a01614e8f565b85519101906157128184840160208901614e8f565b0101979650505050505050565b60008251615731818460208701614e8f565b7b2249206a757374207468696e6b2074686579277265206e656174227d60201b920191825250601c01919050565b60008251615771818460208701614e8f565b70224f682c20776f772e20436f6f6c2e227d60781b920191825250601101919050565b600082516157a6818460208701614e8f565b6c224c6f6f6b732052617265227d60981b920191825250600d01919050565b600082516157d7818460208701614e8f565b75224c6f6f6b73205261726520616e6420436f6f6c227d60501b920191825250601601919050565b60008251615811818460208701614e8f565b6722477265656e227d60c01b920191825250600801919050565b60006020828403121561583d57600080fd5b81516001600160401b0381111561585357600080fd5b8201601f8101841361586457600080fd5b8051615872614df982614db3565b81815285602083850101111561588757600080fd5b615498826020830160208601614e8f565b600083516158aa818460208801614e8f565b8351908301906158be818360208801614e8f565b64149110179f60d91b9101908152600501949350505050565b6000875160206158ea8285838d01614e8f565b8851918401916158fd8184848d01614e8f565b885192019161590f8184848c01614e8f565b87519201916159218184848b01614e8f565b64149110179f60d91b920191825285516159418160058501848a01614e8f565b85519201916159568160058501848901614e8f565b919091016005019998505050505050505050565b60008751602061597d8285838d01614e8f565b8851918401916159908184848d01614e8f565b88519201916159a28184848c01614e8f565b87519201916159b48184848b01614e8f565b86519201916159c68184848a01614e8f565b85519201916159d88184848901614e8f565b919091019998505050505050505050565b600085516159fb818460208a01614e8f565b855190830190615a0f818360208a01614e8f565b8551910190615a22818360208901614e8f565b8451910190615a35818360208801614e8f565b019695505050505050565b727b226e616d65223a20224d657373616765202360681b8152600060138751615a6f8183860160208c01614e8f565b875190840190615a858184840160208c01614e8f565b8751910190615a9a8184840160208b01614e8f565b8651910190615aaf8184840160208a01614e8f565b8551910190615ac48184840160208901614e8f565b61227d60f01b910191820152601501979650505050505050565b60008351615af0818460208801614e8f565b835190830190615b04818360208801614e8f565b01949350505050565b600082821015615b1f57615b1f615661565b500390565b60008219821115615b3757615b37615661565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082615bb357615bb3615b8e565b500490565b600082615bc757615bc7615b8e565b500690565b6000816000190483118215151615615be657615be6615661565b500290565b600080845481600182811c915080831680615c0757607f831692505b6020808410821415615c2757634e487b7160e01b86526022600452602486fd5b818015615c3b5760018114615c4c57615c79565b60ff19861689528489019650615c79565b60008b81526020902060005b86811015615c715781548b820152908501908301615c58565b505084890196505b50505050505061549881856153a0565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615cbc90830184614ebb565b9695505050505050565b600060208284031215615cd857600080fd5b8151613af081614f34565b634e487b7160e01b600052603160045260246000fdfe3c747370616e20783d223430222064793d223235223e000000000000000000007265643b666f6e742d7374796c653a206f626c697175653b666f6e742d7765696768743a203930303b6c65747465722d73706163696e673a203370783b4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265294142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220f8f6866f631e69923c16795be9633a1da330d89775165fbc4f3a363b645d785064736f6c63430008090033
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.