Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
Latest 25 from a total of 27 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Switch LSB | 21408985 | 3 days ago | IN | 0 ETH | 0.00058516 | ||||
Switch LSB | 21363507 | 9 days ago | IN | 0 ETH | 0.00057434 | ||||
Switch LSB | 21349482 | 11 days ago | IN | 0 ETH | 0.00067693 | ||||
Switch LSB | 21345776 | 12 days ago | IN | 0 ETH | 0.00157337 | ||||
Switch LSB | 21345714 | 12 days ago | IN | 0 ETH | 0.00151363 | ||||
Switch LSB | 21345701 | 12 days ago | IN | 0 ETH | 0.00162501 | ||||
Switch LSB | 21344252 | 12 days ago | IN | 0 ETH | 0.00224467 | ||||
Switch LSB | 21342392 | 12 days ago | IN | 0 ETH | 0.00066094 | ||||
Switch LSB | 21342299 | 12 days ago | IN | 0 ETH | 0.00086081 | ||||
Switch LSB | 21331716 | 14 days ago | IN | 0 ETH | 0.0022565 | ||||
Switch LSB | 21329414 | 14 days ago | IN | 0 ETH | 0.00112383 | ||||
Switch LSB | 21327102 | 14 days ago | IN | 0 ETH | 0.00094994 | ||||
Switch LSB | 21327078 | 14 days ago | IN | 0 ETH | 0.00102127 | ||||
Switch LSB | 21327071 | 14 days ago | IN | 0 ETH | 0.0010133 | ||||
Switch LSB | 21327061 | 14 days ago | IN | 0 ETH | 0.00100519 | ||||
Switch LSB | 21292290 | 19 days ago | IN | 0 ETH | 0.00044444 | ||||
Switch LSB | 21292285 | 19 days ago | IN | 0 ETH | 0.00044365 | ||||
Switch LSB | 21230882 | 28 days ago | IN | 0 ETH | 0.00096072 | ||||
Switch LSB | 21230798 | 28 days ago | IN | 0 ETH | 0.00103747 | ||||
Switch LSB | 21230787 | 28 days ago | IN | 0 ETH | 0.00093242 | ||||
Switch LSB | 21230761 | 28 days ago | IN | 0 ETH | 0.00098564 | ||||
Switch LSB | 21081614 | 48 days ago | IN | 0 ETH | 0.00059372 | ||||
Switch LSB | 21029275 | 56 days ago | IN | 0 ETH | 0.00129247 | ||||
Switch LSB | 21029064 | 56 days ago | IN | 0 ETH | 0.002604 | ||||
Switch LSB | 21026414 | 56 days ago | IN | 0 ETH | 0.00036476 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
cypherdudesRenderer
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/access/Ownable.sol"; import {Strings} from "@openzeppelin/contracts/utils/Strings.sol"; import {Base64} from "./ethfs/solady/utils/Base64.sol"; import {File, Content} from "./ethfs/File.sol"; import {IScriptyBuilderV2, HTMLRequest, HTMLTagType, HTMLTag} from "./scripty.sol/interfaces/IScriptyBuilderV2.sol"; interface ICypherDudes { struct TokenData { uint256 seed; uint256 globalProgression; string secretWord; } function tokenData( uint256 tokenId ) external view returns (uint256, uint256, string memory); function ownerOf(uint256 tokenId) external view returns (address); } interface ICypherdudesFileStore { function readFile( string memory filename ) external view returns (string memory content); function getFile( string memory filename ) external view returns (File memory file); } /// @title cypherdudesRenderer /// @author @felixfelixfelix contract cypherdudesRenderer is Ownable { ICypherDudes public cypherdudesContract; ICypherdudesFileStore public fileStore; address public immutable scriptyStorageAddress; address public immutable scriptyBuilderAddress; string public cypherdudeScript; string public baseImageURI; string public website; struct Trait { string typeName; string valueName; } struct leastSignificantBit { uint256 bit; } mapping(uint256 => leastSignificantBit) public lsb; constructor( address _scriptyBuilderAddress, address _scriptyStorageAddress, address filestore_, string memory baseImageURI_, string memory website_, string memory cypherdudeScript_ ) Ownable(msg.sender) { scriptyStorageAddress = _scriptyStorageAddress; scriptyBuilderAddress = _scriptyBuilderAddress; fileStore = ICypherdudesFileStore(filestore_); baseImageURI = baseImageURI_; website = website_; cypherdudeScript = cypherdudeScript_; } function setcypherdudesContract( address _cypherdudesContract ) public onlyOwner { cypherdudesContract = ICypherDudes(_cypherdudesContract); } function setFileStoreContract(address _fileStore) public onlyOwner { fileStore = ICypherdudesFileStore(_fileStore); } function setBaseImageURI(string calldata uri) public onlyOwner { baseImageURI = uri; } function setWebsite(string calldata url) public onlyOwner { website = url; } function setCypherdudeScript(string calldata script) public onlyOwner { cypherdudeScript = script; } function switchLSB(uint256 _bit, uint256 _tokenId) public { require( msg.sender == cypherdudesContract.ownerOf(_tokenId), "Not Authorized" ); lsb[_tokenId].bit = _bit; } function getMetadataObject( bytes memory animationUrl, uint256 tokenId, uint256 dude, uint256 layer2 ) internal view returns (bytes memory) { string memory tid = toString(tokenId); (,,string memory secretWord) = cypherdudesContract.tokenData(tokenId); string memory st = ""; if (bytes(secretWord).length != 0) { st = " - "; } return abi.encodePacked( '{"name": "', secretWord, st, "CYPHERDUDE #", tid, '", "description":"Cypherdudes is a generative cryptoart series paying tribute to the Cypherpunk movement, which has been campaigning for the protection of privacy on the internet since the early 90s, and was behind the creation of bitcoin in 2008.' "This series takes up the graphic universe of a character that I invented and gained some popularity in the crypto art scene : the cryptodude." "A personification of crypto culture, the Cypherdude performs actions that visually translate the expressions and behaviors specific to this ecosystem." "Each work in the series is unique and generated from an algorithm hosted directly on the blockchain. The parameters composing each work are selected from a wide range of elements created individually by myself and combined in a seeded random way. Each seed is determined by the blockchain on mint." "The work and the Message." "Each owner of a work from the series has access to a hidden feature : the ability to inscribe an encrypted message in the work itself. The encryption key is decided by the owner on every inscription. This message can then only be decoded by a recipient knowing the key. This way, the work becomes a veritable tool at the service of its owner, who, by using it, makes it evolve visually using a simple steganographic technique." 'The Cypherdudes thus becomes the visual witness to the presence of a message, and its digital security vault.",', '"external_url": "', website,'/cypherdude/',tid, '", "image": "', baseImageURI, tid, '.svg"', ', "animation_url": "', animationUrl, '", "attributes": [', getJSONAttributes(tokenId, dude, layer2), "]}" ); } function getTokenConstantsScript( uint256 tokenId, uint256 dude ) internal view returns (bytes memory) { (uint256 seed,,string memory secretWord) = cypherdudesContract.tokenData(tokenId); seed >>= 8; uint256 layer1 = seed % 11; seed >>= 8; seed >>= 8; uint256 layer3 = dude == 2 || dude == 3 || dude == 8 ? seed % 8 : 8; seed >>= 8; uint256 bitEnvironment = seed % 9; seed >>= 8; uint256 bitPalette = seed % 12; return abi.encodePacked( "let tokenId = ", toString(tokenId), ";", "let layer1 = ", toString(layer1), ";", "let layer3 = ", toString(layer3), ";", "let secretWord = '", secretWord, "';", "let bitEnvironment = ", toString(bitEnvironment), ";", "let bitPalette = ", toString(bitPalette), ";" ); } function getCardConstantsScript( uint256 tokenId ) internal view returns (bytes memory) { (,uint256 globalProgression,) = cypherdudesContract.tokenData(tokenId); return abi.encodePacked( "let gridSize = ", toString(globalProgression < 97 ? 32 : globalProgression < 193 ? 64 : 128), ";", "let gridResolution = ", toString(globalProgression == 289?0: 2-(((globalProgression - 1) / 32) % 3)), ";", "let levelProgression = ", toString(globalProgression == 289?1:globalProgression % 32 == 0 ? 1 : 33 - (globalProgression % 32)), ";", "let ownerAddy = '", Strings.toHexString(cypherdudesContract.ownerOf(tokenId)), "';", "let message = '", fileStore.readFile( string.concat("cypherCard_", toString(tokenId)) ), "';", "let lsb = ", toString(lsb[tokenId].bit), ";" ); } function tokenURI(uint256 tokenId) external view returns (string memory) { HTMLTag[] memory bodyTags = new HTMLTag[](8); (uint256 seed, , ) = cypherdudesContract.tokenData(tokenId); uint256 dude = seed % 20; seed >>= 8; seed >>= 8; uint256 layer2 = seed % 2 > 0 ? seed % 11 : 11; HTMLTag[] memory headTags = new HTMLTag[](1); headTags[0].tagOpen = "<style>"; headTags[0] .tagContent = "html{overflow:hidden}body{margin:0;padding:0}"; headTags[0].tagClose = "</style>"; bodyTags[0].name = lsb[tokenId].bit > 0 ? dudeFiles[dude + 20] : dudeFiles[dude]; bodyTags[0].tagType = HTMLTagType.scriptGZIPBase64DataURI; bodyTags[0].contractAddress = scriptyStorageAddress; bodyTags[1].name = "CypherDudesLayer1"; bodyTags[1].tagType = HTMLTagType.script; bodyTags[1].contractAddress = scriptyStorageAddress; bodyTags[2].name = "CypherDudesFonts"; bodyTags[2].tagType = HTMLTagType.script; bodyTags[2].contractAddress = scriptyStorageAddress; bodyTags[3].name = layers_2[layer2]; bodyTags[3].tagType = HTMLTagType.script; bodyTags[3].contractAddress = scriptyStorageAddress; bodyTags[4].name = cypherdudeScript; bodyTags[4].tagType = HTMLTagType.scriptGZIPBase64DataURI; bodyTags[4].contractAddress = scriptyStorageAddress; bodyTags[5].tagContent = getTokenConstantsScript(tokenId, dude); bodyTags[5].tagType = HTMLTagType.script; bodyTags[6].tagContent = getCardConstantsScript(tokenId); bodyTags[6].tagType = HTMLTagType.script; bodyTags[7].name = "gunzipScripts-0.0.1"; bodyTags[7].tagType = HTMLTagType.script; bodyTags[7].contractAddress = scriptyStorageAddress; HTMLRequest memory htmlRequest; htmlRequest.headTags = headTags; htmlRequest.bodyTags = bodyTags; bytes memory base64EncodedHTMLDataURI = IScriptyBuilderV2( scriptyBuilderAddress ).getEncodedHTML(htmlRequest); return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( getMetadataObject( base64EncodedHTMLDataURI, tokenId, dude, layer2 ) ) ) ); } function getJSONAttributes( uint256 tokenId, uint256 dude, uint256 layer2 ) internal view returns (string memory) { (uint256 seed,uint256 globalProgression,string memory secretWord) = cypherdudesContract.tokenData(tokenId); string memory _lsb = lsb[tokenId].bit > 0 ? "01011000 01011000":"01011000 01011001"; seed >>= 8; uint256 layer1 = seed % 11; seed >>= 8; seed >>= 8; uint256 layer3 = dude == 2 || dude == 3 || dude == 8 ? seed % 8 : 8; seed >>= 8; uint256 bitEnvironment = seed % 9; seed >>= 8; uint256 bitPalette = seed % 12; return string( abi.encodePacked( '{"trait_type":"Grid Size","value" :"', toString(globalProgression < 97 ? 32 : globalProgression < 193 ? 64 : 128), '"},', '{"trait_type":"Grid Resolution","value" :"', grid_Resolution[globalProgression == 289?0: 2-(((globalProgression - 1) / 32) % 3)], '"},', '{"trait_type":"Level Progression","value" :"', toString(globalProgression == 289?32:globalProgression % 32 == 0 ? 32 :(globalProgression % 32)), '"},', '{"trait_type":"Action","value" :"', dudeActions[dude], '"},', '{"trait_type":"Layer 1","value" :"', layers_1[layer1], '"},', '{"trait_type":"Layer 2","value" :"', layers_2[layer2], '"},', '{"trait_type":"Layer 3","value" :"', layers_3[layer3], '"},', '{"trait_type":"Secret Word","value" :"', secretWord, '"},', '{"trait_type":"Bit Environment","value" :"', bit_Environment[bitEnvironment], '"},', '{"trait_type":"Bit Palette","value" :"', bit_Palette[bitPalette], '"},', '{"trait_type":"Least Significant Bit","value" :"', _lsb, '"}' ) ); } 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); } string[] internal grid_Resolution = ["High", "Medium", "Low"]; string[] internal dudeActions = [ "Backdoor Dude", "Bitruvian Dude", "Building Dude", "Dude Scrolling", // "Fake Dude", "Going to Zero Dude", "Hashing Dude", "Longterm Dude", "Over Minting Dude", // "Mooning Dude", "Pumping Dude", "Rabbit Hole Dude", "Dude Regulatoors", "Eyes on the Charts", "Rugged Dude", "Scammed Dude", "Dude Walking By", "Transfer Dude", "Follow the Dude", "Secret Dude" ]; string[] internal dudeFiles = [ "Backdoor_Dude", "Bitruvian_Dude", "Building_Dude", "Dude_Scrolling", "Fake_Dude", "Going_To_Zero_Dude", "Hashing_Dude", "Longterm_Dude", "Over_Minting_Dude", "Mooning_Dude", "Pumping_Dude", "Rabbit_Hole_Dude", "Dude_Regulatoors", "Eyes_On_The_Chart", "Rugged_Dude", "Scammed_Dude", "Dude_Walking_By", "Transfer_Dude", "Follow_The_Dude", "Secret_Dude", "Backdoor_Dude_w", "Bitruvian_Dude_w", "Building_Dude_w", "Dude_Scrolling_w", "Fake_Dude_w", "Going_To_Zero_Dude_w", "Hashing_Dude_w", "Longterm_Dude_w", "Over_Minting_Dude_w", "Mooning_Dude_w", "Pumping_Dude_w", "Rabbit_Hole_Dude_w", "Dude_Regulatoors_w", "Eyes_On_The_Chart_w", "Rugged_Dude_w", "Scammed_Dude_w", "Dude_Walking_By_w", "Transfer_Dude_w", "Follow_The_Dude_w", "Secret_Dude_w" ]; string[] internal layers_1 = [ "Rare_Pepes", "CryptoPunks", "Coins_Flow", "Chart", "Moma_Pixels", "Pixelmon_Reveal", "Crypto_Space", "Crypto_Voxel", "Circuit_Board", "Uniswap", "Mooncats" ]; string[] internal layers_2 = [ "Gas_Wars", "PacMan", "Hardware_Wallet", "Feels_Good_Man", "Game_Over", "M3t4m4Sk", "Promising_Collab", "MaxPain", "Green_Chart", "Press_That_Mint_Button", "Trash_Art", "none" ]; string[] internal layers_3 = [ "Rare_Pepes", "Chart", "Moma_Pixels", "Crypto_Space", "Crypto_Voxel", "Circuit_Board", "Uniswap", "MaxPain", "none" ]; string[] internal bit_Environment = [ "32 bits", "32 bits animated", "64 bits", "64 bits animated", "Who dis ?", "Bitcoin genesis block", "Data tunnel", "Meta Script", "The Cypherpunk" ]; string[] internal bit_Palette = [ "green, white, black", "green, black, white", "black, green, white", "black, green, green", "black, white, white", "black, white, green", "black, fuschia, aqua", "black, white, green", "blue, red, black", "black, red, yellow", "blue, yellow, fuschia", "black, white, white" ]; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ 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 subtraction of two unsigned integers, with an overflow flag. */ 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. */ 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. */ 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. */ 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 largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.20; struct Content { bytes32 checksum; address pointer; } struct File { uint256 size; // content length in bytes, max 24k Content[] contents; } function read(File memory file) view returns (string memory contents) { Content[] memory chunks = file.contents; // Adapted from https://gist.github.com/xtremetom/20411eb126aaf35f98c8a8ffa00123cd assembly { let len := mload(chunks) let totalSize := 0x20 contents := mload(0x40) let size let chunk let pointer // loop through all pointer addresses // - get content // - get address // - get data size // - get code and add to contents // - update total size for { let i := 0 } lt(i, len) { i := add(i, 1) } { chunk := mload(add(chunks, add(0x20, mul(i, 0x20)))) pointer := mload(add(chunk, 0x20)) size := sub(extcodesize(pointer), 1) extcodecopy(pointer, add(contents, totalSize), 1, size) totalSize := add(totalSize, size) } // update contents size mstore(contents, sub(totalSize, 0x20)) // store contents mstore(0x40, add(contents, and(add(totalSize, 0x1f), not(0x1f)))) } } using {read} for File global;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Library to encode strings in Base64. /// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/Base64.sol) /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol) /// @author Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos - <[email protected]>. library Base64 { /// @dev Encodes `data` using the base64 encoding described in RFC 4648. /// See: https://datatracker.ietf.org/doc/html/rfc4648 /// @param fileSafe Whether to replace '+' with '-' and '/' with '_'. /// @param noPadding Whether to strip away the padding. function encode(bytes memory data, bool fileSafe, bool noPadding) internal pure returns (string memory result) { /// @solidity memory-safe-assembly assembly { let dataLength := mload(data) if dataLength { // Multiply by 4/3 rounded up. // The `shl(2, ...)` is equivalent to multiplying by 4. let encodedLength := shl(2, div(add(dataLength, 2), 3)) // Set `result` to point to the start of the free memory. result := mload(0x40) // Store the table into the scratch space. // Offsetted by -1 byte so that the `mload` will load the character. // We will rewrite the free memory pointer at `0x40` later with // the allocated size. // The magic constant 0x0230 will translate "-_" + "+/". mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef") mstore(0x3f, sub("ghijklmnopqrstuvwxyz0123456789-_", mul(iszero(fileSafe), 0x0230))) // Skip the first slot, which stores the length. let ptr := add(result, 0x20) let end := add(ptr, encodedLength) // Run over the input, 3 bytes at a time. for {} 1 {} { data := add(data, 3) // Advance 3 bytes. let input := mload(data) // Write 4 bytes. Optimized for fewer stack operations. mstore8(0, mload(and(shr(18, input), 0x3F))) mstore8(1, mload(and(shr(12, input), 0x3F))) mstore8(2, mload(and(shr(6, input), 0x3F))) mstore8(3, mload(and(input, 0x3F))) mstore(ptr, mload(0x00)) ptr := add(ptr, 4) // Advance 4 bytes. if iszero(lt(ptr, end)) { break } } mstore(0x40, add(end, 0x20)) // Allocate the memory. // Equivalent to `o = [0, 2, 1][dataLength % 3]`. let o := div(2, mod(dataLength, 3)) // Offset `ptr` and pad with '='. We can simply write over the end. mstore(sub(ptr, o), shl(240, 0x3d3d)) // Set `o` to zero if there is padding. o := mul(iszero(iszero(noPadding)), o) mstore(sub(ptr, o), 0) // Zeroize the slot after the string. mstore(result, sub(encodedLength, o)) // Store the length. } } } /// @dev Encodes `data` using the base64 encoding described in RFC 4648. /// Equivalent to `encode(data, false, false)`. function encode(bytes memory data) internal pure returns (string memory result) { result = encode(data, false, false); } /// @dev Encodes `data` using the base64 encoding described in RFC 4648. /// Equivalent to `encode(data, fileSafe, false)`. function encode(bytes memory data, bool fileSafe) internal pure returns (string memory result) { result = encode(data, fileSafe, false); } /// @dev Decodes base64 encoded `data`. /// /// Supports: /// - RFC 4648 (both standard and file-safe mode). /// - RFC 3501 (63: ','). /// /// Does not support: /// - Line breaks. /// /// Note: For performance reasons, /// this function will NOT revert on invalid `data` inputs. /// Outputs for invalid inputs will simply be undefined behaviour. /// It is the user's responsibility to ensure that the `data` /// is a valid base64 encoded string. function decode(string memory data) internal pure returns (bytes memory result) { /// @solidity memory-safe-assembly assembly { let dataLength := mload(data) if dataLength { let decodedLength := mul(shr(2, dataLength), 3) for {} 1 {} { // If padded. if iszero(and(dataLength, 3)) { let t := xor(mload(add(data, dataLength)), 0x3d3d) // forgefmt: disable-next-item decodedLength := sub( decodedLength, add(iszero(byte(30, t)), iszero(byte(31, t))) ) break } // If non-padded. decodedLength := add(decodedLength, sub(and(dataLength, 3), 1)) break } result := mload(0x40) // Write the length of the bytes. mstore(result, decodedLength) // Skip the first slot, which stores the length. let ptr := add(result, 0x20) let end := add(ptr, decodedLength) // Load the table into the scratch space. // Constants are optimized for smaller bytecode with zero gas overhead. // `m` also doubles as the mask of the upper 6 bits. let m := 0xfc000000fc00686c7074787c8084888c9094989ca0a4a8acb0b4b8bcc0c4c8cc mstore(0x5b, m) mstore(0x3b, 0x04080c1014181c2024282c3034383c4044484c5054585c6064) mstore(0x1a, 0xf8fcf800fcd0d4d8dce0e4e8ecf0f4) for {} 1 {} { // Read 4 bytes. data := add(data, 4) let input := mload(data) // Write 3 bytes. // forgefmt: disable-next-item mstore(ptr, or( and(m, mload(byte(28, input))), shr(6, or( and(m, mload(byte(29, input))), shr(6, or( and(m, mload(byte(30, input))), shr(6, mload(byte(31, input))) )) )) )) ptr := add(ptr, 3) if iszero(lt(ptr, end)) { break } } mstore(0x40, add(end, 0x20)) // Allocate the memory. mstore(end, 0) // Zeroize the slot after the bytes. mstore(0x60, 0) // Restore the zero slot. } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; /////////////////////////////////////////////////////////// // ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ // // ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ // // ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ // // ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ // // ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ // // ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ // /////////////////////////////////////////////////////////// //░░░░░░░░░░░░░░░░░░░░░░ CORE ░░░░░░░░░░░░░░░░░░░░░// /////////////////////////////////////////////////////////// import {HTMLRequest, HTMLTagType, HTMLTag} from "./ScriptyStructs.sol"; import {DynamicBuffer} from "./../utils/DynamicBuffer.sol"; import {IScriptyContractStorage} from "./../interfaces/IScriptyContractStorage.sol"; contract ScriptyCore { using DynamicBuffer for bytes; // ============================================================= // TAG CONSTANTS // ============================================================= // data:text/html;base64, // raw // 22 bytes bytes public constant DATA_HTML_BASE64_URI_RAW = "data:text/html;base64,"; // url encoded // 21 bytes bytes public constant DATA_HTML_URL_SAFE = "data%3Atext%2Fhtml%2C"; // <html>, // raw // 6 bytes bytes public constant HTML_OPEN_RAW = "<html>"; // url encoded // 10 bytes bytes public constant HTML_OPEN_URL_SAFE = "%3Chtml%3E"; // <head>, // raw // 6 bytes bytes public constant HEAD_OPEN_RAW = "<head>"; // url encoded // 10 bytes bytes public constant HEAD_OPEN_URL_SAFE = "%3Chead%3E"; // </head>, // raw // 7 bytes bytes public constant HEAD_CLOSE_RAW = "</head>"; // url encoded // 13 bytes bytes public constant HEAD_CLOSE_URL_SAFE = "%3C%2Fhead%3E"; // <body> // 6 bytes bytes public constant BODY_OPEN_RAW = "<body>"; // url encoded // 10 bytes bytes public constant BODY_OPEN_URL_SAFE = "%3Cbody%3E"; // </body></html> // 14 bytes bytes public constant HTML_BODY_CLOSED_RAW = "</body></html>"; // 26 bytes bytes public constant HTML_BODY_CLOSED_URL_SAFE = "%3C%2Fbody%3E%3C%2Fhtml%3E"; // [RAW] // HTML_OPEN + HEAD_OPEN + HEAD_CLOSE + BODY_OPEN + HTML_BODY_CLOSED uint256 public constant URLS_RAW_BYTES = 39; // [URL_SAFE] // DATA_HTML_URL_SAFE + HTML_OPEN + HEAD_OPEN + HEAD_CLOSE + BODY_OPEN + HTML_BODY_CLOSED uint256 public constant URLS_SAFE_BYTES = 90; // [RAW] // HTML_OPEN + HTML_CLOSE uint256 public constant HTML_RAW_BYTES = 13; // [RAW] // HEAD_OPEN + HEAD_CLOSE uint256 public constant HEAD_RAW_BYTES = 13; // [RAW] // BODY_OPEN + BODY_CLOSE uint256 public constant BODY_RAW_BYTES = 13; // All raw // HTML_RAW_BYTES + HEAD_RAW_BYTES + BODY_RAW_BYTES uint256 public constant RAW_BYTES = 39; // [URL_SAFE] // HTML_OPEN + HTML_CLOSE uint256 public constant HTML_URL_SAFE_BYTES = 23; // [URL_SAFE] // HEAD_OPEN + HEAD_CLOSE uint256 public constant HEAD_URL_SAFE_BYTES = 23; // [URL_SAFE] // BODY_OPEN + BODY_CLOSE uint256 public constant BODY_SAFE_BYTES = 23; // All url safe // HTML_URL_SAFE_BYTES + HEAD_URL_SAFE_BYTES + BODY_URL_SAFE_BYTES // %3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E uint256 public constant URL_SAFE_BYTES = 69; // data:text/html;base64, uint256 public constant HTML_BASE64_DATA_URI_BYTES = 22; // ============================================================= // TAG OPEN CLOSE TEMPLATES // ============================================================= /** * @notice Grab tag open and close depending on tag type * @dev * tagType: 0/HTMLTagType.useTagOpenAndClose or any other: * [tagOpen][CONTENT][tagClose] * * tagType: 1/HTMLTagType.script: * <script>[SCRIPT]</script> * * tagType: 2/HTMLTagType.scriptBase64DataURI: * <script src="data:text/javascript;base64,[SCRIPT]"></script> * * tagType: 3/HTMLTagType.scriptGZIPBase64DataURI: * <script type="text/javascript+gzip" src="data:text/javascript;base64,[SCRIPT]"></script> * * tagType: 4/HTMLTagType.scriptPNGBase64DataURI * <script type="text/javascript+png" name="[NAME]" src="data:text/javascript;base64,[SCRIPT]"></script> * * [IMPORTANT NOTE]: The tags `text/javascript+gzip` and `text/javascript+png` are used to identify scripts * during decompression * * @param htmlTag - HTMLTag data for code * @return (tagOpen, tagClose) - Tag open and close as a tuple */ function tagOpenCloseForHTMLTag( HTMLTag memory htmlTag ) public pure returns (bytes memory, bytes memory) { if (htmlTag.tagType == HTMLTagType.script) { return ("<script>", "</script>"); } else if (htmlTag.tagType == HTMLTagType.scriptBase64DataURI) { return ('<script src="data:text/javascript;base64,', '"></script>'); } else if (htmlTag.tagType == HTMLTagType.scriptGZIPBase64DataURI) { return ( '<script type="text/javascript+gzip" src="data:text/javascript;base64,', '"></script>' ); } else if (htmlTag.tagType == HTMLTagType.scriptPNGBase64DataURI) { return ( '<script type="text/javascript+png" src="data:text/javascript;base64,', '"></script>' ); } return (htmlTag.tagOpen, htmlTag.tagClose); } /** * @notice Grab URL safe tag open and close depending on tag type * @dev * tagType: 0/HTMLTagType.useTagOpenAndClose or any other: * [tagOpen][scriptContent or scriptFromContract][tagClose] * * tagType: 1/HTMLTagType.script: * tagType: 2/HTMLTagType.scriptBase64DataURI: * <script src="data:text/javascript;base64,[SCRIPT]"></script> * * tagType: 3/HTMLTagType.scriptGZIPBase64DataURI: * <script type="text/javascript+gzip" src="data:text/javascript;base64,[SCRIPT]"></script> * * tagType: 4/HTMLTagType.scriptPNGBase64DataURI * <script type="text/javascript+png" name="[NAME]" src="data:text/javascript;base64,[SCRIPT]"></script> * * [IMPORTANT NOTE]: The tags `text/javascript+gzip` and `text/javascript+png` are used to identify scripts * during decompression * * @param htmlTag - HTMLTag data for code * @return (tagOpen, tagClose) - Tag open and close as a tuple */ function tagOpenCloseForHTMLTagURLSafe( HTMLTag memory htmlTag ) public pure returns (bytes memory, bytes memory) { if ( htmlTag.tagType == HTMLTagType.script || htmlTag.tagType == HTMLTagType.scriptBase64DataURI ) { // <script src="data:text/javascript;base64, // "></script> return ( "%253Cscript%2520src%253D%2522data%253Atext%252Fjavascript%253Bbase64%252C", "%2522%253E%253C%252Fscript%253E" ); } else if (htmlTag.tagType == HTMLTagType.scriptGZIPBase64DataURI) { // <script type="text/javascript+gzip" src="data:text/javascript;base64, // "></script> return ( "%253Cscript%2520type%253D%2522text%252Fjavascript%252Bgzip%2522%2520src%253D%2522data%253Atext%252Fjavascript%253Bbase64%252C", "%2522%253E%253C%252Fscript%253E" ); } else if (htmlTag.tagType == HTMLTagType.scriptPNGBase64DataURI) { // <script type="text/javascript+png" src="data:text/javascript;base64, // "></script> return ( "%253Cscript%2520type%253D%2522text%252Fjavascript%252Bpng%2522%2520src%253D%2522data%253Atext%252Fjavascript%253Bbase64%252C", "%2522%253E%253C%252Fscript%253E" ); } return (htmlTag.tagOpen, htmlTag.tagClose); } // ============================================================= // TAG CONTENT FETCHER // ============================================================= /** * @notice Grabs requested tag content from storage * @dev * If given HTMLTag contains non empty contractAddress * this method will fetch the content from given storage * contract. Otherwise, it will return the tagContent * from the given htmlTag. * * @param htmlTag - HTMLTag */ function fetchTagContent( HTMLTag memory htmlTag ) public view returns (bytes memory) { if (htmlTag.contractAddress != address(0)) { return IScriptyContractStorage(htmlTag.contractAddress).getContent( htmlTag.name, htmlTag.contractData ); } return htmlTag.tagContent; } // ============================================================= // SIZE OPERATIONS // ============================================================= /** * @notice Calculate the buffer size post base64 encoding * @param value - Starting buffer size * @return Final buffer size as uint256 */ function sizeForBase64Encoding( uint256 value ) public pure returns (uint256) { unchecked { return 4 * ((value + 2) / 3); } } /** * @notice Adds the required tag open/close and calculates buffer size of tags * @dev Effectively multiple functions bundled into one as this saves gas * @param htmlTags - Array of HTMLTag * @param isURLSafe - Bool to handle tag content/open/close encoding * @return Total buffersize of updated HTMLTags */ function _enrichHTMLTags( HTMLTag[] memory htmlTags, bool isURLSafe ) internal view returns (uint256) { if (htmlTags.length == 0) { return 0; } bytes memory tagOpen; bytes memory tagClose; bytes memory tagContent; uint256 totalSize; uint256 length = htmlTags.length; uint256 i; unchecked { do { tagContent = fetchTagContent(htmlTags[i]); htmlTags[i].tagContent = tagContent; if (isURLSafe && htmlTags[i].tagType == HTMLTagType.script) { totalSize += sizeForBase64Encoding(tagContent.length); } else { totalSize += tagContent.length; } if (isURLSafe) { (tagOpen, tagClose) = tagOpenCloseForHTMLTagURLSafe( htmlTags[i] ); } else { (tagOpen, tagClose) = tagOpenCloseForHTMLTag(htmlTags[i]); } htmlTags[i].tagOpen = tagOpen; htmlTags[i].tagClose = tagClose; totalSize += tagOpen.length; totalSize += tagClose.length; } while (++i < length); } return totalSize; } // ============================================================= // HTML CONCATENATION // ============================================================= /** * @notice Append tags to the html buffer for tags * @param htmlFile - bytes buffer * @param htmlTags - Tags being added to buffer * @param base64EncodeTagContent - Bool to handle tag content encoding */ function _appendHTMLTags( bytes memory htmlFile, HTMLTag[] memory htmlTags, bool base64EncodeTagContent ) internal pure { uint256 i; unchecked { do { _appendHTMLTag(htmlFile, htmlTags[i], base64EncodeTagContent); } while (++i < htmlTags.length); } } /** * @notice Append tag to the html buffer * @param htmlFile - bytes buffer * @param htmlTag - Request being added to buffer * @param base64EncodeTagContent - Bool to handle tag content encoding */ function _appendHTMLTag( bytes memory htmlFile, HTMLTag memory htmlTag, bool base64EncodeTagContent ) internal pure { htmlFile.appendSafe(htmlTag.tagOpen); if (base64EncodeTagContent) { htmlFile.appendSafeBase64(htmlTag.tagContent, false, false); } else { htmlFile.appendSafe(htmlTag.tagContent); } htmlFile.appendSafe(htmlTag.tagClose); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; /////////////////////////////////////////////////////////// // ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ // // ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ // // ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ // // ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ // // ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ // // ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ // /////////////////////////////////////////////////////////// //░░░░░░░░░░░░░░░░░░░ REQUESTS ░░░░░░░░░░░░░░░░░░░░// /////////////////////////////////////////////////////////// struct HTMLRequest { HTMLTag[] headTags; HTMLTag[] bodyTags; } enum HTMLTagType { useTagOpenAndClose, script, scriptBase64DataURI, scriptGZIPBase64DataURI, scriptPNGBase64DataURI } struct HTMLTag { string name; address contractAddress; bytes contractData; HTMLTagType tagType; bytes tagOpen; bytes tagClose; bytes tagContent; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; /////////////////////////////////////////////////////////// // ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ // // ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ // // ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ // // ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ // // ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ // // ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ // /////////////////////////////////////////////////////////// /** @title A generic HTML builder that fetches and assembles given JS requests. @author @0xthedude @author @xtremetom Special thanks to @cxkoda and @frolic */ import "./IScriptyHTML.sol"; import "./IScriptyHTMLURLSafe.sol"; interface IScriptyBuilderV2 is IScriptyHTML, IScriptyHTMLURLSafe {}
// SPDX-License-Identifier: MIT pragma solidity ^0.8.22; /////////////////////////////////////////////////////////// // ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ // // ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ // // ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ // // ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ // // ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ // // ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ // /////////////////////////////////////////////////////////// interface IScriptyContractStorage { // ============================================================= // GETTERS // ============================================================= /** * @notice Get the full content * @param name - Name given to the script. Eg: threejs.min.js_r148 * @param data - Arbitrary data to be passed to storage * @return script - Full script from merged chunks */ function getContent(string calldata name, bytes memory data) external view returns (bytes memory script); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.22; /////////////////////////////////////////////////////////// // ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ // // ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ // // ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ // // ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ // // ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ // // ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ // /////////////////////////////////////////////////////////// import {HTMLRequest, HTMLTagType, HTMLTag} from "./../core/ScriptyCore.sol"; interface IScriptyHTML { // ============================================================= // RAW HTML GETTERS // ============================================================= /** * @notice Get HTML with requested head tags and body tags * @dev Your HTML is returned in the following format: * <html> * <head> * [tagOpen[0]][contractRequest[0] | tagContent[0]][tagClose[0]] * [tagOpen[1]][contractRequest[0] | tagContent[1]][tagClose[1]] * ... * [tagOpen[n]][contractRequest[0] | tagContent[n]][tagClose[n]] * </head> * <body> * [tagOpen[0]][contractRequest[0] | tagContent[0]][tagClose[0]] * [tagOpen[1]][contractRequest[0] | tagContent[1]][tagClose[1]] * ... * [tagOpen[n]][contractRequest[0] | tagContent[n]][tagClose[n]] * </body> * </html> * @param htmlRequest - HTMLRequest * @return Full HTML with head and body tags */ function getHTML( HTMLRequest memory htmlRequest ) external view returns (bytes memory); // ============================================================= // ENCODED HTML GETTERS // ============================================================= /** * @notice Get {getHTML} and base64 encode it * @param htmlRequest - HTMLRequest * @return Full HTML with head and script tags, base64 encoded */ function getEncodedHTML( HTMLRequest memory htmlRequest ) external view returns (bytes memory); // ============================================================= // STRING UTILITIES // ============================================================= /** * @notice Convert {getHTML} output to a string * @param htmlRequest - HTMLRequest * @return {getHTMLWrapped} as a string */ function getHTMLString( HTMLRequest memory htmlRequest ) external view returns (string memory); /** * @notice Convert {getEncodedHTML} output to a string * @param htmlRequest - HTMLRequest * @return {getEncodedHTML} as a string */ function getEncodedHTMLString( HTMLRequest memory htmlRequest ) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.22; /////////////////////////////////////////////////////////// // ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ // // ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ // // ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ // // ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ // // ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ // // ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ // /////////////////////////////////////////////////////////// import {HTMLRequest, HTMLTagType, HTMLTag} from "./../core/ScriptyCore.sol"; interface IScriptyHTMLURLSafe { // ============================================================= // RAW HTML GETTERS // ============================================================= /** * @notice Get URL safe HTML with requested head tags and body tags * @dev Any tags with tagType = 1/script are converted to base64 and wrapped * with <script src="data:text/javascript;base64,[SCRIPT]"></script> * * [WARNING]: Large non-base64 libraries that need base64 encoding * carry a high risk of causing a gas out. Highly advised the use * of base64 encoded scripts where possible * * Your HTML is returned in the following format: * * <html> * <head> * [tagOpen[0]][contractRequest[0] | tagContent[0]][tagClose[0]] * [tagOpen[1]][contractRequest[0] | tagContent[1]][tagClose[1]] * ... * [tagOpen[n]][contractRequest[0] | tagContent[n]][tagClose[n]] * </head> * <body> * [tagOpen[0]][contractRequest[0] | tagContent[0]][tagClose[0]] * [tagOpen[1]][contractRequest[0] | tagContent[1]][tagClose[1]] * ... * [tagOpen[n]][contractRequest[0] | tagContent[n]][tagClose[n]] * </body> * </html> * @param htmlRequest - HTMLRequest * @return Full HTML with head and body tags */ function getHTMLURLSafe( HTMLRequest memory htmlRequest ) external view returns (bytes memory); // ============================================================= // STRING UTILITIES // ============================================================= /** * @notice Convert {getHTMLURLSafe} output to a string * @param htmlRequest - HTMLRequest * @return {getHTMLURLSafe} as a string */ function getHTMLURLSafeString( HTMLRequest memory htmlRequest ) external view returns (string memory); }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity ^0.8.22; /// @title DynamicBuffer /// @author David Huber (@cxkoda) and Simon Fremaux (@dievardump). See also /// https://raw.githubusercontent.com/dievardump/solidity-dynamic-buffer /// @notice This library is used to allocate a big amount of container memory // which will be subsequently filled without needing to reallocate /// memory. /// @dev First, allocate memory. /// Then use `buffer.appendUnchecked(theBytes)` or `appendSafe()` if /// bounds checking is required. library DynamicBuffer { /// @notice Allocates container space for the DynamicBuffer /// @param capacity_ The intended max amount of bytes in the buffer /// @return buffer The memory location of the buffer /// @dev Allocates `capacity_ + 0x60` bytes of space /// The buffer array starts at the first container data position, /// (i.e. `buffer = container + 0x20`) function allocate(uint256 capacity_) internal pure returns (bytes memory buffer) { assembly { // Get next-free memory address let container := mload(0x40) // Allocate memory by setting a new next-free address { // Add 2 x 32 bytes in size for the two length fields // Add 32 bytes safety space for 32B chunked copy let size := add(capacity_, 0x60) let newNextFree := add(container, size) mstore(0x40, newNextFree) } // Set the correct container length { let length := add(capacity_, 0x40) mstore(container, length) } // The buffer starts at idx 1 in the container (0 is length) buffer := add(container, 0x20) // Init content with length 0 mstore(buffer, 0) } return buffer; } /// @notice Appends data to buffer, and update buffer length /// @param buffer the buffer to append the data to /// @param data the data to append /// @dev Does not perform out-of-bound checks (container capacity) /// for efficiency. function appendUnchecked(bytes memory buffer, bytes memory data) internal pure { assembly { let length := mload(data) for { data := add(data, 0x20) let dataEnd := add(data, length) let copyTo := add(buffer, add(mload(buffer), 0x20)) } lt(data, dataEnd) { data := add(data, 0x20) copyTo := add(copyTo, 0x20) } { // Copy 32B chunks from data to buffer. // This may read over data array boundaries and copy invalid // bytes, which doesn't matter in the end since we will // later set the correct buffer length, and have allocated an // additional word to avoid buffer overflow. mstore(copyTo, mload(data)) } // Update buffer length mstore(buffer, add(mload(buffer), length)) } } /// @notice Appends data to buffer, and update buffer length /// @param buffer the buffer to append the data to /// @param data the data to append /// @dev Performs out-of-bound checks and calls `appendUnchecked`. function appendSafe(bytes memory buffer, bytes memory data) internal pure { checkOverflow(buffer, data.length); appendUnchecked(buffer, data); } /// @notice Appends data encoded as Base64 to buffer. /// @param fileSafe Whether to replace '+' with '-' and '/' with '_'. /// @param noPadding Whether to strip away the padding. /// @dev Encodes `data` using the base64 encoding described in RFC 4648. /// See: https://datatracker.ietf.org/doc/html/rfc4648 /// Author: Modified from Solady (https://github.com/vectorized/solady/blob/main/src/utils/Base64.sol) /// Author: Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol) /// Author: Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos. function appendSafeBase64( bytes memory buffer, bytes memory data, bool fileSafe, bool noPadding ) internal pure { uint256 dataLength = data.length; if (data.length == 0) { return; } uint256 encodedLength; uint256 r; assembly { // For each 3 bytes block, we will have 4 bytes in the base64 // encoding: `encodedLength = 4 * divCeil(dataLength, 3)`. // The `shl(2, ...)` is equivalent to multiplying by 4. encodedLength := shl(2, div(add(dataLength, 2), 3)) r := mod(dataLength, 3) if noPadding { // if r == 0 => no modification // if r == 1 => encodedLength -= 2 // if r == 2 => encodedLength -= 1 encodedLength := sub( encodedLength, add(iszero(iszero(r)), eq(r, 1)) ) } } checkOverflow(buffer, encodedLength); assembly { let nextFree := mload(0x40) // Store the table into the scratch space. // Offsetted by -1 byte so that the `mload` will load the character. // We will rewrite the free memory pointer at `0x40` later with // the allocated size. mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef") mstore( 0x3f, sub( "ghijklmnopqrstuvwxyz0123456789-_", // The magic constant 0x0230 will translate "-_" + "+/". mul(iszero(fileSafe), 0x0230) ) ) // Skip the first slot, which stores the length. let ptr := add(add(buffer, 0x20), mload(buffer)) let end := add(data, dataLength) // Run over the input, 3 bytes at a time. // prettier-ignore // solhint-disable-next-line no-empty-blocks for {} 1 {} { data := add(data, 3) // Advance 3 bytes. let input := mload(data) // Write 4 bytes. Optimized for fewer stack operations. mstore8( ptr , mload(and(shr(18, input), 0x3F))) mstore8(add(ptr, 1), mload(and(shr(12, input), 0x3F))) mstore8(add(ptr, 2), mload(and(shr( 6, input), 0x3F))) mstore8(add(ptr, 3), mload(and( input , 0x3F))) ptr := add(ptr, 4) // Advance 4 bytes. // prettier-ignore if iszero(lt(data, end)) { break } } if iszero(noPadding) { // Offset `ptr` and pad with '='. We can simply write over the end. mstore8(sub(ptr, iszero(iszero(r))), 0x3d) // Pad at `ptr - 1` if `r > 0`. mstore8(sub(ptr, shl(1, eq(r, 1))), 0x3d) // Pad at `ptr - 2` if `r == 1`. } mstore(buffer, add(mload(buffer), encodedLength)) mstore(0x40, nextFree) } } /// @notice Appends data encoded as Base64 to buffer. /// @param fileSafe Whether to replace '+' with '-' and '/' with '_'. /// @param noPadding Whether to strip away the padding. /// @dev Encodes `data` using the base64 encoding described in RFC 4648. /// See: https://datatracker.ietf.org/doc/html/rfc4648 /// Author: Modified from Solady (https://github.com/vectorized/solady/blob/main/src/utils/Base64.sol) /// Author: Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol) /// Author: Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos. function appendUncheckedBase64( bytes memory buffer, bytes memory data, bool fileSafe, bool noPadding ) internal pure { uint256 dataLength = data.length; if (data.length == 0) { return; } uint256 encodedLength; uint256 r; assembly { // For each 3 bytes block, we will have 4 bytes in the base64 // encoding: `encodedLength = 4 * divCeil(dataLength, 3)`. // The `shl(2, ...)` is equivalent to multiplying by 4. encodedLength := shl(2, div(add(dataLength, 2), 3)) r := mod(dataLength, 3) if noPadding { // if r == 0 => no modification // if r == 1 => encodedLength -= 2 // if r == 2 => encodedLength -= 1 encodedLength := sub( encodedLength, add(iszero(iszero(r)), eq(r, 1)) ) } } assembly { let nextFree := mload(0x40) // Store the table into the scratch space. // Offsetted by -1 byte so that the `mload` will load the character. // We will rewrite the free memory pointer at `0x40` later with // the allocated size. mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef") mstore( 0x3f, sub( "ghijklmnopqrstuvwxyz0123456789-_", // The magic constant 0x0230 will translate "-_" + "+/". mul(iszero(fileSafe), 0x0230) ) ) // Skip the first slot, which stores the length. let ptr := add(add(buffer, 0x20), mload(buffer)) let end := add(data, dataLength) // Run over the input, 3 bytes at a time. // prettier-ignore // solhint-disable-next-line no-empty-blocks for {} 1 {} { data := add(data, 3) // Advance 3 bytes. let input := mload(data) // Write 4 bytes. Optimized for fewer stack operations. mstore8( ptr , mload(and(shr(18, input), 0x3F))) mstore8(add(ptr, 1), mload(and(shr(12, input), 0x3F))) mstore8(add(ptr, 2), mload(and(shr( 6, input), 0x3F))) mstore8(add(ptr, 3), mload(and( input , 0x3F))) ptr := add(ptr, 4) // Advance 4 bytes. // prettier-ignore if iszero(lt(data, end)) { break } } if iszero(noPadding) { // Offset `ptr` and pad with '='. We can simply write over the end. mstore8(sub(ptr, iszero(iszero(r))), 0x3d) // Pad at `ptr - 1` if `r > 0`. mstore8(sub(ptr, shl(1, eq(r, 1))), 0x3d) // Pad at `ptr - 2` if `r == 1`. } mstore(buffer, add(mload(buffer), encodedLength)) mstore(0x40, nextFree) } } /// @notice Returns the capacity of a given buffer. function capacity(bytes memory buffer) internal pure returns (uint256) { uint256 cap; assembly { cap := sub(mload(sub(buffer, 0x20)), 0x40) } return cap; } /// @notice Reverts if the buffer will overflow after appending a given /// number of bytes. function checkOverflow(bytes memory buffer, uint256 addedLength) internal pure { uint256 cap = capacity(buffer); uint256 newLength = buffer.length + addedLength; if (cap < newLength) { revert("DynamicBuffer: Appending out of bounds."); } } }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_scriptyBuilderAddress","type":"address"},{"internalType":"address","name":"_scriptyStorageAddress","type":"address"},{"internalType":"address","name":"filestore_","type":"address"},{"internalType":"string","name":"baseImageURI_","type":"string"},{"internalType":"string","name":"website_","type":"string"},{"internalType":"string","name":"cypherdudeScript_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"StringsInsufficientHexLength","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"baseImageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cypherdudeScript","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cypherdudesContract","outputs":[{"internalType":"contract ICypherDudes","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fileStore","outputs":[{"internalType":"contract ICypherdudesFileStore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lsb","outputs":[{"internalType":"uint256","name":"bit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"scriptyBuilderAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scriptyStorageAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"script","type":"string"}],"name":"setCypherdudeScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fileStore","type":"address"}],"name":"setFileStoreContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"url","type":"string"}],"name":"setWebsite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cypherdudesContract","type":"address"}],"name":"setcypherdudesContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bit","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"switchLSB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"website","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405260405180606001604052806040518060400160405280600481526020017f486967680000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f4d656469756d000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f4c6f7700000000000000000000000000000000000000000000000000000000008152508152506007906003620000d092919062001e11565b506040518061028001604052806040518060400160405280600d81526020017f4261636b646f6f7220447564650000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f42697472757669616e204475646500000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4275696c64696e6720447564650000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f44756465205363726f6c6c696e6700000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f46616b652044756465000000000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f476f696e6720746f205a65726f2044756465000000000000000000000000000081525081526020016040518060400160405280600c81526020017f48617368696e672044756465000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4c6f6e677465726d20447564650000000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f4f766572204d696e74696e67204475646500000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4d6f6f6e696e672044756465000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f50756d70696e672044756465000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f52616262697420486f6c6520447564650000000000000000000000000000000081525081526020016040518060400160405280601081526020017f4475646520526567756c61746f6f72730000000000000000000000000000000081525081526020016040518060400160405280601281526020017f45796573206f6e2074686520436861727473000000000000000000000000000081525081526020016040518060400160405280600b81526020017f527567676564204475646500000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f5363616d6d65642044756465000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f447564652057616c6b696e67204279000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f5472616e7366657220447564650000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f466f6c6c6f77207468652044756465000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f536563726574204475646500000000000000000000000000000000000000000081525081525060089060146200058992919062001e71565b506040518061050001604052806040518060400160405280600d81526020017f4261636b646f6f725f447564650000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f42697472757669616e5f4475646500000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4275696c64696e675f447564650000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f447564655f5363726f6c6c696e6700000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f46616b655f44756465000000000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f476f696e675f546f5f5a65726f5f44756465000000000000000000000000000081525081526020016040518060400160405280600c81526020017f48617368696e675f44756465000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4c6f6e677465726d5f447564650000000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f4f7665725f4d696e74696e675f4475646500000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4d6f6f6e696e675f44756465000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f50756d70696e675f44756465000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f5261626269745f486f6c655f447564650000000000000000000000000000000081525081526020016040518060400160405280601081526020017f447564655f526567756c61746f6f72730000000000000000000000000000000081525081526020016040518060400160405280601181526020017f457965735f4f6e5f5468655f436861727400000000000000000000000000000081525081526020016040518060400160405280600b81526020017f5275676765645f4475646500000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f5363616d6d65645f44756465000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f447564655f57616c6b696e675f4279000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f5472616e736665725f447564650000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f466f6c6c6f775f5468655f44756465000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f5365637265745f4475646500000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4261636b646f6f725f447564655f77000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f42697472757669616e5f447564655f770000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4275696c64696e675f447564655f77000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f447564655f5363726f6c6c696e675f770000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f46616b655f447564655f7700000000000000000000000000000000000000000081525081526020016040518060400160405280601481526020017f476f696e675f546f5f5a65726f5f447564655f7700000000000000000000000081525081526020016040518060400160405280600e81526020017f48617368696e675f447564655f7700000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4c6f6e677465726d5f447564655f77000000000000000000000000000000000081525081526020016040518060400160405280601381526020017f4f7665725f4d696e74696e675f447564655f770000000000000000000000000081525081526020016040518060400160405280600e81526020017f4d6f6f6e696e675f447564655f7700000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f50756d70696e675f447564655f7700000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f5261626269745f486f6c655f447564655f77000000000000000000000000000081525081526020016040518060400160405280601281526020017f447564655f526567756c61746f6f72735f77000000000000000000000000000081525081526020016040518060400160405280601381526020017f457965735f4f6e5f5468655f43686172745f770000000000000000000000000081525081526020016040518060400160405280600d81526020017f5275676765645f447564655f770000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f5363616d6d65645f447564655f7700000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f447564655f57616c6b696e675f42795f7700000000000000000000000000000081525081526020016040518060400160405280600f81526020017f5472616e736665725f447564655f77000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f466f6c6c6f775f5468655f447564655f7700000000000000000000000000000081525081526020016040518060400160405280600d81526020017f5365637265745f447564655f7700000000000000000000000000000000000000815250815250600990602862000ede92919062001ed1565b506040518061016001604052806040518060400160405280600a81526020017f526172655f50657065730000000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f43727970746f50756e6b7300000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f436f696e735f466c6f770000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f436861727400000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f4d6f6d615f506978656c7300000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f506978656c6d6f6e5f52657665616c000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f43727970746f5f5370616365000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f43727970746f5f566f78656c000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f436972637569745f426f6172640000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f556e69737761700000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f4d6f6f6e63617473000000000000000000000000000000000000000000000000815250815250600a90600b6200118492919062001f31565b506040518061018001604052806040518060400160405280600881526020017f4761735f5761727300000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f5061634d616e000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f48617264776172655f57616c6c6574000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4665656c735f476f6f645f4d616e00000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f47616d655f4f766572000000000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f4d3374346d34536b00000000000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f50726f6d6973696e675f436f6c6c61620000000000000000000000000000000081525081526020016040518060400160405280600781526020017f4d61785061696e0000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f477265656e5f436861727400000000000000000000000000000000000000000081525081526020016040518060400160405280601681526020017f50726573735f546861745f4d696e745f427574746f6e0000000000000000000081525081526020016040518060400160405280600981526020017f54726173685f417274000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f6e6f6e6500000000000000000000000000000000000000000000000000000000815250815250600b90600c6200146592919062001f91565b506040518061012001604052806040518060400160405280600a81526020017f526172655f50657065730000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f436861727400000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f4d6f6d615f506978656c7300000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f43727970746f5f5370616365000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f43727970746f5f566f78656c000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f436972637569745f426f6172640000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f556e69737761700000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f4d61785061696e0000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f6e6f6e6500000000000000000000000000000000000000000000000000000000815250815250600c9060096200169592919062001ff1565b506040518061012001604052806040518060400160405280600781526020017f333220626974730000000000000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f3332206269747320616e696d617465640000000000000000000000000000000081525081526020016040518060400160405280600781526020017f363420626974730000000000000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f3634206269747320616e696d617465640000000000000000000000000000000081525081526020016040518060400160405280600981526020017f57686f20646973203f000000000000000000000000000000000000000000000081525081526020016040518060400160405280601581526020017f426974636f696e2067656e6573697320626c6f636b000000000000000000000081525081526020016040518060400160405280600b81526020017f446174612074756e6e656c00000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f4d6574612053637269707400000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f5468652043797068657270756e6b000000000000000000000000000000000000815250815250600d906009620018c592919062001ff1565b506040518061018001604052806040518060400160405280601381526020017f677265656e2c2077686974652c20626c61636b0000000000000000000000000081525081526020016040518060400160405280601381526020017f677265656e2c20626c61636b2c2077686974650000000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c20677265656e2c2077686974650000000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c20677265656e2c20677265656e0000000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c2077686974652c2077686974650000000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c2077686974652c20677265656e0000000000000000000000000081525081526020016040518060400160405280601481526020017f626c61636b2c20667573636869612c206171756100000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c2077686974652c20677265656e0000000000000000000000000081525081526020016040518060400160405280601081526020017f626c75652c207265642c20626c61636b0000000000000000000000000000000081525081526020016040518060400160405280601281526020017f626c61636b2c207265642c2079656c6c6f77000000000000000000000000000081525081526020016040518060400160405280601581526020017f626c75652c2079656c6c6f772c2066757363686961000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c2077686974652c20776869746500000000000000000000000000815250815250600e90600c62001ba692919062001f91565b5034801562001bb457600080fd5b506040516200759e3803806200759e833981810160405281019062001bda9190620022d6565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362001c505760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040162001c479190620023e0565b60405180910390fd5b62001c618162001d4d60201b60201c565b508473ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508573ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826004908162001d1c919062002648565b50816005908162001d2e919062002648565b50806003908162001d40919062002648565b505050505050506200272f565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805482825590600052602060002090810192821562001e5e579160200282015b8281111562001e5d57825182908162001e4c919062002648565b509160200191906001019062001e32565b5b50905062001e6d919062002051565b5090565b82805482825590600052602060002090810192821562001ebe579160200282015b8281111562001ebd57825182908162001eac919062002648565b509160200191906001019062001e92565b5b50905062001ecd919062002051565b5090565b82805482825590600052602060002090810192821562001f1e579160200282015b8281111562001f1d57825182908162001f0c919062002648565b509160200191906001019062001ef2565b5b50905062001f2d919062002051565b5090565b82805482825590600052602060002090810192821562001f7e579160200282015b8281111562001f7d57825182908162001f6c919062002648565b509160200191906001019062001f52565b5b50905062001f8d919062002051565b5090565b82805482825590600052602060002090810192821562001fde579160200282015b8281111562001fdd57825182908162001fcc919062002648565b509160200191906001019062001fb2565b5b50905062001fed919062002051565b5090565b8280548282559060005260206000209081019282156200203e579160200282015b828111156200203d5782518290816200202c919062002648565b509160200191906001019062002012565b5b5090506200204d919062002051565b5090565b5b808211156200207557600081816200206b919062002079565b5060010162002052565b5090565b508054620020879062002437565b6000825580601f106200209b5750620020bc565b601f016020900490600052602060002090810190620020bb9190620020bf565b5b50565b5b80821115620020da576000816000905550600101620020c0565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200211f82620020f2565b9050919050565b620021318162002112565b81146200213d57600080fd5b50565b600081519050620021518162002126565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620021ac8262002161565b810181811067ffffffffffffffff82111715620021ce57620021cd62002172565b5b80604052505050565b6000620021e3620020de565b9050620021f18282620021a1565b919050565b600067ffffffffffffffff82111562002214576200221362002172565b5b6200221f8262002161565b9050602081019050919050565b60005b838110156200224c5780820151818401526020810190506200222f565b60008484015250505050565b60006200226f6200226984620021f6565b620021d7565b9050828152602081018484840111156200228e576200228d6200215c565b5b6200229b8482856200222c565b509392505050565b600082601f830112620022bb57620022ba62002157565b5b8151620022cd84826020860162002258565b91505092915050565b60008060008060008060c08789031215620022f657620022f5620020e8565b5b60006200230689828a0162002140565b96505060206200231989828a0162002140565b95505060406200232c89828a0162002140565b945050606087015167ffffffffffffffff81111562002350576200234f620020ed565b5b6200235e89828a01620022a3565b935050608087015167ffffffffffffffff811115620023825762002381620020ed565b5b6200239089828a01620022a3565b92505060a087015167ffffffffffffffff811115620023b457620023b3620020ed565b5b620023c289828a01620022a3565b9150509295509295509295565b620023da8162002112565b82525050565b6000602082019050620023f76000830184620023cf565b92915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200245057607f821691505b60208210810362002466576200246562002408565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620024d07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262002491565b620024dc868362002491565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062002529620025236200251d84620024f4565b620024fe565b620024f4565b9050919050565b6000819050919050565b620025458362002508565b6200255d620025548262002530565b8484546200249e565b825550505050565b600090565b6200257462002565565b620025818184846200253a565b505050565b5b81811015620025a9576200259d6000826200256a565b60018101905062002587565b5050565b601f821115620025f857620025c2816200246c565b620025cd8462002481565b81016020851015620025dd578190505b620025f5620025ec8562002481565b83018262002586565b50505b505050565b600082821c905092915050565b60006200261d60001984600802620025fd565b1980831691505092915050565b60006200263883836200260a565b9150826002028217905092915050565b6200265382620023fd565b67ffffffffffffffff8111156200266f576200266e62002172565b5b6200267b825462002437565b62002688828285620025ad565b600060209050601f831160018114620026c05760008415620026ab578287015190505b620026b785826200262a565b86555062002727565b601f198416620026d0866200246c565b60005b82811015620026fa57848901518255600182019150602085019450602081019050620026d3565b868310156200271a578489015162002716601f8916826200260a565b8355505b6001600288020188555050505b505050505050565b60805160a051614e18620027866000396000818161131e01526114000152600081816106b601528181610b6001528181610c7801528181610d9001528181610f1901528181611086015261128f0152614e186000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063a25f751f116100a2578063e3b71f8711610071578063e3b71f87146102a9578063e4cf7151146102c7578063f2fde38b146102e3578063f547f928146102ff578063f87f44b91461031d57610116565b8063a25f751f14610221578063a9cb35ae1461023d578063beb0a4161461025b578063c87b56dd1461027957610116565b806374f82e30116100e957806374f82e301461018f578063858be4dc146101ad5780638647ca76146101c95780638da5cb5b146101e557806394dedad81461020357610116565b80630e8992861461011b578063164743921461014b57806321ea07e114610167578063715018a614610185575b600080fd5b610135600480360381019061013091906125a9565b610339565b60405161014291906125e5565b60405180910390f35b6101656004803603810190610160919061265e565b610357565b005b61016f6103a3565b60405161017c91906126ea565b60405180910390f35b61018d6103c9565b005b6101976103dd565b6040516101a49190612795565b60405180910390f35b6101c760048036038101906101c291906127b7565b61046b565b005b6101e360048036038101906101de919061285c565b610593565b005b6101ed6105b1565b6040516101fa91906128b8565b60405180910390f35b61020b6105da565b6040516102189190612795565b60405180910390f35b61023b6004803603810190610236919061265e565b610668565b005b6102456106b4565b60405161025291906128b8565b60405180910390f35b6102636106d8565b6040516102709190612795565b60405180910390f35b610293600480360381019061028e91906125a9565b610766565b6040516102a09190612795565b60405180910390f35b6102b16113fe565b6040516102be91906128b8565b60405180910390f35b6102e160048036038101906102dc919061285c565b611422565b005b6102fd60048036038101906102f8919061265e565b611440565b005b6103076114c6565b60405161031491906128f4565b60405180910390f35b6103376004803603810190610332919061285c565b6114ec565b005b60066020528060005260406000206000915090508060000154905081565b61035f61150a565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6103d161150a565b6103db6000611591565b565b600480546103ea9061293e565b80601f01602080910402602001604051908101604052809291908181526020018280546104169061293e565b80156104635780601f1061043857610100808354040283529160200191610463565b820191906000526020600020905b81548152906001019060200180831161044657829003601f168201915b505050505081565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b81526004016104c691906125e5565b602060405180830381865afa1580156104e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105079190612984565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056b906129fd565b60405180910390fd5b8160066000838152602001908152602001600020600001819055505050565b61059b61150a565b8181600491826105ac929190612bf9565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600380546105e79061293e565b80601f01602080910402602001604051908101604052809291908181526020018280546106139061293e565b80156106605780601f1061063557610100808354040283529160200191610660565b820191906000526020600020905b81548152906001019060200180831161064357829003601f168201915b505050505081565b61067061150a565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600580546106e59061293e565b80601f01602080910402602001604051908101604052809291908181526020018280546107119061293e565b801561075e5780601f106107335761010080835404028352916020019161075e565b820191906000526020600020905b81548152906001019060200180831161074157829003601f168201915b505050505081565b60606000600867ffffffffffffffff81111561078557610784612a28565b5b6040519080825280602002602001820160405280156107be57816020015b6107ab6124e0565b8152602001906001900390816107a35790505b5090506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f856040518263ffffffff1660e01b815260040161081e91906125e5565b600060405180830381865afa15801561083b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906108649190612dd0565b5050905060006014826108779190612e6e565b9050600882901c9150600882901c91506000806002846108979190612e6e565b116108a357600b6108b1565b600b836108b09190612e6e565b5b90506000600167ffffffffffffffff8111156108d0576108cf612a28565b5b60405190808252806020026020018201604052801561090957816020015b6108f66124e0565b8152602001906001900390816108ee5790505b5090506040518060400160405280600781526020017f3c7374796c653e000000000000000000000000000000000000000000000000008152508160008151811061095657610955612e9f565b5b6020026020010151608001819052506040518060600160405280602d8152602001614db6602d91398160008151811061099257610991612e9f565b5b602002602001015160c001819052506040518060400160405280600881526020017f3c2f7374796c653e000000000000000000000000000000000000000000000000815250816000815181106109eb576109ea612e9f565b5b602002602001015160a001819052506000600660008981526020019081526020016000206000015411610a3b5760098381548110610a2c57610a2b612e9f565b5b90600052602060002001610a66565b6009601484610a4a9190612efd565b81548110610a5b57610a5a612e9f565b5b906000526020600020015b8054610a719061293e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9d9061293e565b8015610aea5780601f10610abf57610100808354040283529160200191610aea565b820191906000526020600020905b815481529060010190602001808311610acd57829003601f168201915b505050505085600081518110610b0357610b02612e9f565b5b602002602001015160000181905250600385600081518110610b2857610b27612e9f565b5b6020026020010151606001906004811115610b4657610b45612f31565b5b90816004811115610b5a57610b59612f31565b5b815250507f000000000000000000000000000000000000000000000000000000000000000085600081518110610b9357610b92612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506040518060400160405280601181526020017f43797068657244756465734c617965723100000000000000000000000000000081525085600181518110610c1b57610c1a612e9f565b5b602002602001015160000181905250600185600181518110610c4057610c3f612e9f565b5b6020026020010151606001906004811115610c5e57610c5d612f31565b5b90816004811115610c7257610c71612f31565b5b815250507f000000000000000000000000000000000000000000000000000000000000000085600181518110610cab57610caa612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506040518060400160405280601081526020017f4379706865724475646573466f6e74730000000000000000000000000000000081525085600281518110610d3357610d32612e9f565b5b602002602001015160000181905250600185600281518110610d5857610d57612e9f565b5b6020026020010151606001906004811115610d7657610d75612f31565b5b90816004811115610d8a57610d89612f31565b5b815250507f000000000000000000000000000000000000000000000000000000000000000085600281518110610dc357610dc2612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600b8281548110610e1557610e14612e9f565b5b906000526020600020018054610e2a9061293e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e569061293e565b8015610ea35780601f10610e7857610100808354040283529160200191610ea3565b820191906000526020600020905b815481529060010190602001808311610e8657829003601f168201915b505050505085600381518110610ebc57610ebb612e9f565b5b602002602001015160000181905250600185600381518110610ee157610ee0612e9f565b5b6020026020010151606001906004811115610eff57610efe612f31565b5b90816004811115610f1357610f12612f31565b5b815250507f000000000000000000000000000000000000000000000000000000000000000085600381518110610f4c57610f4b612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060038054610f979061293e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc39061293e565b80156110105780601f10610fe557610100808354040283529160200191611010565b820191906000526020600020905b815481529060010190602001808311610ff357829003601f168201915b50505050508560048151811061102957611028612e9f565b5b60200260200101516000018190525060038560048151811061104e5761104d612e9f565b5b602002602001015160600190600481111561106c5761106b612f31565b5b908160048111156110805761107f612f31565b5b815250507f0000000000000000000000000000000000000000000000000000000000000000856004815181106110b9576110b8612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506111018784611655565b8560058151811061111557611114612e9f565b5b602002602001015160c0018190525060018560058151811061113a57611139612e9f565b5b602002602001015160600190600481111561115857611157612f31565b5b9081600481111561116c5761116b612f31565b5b81525050611179876117ed565b8560068151811061118d5761118c612e9f565b5b602002602001015160c001819052506001856006815181106111b2576111b1612e9f565b5b60200260200101516060019060048111156111d0576111cf612f31565b5b908160048111156111e4576111e3612f31565b5b815250506040518060400160405280601381526020017f67756e7a6970536372697074732d302e302e31000000000000000000000000008152508560078151811061123257611231612e9f565b5b60200260200101516000018190525060018560078151811061125757611256612e9f565b5b602002602001015160600190600481111561127557611274612f31565b5b9081600481111561128957611288612f31565b5b815250507f0000000000000000000000000000000000000000000000000000000000000000856007815181106112c2576112c1612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611308612545565b81816000018190525085816020018190525060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632bee6807836040518263ffffffff1660e01b81526004016113759190613214565b600060405180830381865afa158015611392573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906113bb91906132d7565b90506113d16113cc828b8888611b12565b611c67565b6040516020016113e191906133a8565b604051602081830303815290604052975050505050505050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b61142a61150a565b81816003918261143b929190612bf9565b505050565b61144861150a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114ba5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016114b191906128b8565b60405180910390fd5b6114c381611591565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6114f461150a565b818160059182611505929190612bf9565b505050565b611512611c7c565b73ffffffffffffffffffffffffffffffffffffffff166115306105b1565b73ffffffffffffffffffffffffffffffffffffffff161461158f57611553611c7c565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161158691906128b8565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6060600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f866040518263ffffffff1660e01b81526004016116b591906125e5565b600060405180830381865afa1580156116d2573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906116fb9190612dd0565b9250509150600882901c91506000600b836117169190612e6e565b9050600883901c9250600883901c9250600060028614806117375750600386145b806117425750600886145b61174d57600861175b565b60088461175a9190612e6e565b5b9050600884901c935060006009856117739190612e6e565b9050600885901c94506000600c8661178b9190612e6e565b905061179689611c84565b61179f85611c84565b6117a885611c84565b876117b286611c84565b6117bb86611c84565b6040516020016117d09695949392919061362a565b604051602081830303815290604052965050505050505092915050565b60606000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f846040518263ffffffff1660e01b815260040161184c91906125e5565b600060405180830381865afa158015611869573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118929190612dd0565b509150506118c3606182106118b85760c182106118b05760806118b3565b60405b6118bb565b60205b60ff16611c84565b61190d610121831461190557600360206001856118e09190613706565b6118ea919061373a565b6118f49190612e6e565b60026119009190613706565b611908565b60005b611c84565b61195b61012184146119535760006020856119289190612e6e565b1461194b5760208461193a9190612e6e565b60216119469190613706565b61194e565b60015b611956565b60015b611c84565b6119ff600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e886040518263ffffffff1660e01b81526004016119b991906125e5565b602060405180830381865afa1580156119d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fa9190612984565b611de4565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166360f9bb11611a4689611c84565b604051602001611a569190613791565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401611a819190612795565b600060405180830381865afa158015611a9e573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611ac791906137b7565b611ae6600660008a815260200190815260200160002060000154611c84565b604051602001611afb969594939291906139c8565b604051602081830303815290604052915050919050565b60606000611b1f85611c84565b90506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f876040518263ffffffff1660e01b8152600401611b7e91906125e5565b600060405180830381865afa158015611b9b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611bc49190612dd0565b9250505060006040518060200160405280600081525090506000825114611c1e576040518060400160405280600381526020017f202d20000000000000000000000000000000000000000000000000000000000081525090505b8181846005866004888e611c338f8f8f611e11565b604051602001611c4b999897969594939291906144e3565b6040516020818303038152906040529350505050949350505050565b6060611c758260008061219d565b9050919050565b600033905090565b606060008203611ccb576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611ddf565b600082905060005b60008214611cfd578080611ce6906145d0565b915050600a82611cf6919061373a565b9150611cd3565b60008167ffffffffffffffff811115611d1957611d18612a28565b5b6040519080825280601f01601f191660200182016040528015611d4b5781602001600182028036833780820191505090505b5090505b60008514611dd857600182611d649190613706565b9150600a85611d739190612e6e565b6030611d7f9190612efd565b60f81b818381518110611d9557611d94612e9f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611dd1919061373a565b9450611d4f565b8093505050505b919050565b6060611e0a8273ffffffffffffffffffffffffffffffffffffffff16601460ff1661229a565b9050919050565b60606000806000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f886040518263ffffffff1660e01b8152600401611e7391906125e5565b600060405180830381865afa158015611e90573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611eb99190612dd0565b925092509250600080600660008a81526020019081526020016000206000015411611f19576040518060400160405280601181526020017f3031303131303030203031303131303031000000000000000000000000000000815250611f50565b6040518060400160405280601181526020017f30313031313030302030313031313030300000000000000000000000000000008152505b9050600884901c93506000600b85611f689190612e6e565b9050600885901c9450600885901c945060006002891480611f895750600389145b80611f945750600889145b611f9f576008611fad565b600886611fac9190612e6e565b5b9050600886901c95506000600987611fc59190612e6e565b9050600887901c96506000600c88611fdd9190612e6e565b905061200c606188106120015760c18810611ff9576080611ffc565b60405b612004565b60205b60ff16611c84565b6007610121891461204d576003602060018b6120289190613706565b612032919061373a565b61203c9190612e6e565b60026120489190613706565b612050565b60005b8154811061206157612060612e9f565b5b906000526020600020016120ad6101218a146120a557600060208b6120869190612e6e565b1461209d5760208a6120989190612e6e565b6120a0565b60205b6120a8565b60205b611c84565b60088e815481106120c1576120c0612e9f565b5b90600052602060002001600a88815481106120df576120de612e9f565b5b90600052602060002001600b8f815481106120fd576120fc612e9f565b5b90600052602060002001600c898154811061211b5761211a612e9f565b5b906000526020600020018c600d8a8154811061213a57612139612e9f565b5b90600052602060002001600e8a8154811061215857612157612e9f565b5b906000526020600020018e60405160200161217d9b9a99989796959493929190614b96565b604051602081830303815290604052985050505050505050509392505050565b606083518015612292576003600282010460021b60405192507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f526102308515027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392d5f03603f52602083018181015b600115612263576003880197508751603f8160121c1651600053603f81600c1c1651600153603f8160061c1651600253603f811651600353600051835260048301925081831061225d5750612263565b5061220d565b6020810160405260038406600204613d3d60f01b81840352808715150290506000818403528084038652505050505b509392505050565b60606000839050600060028460026122b29190614d21565b6122bc9190612efd565b67ffffffffffffffff8111156122d5576122d4612a28565b5b6040519080825280601f01601f1916602001820160405280156123075781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061233f5761233e612e9f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106123a3576123a2612e9f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018560026123e39190614d21565b6123ed9190612efd565b90505b600181111561248d577f3031323334353637383961626364656600000000000000000000000000000000600f84166010811061242f5761242e612e9f565b5b1a60f81b82828151811061244657612445612e9f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600483901c92508061248690614d63565b90506123f0565b50600082146124d55784846040517fe22e27eb0000000000000000000000000000000000000000000000000000000081526004016124cc929190614d8c565b60405180910390fd5b809250505092915050565b6040518060e0016040528060608152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001606081526020016000600481111561252a57612529612f31565b5b81526020016060815260200160608152602001606081525090565b604051806040016040528060608152602001606081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61258681612573565b811461259157600080fd5b50565b6000813590506125a38161257d565b92915050565b6000602082840312156125bf576125be612569565b5b60006125cd84828501612594565b91505092915050565b6125df81612573565b82525050565b60006020820190506125fa60008301846125d6565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061262b82612600565b9050919050565b61263b81612620565b811461264657600080fd5b50565b60008135905061265881612632565b92915050565b60006020828403121561267457612673612569565b5b600061268284828501612649565b91505092915050565b6000819050919050565b60006126b06126ab6126a684612600565b61268b565b612600565b9050919050565b60006126c282612695565b9050919050565b60006126d4826126b7565b9050919050565b6126e4816126c9565b82525050565b60006020820190506126ff60008301846126db565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561273f578082015181840152602081019050612724565b60008484015250505050565b6000601f19601f8301169050919050565b600061276782612705565b6127718185612710565b9350612781818560208601612721565b61278a8161274b565b840191505092915050565b600060208201905081810360008301526127af818461275c565b905092915050565b600080604083850312156127ce576127cd612569565b5b60006127dc85828601612594565b92505060206127ed85828601612594565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261281c5761281b6127f7565b5b8235905067ffffffffffffffff811115612839576128386127fc565b5b60208301915083600182028301111561285557612854612801565b5b9250929050565b6000806020838503121561287357612872612569565b5b600083013567ffffffffffffffff8111156128915761289061256e565b5b61289d85828601612806565b92509250509250929050565b6128b281612620565b82525050565b60006020820190506128cd60008301846128a9565b92915050565b60006128de826126b7565b9050919050565b6128ee816128d3565b82525050565b600060208201905061290960008301846128e5565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061295657607f821691505b6020821081036129695761296861290f565b5b50919050565b60008151905061297e81612632565b92915050565b60006020828403121561299a57612999612569565b5b60006129a88482850161296f565b91505092915050565b7f4e6f7420417574686f72697a6564000000000000000000000000000000000000600082015250565b60006129e7600e83612710565b91506129f2826129b1565b602082019050919050565b60006020820190508181036000830152612a16816129da565b9050919050565b600082905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612ab97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612a7c565b612ac38683612a7c565b95508019841693508086168417925050509392505050565b6000612af6612af1612aec84612573565b61268b565b612573565b9050919050565b6000819050919050565b612b1083612adb565b612b24612b1c82612afd565b848454612a89565b825550505050565b600090565b612b39612b2c565b612b44818484612b07565b505050565b5b81811015612b6857612b5d600082612b31565b600181019050612b4a565b5050565b601f821115612bad57612b7e81612a57565b612b8784612a6c565b81016020851015612b96578190505b612baa612ba285612a6c565b830182612b49565b50505b505050565b600082821c905092915050565b6000612bd060001984600802612bb2565b1980831691505092915050565b6000612be98383612bbf565b9150826002028217905092915050565b612c038383612a1d565b67ffffffffffffffff811115612c1c57612c1b612a28565b5b612c26825461293e565b612c31828285612b6c565b6000601f831160018114612c605760008415612c4e578287013590505b612c588582612bdd565b865550612cc0565b601f198416612c6e86612a57565b60005b82811015612c9657848901358255600182019150602085019450602081019050612c71565b86831015612cb35784890135612caf601f891682612bbf565b8355505b6001600288020188555050505b50505050505050565b600081519050612cd88161257d565b92915050565b600080fd5b612cec8261274b565b810181811067ffffffffffffffff82111715612d0b57612d0a612a28565b5b80604052505050565b6000612d1e61255f565b9050612d2a8282612ce3565b919050565b600067ffffffffffffffff821115612d4a57612d49612a28565b5b612d538261274b565b9050602081019050919050565b6000612d73612d6e84612d2f565b612d14565b905082815260208101848484011115612d8f57612d8e612cde565b5b612d9a848285612721565b509392505050565b600082601f830112612db757612db66127f7565b5b8151612dc7848260208601612d60565b91505092915050565b600080600060608486031215612de957612de8612569565b5b6000612df786828701612cc9565b9350506020612e0886828701612cc9565b925050604084015167ffffffffffffffff811115612e2957612e2861256e565b5b612e3586828701612da2565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e7982612573565b9150612e8483612573565b925082612e9457612e93612e3f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612f0882612573565b9150612f1383612573565b9250828201905080821115612f2b57612f2a612ece565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000612fa882612705565b612fb28185612f8c565b9350612fc2818560208601612721565b612fcb8161274b565b840191505092915050565b612fdf81612620565b82525050565b600081519050919050565b600082825260208201905092915050565b600061300c82612fe5565b6130168185612ff0565b9350613026818560208601612721565b61302f8161274b565b840191505092915050565b6005811061304b5761304a612f31565b5b50565b600081905061305c8261303a565b919050565b600061306c8261304e565b9050919050565b61307c81613061565b82525050565b600060e083016000830151848203600086015261309f8282612f9d565b91505060208301516130b46020860182612fd6565b50604083015184820360408601526130cc8282613001565b91505060608301516130e16060860182613073565b50608083015184820360808601526130f98282613001565b91505060a083015184820360a08601526131138282613001565b91505060c083015184820360c086015261312d8282613001565b9150508091505092915050565b60006131468383613082565b905092915050565b6000602082019050919050565b600061316682612f60565b6131708185612f6b565b93508360208202850161318285612f7c565b8060005b858110156131be578484038952815161319f858261313a565b94506131aa8361314e565b925060208a01995050600181019050613186565b50829750879550505050505092915050565b600060408301600083015184820360008601526131ed828261315b565b91505060208301518482036020860152613207828261315b565b9150508091505092915050565b6000602082019050818103600083015261322e81846131d0565b905092915050565b600067ffffffffffffffff82111561325157613250612a28565b5b61325a8261274b565b9050602081019050919050565b600061327a61327584613236565b612d14565b90508281526020810184848401111561329657613295612cde565b5b6132a1848285612721565b509392505050565b600082601f8301126132be576132bd6127f7565b5b81516132ce848260208601613267565b91505092915050565b6000602082840312156132ed576132ec612569565b5b600082015167ffffffffffffffff81111561330b5761330a61256e565b5b613317848285016132a9565b91505092915050565b600081905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000613361601d83613320565b915061336c8261332b565b601d82019050919050565b600061338282612705565b61338c8185613320565b935061339c818560208601612721565b80840191505092915050565b60006133b382613354565b91506133bf8284613377565b915081905092915050565b7f6c657420746f6b656e4964203d20000000000000000000000000000000000000600082015250565b6000613400600e83613320565b915061340b826133ca565b600e82019050919050565b7f3b00000000000000000000000000000000000000000000000000000000000000600082015250565b600061344c600183613320565b915061345782613416565b600182019050919050565b7f6c6574206c6179657231203d2000000000000000000000000000000000000000600082015250565b6000613498600d83613320565b91506134a382613462565b600d82019050919050565b7f6c6574206c6179657233203d2000000000000000000000000000000000000000600082015250565b60006134e4600d83613320565b91506134ef826134ae565b600d82019050919050565b7f6c657420736563726574576f7264203d20270000000000000000000000000000600082015250565b6000613530601283613320565b915061353b826134fa565b601282019050919050565b7f273b000000000000000000000000000000000000000000000000000000000000600082015250565b600061357c600283613320565b915061358782613546565b600282019050919050565b7f6c657420626974456e7669726f6e6d656e74203d200000000000000000000000600082015250565b60006135c8601583613320565b91506135d382613592565b601582019050919050565b7f6c65742062697450616c65747465203d20000000000000000000000000000000600082015250565b6000613614601183613320565b915061361f826135de565b601182019050919050565b6000613635826133f3565b91506136418289613377565b915061364c8261343f565b91506136578261348b565b91506136638288613377565b915061366e8261343f565b9150613679826134d7565b91506136858287613377565b91506136908261343f565b915061369b82613523565b91506136a78286613377565b91506136b28261356f565b91506136bd826135bb565b91506136c98285613377565b91506136d48261343f565b91506136df82613607565b91506136eb8284613377565b91506136f68261343f565b9150819050979650505050505050565b600061371182612573565b915061371c83612573565b925082820390508181111561373457613733612ece565b5b92915050565b600061374582612573565b915061375083612573565b9250826137605761375f612e3f565b5b828204905092915050565b7f637970686572436172645f000000000000000000000000000000000000000000815250565b600061379c8261376b565b600b820191506137ac8284613377565b915081905092915050565b6000602082840312156137cd576137cc612569565b5b600082015167ffffffffffffffff8111156137eb576137ea61256e565b5b6137f784828501612da2565b91505092915050565b7f6c6574206772696453697a65203d200000000000000000000000000000000000600082015250565b6000613836600f83613320565b915061384182613800565b600f82019050919050565b7f6c657420677269645265736f6c7574696f6e203d200000000000000000000000600082015250565b6000613882601583613320565b915061388d8261384c565b601582019050919050565b7f6c6574206c6576656c50726f6772657373696f6e203d20000000000000000000600082015250565b60006138ce601783613320565b91506138d982613898565b601782019050919050565b7f6c6574206f776e657241646479203d2027000000000000000000000000000000600082015250565b600061391a601183613320565b9150613925826138e4565b601182019050919050565b7f6c6574206d657373616765203d20270000000000000000000000000000000000600082015250565b6000613966600f83613320565b915061397182613930565b600f82019050919050565b7f6c6574206c7362203d2000000000000000000000000000000000000000000000600082015250565b60006139b2600a83613320565b91506139bd8261397c565b600a82019050919050565b60006139d382613829565b91506139df8289613377565b91506139ea8261343f565b91506139f582613875565b9150613a018288613377565b9150613a0c8261343f565b9150613a17826138c1565b9150613a238287613377565b9150613a2e8261343f565b9150613a398261390d565b9150613a458286613377565b9150613a508261356f565b9150613a5b82613959565b9150613a678285613377565b9150613a728261356f565b9150613a7d826139a5565b9150613a898284613377565b9150613a948261343f565b9150819050979650505050505050565b7f7b226e616d65223a202200000000000000000000000000000000000000000000600082015250565b6000613ada600a83613320565b9150613ae582613aa4565b600a82019050919050565b7f4359504845524455444520230000000000000000000000000000000000000000600082015250565b6000613b26600c83613320565b9150613b3182613af0565b600c82019050919050565b7f222c20226465736372697074696f6e223a22437970686572647564657320697360008201527f20612067656e657261746976652063727970746f61727420736572696573207060208201527f6179696e67207472696275746520746f207468652043797068657270756e6b2060408201527f6d6f76656d656e742c20776869636820686173206265656e2063616d7061696760608201527f6e696e6720666f72207468652070726f74656374696f6e206f6620707269766160808201527f6379206f6e2074686520696e7465726e65742073696e6365207468652065617260a08201527f6c79203930732c20616e642077617320626568696e642074686520637265617460c08201527f696f6e206f6620626974636f696e20696e20323030382e54686973207365726960e08201527f65732074616b657320757020746865206772617068696320756e6976657273656101008201527f206f662061206368617261637465722074686174204920696e76656e746564206101208201527f616e64206761696e656420736f6d6520706f70756c617269747920696e2074686101408201527f652063727970746f20617274207363656e65203a207468652063727970746f646101608201527f7564652e4120706572736f6e696669636174696f6e206f662063727970746f206101808201527f63756c747572652c20746865204379706865726475646520706572666f726d736101a08201527f20616374696f6e7320746861742076697375616c6c79207472616e736c6174656101c08201527f207468652065787072657373696f6e7320616e64206265686176696f727320736101e08201527f7065636966696320746f20746869732065636f73797374656d2e4561636820776102008201527f6f726b20696e207468652073657269657320697320756e6971756520616e64206102208201527f67656e6572617465642066726f6d20616e20616c676f726974686d20686f73746102408201527f6564206469726563746c79206f6e2074686520626c6f636b636861696e2e20546102608201527f686520706172616d657465727320636f6d706f73696e67206561636820776f726102808201527f6b206172652073656c65637465642066726f6d206120776964652072616e67656102a08201527f206f6620656c656d656e7473206372656174656420696e646976696475616c6c6102c08201527f79206279206d7973656c6620616e6420636f6d62696e656420696e20612073656102e08201527f656465642072616e646f6d207761792e204561636820736565642069732064656103008201527f7465726d696e65642062792074686520626c6f636b636861696e206f6e206d696103208201527f6e742e54686520776f726b20616e6420746865204d6573736167652e456163686103408201527f206f776e6572206f66206120776f726b2066726f6d20746865207365726965736103608201527f206861732061636365737320746f20612068696464656e2066656174757265206103808201527f3a20746865206162696c69747920746f20696e73637269626520616e20656e636103a08201527f727970746564206d65737361676520696e2074686520776f726b20697473656c6103c08201527f662e2054686520656e6372797074696f6e206b657920697320646563696465646103e08201527f20627920746865206f776e6572206f6e20657665727920696e736372697074696104008201527f6f6e2e2054686973206d6573736167652063616e207468656e206f6e6c7920626104208201527f65206465636f646564206279206120726563697069656e74206b6e6f77696e676104408201527f20746865206b65792e2054686973207761792c2074686520776f726b206265636104608201527f6f6d6573206120766572697461626c6520746f6f6c20617420746865207365726104808201527f76696365206f6620697473206f776e65722c2077686f2c206279207573696e676104a08201527f2069742c206d616b65732069742065766f6c76652076697375616c6c792075736104c08201527f696e6720612073696d706c652073746567616e6f6772617068696320746563686104e08201527f6e697175652e5468652043797068657264756465732074687573206265636f6d6105008201527f6573207468652076697375616c207769746e65737320746f20746865207072656105208201527f73656e6365206f662061206d6573736167652c20616e642069747320646967696105408201527f74616c207365637572697479207661756c742e222c000000000000000000000061056082015250565b60006141f961057583613320565b915061420482613b3c565b61057582019050919050565b7f2265787465726e616c5f75726c223a2022000000000000000000000000000000600082015250565b6000614246601183613320565b915061425182614210565b601182019050919050565b600081546142698161293e565b6142738186613320565b9450600182166000811461428e57600181146142a3576142d6565b60ff19831686528115158202860193506142d6565b6142ac85612a57565b60005b838110156142ce578154818901526001820191506020810190506142af565b838801955050505b50505092915050565b7f2f637970686572647564652f0000000000000000000000000000000000000000600082015250565b6000614315600c83613320565b9150614320826142df565b600c82019050919050565b7f222c2022696d616765223a202200000000000000000000000000000000000000600082015250565b6000614361600d83613320565b915061436c8261432b565b600d82019050919050565b7f2e73766722000000000000000000000000000000000000000000000000000000600082015250565b60006143ad600583613320565b91506143b882614377565b600582019050919050565b7f2c2022616e696d6174696f6e5f75726c223a2022000000000000000000000000600082015250565b60006143f9601483613320565b9150614404826143c3565b601482019050919050565b600081905092915050565b600061442582612fe5565b61442f818561440f565b935061443f818560208601612721565b80840191505092915050565b7f222c202261747472696275746573223a205b0000000000000000000000000000600082015250565b6000614481601283613320565b915061448c8261444b565b601282019050919050565b7f5d7d000000000000000000000000000000000000000000000000000000000000600082015250565b60006144cd600283613320565b91506144d882614497565b600282019050919050565b60006144ee82613acd565b91506144fa828c613377565b9150614506828b613377565b915061451182613b19565b915061451d828a613377565b9150614528826141eb565b915061453382614239565b915061453f828961425c565b915061454a82614308565b91506145568288613377565b915061456182614354565b915061456d828761425c565b91506145798286613377565b9150614584826143a0565b915061458f826143ec565b915061459b828561441a565b91506145a682614474565b91506145b28284613377565b91506145bd826144c0565b91508190509a9950505050505050505050565b60006145db82612573565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361460d5761460c612ece565b5b600182019050919050565b7f7b2274726169745f74797065223a22477269642053697a65222c2276616c756560008201527f22203a2200000000000000000000000000000000000000000000000000000000602082015250565b6000614674602483613320565b915061467f82614618565b602482019050919050565b7f227d2c0000000000000000000000000000000000000000000000000000000000600082015250565b60006146c0600383613320565b91506146cb8261468a565b600382019050919050565b7f7b2274726169745f74797065223a2247726964205265736f6c7574696f6e222c60008201527f2276616c756522203a2200000000000000000000000000000000000000000000602082015250565b6000614732602a83613320565b915061473d826146d6565b602a82019050919050565b7f7b2274726169745f74797065223a224c6576656c2050726f6772657373696f6e60008201527f222c2276616c756522203a220000000000000000000000000000000000000000602082015250565b60006147a4602c83613320565b91506147af82614748565b602c82019050919050565b7f7b2274726169745f74797065223a22416374696f6e222c2276616c756522203a60008201527f2200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614816602183613320565b9150614821826147ba565b602182019050919050565b7f7b2274726169745f74797065223a224c617965722031222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b6000614888602283613320565b91506148938261482c565b602282019050919050565b7f7b2274726169745f74797065223a224c617965722032222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b60006148fa602283613320565b91506149058261489e565b602282019050919050565b7f7b2274726169745f74797065223a224c617965722033222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b600061496c602283613320565b915061497782614910565b602282019050919050565b7f7b2274726169745f74797065223a2253656372657420576f7264222c2276616c60008201527f756522203a220000000000000000000000000000000000000000000000000000602082015250565b60006149de602683613320565b91506149e982614982565b602682019050919050565b7f7b2274726169745f74797065223a2242697420456e7669726f6e6d656e74222c60008201527f2276616c756522203a2200000000000000000000000000000000000000000000602082015250565b6000614a50602a83613320565b9150614a5b826149f4565b602a82019050919050565b7f7b2274726169745f74797065223a224269742050616c65747465222c2276616c60008201527f756522203a220000000000000000000000000000000000000000000000000000602082015250565b6000614ac2602683613320565b9150614acd82614a66565b602682019050919050565b7f7b2274726169745f74797065223a224c65617374205369676e69666963616e7460008201527f20426974222c2276616c756522203a2200000000000000000000000000000000602082015250565b6000614b34603083613320565b9150614b3f82614ad8565b603082019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000614b80600283613320565b9150614b8b82614b4a565b600282019050919050565b6000614ba182614667565b9150614bad828e613377565b9150614bb8826146b3565b9150614bc382614725565b9150614bcf828d61425c565b9150614bda826146b3565b9150614be582614797565b9150614bf1828c613377565b9150614bfc826146b3565b9150614c0782614809565b9150614c13828b61425c565b9150614c1e826146b3565b9150614c298261487b565b9150614c35828a61425c565b9150614c40826146b3565b9150614c4b826148ed565b9150614c57828961425c565b9150614c62826146b3565b9150614c6d8261495f565b9150614c79828861425c565b9150614c84826146b3565b9150614c8f826149d1565b9150614c9b8287613377565b9150614ca6826146b3565b9150614cb182614a43565b9150614cbd828661425c565b9150614cc8826146b3565b9150614cd382614ab5565b9150614cdf828561425c565b9150614cea826146b3565b9150614cf582614b27565b9150614d018284613377565b9150614d0c82614b73565b91508190509c9b505050505050505050505050565b6000614d2c82612573565b9150614d3783612573565b9250828202614d4581612573565b91508282048414831517614d5c57614d5b612ece565b5b5092915050565b6000614d6e82612573565b915060008203614d8157614d80612ece565b5b600182039050919050565b6000604082019050614da160008301856125d6565b614dae60208301846125d6565b939250505056fe68746d6c7b6f766572666c6f773a68696464656e7d626f64797b6d617267696e3a303b70616464696e673a307da26469706673582212200aeb00c6c8101fc069f2540c7d7ab631862a0cbb35ea63fc4dceb5f976708ecc64736f6c63430008160033000000000000000000000000d7587f110e08f4d120a231ba97d3b577a81df022000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b76990000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f63797068657264756465732e61707073706f742e636f6d2f000000000000000000000000000000000000000000000000000000000000000000000000000000000f63797068657264756465732e636f6d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4379706865724475646573563400000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063a25f751f116100a2578063e3b71f8711610071578063e3b71f87146102a9578063e4cf7151146102c7578063f2fde38b146102e3578063f547f928146102ff578063f87f44b91461031d57610116565b8063a25f751f14610221578063a9cb35ae1461023d578063beb0a4161461025b578063c87b56dd1461027957610116565b806374f82e30116100e957806374f82e301461018f578063858be4dc146101ad5780638647ca76146101c95780638da5cb5b146101e557806394dedad81461020357610116565b80630e8992861461011b578063164743921461014b57806321ea07e114610167578063715018a614610185575b600080fd5b610135600480360381019061013091906125a9565b610339565b60405161014291906125e5565b60405180910390f35b6101656004803603810190610160919061265e565b610357565b005b61016f6103a3565b60405161017c91906126ea565b60405180910390f35b61018d6103c9565b005b6101976103dd565b6040516101a49190612795565b60405180910390f35b6101c760048036038101906101c291906127b7565b61046b565b005b6101e360048036038101906101de919061285c565b610593565b005b6101ed6105b1565b6040516101fa91906128b8565b60405180910390f35b61020b6105da565b6040516102189190612795565b60405180910390f35b61023b6004803603810190610236919061265e565b610668565b005b6102456106b4565b60405161025291906128b8565b60405180910390f35b6102636106d8565b6040516102709190612795565b60405180910390f35b610293600480360381019061028e91906125a9565b610766565b6040516102a09190612795565b60405180910390f35b6102b16113fe565b6040516102be91906128b8565b60405180910390f35b6102e160048036038101906102dc919061285c565b611422565b005b6102fd60048036038101906102f8919061265e565b611440565b005b6103076114c6565b60405161031491906128f4565b60405180910390f35b6103376004803603810190610332919061285c565b6114ec565b005b60066020528060005260406000206000915090508060000154905081565b61035f61150a565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6103d161150a565b6103db6000611591565b565b600480546103ea9061293e565b80601f01602080910402602001604051908101604052809291908181526020018280546104169061293e565b80156104635780601f1061043857610100808354040283529160200191610463565b820191906000526020600020905b81548152906001019060200180831161044657829003601f168201915b505050505081565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b81526004016104c691906125e5565b602060405180830381865afa1580156104e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105079190612984565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056b906129fd565b60405180910390fd5b8160066000838152602001908152602001600020600001819055505050565b61059b61150a565b8181600491826105ac929190612bf9565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600380546105e79061293e565b80601f01602080910402602001604051908101604052809291908181526020018280546106139061293e565b80156106605780601f1061063557610100808354040283529160200191610660565b820191906000526020600020905b81548152906001019060200180831161064357829003601f168201915b505050505081565b61067061150a565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b769981565b600580546106e59061293e565b80601f01602080910402602001604051908101604052809291908181526020018280546107119061293e565b801561075e5780601f106107335761010080835404028352916020019161075e565b820191906000526020600020905b81548152906001019060200180831161074157829003601f168201915b505050505081565b60606000600867ffffffffffffffff81111561078557610784612a28565b5b6040519080825280602002602001820160405280156107be57816020015b6107ab6124e0565b8152602001906001900390816107a35790505b5090506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f856040518263ffffffff1660e01b815260040161081e91906125e5565b600060405180830381865afa15801561083b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906108649190612dd0565b5050905060006014826108779190612e6e565b9050600882901c9150600882901c91506000806002846108979190612e6e565b116108a357600b6108b1565b600b836108b09190612e6e565b5b90506000600167ffffffffffffffff8111156108d0576108cf612a28565b5b60405190808252806020026020018201604052801561090957816020015b6108f66124e0565b8152602001906001900390816108ee5790505b5090506040518060400160405280600781526020017f3c7374796c653e000000000000000000000000000000000000000000000000008152508160008151811061095657610955612e9f565b5b6020026020010151608001819052506040518060600160405280602d8152602001614db6602d91398160008151811061099257610991612e9f565b5b602002602001015160c001819052506040518060400160405280600881526020017f3c2f7374796c653e000000000000000000000000000000000000000000000000815250816000815181106109eb576109ea612e9f565b5b602002602001015160a001819052506000600660008981526020019081526020016000206000015411610a3b5760098381548110610a2c57610a2b612e9f565b5b90600052602060002001610a66565b6009601484610a4a9190612efd565b81548110610a5b57610a5a612e9f565b5b906000526020600020015b8054610a719061293e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9d9061293e565b8015610aea5780601f10610abf57610100808354040283529160200191610aea565b820191906000526020600020905b815481529060010190602001808311610acd57829003601f168201915b505050505085600081518110610b0357610b02612e9f565b5b602002602001015160000181905250600385600081518110610b2857610b27612e9f565b5b6020026020010151606001906004811115610b4657610b45612f31565b5b90816004811115610b5a57610b59612f31565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b769985600081518110610b9357610b92612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506040518060400160405280601181526020017f43797068657244756465734c617965723100000000000000000000000000000081525085600181518110610c1b57610c1a612e9f565b5b602002602001015160000181905250600185600181518110610c4057610c3f612e9f565b5b6020026020010151606001906004811115610c5e57610c5d612f31565b5b90816004811115610c7257610c71612f31565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b769985600181518110610cab57610caa612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506040518060400160405280601081526020017f4379706865724475646573466f6e74730000000000000000000000000000000081525085600281518110610d3357610d32612e9f565b5b602002602001015160000181905250600185600281518110610d5857610d57612e9f565b5b6020026020010151606001906004811115610d7657610d75612f31565b5b90816004811115610d8a57610d89612f31565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b769985600281518110610dc357610dc2612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600b8281548110610e1557610e14612e9f565b5b906000526020600020018054610e2a9061293e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e569061293e565b8015610ea35780601f10610e7857610100808354040283529160200191610ea3565b820191906000526020600020905b815481529060010190602001808311610e8657829003601f168201915b505050505085600381518110610ebc57610ebb612e9f565b5b602002602001015160000181905250600185600381518110610ee157610ee0612e9f565b5b6020026020010151606001906004811115610eff57610efe612f31565b5b90816004811115610f1357610f12612f31565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b769985600381518110610f4c57610f4b612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060038054610f979061293e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc39061293e565b80156110105780601f10610fe557610100808354040283529160200191611010565b820191906000526020600020905b815481529060010190602001808311610ff357829003601f168201915b50505050508560048151811061102957611028612e9f565b5b60200260200101516000018190525060038560048151811061104e5761104d612e9f565b5b602002602001015160600190600481111561106c5761106b612f31565b5b908160048111156110805761107f612f31565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b7699856004815181106110b9576110b8612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506111018784611655565b8560058151811061111557611114612e9f565b5b602002602001015160c0018190525060018560058151811061113a57611139612e9f565b5b602002602001015160600190600481111561115857611157612f31565b5b9081600481111561116c5761116b612f31565b5b81525050611179876117ed565b8560068151811061118d5761118c612e9f565b5b602002602001015160c001819052506001856006815181106111b2576111b1612e9f565b5b60200260200101516060019060048111156111d0576111cf612f31565b5b908160048111156111e4576111e3612f31565b5b815250506040518060400160405280601381526020017f67756e7a6970536372697074732d302e302e31000000000000000000000000008152508560078151811061123257611231612e9f565b5b60200260200101516000018190525060018560078151811061125757611256612e9f565b5b602002602001015160600190600481111561127557611274612f31565b5b9081600481111561128957611288612f31565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b7699856007815181106112c2576112c1612e9f565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611308612545565b81816000018190525085816020018190525060007f000000000000000000000000d7587f110e08f4d120a231ba97d3b577a81df02273ffffffffffffffffffffffffffffffffffffffff16632bee6807836040518263ffffffff1660e01b81526004016113759190613214565b600060405180830381865afa158015611392573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906113bb91906132d7565b90506113d16113cc828b8888611b12565b611c67565b6040516020016113e191906133a8565b604051602081830303815290604052975050505050505050919050565b7f000000000000000000000000d7587f110e08f4d120a231ba97d3b577a81df02281565b61142a61150a565b81816003918261143b929190612bf9565b505050565b61144861150a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114ba5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016114b191906128b8565b60405180910390fd5b6114c381611591565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6114f461150a565b818160059182611505929190612bf9565b505050565b611512611c7c565b73ffffffffffffffffffffffffffffffffffffffff166115306105b1565b73ffffffffffffffffffffffffffffffffffffffff161461158f57611553611c7c565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161158691906128b8565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6060600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f866040518263ffffffff1660e01b81526004016116b591906125e5565b600060405180830381865afa1580156116d2573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906116fb9190612dd0565b9250509150600882901c91506000600b836117169190612e6e565b9050600883901c9250600883901c9250600060028614806117375750600386145b806117425750600886145b61174d57600861175b565b60088461175a9190612e6e565b5b9050600884901c935060006009856117739190612e6e565b9050600885901c94506000600c8661178b9190612e6e565b905061179689611c84565b61179f85611c84565b6117a885611c84565b876117b286611c84565b6117bb86611c84565b6040516020016117d09695949392919061362a565b604051602081830303815290604052965050505050505092915050565b60606000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f846040518263ffffffff1660e01b815260040161184c91906125e5565b600060405180830381865afa158015611869573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118929190612dd0565b509150506118c3606182106118b85760c182106118b05760806118b3565b60405b6118bb565b60205b60ff16611c84565b61190d610121831461190557600360206001856118e09190613706565b6118ea919061373a565b6118f49190612e6e565b60026119009190613706565b611908565b60005b611c84565b61195b61012184146119535760006020856119289190612e6e565b1461194b5760208461193a9190612e6e565b60216119469190613706565b61194e565b60015b611956565b60015b611c84565b6119ff600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e886040518263ffffffff1660e01b81526004016119b991906125e5565b602060405180830381865afa1580156119d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119fa9190612984565b611de4565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166360f9bb11611a4689611c84565b604051602001611a569190613791565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401611a819190612795565b600060405180830381865afa158015611a9e573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611ac791906137b7565b611ae6600660008a815260200190815260200160002060000154611c84565b604051602001611afb969594939291906139c8565b604051602081830303815290604052915050919050565b60606000611b1f85611c84565b90506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f876040518263ffffffff1660e01b8152600401611b7e91906125e5565b600060405180830381865afa158015611b9b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611bc49190612dd0565b9250505060006040518060200160405280600081525090506000825114611c1e576040518060400160405280600381526020017f202d20000000000000000000000000000000000000000000000000000000000081525090505b8181846005866004888e611c338f8f8f611e11565b604051602001611c4b999897969594939291906144e3565b6040516020818303038152906040529350505050949350505050565b6060611c758260008061219d565b9050919050565b600033905090565b606060008203611ccb576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611ddf565b600082905060005b60008214611cfd578080611ce6906145d0565b915050600a82611cf6919061373a565b9150611cd3565b60008167ffffffffffffffff811115611d1957611d18612a28565b5b6040519080825280601f01601f191660200182016040528015611d4b5781602001600182028036833780820191505090505b5090505b60008514611dd857600182611d649190613706565b9150600a85611d739190612e6e565b6030611d7f9190612efd565b60f81b818381518110611d9557611d94612e9f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611dd1919061373a565b9450611d4f565b8093505050505b919050565b6060611e0a8273ffffffffffffffffffffffffffffffffffffffff16601460ff1661229a565b9050919050565b60606000806000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f886040518263ffffffff1660e01b8152600401611e7391906125e5565b600060405180830381865afa158015611e90573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611eb99190612dd0565b925092509250600080600660008a81526020019081526020016000206000015411611f19576040518060400160405280601181526020017f3031303131303030203031303131303031000000000000000000000000000000815250611f50565b6040518060400160405280601181526020017f30313031313030302030313031313030300000000000000000000000000000008152505b9050600884901c93506000600b85611f689190612e6e565b9050600885901c9450600885901c945060006002891480611f895750600389145b80611f945750600889145b611f9f576008611fad565b600886611fac9190612e6e565b5b9050600886901c95506000600987611fc59190612e6e565b9050600887901c96506000600c88611fdd9190612e6e565b905061200c606188106120015760c18810611ff9576080611ffc565b60405b612004565b60205b60ff16611c84565b6007610121891461204d576003602060018b6120289190613706565b612032919061373a565b61203c9190612e6e565b60026120489190613706565b612050565b60005b8154811061206157612060612e9f565b5b906000526020600020016120ad6101218a146120a557600060208b6120869190612e6e565b1461209d5760208a6120989190612e6e565b6120a0565b60205b6120a8565b60205b611c84565b60088e815481106120c1576120c0612e9f565b5b90600052602060002001600a88815481106120df576120de612e9f565b5b90600052602060002001600b8f815481106120fd576120fc612e9f565b5b90600052602060002001600c898154811061211b5761211a612e9f565b5b906000526020600020018c600d8a8154811061213a57612139612e9f565b5b90600052602060002001600e8a8154811061215857612157612e9f565b5b906000526020600020018e60405160200161217d9b9a99989796959493929190614b96565b604051602081830303815290604052985050505050505050509392505050565b606083518015612292576003600282010460021b60405192507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f526102308515027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392d5f03603f52602083018181015b600115612263576003880197508751603f8160121c1651600053603f81600c1c1651600153603f8160061c1651600253603f811651600353600051835260048301925081831061225d5750612263565b5061220d565b6020810160405260038406600204613d3d60f01b81840352808715150290506000818403528084038652505050505b509392505050565b60606000839050600060028460026122b29190614d21565b6122bc9190612efd565b67ffffffffffffffff8111156122d5576122d4612a28565b5b6040519080825280601f01601f1916602001820160405280156123075781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061233f5761233e612e9f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106123a3576123a2612e9f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018560026123e39190614d21565b6123ed9190612efd565b90505b600181111561248d577f3031323334353637383961626364656600000000000000000000000000000000600f84166010811061242f5761242e612e9f565b5b1a60f81b82828151811061244657612445612e9f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600483901c92508061248690614d63565b90506123f0565b50600082146124d55784846040517fe22e27eb0000000000000000000000000000000000000000000000000000000081526004016124cc929190614d8c565b60405180910390fd5b809250505092915050565b6040518060e0016040528060608152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001606081526020016000600481111561252a57612529612f31565b5b81526020016060815260200160608152602001606081525090565b604051806040016040528060608152602001606081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61258681612573565b811461259157600080fd5b50565b6000813590506125a38161257d565b92915050565b6000602082840312156125bf576125be612569565b5b60006125cd84828501612594565b91505092915050565b6125df81612573565b82525050565b60006020820190506125fa60008301846125d6565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061262b82612600565b9050919050565b61263b81612620565b811461264657600080fd5b50565b60008135905061265881612632565b92915050565b60006020828403121561267457612673612569565b5b600061268284828501612649565b91505092915050565b6000819050919050565b60006126b06126ab6126a684612600565b61268b565b612600565b9050919050565b60006126c282612695565b9050919050565b60006126d4826126b7565b9050919050565b6126e4816126c9565b82525050565b60006020820190506126ff60008301846126db565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561273f578082015181840152602081019050612724565b60008484015250505050565b6000601f19601f8301169050919050565b600061276782612705565b6127718185612710565b9350612781818560208601612721565b61278a8161274b565b840191505092915050565b600060208201905081810360008301526127af818461275c565b905092915050565b600080604083850312156127ce576127cd612569565b5b60006127dc85828601612594565b92505060206127ed85828601612594565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261281c5761281b6127f7565b5b8235905067ffffffffffffffff811115612839576128386127fc565b5b60208301915083600182028301111561285557612854612801565b5b9250929050565b6000806020838503121561287357612872612569565b5b600083013567ffffffffffffffff8111156128915761289061256e565b5b61289d85828601612806565b92509250509250929050565b6128b281612620565b82525050565b60006020820190506128cd60008301846128a9565b92915050565b60006128de826126b7565b9050919050565b6128ee816128d3565b82525050565b600060208201905061290960008301846128e5565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061295657607f821691505b6020821081036129695761296861290f565b5b50919050565b60008151905061297e81612632565b92915050565b60006020828403121561299a57612999612569565b5b60006129a88482850161296f565b91505092915050565b7f4e6f7420417574686f72697a6564000000000000000000000000000000000000600082015250565b60006129e7600e83612710565b91506129f2826129b1565b602082019050919050565b60006020820190508181036000830152612a16816129da565b9050919050565b600082905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612ab97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612a7c565b612ac38683612a7c565b95508019841693508086168417925050509392505050565b6000612af6612af1612aec84612573565b61268b565b612573565b9050919050565b6000819050919050565b612b1083612adb565b612b24612b1c82612afd565b848454612a89565b825550505050565b600090565b612b39612b2c565b612b44818484612b07565b505050565b5b81811015612b6857612b5d600082612b31565b600181019050612b4a565b5050565b601f821115612bad57612b7e81612a57565b612b8784612a6c565b81016020851015612b96578190505b612baa612ba285612a6c565b830182612b49565b50505b505050565b600082821c905092915050565b6000612bd060001984600802612bb2565b1980831691505092915050565b6000612be98383612bbf565b9150826002028217905092915050565b612c038383612a1d565b67ffffffffffffffff811115612c1c57612c1b612a28565b5b612c26825461293e565b612c31828285612b6c565b6000601f831160018114612c605760008415612c4e578287013590505b612c588582612bdd565b865550612cc0565b601f198416612c6e86612a57565b60005b82811015612c9657848901358255600182019150602085019450602081019050612c71565b86831015612cb35784890135612caf601f891682612bbf565b8355505b6001600288020188555050505b50505050505050565b600081519050612cd88161257d565b92915050565b600080fd5b612cec8261274b565b810181811067ffffffffffffffff82111715612d0b57612d0a612a28565b5b80604052505050565b6000612d1e61255f565b9050612d2a8282612ce3565b919050565b600067ffffffffffffffff821115612d4a57612d49612a28565b5b612d538261274b565b9050602081019050919050565b6000612d73612d6e84612d2f565b612d14565b905082815260208101848484011115612d8f57612d8e612cde565b5b612d9a848285612721565b509392505050565b600082601f830112612db757612db66127f7565b5b8151612dc7848260208601612d60565b91505092915050565b600080600060608486031215612de957612de8612569565b5b6000612df786828701612cc9565b9350506020612e0886828701612cc9565b925050604084015167ffffffffffffffff811115612e2957612e2861256e565b5b612e3586828701612da2565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e7982612573565b9150612e8483612573565b925082612e9457612e93612e3f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612f0882612573565b9150612f1383612573565b9250828201905080821115612f2b57612f2a612ece565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000612fa882612705565b612fb28185612f8c565b9350612fc2818560208601612721565b612fcb8161274b565b840191505092915050565b612fdf81612620565b82525050565b600081519050919050565b600082825260208201905092915050565b600061300c82612fe5565b6130168185612ff0565b9350613026818560208601612721565b61302f8161274b565b840191505092915050565b6005811061304b5761304a612f31565b5b50565b600081905061305c8261303a565b919050565b600061306c8261304e565b9050919050565b61307c81613061565b82525050565b600060e083016000830151848203600086015261309f8282612f9d565b91505060208301516130b46020860182612fd6565b50604083015184820360408601526130cc8282613001565b91505060608301516130e16060860182613073565b50608083015184820360808601526130f98282613001565b91505060a083015184820360a08601526131138282613001565b91505060c083015184820360c086015261312d8282613001565b9150508091505092915050565b60006131468383613082565b905092915050565b6000602082019050919050565b600061316682612f60565b6131708185612f6b565b93508360208202850161318285612f7c565b8060005b858110156131be578484038952815161319f858261313a565b94506131aa8361314e565b925060208a01995050600181019050613186565b50829750879550505050505092915050565b600060408301600083015184820360008601526131ed828261315b565b91505060208301518482036020860152613207828261315b565b9150508091505092915050565b6000602082019050818103600083015261322e81846131d0565b905092915050565b600067ffffffffffffffff82111561325157613250612a28565b5b61325a8261274b565b9050602081019050919050565b600061327a61327584613236565b612d14565b90508281526020810184848401111561329657613295612cde565b5b6132a1848285612721565b509392505050565b600082601f8301126132be576132bd6127f7565b5b81516132ce848260208601613267565b91505092915050565b6000602082840312156132ed576132ec612569565b5b600082015167ffffffffffffffff81111561330b5761330a61256e565b5b613317848285016132a9565b91505092915050565b600081905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000613361601d83613320565b915061336c8261332b565b601d82019050919050565b600061338282612705565b61338c8185613320565b935061339c818560208601612721565b80840191505092915050565b60006133b382613354565b91506133bf8284613377565b915081905092915050565b7f6c657420746f6b656e4964203d20000000000000000000000000000000000000600082015250565b6000613400600e83613320565b915061340b826133ca565b600e82019050919050565b7f3b00000000000000000000000000000000000000000000000000000000000000600082015250565b600061344c600183613320565b915061345782613416565b600182019050919050565b7f6c6574206c6179657231203d2000000000000000000000000000000000000000600082015250565b6000613498600d83613320565b91506134a382613462565b600d82019050919050565b7f6c6574206c6179657233203d2000000000000000000000000000000000000000600082015250565b60006134e4600d83613320565b91506134ef826134ae565b600d82019050919050565b7f6c657420736563726574576f7264203d20270000000000000000000000000000600082015250565b6000613530601283613320565b915061353b826134fa565b601282019050919050565b7f273b000000000000000000000000000000000000000000000000000000000000600082015250565b600061357c600283613320565b915061358782613546565b600282019050919050565b7f6c657420626974456e7669726f6e6d656e74203d200000000000000000000000600082015250565b60006135c8601583613320565b91506135d382613592565b601582019050919050565b7f6c65742062697450616c65747465203d20000000000000000000000000000000600082015250565b6000613614601183613320565b915061361f826135de565b601182019050919050565b6000613635826133f3565b91506136418289613377565b915061364c8261343f565b91506136578261348b565b91506136638288613377565b915061366e8261343f565b9150613679826134d7565b91506136858287613377565b91506136908261343f565b915061369b82613523565b91506136a78286613377565b91506136b28261356f565b91506136bd826135bb565b91506136c98285613377565b91506136d48261343f565b91506136df82613607565b91506136eb8284613377565b91506136f68261343f565b9150819050979650505050505050565b600061371182612573565b915061371c83612573565b925082820390508181111561373457613733612ece565b5b92915050565b600061374582612573565b915061375083612573565b9250826137605761375f612e3f565b5b828204905092915050565b7f637970686572436172645f000000000000000000000000000000000000000000815250565b600061379c8261376b565b600b820191506137ac8284613377565b915081905092915050565b6000602082840312156137cd576137cc612569565b5b600082015167ffffffffffffffff8111156137eb576137ea61256e565b5b6137f784828501612da2565b91505092915050565b7f6c6574206772696453697a65203d200000000000000000000000000000000000600082015250565b6000613836600f83613320565b915061384182613800565b600f82019050919050565b7f6c657420677269645265736f6c7574696f6e203d200000000000000000000000600082015250565b6000613882601583613320565b915061388d8261384c565b601582019050919050565b7f6c6574206c6576656c50726f6772657373696f6e203d20000000000000000000600082015250565b60006138ce601783613320565b91506138d982613898565b601782019050919050565b7f6c6574206f776e657241646479203d2027000000000000000000000000000000600082015250565b600061391a601183613320565b9150613925826138e4565b601182019050919050565b7f6c6574206d657373616765203d20270000000000000000000000000000000000600082015250565b6000613966600f83613320565b915061397182613930565b600f82019050919050565b7f6c6574206c7362203d2000000000000000000000000000000000000000000000600082015250565b60006139b2600a83613320565b91506139bd8261397c565b600a82019050919050565b60006139d382613829565b91506139df8289613377565b91506139ea8261343f565b91506139f582613875565b9150613a018288613377565b9150613a0c8261343f565b9150613a17826138c1565b9150613a238287613377565b9150613a2e8261343f565b9150613a398261390d565b9150613a458286613377565b9150613a508261356f565b9150613a5b82613959565b9150613a678285613377565b9150613a728261356f565b9150613a7d826139a5565b9150613a898284613377565b9150613a948261343f565b9150819050979650505050505050565b7f7b226e616d65223a202200000000000000000000000000000000000000000000600082015250565b6000613ada600a83613320565b9150613ae582613aa4565b600a82019050919050565b7f4359504845524455444520230000000000000000000000000000000000000000600082015250565b6000613b26600c83613320565b9150613b3182613af0565b600c82019050919050565b7f222c20226465736372697074696f6e223a22437970686572647564657320697360008201527f20612067656e657261746976652063727970746f61727420736572696573207060208201527f6179696e67207472696275746520746f207468652043797068657270756e6b2060408201527f6d6f76656d656e742c20776869636820686173206265656e2063616d7061696760608201527f6e696e6720666f72207468652070726f74656374696f6e206f6620707269766160808201527f6379206f6e2074686520696e7465726e65742073696e6365207468652065617260a08201527f6c79203930732c20616e642077617320626568696e642074686520637265617460c08201527f696f6e206f6620626974636f696e20696e20323030382e54686973207365726960e08201527f65732074616b657320757020746865206772617068696320756e6976657273656101008201527f206f662061206368617261637465722074686174204920696e76656e746564206101208201527f616e64206761696e656420736f6d6520706f70756c617269747920696e2074686101408201527f652063727970746f20617274207363656e65203a207468652063727970746f646101608201527f7564652e4120706572736f6e696669636174696f6e206f662063727970746f206101808201527f63756c747572652c20746865204379706865726475646520706572666f726d736101a08201527f20616374696f6e7320746861742076697375616c6c79207472616e736c6174656101c08201527f207468652065787072657373696f6e7320616e64206265686176696f727320736101e08201527f7065636966696320746f20746869732065636f73797374656d2e4561636820776102008201527f6f726b20696e207468652073657269657320697320756e6971756520616e64206102208201527f67656e6572617465642066726f6d20616e20616c676f726974686d20686f73746102408201527f6564206469726563746c79206f6e2074686520626c6f636b636861696e2e20546102608201527f686520706172616d657465727320636f6d706f73696e67206561636820776f726102808201527f6b206172652073656c65637465642066726f6d206120776964652072616e67656102a08201527f206f6620656c656d656e7473206372656174656420696e646976696475616c6c6102c08201527f79206279206d7973656c6620616e6420636f6d62696e656420696e20612073656102e08201527f656465642072616e646f6d207761792e204561636820736565642069732064656103008201527f7465726d696e65642062792074686520626c6f636b636861696e206f6e206d696103208201527f6e742e54686520776f726b20616e6420746865204d6573736167652e456163686103408201527f206f776e6572206f66206120776f726b2066726f6d20746865207365726965736103608201527f206861732061636365737320746f20612068696464656e2066656174757265206103808201527f3a20746865206162696c69747920746f20696e73637269626520616e20656e636103a08201527f727970746564206d65737361676520696e2074686520776f726b20697473656c6103c08201527f662e2054686520656e6372797074696f6e206b657920697320646563696465646103e08201527f20627920746865206f776e6572206f6e20657665727920696e736372697074696104008201527f6f6e2e2054686973206d6573736167652063616e207468656e206f6e6c7920626104208201527f65206465636f646564206279206120726563697069656e74206b6e6f77696e676104408201527f20746865206b65792e2054686973207761792c2074686520776f726b206265636104608201527f6f6d6573206120766572697461626c6520746f6f6c20617420746865207365726104808201527f76696365206f6620697473206f776e65722c2077686f2c206279207573696e676104a08201527f2069742c206d616b65732069742065766f6c76652076697375616c6c792075736104c08201527f696e6720612073696d706c652073746567616e6f6772617068696320746563686104e08201527f6e697175652e5468652043797068657264756465732074687573206265636f6d6105008201527f6573207468652076697375616c207769746e65737320746f20746865207072656105208201527f73656e6365206f662061206d6573736167652c20616e642069747320646967696105408201527f74616c207365637572697479207661756c742e222c000000000000000000000061056082015250565b60006141f961057583613320565b915061420482613b3c565b61057582019050919050565b7f2265787465726e616c5f75726c223a2022000000000000000000000000000000600082015250565b6000614246601183613320565b915061425182614210565b601182019050919050565b600081546142698161293e565b6142738186613320565b9450600182166000811461428e57600181146142a3576142d6565b60ff19831686528115158202860193506142d6565b6142ac85612a57565b60005b838110156142ce578154818901526001820191506020810190506142af565b838801955050505b50505092915050565b7f2f637970686572647564652f0000000000000000000000000000000000000000600082015250565b6000614315600c83613320565b9150614320826142df565b600c82019050919050565b7f222c2022696d616765223a202200000000000000000000000000000000000000600082015250565b6000614361600d83613320565b915061436c8261432b565b600d82019050919050565b7f2e73766722000000000000000000000000000000000000000000000000000000600082015250565b60006143ad600583613320565b91506143b882614377565b600582019050919050565b7f2c2022616e696d6174696f6e5f75726c223a2022000000000000000000000000600082015250565b60006143f9601483613320565b9150614404826143c3565b601482019050919050565b600081905092915050565b600061442582612fe5565b61442f818561440f565b935061443f818560208601612721565b80840191505092915050565b7f222c202261747472696275746573223a205b0000000000000000000000000000600082015250565b6000614481601283613320565b915061448c8261444b565b601282019050919050565b7f5d7d000000000000000000000000000000000000000000000000000000000000600082015250565b60006144cd600283613320565b91506144d882614497565b600282019050919050565b60006144ee82613acd565b91506144fa828c613377565b9150614506828b613377565b915061451182613b19565b915061451d828a613377565b9150614528826141eb565b915061453382614239565b915061453f828961425c565b915061454a82614308565b91506145568288613377565b915061456182614354565b915061456d828761425c565b91506145798286613377565b9150614584826143a0565b915061458f826143ec565b915061459b828561441a565b91506145a682614474565b91506145b28284613377565b91506145bd826144c0565b91508190509a9950505050505050505050565b60006145db82612573565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361460d5761460c612ece565b5b600182019050919050565b7f7b2274726169745f74797065223a22477269642053697a65222c2276616c756560008201527f22203a2200000000000000000000000000000000000000000000000000000000602082015250565b6000614674602483613320565b915061467f82614618565b602482019050919050565b7f227d2c0000000000000000000000000000000000000000000000000000000000600082015250565b60006146c0600383613320565b91506146cb8261468a565b600382019050919050565b7f7b2274726169745f74797065223a2247726964205265736f6c7574696f6e222c60008201527f2276616c756522203a2200000000000000000000000000000000000000000000602082015250565b6000614732602a83613320565b915061473d826146d6565b602a82019050919050565b7f7b2274726169745f74797065223a224c6576656c2050726f6772657373696f6e60008201527f222c2276616c756522203a220000000000000000000000000000000000000000602082015250565b60006147a4602c83613320565b91506147af82614748565b602c82019050919050565b7f7b2274726169745f74797065223a22416374696f6e222c2276616c756522203a60008201527f2200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614816602183613320565b9150614821826147ba565b602182019050919050565b7f7b2274726169745f74797065223a224c617965722031222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b6000614888602283613320565b91506148938261482c565b602282019050919050565b7f7b2274726169745f74797065223a224c617965722032222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b60006148fa602283613320565b91506149058261489e565b602282019050919050565b7f7b2274726169745f74797065223a224c617965722033222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b600061496c602283613320565b915061497782614910565b602282019050919050565b7f7b2274726169745f74797065223a2253656372657420576f7264222c2276616c60008201527f756522203a220000000000000000000000000000000000000000000000000000602082015250565b60006149de602683613320565b91506149e982614982565b602682019050919050565b7f7b2274726169745f74797065223a2242697420456e7669726f6e6d656e74222c60008201527f2276616c756522203a2200000000000000000000000000000000000000000000602082015250565b6000614a50602a83613320565b9150614a5b826149f4565b602a82019050919050565b7f7b2274726169745f74797065223a224269742050616c65747465222c2276616c60008201527f756522203a220000000000000000000000000000000000000000000000000000602082015250565b6000614ac2602683613320565b9150614acd82614a66565b602682019050919050565b7f7b2274726169745f74797065223a224c65617374205369676e69666963616e7460008201527f20426974222c2276616c756522203a2200000000000000000000000000000000602082015250565b6000614b34603083613320565b9150614b3f82614ad8565b603082019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000614b80600283613320565b9150614b8b82614b4a565b600282019050919050565b6000614ba182614667565b9150614bad828e613377565b9150614bb8826146b3565b9150614bc382614725565b9150614bcf828d61425c565b9150614bda826146b3565b9150614be582614797565b9150614bf1828c613377565b9150614bfc826146b3565b9150614c0782614809565b9150614c13828b61425c565b9150614c1e826146b3565b9150614c298261487b565b9150614c35828a61425c565b9150614c40826146b3565b9150614c4b826148ed565b9150614c57828961425c565b9150614c62826146b3565b9150614c6d8261495f565b9150614c79828861425c565b9150614c84826146b3565b9150614c8f826149d1565b9150614c9b8287613377565b9150614ca6826146b3565b9150614cb182614a43565b9150614cbd828661425c565b9150614cc8826146b3565b9150614cd382614ab5565b9150614cdf828561425c565b9150614cea826146b3565b9150614cf582614b27565b9150614d018284613377565b9150614d0c82614b73565b91508190509c9b505050505050505050505050565b6000614d2c82612573565b9150614d3783612573565b9250828202614d4581612573565b91508282048414831517614d5c57614d5b612ece565b5b5092915050565b6000614d6e82612573565b915060008203614d8157614d80612ece565b5b600182039050919050565b6000604082019050614da160008301856125d6565b614dae60208301846125d6565b939250505056fe68746d6c7b6f766572666c6f773a68696464656e7d626f64797b6d617267696e3a303b70616464696e673a307da26469706673582212200aeb00c6c8101fc069f2540c7d7ab631862a0cbb35ea63fc4dceb5f976708ecc64736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d7587f110e08f4d120a231ba97d3b577a81df022000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b76990000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f63797068657264756465732e61707073706f742e636f6d2f000000000000000000000000000000000000000000000000000000000000000000000000000000000f63797068657264756465732e636f6d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4379706865724475646573563400000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _scriptyBuilderAddress (address): 0xD7587F110E08F4D120A231bA97d3B577A81Df022
Arg [1] : _scriptyStorageAddress (address): 0xbD11994aABB55Da86DC246EBB17C1Be0af5b7699
Arg [2] : filestore_ (address): 0x9181580FCe530e5FBD8DbA7141Fc0cCBb8e59b8B
Arg [3] : baseImageURI_ (string): https://storage.googleapis.com/cypherdudes.appspot.com/
Arg [4] : website_ (string): cypherdudes.com
Arg [5] : cypherdudeScript_ (string): CypherDudesV4
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 000000000000000000000000d7587f110e08f4d120a231ba97d3b577a81df022
Arg [1] : 000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b7699
Arg [2] : 0000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [7] : 68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f63
Arg [8] : 797068657264756465732e61707073706f742e636f6d2f000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [10] : 63797068657264756465732e636f6d0000000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [12] : 4379706865724475646573563400000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.