Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 311 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Renounce Ownersh... | 19335423 | 335 days ago | IN | 0 ETH | 0.00146751 | ||||
Set Description | 18594278 | 439 days ago | IN | 0 ETH | 0.00349707 | ||||
Set Description | 18585475 | 440 days ago | IN | 0 ETH | 0.00349058 | ||||
Set Description | 18585053 | 440 days ago | IN | 0 ETH | 0.00945954 | ||||
Transfer Ownersh... | 18452175 | 459 days ago | IN | 0 ETH | 0.00025494 | ||||
Set Piece Data | 18452150 | 459 days ago | IN | 0 ETH | 0.0279496 | ||||
Set Piece Data | 18452149 | 459 days ago | IN | 0 ETH | 0.03307472 | ||||
Set Piece Data | 18452148 | 459 days ago | IN | 0 ETH | 0.03644856 | ||||
Set Piece Data | 18452141 | 459 days ago | IN | 0 ETH | 0.01477437 | ||||
Set Piece Data | 18452135 | 459 days ago | IN | 0 ETH | 0.02836621 | ||||
Set Piece Data | 18452128 | 459 days ago | IN | 0 ETH | 0.02377976 | ||||
Set Piece Data | 18452127 | 459 days ago | IN | 0 ETH | 0.03198114 | ||||
Set Piece Data | 18452126 | 459 days ago | IN | 0 ETH | 0.01842578 | ||||
Set Piece Data | 18452125 | 459 days ago | IN | 0 ETH | 0.03957853 | ||||
Set Piece Data | 18452124 | 459 days ago | IN | 0 ETH | 0.02789974 | ||||
Set Piece Data | 18452123 | 459 days ago | IN | 0 ETH | 0.01468207 | ||||
Set Piece Data | 18452122 | 459 days ago | IN | 0 ETH | 0.01855023 | ||||
Set Piece Data | 18452121 | 459 days ago | IN | 0 ETH | 0.0146492 | ||||
Set Piece Data | 18452120 | 459 days ago | IN | 0 ETH | 0.02850827 | ||||
Set Piece Data | 18452112 | 459 days ago | IN | 0 ETH | 0.01462652 | ||||
Set Piece Data | 18452110 | 459 days ago | IN | 0 ETH | 0.01931048 | ||||
Set Piece Data | 18452106 | 459 days ago | IN | 0 ETH | 0.03305031 | ||||
Set Piece Data | 18452102 | 459 days ago | IN | 0 ETH | 0.02862672 | ||||
Set Piece Data | 18452100 | 459 days ago | IN | 0 ETH | 0.0192614 | ||||
Set Piece Data | 18452099 | 459 days ago | IN | 0 ETH | 0.02992075 |
Latest 25 internal transactions (View All)
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
TreeanglesStorage
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* SPDX-License-Identifier: MIT Treeangles by nix.eth :+********=. *@%- -***%@@#**+. *@@- *@@: +#+-*%: .=#%%#=. :*%%#+: +#%%%*- *#+-*%%*: .+#%#++#+. *@@- .=#%%#=. .+#%%#- *@@: *@@@#+.-%@+.:#@#. *@%:.=@@= --:-*@@+ %@@#=+@@@: -%@%=-*@@#. *@@- :%@*.:*@%. %@@-:-. *@@: +@@= .#@@@%%@@@-:@@@%%@@@# .*%@#%@@# %@@. *@@= *@@- :%@# *@@- +@@@%%@@@= =%@@%*: *@@: +@@- *@@+...:. :@@%-...:. #@@: -@@* %@@. *@@= +@@*:.+@@# *@@- =@@*:..:: ...-@@@ *@@: +@@- =#@@@@@+ :*%@@@@#. -%@@%#@@# %@@. *@@= -#%@##%@# *@@- =#@@@@@* .%@%%@#= .. .. .... .... .. . .. .. .:...+@@+ .. .... .... *@@@@@#= .............. .+%@%%%@%%@@%%@%#-. .=+**#@@@@@@@@@@@@@@@@@@%#*+=: .-#%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#+. +%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*: :*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%= .*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%- =%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*. -*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%= .*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@% -#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ =%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ =%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ .*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@% -*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*= :*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%*-. :=%@@%%@@@@@@@@@@@@@@@@@@@@@@@@%%@@@+:. ... :#@%+=*%%*#@@@@%#%@#==#@%=.... .:. .. :%@@@+ .. :. =@# :%@@@+ =@@@@#. @@*#@@## #@@ -@@* :@@= +@@@@%: @@% %@% #@@ *@%.#@% .*@@@@@- @@# #@@ #@@ @@@ :#@@@@@+. @@# #@@ #@@ *@%.#@% :%@@@@@*. @@# #@@ #@@ -@@* :@@= */ pragma solidity ^0.8.21; import "./SSTORE2.sol"; import "./Base64.sol"; import "./Strings.sol"; import "./Ownable.sol"; contract TreeanglesStorage is Ownable { using Strings for uint8; using Strings for uint256; using Strings for uint24; string[] internal treeSizes = [ 'Majestic', 'Grand', 'Standard', 'Modest', 'Petite', 'Dreamcape' ]; string[] internal environments = [ 'Whispercloud', 'Radiantbow', 'Brightsolitude', 'Iceshard', 'Horizonhaven', 'Dreamcape', 'Sunscar', 'Stormsong', 'Celestial', 'Daystar', 'Starweaver' ]; string[] internal landscapes = [ 'Wildmeadow', 'Emeraldcourt', 'Goldenstride', 'Rubywhisper', 'Obsidian', 'Leafsong', 'Liquidlight', 'Perfectiongrass', 'Frostvale' ]; string[] internal trees = [ 'Sunspark', 'Emberleaf', 'Mossveil', 'Sovereignshade', 'Moonshade', 'Valentine', 'Dracofruit', 'Regalroot', 'Whisperbark', 'Chromafrond', 'Mysticveil', 'Windwhisper' ]; string private baseExternalURI = 'https://t.nix.art/'; string private description = 'Truly onchain [More Details]('; mapping(uint256 => address) internal pieces; constructor() Ownable(msg.sender){} function setPieceData(uint256 tokenId, bytes calldata _data) external onlyOwner { pieces[tokenId] = (SSTORE2.write(_data)); } struct RawPiece { uint256 tokenId; bytes data; } function setPiecesData(RawPiece[] calldata _pieces) external onlyOwner{ for (uint i=0; i<_pieces.length; i++) { pieces[_pieces[i].tokenId] = (SSTORE2.write(_pieces[i].data)); } } function setBaseExternalURI(string calldata uri) external onlyOwner{ baseExternalURI = uri; } function setDescription(string calldata desc) external onlyOwner{ description = desc; } function getPieceData(uint256 tokenId) external view returns (bytes memory) { return SSTORE2.read(pieces[tokenId]); } function getPiece(uint256 tokenId) external view returns (string memory, string memory) { bytes memory data = SSTORE2.read(pieces[tokenId]); string memory svg = string(getSVGFromData(data)); string memory metadata = string(abi.encodePacked( getMetadataStartFromData(tokenId, data), '}' )); return (metadata, svg); } function getMetadataStartFromData(uint256 tokenId, bytes memory _data) internal view returns (string memory) { string memory tokenIdString = tokenId.toString(); bytes memory externalURI = abi.encodePacked(baseExternalURI, tokenIdString); bytes memory attributes = abi.encodePacked( '"attributes": [', '{"trait_type": "Environment", "value": "', environments[uint8(_data[0]) - 1], '"},{"trait_type": "Landscape", "value": "', landscapes[uint8(_data[1]) - 1], '"},{"trait_type": "Tree", "value": "', trees[uint8(_data[2]) - 1], '"},{"trait_type": "Tree Size", "value": "', treeSizes[uint8(_data[3]) - 1], '"},{"trait_type": "Complexity", "value": "', uint8(_data[4]).toString(), '"}]' ); return string(abi.encodePacked( '{', '"name": "Treeangles #',tokenIdString,'",', '"description": "',description,externalURI,')",', '"external_url": "',externalURI,'",', attributes )); } function getSVGFromData(bytes memory _data) internal pure returns (bytes memory) { bytes3 mask3 = bytes3(0xfF0000); bytes12 mask12 = bytes12(0xfF0000000000000000000000); uint polygonCount = (_data.length - 5) / 12; bytes memory template = new bytes(98 * polygonCount); bytes memory template2 = new bytes(81 * polygonCount); uint cursor = 0; uint cursor2 = 0; for (uint i=0; i < polygonCount; i++) { uint dataOffset = (i * 12) + 5; bytes12 polyData; polyData^=(_data[dataOffset]); polyData^=(mask12&_data[dataOffset+1])>>(8); polyData^=(mask12&_data[dataOffset+2])>>(16); polyData^=(mask12&_data[dataOffset+3])>>(24); polyData^=(mask12&_data[dataOffset+4])>>(32); polyData^=(mask12&_data[dataOffset+5])>>(40); polyData^=(mask12&_data[dataOffset+6])>>(48); polyData^=(mask12&_data[dataOffset+7])>>(56); polyData^=(mask12&_data[dataOffset+8])>>(64); polyData^=(mask12&_data[dataOffset+9])>>(72); polyData^=(mask12&_data[dataOffset+10])>>(80); polyData^=(mask12&_data[dataOffset+11])>>(88); bytes3 result1; bytes3 result2; bytes3 result3; result1^=(polyData[0]); result1^=(mask3&polyData[1])>>(8); result1^=(mask3&polyData[2])>>(16); result2^=(polyData[3]); result2^=(mask3&polyData[4])>>(8); result2^=(mask3&polyData[5])>>(16); result3^=(polyData[6]); result3^=(mask3&polyData[7])>>(8); result3^=(mask3&polyData[8])>>(16); bytes memory points = abi.encodePacked( uint24(result1 >> 12).toString(), ',', (uint24(result1) % 2 ** 12).toString(), ' ', uint24(result2 >> 12).toString(), ',', (uint24(result2) % 2 ** 12).toString(), ' ', uint24(result3 >> 12).toString(), ',', (uint24(result3) % 2 ** 12).toString(), ' ' ); bytes memory color = abi.encodePacked(uint8(polyData[9]).toString(), ',', uint8(polyData[10]).toString(), ',', uint8(polyData[11]).toString()); bytes memory polygon = abi.encodePacked( '<polygon points="', points, '" style="stroke:rgb(', color, ');stroke-width:4"/> ' ); bytes memory polygon2 = abi.encodePacked( '<polygon points="', points, '" style="fill:rgb(', color, ')"/> ' ); for (uint k=0; k < 98; k++) { template[cursor++] = polygon[k]; } for (uint k=0; k < 81; k++) { template2[cursor2++] = polygon2[k]; } } return abi.encodePacked('<svg viewBox="0 0 1100 1100" xmlns="http://www.w3.org/2000/svg">', template, template2, '</svg>'); } function tokenURI(uint256 tokenId) external view returns (string memory) { bytes memory data = SSTORE2.read(pieces[tokenId]); string memory svg = Base64.encode(getSVGFromData(data)); string memory uri = Base64.encode(abi.encodePacked( getMetadataStartFromData(tokenId, data), ',"image": "', abi.encodePacked( "data:image/svg+xml;base64,", svg ), '"}' )); return string( abi.encodePacked( "data:application/json;base64,", uri ) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "./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.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./Math.sol"; import {SignedMath} from "./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: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Base64.sol) pragma solidity ^0.8.20; /** * @dev Provides a set of functions to operate with Base64 strings. */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Bytecode.sol"; /** @title A key-value storage with auto-generated keys for storing chunks of data with a lower write & read cost. @author Agustin Aguilar <[email protected]> Readme: https://github.com/0xsequence/sstore2#readme */ library SSTORE2 { error WriteError(); /** @notice Stores `_data` and returns `pointer` as key for later retrieval @dev The pointer is a contract address with `_data` as code @param _data to be written @return pointer Pointer to the written `_data` */ function write(bytes memory _data) internal returns (address pointer) { // Append 00 to _data so contract can't be called // Build init code bytes memory code = Bytecode.creationCodeFor( abi.encodePacked( hex'00', _data ) ); // Deploy contract using create assembly { pointer := create(0, add(code, 32), mload(code)) } // Address MUST be non-zero if (pointer == address(0)) revert WriteError(); } /** @notice Reads the contents of the `_pointer` code as data, skips the first byte @dev The function is intended for reading pointers generated by `write` @param _pointer to be read @return data read from `_pointer` contract */ function read(address _pointer) internal view returns (bytes memory) { return Bytecode.codeAt(_pointer, 1, type(uint256).max); } /** @notice Reads the contents of the `_pointer` code as data, skips the first byte @dev The function is intended for reading pointers generated by `write` @param _pointer to be read @param _start number of bytes to skip @return data read from `_pointer` contract */ function read(address _pointer, uint256 _start) internal view returns (bytes memory) { return Bytecode.codeAt(_pointer, _start + 1, type(uint256).max); } /** @notice Reads the contents of the `_pointer` code as data, skips the first byte @dev The function is intended for reading pointers generated by `write` @param _pointer to be read @param _start number of bytes to skip @param _end index before which to end extraction @return data read from `_pointer` contract */ function read(address _pointer, uint256 _start, uint256 _end) internal view returns (bytes memory) { return Bytecode.codeAt(_pointer, _start + 1, _end + 1); } }
// SPDX-License-Identifier: MIT // 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/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 pragma solidity ^0.8.0; library Bytecode { error InvalidCodeAtRange(uint256 _size, uint256 _start, uint256 _end); /** @notice Generate a creation code that results on a contract with `_code` as bytecode @param _code The returning value of the resulting `creationCode` @return creationCode (constructor) for new contract */ function creationCodeFor(bytes memory _code) internal pure returns (bytes memory) { /* 0x00 0x63 0x63XXXXXX PUSH4 _code.length size 0x01 0x80 0x80 DUP1 size size 0x02 0x60 0x600e PUSH1 14 14 size size 0x03 0x60 0x6000 PUSH1 00 0 14 size size 0x04 0x39 0x39 CODECOPY size 0x05 0x60 0x6000 PUSH1 00 0 size 0x06 0xf3 0xf3 RETURN <CODE> */ return abi.encodePacked( hex"63", uint32(_code.length), hex"80_60_0E_60_00_39_60_00_F3", _code ); } /** @notice Returns the size of the code on a given address @param _addr Address that may or may not contain code @return size of the code on the given `_addr` */ function codeSize(address _addr) internal view returns (uint256 size) { assembly { size := extcodesize(_addr) } } /** @notice Returns the code of a given address @dev It will fail if `_end < _start` @param _addr Address that may or may not contain code @param _start number of bytes of code to skip on read @param _end index before which to end extraction @return oCode read from `_addr` deployed bytecode Forked from: https://gist.github.com/KardanovIR/fe98661df9338c842b4a30306d507fbd */ function codeAt(address _addr, uint256 _start, uint256 _end) internal view returns (bytes memory oCode) { uint256 csize = codeSize(_addr); if (csize == 0) return bytes(""); if (_start > csize) return bytes(""); if (_end < _start) revert InvalidCodeAtRange(csize, _start, _end); unchecked { uint256 reqSize = _end - _start; uint256 maxSize = csize - _start; uint256 size = maxSize < reqSize ? maxSize : reqSize; assembly { // allocate output byte array - this could also be done without assembly // by using o_code = new bytes(size) oCode := mload(0x40) // new "memory end" including padding mstore(0x40, add(oCode, and(add(add(size, 0x20), 0x1f), not(0x1f)))) // store length in memory mstore(oCode, size) // actually retrieve the code, this needs assembly extcodecopy(_addr, add(oCode, 0x20), _start, size) } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"_size","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"InvalidCodeAtRange","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"WriteError","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPiece","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPieceData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"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":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseExternalURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"desc","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"setPieceData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct TreeanglesStorage.RawPiece[]","name":"_pieces","type":"tuple[]"}],"name":"setPiecesData","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"}]
Contract Creation Code
6008610140818152674d616a657374696360c01b61016052608090815260056101809081526411dc985b9960da1b6101a05260a0526101c09182526714dd185b99185c9960c21b6101e05260c091909152600661020081815265135bd9195cdd60d21b6102205260e0526102408181526550657469746560d01b61026052610100526102c0604052600961028090815268447265616d6361706560b81b6102a05261012052620000b291600191620006bd565b50604080516101a081018252600c61016082018181526b15da1a5cdc195c98db1bdd5960a21b610180840152825282518084018452600a8082526952616469616e74626f7760b01b6020838101919091528085019290925284518086018652600e81526d427269676874736f6c697475646560901b81840152848601528451808601865260088152671258d95cda185c9960c21b818401526060850152845180860186529283526b2437b934bd37b73430bb32b760a11b83830152608084019290925283518085018552600980825268447265616d6361706560b81b8284015260a08501919091528451808601865260078082526629bab739b1b0b960c91b8285015260c0860191909152855180870187528281526853746f726d736f6e6760b81b8185015260e0860152855180870187529182526810d95b195cdd1a585b60ba1b8284015261010085019190915284518086018652908152662230bcb9ba30b960c91b8183015261012084015283518085019094529083526929ba30b93bb2b0bb32b960b11b908301526101408101919091526200025690600290600b62000718565b506040518061012001604052806040518060400160405280600a81526020016957696c646d6561646f7760b01b81525081526020016040518060400160405280600c81526020016b115b595c985b1918dbdd5c9d60a21b81525081526020016040518060400160405280600c81526020016b476f6c64656e73747269646560a01b81525081526020016040518060400160405280600b81526020016a293ab13cbbb434b9b832b960a91b81525081526020016040518060400160405280600881526020016727b139b4b234b0b760c11b8152508152602001604051806040016040528060088152602001674c656166736f6e6760c01b81525081526020016040518060400160405280600b81526020016a131a5c5d5a591b1a59da1d60aa1b81525081526020016040518060400160405280600f81526020016e50657266656374696f6e677261737360881b81525081526020016040518060400160405280600981526020016846726f737476616c6560b81b8152508152506003906009620003e192919062000761565b50604080516101c081018252600861018082018181526753756e737061726b60c01b6101a084015282528251808401845260098082526822b6b132b93632b0b360b91b602083810191909152808501929092528451808601865292835267135bdcdcdd995a5b60c21b838301528385019290925283518085018552600e81526d536f7665726569676e736861646560901b81830152606084015283518085018552828152684d6f6f6e736861646560b81b818301526080840152835180850185528281526856616c656e74696e6560b81b8183015260a084015283518085018552600a80825269111c9858dbd99c9d5a5d60b21b8284015260c08501919091528451808601865292835268149959d85b1c9bdbdd60ba1b8383015260e084019290925283518085018552600b8082526a576869737065726261726b60a81b82840152610100850191909152845180860186528181526a10da1c9bdb58599c9bdb9960aa1b818401526101208501528451808601865292835269135e5cdd1a58dd995a5b60b21b8383015261014084019290925283518085019094529083526a2bb4b7323bb434b9b832b960a91b90830152610160810191909152620005ab90600490600c620007aa565b5060408051808201909152601281527168747470733a2f2f742e6e69782e6172742f60701b6020820152600590620005e4908262000908565b5060408051808201909152601d81527f5472756c79206f6e636861696e205b4d6f72652044657461696c735d28000000602082015260069062000628908262000908565b5034801562000635575f80fd5b5033806200065c57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b62000667816200066e565b50620009d0565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054828255905f5260205f2090810192821562000706579160200282015b82811115620007065782518290620006f5908262000908565b5091602001919060010190620006dc565b5062000714929150620007f3565b5090565b828054828255905f5260205f2090810192821562000706579160200282015b8281111562000706578251829062000750908262000908565b509160200191906001019062000737565b828054828255905f5260205f2090810192821562000706579160200282015b8281111562000706578251829062000799908262000908565b509160200191906001019062000780565b828054828255905f5260205f2090810192821562000706579160200282015b82811115620007065782518290620007e2908262000908565b5091602001919060010190620007c9565b8082111562000714575f62000809828262000813565b50600101620007f3565b50805462000821906200087c565b5f825580601f1062000831575050565b601f0160209004905f5260205f20908101906200084f919062000852565b50565b5b8082111562000714575f815560010162000853565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200089157607f821691505b602082108103620008b057634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000903575f81815260208120601f850160051c81016020861015620008de5750805b601f850160051c820191505b81811015620008ff57828155600101620008ea565b5050505b505050565b81516001600160401b0381111562000924576200092462000868565b6200093c816200093584546200087c565b84620008b6565b602080601f83116001811462000972575f84156200095a5750858301515b5f19600386901b1c1916600185901b178555620008ff565b5f85815260208120601f198616915b82811015620009a25788860151825594840194600190910190840162000981565b5085821015620009c057878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b611de280620009de5f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c80638da5cb5b116100635780638da5cb5b1461011957806390c3f38f14610133578063c87b56dd14610146578063f2fde38b14610159578063f803f4101461016c575f80fd5b80631954bfe81461009f57806338fe29f6146100b45780636b45c9f2146100dd578063715018a6146100fe5780638756520b14610106575b5f80fd5b6100b26100ad3660046111a6565b61017f565b005b6100c76100c23660046111ee565b6101f5565b6040516100d49190611252565b60405180910390f35b6100f06100eb3660046111ee565b61021e565b6040516100d4929190611264565b6100b2610288565b6100b2610114366004611291565b61029b565b5f546040516001600160a01b0390911681526020016100d4565b6100b2610141366004611300565b610387565b6100c76101543660046111ee565b61039c565b6100b261016736600461133f565b610453565b6100b261017a366004611300565b610495565b6101876104aa565b6101c582828080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506104d692505050565b5f9384526007602052604090932080546001600160a01b0319166001600160a01b03909416939093179092555050565b5f81815260076020526040902054606090610218906001600160a01b0316610539565b92915050565b5f818152600760205260408120546060918291610243906001600160a01b0316610539565b90505f61024f82610548565b90505f61025c8684610bbf565b60405160200161026c9190611365565b60408051601f1981840301815291905296919550909350505050565b6102906104aa565b6102995f610d7e565b565b6102a36104aa565b5f5b818110156103825761031b8383838181106102c2576102c2611389565b90506020028101906102d4919061139d565b6102e29060208101906113bb565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506104d692505050565b60075f85858581811061033057610330611389565b9050602002810190610342919061139d565b35815260208101919091526040015f2080546001600160a01b0319166001600160a01b03929092169190911790558061037a81611412565b9150506102a5565b505050565b61038f6104aa565b60066103828284836114bd565b5f81815260076020526040812054606091906103c0906001600160a01b0316610539565b90505f6103d46103cf83610548565b610dcd565b90505f6104276103e48685610bbf565b836040516020016103f59190611579565b60408051601f198184030181529082905261041392916020016115bd565b604051602081830303815290604052610dcd565b90508060405160200161043a9190611611565b6040516020818303038152906040529350505050919050565b61045b6104aa565b6001600160a01b03811661048957604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61049281610d7e565b50565b61049d6104aa565b60056103828284836114bd565b5f546001600160a01b031633146102995760405163118cdaa760e01b8152336004820152602401610480565b5f80610500836040516020016104ec9190611655565b604051602081830303815290604052610f1c565b90508051602082015ff091506001600160a01b0382166105335760405163046a55db60e11b815260040160405180910390fd5b50919050565b60606102188260015f19610f48565b80516060906001600160f81b03199081905f90600c9061056a90600590611679565b61057491906116a0565b90505f6105828260626116b3565b67ffffffffffffffff81111561059a5761059a61142a565b6040519080825280601f01601f1916602001820160405280156105c4576020820181803683370190505b5090505f6105d38360516116b3565b67ffffffffffffffff8111156105eb576105eb61142a565b6040519080825280601f01601f191660200182016040528015610615576020820181803683370190505b5090505f805f5b85811015610b8e575f61063082600c6116b3565b61063b9060056116ca565b90505f8b828151811061065057610650611389565b01602001516001600160f81b0319161860088c61066e8460016116ca565b8151811061067e5761067e611389565b01602001518a166001600160f81b031916901c1860108c6106a08460026116ca565b815181106106b0576106b0611389565b01602001518a166001600160f81b031916901c1860188c6106d28460036116ca565b815181106106e2576106e2611389565b016020908101518b166001600160f81b03191690911c91909118908c6107098460046116ca565b8151811061071957610719611389565b01602001518a166001600160f81b031916901c1860288c61073b8460056116ca565b8151811061074b5761074b611389565b01602001518a166001600160f81b031916901c1860308c61076d8460066116ca565b8151811061077d5761077d611389565b01602001518a166001600160f81b031916901c1860388c61079f8460076116ca565b815181106107af576107af611389565b01602001518a166001600160f81b031916901c1860408c6107d18460086116ca565b815181106107e1576107e1611389565b01602001518a166001600160f81b031916901c1860488c6108038460096116ca565b8151811061081357610813611389565b01602001518a166001600160f81b031916901c1860508c61083584600a6116ca565b8151811061084557610845611389565b01602001518a166001600160f81b031916901c1860588c61086784600b6116ca565b8151811061087757610877611389565b01602001518a166001600160f81b031916901c185f808083811a60f81b6001600160f81b031916929092189160088460011a60f81b8e166001600160f81b031916901c929092189160108460021a60f81b8e166001600160f81b031916901c92909218918360031a60f81b6001600160f81b031916919091189060088460041a60f81b8e166001600160f81b031916901c919091189060108460051a60f81b8e166001600160f81b031916901c91909118908360061a60f81b6001600160f81b0319161860088460071a60f81b8e166001600160f81b031916901c1860108460081a60f81b8e166001600160f81b031916901c185f61097960f485901c610ffa565b61099661098c61100060e888901c6116dd565b62ffffff16610ffa565b6109a360f486901c610ffa565b6109b661098c61100060e889901c6116dd565b6109c360f487901c610ffa565b6109d661098c61100060e88a901c6116dd565b6040516020016109eb969594939291906116fe565b60408051601f1981840301815291905290505f610a0b8660095b1a610ffa565b610a1687600a610a05565b610a2188600b610a05565b604051602001610a33939291906117c7565b60405160208183030381529060405290505f8282604051602001610a58929190611820565b60405160208183030381529060405290505f8383604051602001610a7d9291906118d1565b60405160208183030381529060405290505f5b6062811015610aff57828181518110610aab57610aab611389565b01602001516001600160f81b0319168f8e610ac581611412565b9f5081518110610ad757610ad7611389565b60200101906001600160f81b03191690815f1a90535080610af781611412565b915050610a90565b505f5b6051811015610b7157818181518110610b1d57610b1d611389565b01602001516001600160f81b0319168e8d610b3781611412565b9e5081518110610b4957610b49611389565b60200101906001600160f81b03191690815f1a90535080610b6981611412565b915050610b02565b505050505050505050508080610b8690611412565b91505061061c565b508383604051602001610ba2929190611971565b604051602081830303815290604052975050505050505050919050565b60605f610bcb84610ffa565b90505f600582604051602001610be2929190611a73565b60405160208183030381529060405290505f60026001865f81518110610c0a57610c0a611389565b0160200151610c1c919060f81c611a97565b60ff1681548110610c2f57610c2f611389565b905f5260205f20016003600187600181518110610c4e57610c4e611389565b0160200151610c60919060f81c611a97565b60ff1681548110610c7357610c73611389565b905f5260205f20016004600188600281518110610c9257610c92611389565b0160200151610ca4919060f81c611a97565b60ff1681548110610cb757610cb7611389565b905f5260205f200160018089600381518110610cd557610cd5611389565b0160200151610ce7919060f81c611a97565b60ff1681548110610cfa57610cfa611389565b905f5260205f2001610d2589600481518110610d1857610d18611389565b016020015160f81c610ffa565b604051602001610d39959493929190611ab0565b6040516020818303038152906040529050826006838484604051602001610d64959493929190611c36565b604051602081830303815290604052935050505092915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606081515f03610dea57505060408051602081019091525f815290565b5f604051806060016040528060408152602001611d6d6040913990505f600384516002610e1791906116ca565b610e2191906116a0565b610e2c9060046116b3565b67ffffffffffffffff811115610e4457610e4461142a565b6040519080825280601f01601f191660200182016040528015610e6e576020820181803683370190505b509050600182016020820185865187015b80821015610eda576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610e7f565b5050600386510660018114610ef65760028114610f0957610f11565b603d6001830353603d6002830353610f11565b603d60018303535b509195945050505050565b6060815182604051602001610f32929190611d1c565b6040516020818303038152906040529050919050565b6060833b5f819003610f6957505060408051602081019091525f8152610ff3565b80841115610f8657505060408051602081019091525f8152610ff3565b83831015610fb85760405163162544fd60e11b8152600481018290526024810185905260448101849052606401610480565b8383038482035f828210610fcc5782610fce565b815b60408051603f8301601f19168101909152818152955090508087602087018a3c505050505b9392505050565b60605f6110068361108a565b60010190505f8167ffffffffffffffff8111156110255761102561142a565b6040519080825280601f01601f19166020018201604052801561104f576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461105957509392505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106110c85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106110f4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061111257662386f26fc10000830492506010015b6305f5e100831061112a576305f5e100830492506008015b612710831061113e57612710830492506004015b60648310611150576064830492506002015b600a83106102185760010192915050565b5f8083601f840112611171575f80fd5b50813567ffffffffffffffff811115611188575f80fd5b60208301915083602082850101111561119f575f80fd5b9250929050565b5f805f604084860312156111b8575f80fd5b83359250602084013567ffffffffffffffff8111156111d5575f80fd5b6111e186828701611161565b9497909650939450505050565b5f602082840312156111fe575f80fd5b5035919050565b5f5b8381101561121f578181015183820152602001611207565b50505f910152565b5f815180845261123e816020860160208601611205565b601f01601f19169290920160200192915050565b602081525f610ff36020830184611227565b604081525f6112766040830185611227565b82810360208401526112888185611227565b95945050505050565b5f80602083850312156112a2575f80fd5b823567ffffffffffffffff808211156112b9575f80fd5b818501915085601f8301126112cc575f80fd5b8135818111156112da575f80fd5b8660208260051b85010111156112ee575f80fd5b60209290920196919550909350505050565b5f8060208385031215611311575f80fd5b823567ffffffffffffffff811115611327575f80fd5b61133385828601611161565b90969095509350505050565b5f6020828403121561134f575f80fd5b81356001600160a01b0381168114610ff3575f80fd5b5f8251611376818460208701611205565b607d60f81b920191825250600101919050565b634e487b7160e01b5f52603260045260245ffd5b5f8235603e198336030181126113b1575f80fd5b9190910192915050565b5f808335601e198436030181126113d0575f80fd5b83018035915067ffffffffffffffff8211156113ea575f80fd5b60200191503681900382131561119f575f80fd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201611423576114236113fe565b5060010190565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061145257607f821691505b60208210810361053357634e487b7160e01b5f52602260045260245ffd5b601f821115610382575f81815260208120601f850160051c810160208610156114965750805b601f850160051c820191505b818110156114b5578281556001016114a2565b505050505050565b67ffffffffffffffff8311156114d5576114d561142a565b6114e9836114e3835461143e565b83611470565b5f601f84116001811461151a575f85156115035750838201355b5f19600387901b1c1916600186901b178355611572565b5f83815260209020601f19861690835b8281101561154a578685013582556020948501946001909201910161152a565b5086821015611566575f1960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081525f82516115b081601a850160208701611205565b91909101601a0192915050565b5f83516115ce818460208801611205565b6a161134b6b0b3b2911d101160a91b90830190815283516115f681600b840160208801611205565b61227d60f01b600b9290910191820152600d01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081525f825161164881601d850160208701611205565b91909101601d0192915050565b5f81525f825161166c816001850160208701611205565b9190910160010192915050565b81810381811115610218576102186113fe565b634e487b7160e01b5f52601260045260245ffd5b5f826116ae576116ae61168c565b500490565b8082028115828204841417610218576102186113fe565b80820180821115610218576102186113fe565b5f62ffffff808416806116f2576116f261168c565b92169190910692915050565b5f875160206117108285838d01611205565b8184019150600b60fa1b808352895161172f8160018601858e01611205565b808401935050600160fd1b80600185015289516117528160028701868e01611205565b60029401938401829052885161176e8160038701868d01611205565b600394019384015286516117888160048601858b01611205565b600493019283015284516117a28160058501848901611205565b6117b8600582850101600160fd1b815260010190565b9b9a5050505050505050505050565b5f84516117d8818460208901611205565b8083019050600b60fa1b80825285516117f8816001850160208a01611205565b60019201918201528351611813816002840160208801611205565b0160020195945050505050565b701e3837b63cb3b7b7103837b4b73a399e9160791b815282515f9061184c816011850160208801611205565b7304440e6e8f2d8ca7a44e6e8e4ded6ca74e4cec4560631b6011918401918201528351611880816025840160208801611205565b7f293b7374726f6b652d77696474683a34222f3e20202020202020202020202020602592909101918201527101010101010101010101010101010101010160751b6045820152605701949350505050565b701e3837b63cb3b7b7103837b4b73a399e9160791b815282515f906118fd816011850160208801611205565b7104440e6e8f2d8ca7a44ccd2d8d874e4cec4560731b601191840191820152835161192f816023840160208801611205565b7f29222f3e20202020202020202020202020202020202020202020202020202020602392909101918201526201010160ed1b6043820152604601949350505050565b7f3c7376672076696577426f783d22302030203131303020313130302220786d6c81527f6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e60208201525f83516119ce816040850160208801611205565b8351908301906119e5816040840160208801611205565b651e17b9bb339f60d11b60409290910191820152604601949350505050565b5f8154611a108161143e565b60018281168015611a285760018114611a3d57611a69565b60ff1984168752821515830287019450611a69565b855f526020805f205f5b85811015611a605781548a820152908401908201611a47565b50505082870194505b5050505092915050565b5f611a7e8285611a04565b8351611a8e818360208801611205565b01949350505050565b60ff8281168282160390811115610218576102186113fe565b6e2261747472696275746573223a205b60881b81527f7b2274726169745f74797065223a2022456e7669726f6e6d656e74222c202276600f8201526730b63ab2911d101160c11b602f8201525f611b0a6037830188611a04565b7f227d2c7b2274726169745f74797065223a20224c616e647363617065222c20228152683b30b63ab2911d101160b91b60208201819052611b4e6029830189611a04565b7f227d2c7b2274726169745f74797065223a202254726565222c202276616c7565815263111d101160e11b60208201529150611b8d6024830188611a04565b91507f227d2c7b2274726169745f74797065223a2022547265652053697a65222c2022825280602083015250611bc66029820186611a04565b90507f227d2c7b2274726169745f74797065223a2022436f6d706c6578697479222c20815269113b30b63ab2911d101160b11b60208201528351611c1181602a840160208801611205565b611c29602a8284010162227d5d60e81b815260030190565b9998505050505050505050565b607b60f81b815274226e616d65223a202254726565616e676c6573202360581b600182015285515f90611c70816016850160208b01611205565b61088b60f21b60169184019182018190526f113232b9b1b934b83a34b7b7111d101160811b6018830152611ca76028830189611a04565b91508651611cb9818460208b01611205565b620a488b60ea1b9201918252701132bc3a32b93730b62fbab936111d101160791b60038301528551611cf2816014850160208a01611205565b60149201918201528351611d0d816016840160208801611205565b01601601979650505050505050565b606360f81b815260e083901b6001600160e01b03191660018201526880600e6000396000f360b81b600582015281515f90611d5e81600e850160208701611205565b91909101600e01939250505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212206c3c456d522139cf52ac4da77bea59cc5fccbecb191a2fe94e9949ff46fdc3a364736f6c63430008150033
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061009b575f3560e01c80638da5cb5b116100635780638da5cb5b1461011957806390c3f38f14610133578063c87b56dd14610146578063f2fde38b14610159578063f803f4101461016c575f80fd5b80631954bfe81461009f57806338fe29f6146100b45780636b45c9f2146100dd578063715018a6146100fe5780638756520b14610106575b5f80fd5b6100b26100ad3660046111a6565b61017f565b005b6100c76100c23660046111ee565b6101f5565b6040516100d49190611252565b60405180910390f35b6100f06100eb3660046111ee565b61021e565b6040516100d4929190611264565b6100b2610288565b6100b2610114366004611291565b61029b565b5f546040516001600160a01b0390911681526020016100d4565b6100b2610141366004611300565b610387565b6100c76101543660046111ee565b61039c565b6100b261016736600461133f565b610453565b6100b261017a366004611300565b610495565b6101876104aa565b6101c582828080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506104d692505050565b5f9384526007602052604090932080546001600160a01b0319166001600160a01b03909416939093179092555050565b5f81815260076020526040902054606090610218906001600160a01b0316610539565b92915050565b5f818152600760205260408120546060918291610243906001600160a01b0316610539565b90505f61024f82610548565b90505f61025c8684610bbf565b60405160200161026c9190611365565b60408051601f1981840301815291905296919550909350505050565b6102906104aa565b6102995f610d7e565b565b6102a36104aa565b5f5b818110156103825761031b8383838181106102c2576102c2611389565b90506020028101906102d4919061139d565b6102e29060208101906113bb565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506104d692505050565b60075f85858581811061033057610330611389565b9050602002810190610342919061139d565b35815260208101919091526040015f2080546001600160a01b0319166001600160a01b03929092169190911790558061037a81611412565b9150506102a5565b505050565b61038f6104aa565b60066103828284836114bd565b5f81815260076020526040812054606091906103c0906001600160a01b0316610539565b90505f6103d46103cf83610548565b610dcd565b90505f6104276103e48685610bbf565b836040516020016103f59190611579565b60408051601f198184030181529082905261041392916020016115bd565b604051602081830303815290604052610dcd565b90508060405160200161043a9190611611565b6040516020818303038152906040529350505050919050565b61045b6104aa565b6001600160a01b03811661048957604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61049281610d7e565b50565b61049d6104aa565b60056103828284836114bd565b5f546001600160a01b031633146102995760405163118cdaa760e01b8152336004820152602401610480565b5f80610500836040516020016104ec9190611655565b604051602081830303815290604052610f1c565b90508051602082015ff091506001600160a01b0382166105335760405163046a55db60e11b815260040160405180910390fd5b50919050565b60606102188260015f19610f48565b80516060906001600160f81b03199081905f90600c9061056a90600590611679565b61057491906116a0565b90505f6105828260626116b3565b67ffffffffffffffff81111561059a5761059a61142a565b6040519080825280601f01601f1916602001820160405280156105c4576020820181803683370190505b5090505f6105d38360516116b3565b67ffffffffffffffff8111156105eb576105eb61142a565b6040519080825280601f01601f191660200182016040528015610615576020820181803683370190505b5090505f805f5b85811015610b8e575f61063082600c6116b3565b61063b9060056116ca565b90505f8b828151811061065057610650611389565b01602001516001600160f81b0319161860088c61066e8460016116ca565b8151811061067e5761067e611389565b01602001518a166001600160f81b031916901c1860108c6106a08460026116ca565b815181106106b0576106b0611389565b01602001518a166001600160f81b031916901c1860188c6106d28460036116ca565b815181106106e2576106e2611389565b016020908101518b166001600160f81b03191690911c91909118908c6107098460046116ca565b8151811061071957610719611389565b01602001518a166001600160f81b031916901c1860288c61073b8460056116ca565b8151811061074b5761074b611389565b01602001518a166001600160f81b031916901c1860308c61076d8460066116ca565b8151811061077d5761077d611389565b01602001518a166001600160f81b031916901c1860388c61079f8460076116ca565b815181106107af576107af611389565b01602001518a166001600160f81b031916901c1860408c6107d18460086116ca565b815181106107e1576107e1611389565b01602001518a166001600160f81b031916901c1860488c6108038460096116ca565b8151811061081357610813611389565b01602001518a166001600160f81b031916901c1860508c61083584600a6116ca565b8151811061084557610845611389565b01602001518a166001600160f81b031916901c1860588c61086784600b6116ca565b8151811061087757610877611389565b01602001518a166001600160f81b031916901c185f808083811a60f81b6001600160f81b031916929092189160088460011a60f81b8e166001600160f81b031916901c929092189160108460021a60f81b8e166001600160f81b031916901c92909218918360031a60f81b6001600160f81b031916919091189060088460041a60f81b8e166001600160f81b031916901c919091189060108460051a60f81b8e166001600160f81b031916901c91909118908360061a60f81b6001600160f81b0319161860088460071a60f81b8e166001600160f81b031916901c1860108460081a60f81b8e166001600160f81b031916901c185f61097960f485901c610ffa565b61099661098c61100060e888901c6116dd565b62ffffff16610ffa565b6109a360f486901c610ffa565b6109b661098c61100060e889901c6116dd565b6109c360f487901c610ffa565b6109d661098c61100060e88a901c6116dd565b6040516020016109eb969594939291906116fe565b60408051601f1981840301815291905290505f610a0b8660095b1a610ffa565b610a1687600a610a05565b610a2188600b610a05565b604051602001610a33939291906117c7565b60405160208183030381529060405290505f8282604051602001610a58929190611820565b60405160208183030381529060405290505f8383604051602001610a7d9291906118d1565b60405160208183030381529060405290505f5b6062811015610aff57828181518110610aab57610aab611389565b01602001516001600160f81b0319168f8e610ac581611412565b9f5081518110610ad757610ad7611389565b60200101906001600160f81b03191690815f1a90535080610af781611412565b915050610a90565b505f5b6051811015610b7157818181518110610b1d57610b1d611389565b01602001516001600160f81b0319168e8d610b3781611412565b9e5081518110610b4957610b49611389565b60200101906001600160f81b03191690815f1a90535080610b6981611412565b915050610b02565b505050505050505050508080610b8690611412565b91505061061c565b508383604051602001610ba2929190611971565b604051602081830303815290604052975050505050505050919050565b60605f610bcb84610ffa565b90505f600582604051602001610be2929190611a73565b60405160208183030381529060405290505f60026001865f81518110610c0a57610c0a611389565b0160200151610c1c919060f81c611a97565b60ff1681548110610c2f57610c2f611389565b905f5260205f20016003600187600181518110610c4e57610c4e611389565b0160200151610c60919060f81c611a97565b60ff1681548110610c7357610c73611389565b905f5260205f20016004600188600281518110610c9257610c92611389565b0160200151610ca4919060f81c611a97565b60ff1681548110610cb757610cb7611389565b905f5260205f200160018089600381518110610cd557610cd5611389565b0160200151610ce7919060f81c611a97565b60ff1681548110610cfa57610cfa611389565b905f5260205f2001610d2589600481518110610d1857610d18611389565b016020015160f81c610ffa565b604051602001610d39959493929190611ab0565b6040516020818303038152906040529050826006838484604051602001610d64959493929190611c36565b604051602081830303815290604052935050505092915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606081515f03610dea57505060408051602081019091525f815290565b5f604051806060016040528060408152602001611d6d6040913990505f600384516002610e1791906116ca565b610e2191906116a0565b610e2c9060046116b3565b67ffffffffffffffff811115610e4457610e4461142a565b6040519080825280601f01601f191660200182016040528015610e6e576020820181803683370190505b509050600182016020820185865187015b80821015610eda576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610e7f565b5050600386510660018114610ef65760028114610f0957610f11565b603d6001830353603d6002830353610f11565b603d60018303535b509195945050505050565b6060815182604051602001610f32929190611d1c565b6040516020818303038152906040529050919050565b6060833b5f819003610f6957505060408051602081019091525f8152610ff3565b80841115610f8657505060408051602081019091525f8152610ff3565b83831015610fb85760405163162544fd60e11b8152600481018290526024810185905260448101849052606401610480565b8383038482035f828210610fcc5782610fce565b815b60408051603f8301601f19168101909152818152955090508087602087018a3c505050505b9392505050565b60605f6110068361108a565b60010190505f8167ffffffffffffffff8111156110255761102561142a565b6040519080825280601f01601f19166020018201604052801561104f576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461105957509392505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106110c85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106110f4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061111257662386f26fc10000830492506010015b6305f5e100831061112a576305f5e100830492506008015b612710831061113e57612710830492506004015b60648310611150576064830492506002015b600a83106102185760010192915050565b5f8083601f840112611171575f80fd5b50813567ffffffffffffffff811115611188575f80fd5b60208301915083602082850101111561119f575f80fd5b9250929050565b5f805f604084860312156111b8575f80fd5b83359250602084013567ffffffffffffffff8111156111d5575f80fd5b6111e186828701611161565b9497909650939450505050565b5f602082840312156111fe575f80fd5b5035919050565b5f5b8381101561121f578181015183820152602001611207565b50505f910152565b5f815180845261123e816020860160208601611205565b601f01601f19169290920160200192915050565b602081525f610ff36020830184611227565b604081525f6112766040830185611227565b82810360208401526112888185611227565b95945050505050565b5f80602083850312156112a2575f80fd5b823567ffffffffffffffff808211156112b9575f80fd5b818501915085601f8301126112cc575f80fd5b8135818111156112da575f80fd5b8660208260051b85010111156112ee575f80fd5b60209290920196919550909350505050565b5f8060208385031215611311575f80fd5b823567ffffffffffffffff811115611327575f80fd5b61133385828601611161565b90969095509350505050565b5f6020828403121561134f575f80fd5b81356001600160a01b0381168114610ff3575f80fd5b5f8251611376818460208701611205565b607d60f81b920191825250600101919050565b634e487b7160e01b5f52603260045260245ffd5b5f8235603e198336030181126113b1575f80fd5b9190910192915050565b5f808335601e198436030181126113d0575f80fd5b83018035915067ffffffffffffffff8211156113ea575f80fd5b60200191503681900382131561119f575f80fd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201611423576114236113fe565b5060010190565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061145257607f821691505b60208210810361053357634e487b7160e01b5f52602260045260245ffd5b601f821115610382575f81815260208120601f850160051c810160208610156114965750805b601f850160051c820191505b818110156114b5578281556001016114a2565b505050505050565b67ffffffffffffffff8311156114d5576114d561142a565b6114e9836114e3835461143e565b83611470565b5f601f84116001811461151a575f85156115035750838201355b5f19600387901b1c1916600186901b178355611572565b5f83815260209020601f19861690835b8281101561154a578685013582556020948501946001909201910161152a565b5086821015611566575f1960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081525f82516115b081601a850160208701611205565b91909101601a0192915050565b5f83516115ce818460208801611205565b6a161134b6b0b3b2911d101160a91b90830190815283516115f681600b840160208801611205565b61227d60f01b600b9290910191820152600d01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081525f825161164881601d850160208701611205565b91909101601d0192915050565b5f81525f825161166c816001850160208701611205565b9190910160010192915050565b81810381811115610218576102186113fe565b634e487b7160e01b5f52601260045260245ffd5b5f826116ae576116ae61168c565b500490565b8082028115828204841417610218576102186113fe565b80820180821115610218576102186113fe565b5f62ffffff808416806116f2576116f261168c565b92169190910692915050565b5f875160206117108285838d01611205565b8184019150600b60fa1b808352895161172f8160018601858e01611205565b808401935050600160fd1b80600185015289516117528160028701868e01611205565b60029401938401829052885161176e8160038701868d01611205565b600394019384015286516117888160048601858b01611205565b600493019283015284516117a28160058501848901611205565b6117b8600582850101600160fd1b815260010190565b9b9a5050505050505050505050565b5f84516117d8818460208901611205565b8083019050600b60fa1b80825285516117f8816001850160208a01611205565b60019201918201528351611813816002840160208801611205565b0160020195945050505050565b701e3837b63cb3b7b7103837b4b73a399e9160791b815282515f9061184c816011850160208801611205565b7304440e6e8f2d8ca7a44e6e8e4ded6ca74e4cec4560631b6011918401918201528351611880816025840160208801611205565b7f293b7374726f6b652d77696474683a34222f3e20202020202020202020202020602592909101918201527101010101010101010101010101010101010160751b6045820152605701949350505050565b701e3837b63cb3b7b7103837b4b73a399e9160791b815282515f906118fd816011850160208801611205565b7104440e6e8f2d8ca7a44ccd2d8d874e4cec4560731b601191840191820152835161192f816023840160208801611205565b7f29222f3e20202020202020202020202020202020202020202020202020202020602392909101918201526201010160ed1b6043820152604601949350505050565b7f3c7376672076696577426f783d22302030203131303020313130302220786d6c81527f6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e60208201525f83516119ce816040850160208801611205565b8351908301906119e5816040840160208801611205565b651e17b9bb339f60d11b60409290910191820152604601949350505050565b5f8154611a108161143e565b60018281168015611a285760018114611a3d57611a69565b60ff1984168752821515830287019450611a69565b855f526020805f205f5b85811015611a605781548a820152908401908201611a47565b50505082870194505b5050505092915050565b5f611a7e8285611a04565b8351611a8e818360208801611205565b01949350505050565b60ff8281168282160390811115610218576102186113fe565b6e2261747472696275746573223a205b60881b81527f7b2274726169745f74797065223a2022456e7669726f6e6d656e74222c202276600f8201526730b63ab2911d101160c11b602f8201525f611b0a6037830188611a04565b7f227d2c7b2274726169745f74797065223a20224c616e647363617065222c20228152683b30b63ab2911d101160b91b60208201819052611b4e6029830189611a04565b7f227d2c7b2274726169745f74797065223a202254726565222c202276616c7565815263111d101160e11b60208201529150611b8d6024830188611a04565b91507f227d2c7b2274726169745f74797065223a2022547265652053697a65222c2022825280602083015250611bc66029820186611a04565b90507f227d2c7b2274726169745f74797065223a2022436f6d706c6578697479222c20815269113b30b63ab2911d101160b11b60208201528351611c1181602a840160208801611205565b611c29602a8284010162227d5d60e81b815260030190565b9998505050505050505050565b607b60f81b815274226e616d65223a202254726565616e676c6573202360581b600182015285515f90611c70816016850160208b01611205565b61088b60f21b60169184019182018190526f113232b9b1b934b83a34b7b7111d101160811b6018830152611ca76028830189611a04565b91508651611cb9818460208b01611205565b620a488b60ea1b9201918252701132bc3a32b93730b62fbab936111d101160791b60038301528551611cf2816014850160208a01611205565b60149201918201528351611d0d816016840160208801611205565b01601601979650505050505050565b606360f81b815260e083901b6001600160e01b03191660018201526880600e6000396000f360b81b600582015281515f90611d5e81600e850160208701611205565b91909101600e01939250505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212206c3c456d522139cf52ac4da77bea59cc5fccbecb191a2fe94e9949ff46fdc3a364736f6c63430008150033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.