ERC-721
Overview
Max Total Supply
100 OBJ
Holders
65
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 OBJLoading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
AnObject
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./Base64.sol";
contract AnObject is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Counters for Counters.Counter;
uint256 private pricePerToken = 0.01 ether;
uint256 private maxSupply = 100;
mapping(uint256 => address) public creators;
mapping(uint256 => TokenData) tokens;
bool private paused;
struct TokenData {
uint8 rotation;
uint8 width;
uint8 height;
uint24 color;
}
Counters.Counter private _tokenIds;
constructor() ERC721("An Object", "OBJ") {
paused = false;
}
modifier whenNotPaused() {
require(!paused, "Pausable: paused");
_;
}
modifier onlyCreator(uint256 _id) {
require(
creators[_id] == msg.sender,
"AnObject#creatorOnly: ONLY_CREATOR_ALLOWED"
);
_;
}
function _unpause() public onlyOwner {
paused = false;
}
function _pause() public onlyOwner {
paused = true;
}
function setTokenData(
uint256 id,
uint8 rotation,
uint8 width,
uint8 height,
uint24 color
) public onlyCreator(id) {
require(rotation >= 0 && rotation <= 180, "Rotation is out of range.");
require(width > 0 && width <= 100, "Width is out of range.");
require(height > 0 && height <= 100, "Height is out of range.");
tokens[id].rotation = rotation;
tokens[id].width = width;
tokens[id].height = height;
tokens[id].color = color;
}
function getTokenData(uint256 id)
public
view
returns (
address creator,
uint8 rotation,
uint8 width,
uint8 height,
uint24 color
)
{
require(
_exists(id),
"getTokenData: token query for nonexistent token"
);
rotation = tokens[id].rotation;
width = tokens[id].width;
height = tokens[id].height;
color = tokens[id].color;
creator = creators[id];
}
function _mintToken(address _to) internal returns (uint256 _tokenId) {
uint256 tokenId = _tokenIds.current();
_safeMint(_to, tokenId);
_tokenIds.increment();
return tokenId;
}
function mint(
uint8 r,
uint8 w,
uint8 h,
uint24 c
) public payable whenNotPaused {
require(
totalSupply() < maxSupply,
"Maximum supply reached."
);
require(msg.value >= pricePerToken, "Not enough Ether sent.");
uint256 tokenId = _mintToken(msg.sender);
creators[tokenId] = msg.sender;
setTokenData(tokenId, r, w, h, c);
}
function _mint(
uint8 r,
uint8 w,
uint8 h,
uint24 c
) public onlyOwner {
uint256 tokenId = _mintToken(msg.sender);
creators[tokenId] = msg.sender;
setTokenData(tokenId, r, w, h, c);
}
// from https://stackoverflow.com/questions/69328780/convert-uint24-to-hex-string-in-solidity/69328880#69328880
function uint8tohexchar(uint8 i) public pure returns (uint8) {
return
(i > 9)
? (i + 87) // ascii a-f
: (i + 48); // ascii 0-9
}
function uint24ToHexStr(uint24 i) public pure returns (string memory) {
bytes memory o = new bytes(6);
uint24 mask = 0x00000f; // hex 15
uint256 k = 6;
do {
k--;
o[k] = bytes1(uint8tohexchar(uint8(i & mask)));
i >>= 4;
} while (k > 0);
return string(o);
}
function tokenToCSS(
uint256 percent,
uint8 r,
uint8 w,
uint8 h,
uint24 color
) private view returns (string memory) {
string memory cssAnim = "";
cssAnim = string.concat(cssAnim, Strings.toString(percent));
cssAnim = string.concat(cssAnim, "%");
cssAnim = string.concat(cssAnim, " {transform: rotate(");
cssAnim = string.concat(cssAnim, Strings.toString(r));
cssAnim = string.concat(cssAnim, "deg); width:");
cssAnim = string.concat(cssAnim, Strings.toString(w));
cssAnim = string.concat(cssAnim, "%; height:");
cssAnim = string.concat(cssAnim, Strings.toString(h));
cssAnim = string.concat(cssAnim, "%; background-color:#");
cssAnim = string.concat(cssAnim, uint24ToHexStr(color));
cssAnim = string.concat(cssAnim, ";}");
return cssAnim;
}
function css() private view returns (bytes memory) {
uint256 supply = totalSupply();
string memory cssAnim = "@keyframes colors {";
uint256 step = 100 / supply;
for (uint256 i = 0; i < supply; ++i) {
cssAnim = string.concat(
cssAnim,
tokenToCSS(
i * step,
tokens[i].rotation,
tokens[i].width,
tokens[i].height,
tokens[i].color
)
);
}
cssAnim = string.concat(
cssAnim,
tokenToCSS(maxSupply, 0, 50, 50, 0x0000FF)
);
return abi.encodePacked(string.concat(cssAnim, "}"));
}
function html() private view returns (bytes memory) {
return
abi.encodePacked(
"<!DOCTYPE html>"
"<html>"
"<head>"
"<title>",
"An Object.",
"</title>"
'<meta name="description" content="An Object" />'
'<style type="text/css">'
"body { background:#CCC;margin:0;padding:0;overflow:hidden; }"
".container { aspect-ratio:1/1; margin:0; padding:0; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);"
"display: flex; justify-content: center; align-items: center; height: 100vmin; max-width:100vmin; }",
css(),
".box {"
"background: #0000FF;"
"width: 50%;"
"height:50%;"
"transform-origin: center center;"
"animation-name: colors;"
"animation-duration:",
Strings.toString(totalSupply()),
"s;"
"animation-delay:1s;"
"animation-iteration-count:infinite;"
"}"
"</style>"
"</head>"
"<body>"
'<div class="container">'
'<div class="box"></div>'
"</div>"
"</body>"
"</html>"
);
}
function image(uint256 _id) private view returns (bytes memory) {
uint8 w = tokens[_id].width;
uint8 h = tokens[_id].height;
uint8 r = tokens[_id].rotation;
uint8 cx = w/2;
uint8 cy = h/2;
return abi.encodePacked(
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"'
' style="background-color:#CCC;'
' transform-box: fill-box;'
' transform-origin: center;'
' transform: rotate(',Strings.toString(r),'deg);">'
'<rect width="',Strings.toString(w),'"'
' height="',Strings.toString(h),'"'
' x="-',Strings.toString(cx),'"'
' y="-',Strings.toString(cy),'"'
' transform="translate(50,50)"'
' style="fill:',string.concat("#", uint24ToHexStr(tokens[_id].color)),'" />'
'</svg>'
);
}
function tokenURI(uint256 _id) public view override returns (string memory) {
require(
_exists(_id),
"AnObject: URI query for nonexistent token"
);
bytes memory metadata = abi.encodePacked(
"{"
'"name":"An Object #',Strings.toString(_id),'",'
'"description":"This is an object, play with it.",',
'"image":"data:image/svg+xml;base64,',Base64.encode(image(_id)),'",'
'"external_url": "http://www.an-object.xyz",',
'"animation_url":"data:text/html;base64,',
Base64.encode(html()),'",',
'"attributes": ['
'{'
'"trait_type": "Rotation (Deg)",',
'"value": "',Strings.toString(tokens[_id].rotation),'"'
'},'
'{'
'"trait_type": "Width (%)",',
'"value": "',Strings.toString(tokens[_id].width),'"'
'},'
'{'
'"trait_type": "Height (%)",',
'"value": "',Strings.toString(tokens[_id].height),'"'
'},'
'{'
'"trait_type": "Color (Hex)",',
'"value": "',string.concat("#", uint24ToHexStr(tokens[_id].color)),'"'
'}'
']'
"}"
);
return string(abi.encodePacked("data:application/json,", metadata));
}
function withdrawAll() external onlyOwner {
uint256 amount = address(this).balance;
require(payable(owner()).send(amount));
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal override {
super._beforeTokenTransfer(from, to, tokenId);
creators[tokenId] = to;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Base64.sol)
pragma solidity ^0.8.12;
/**
* @dev Provides a set of functions to operate with Base64 strings.
*
* _Available since v4.5._
*/
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));
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
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "./IERC721Enumerable.sol";
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: address zero is not a valid owner");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: invalid token ID");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
_requireMinted(tokenId);
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not token owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
_requireMinted(tokenId);
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_safeTransfer(from, to, tokenId, data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits an {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits an {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Reverts if the `tokenId` has not been minted yet.
*/
function _requireMinted(uint256 tokenId) internal view virtual {
require(_exists(tokenId), "ERC721: invalid token ID");
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
/// @solidity memory-safe-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @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 {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_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 {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_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);
}
}{
"remappings": [],
"optimizer": {
"enabled": false,
"runs": 200
},
"evmVersion": "london",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint8","name":"r","type":"uint8"},{"internalType":"uint8","name":"w","type":"uint8"},{"internalType":"uint8","name":"h","type":"uint8"},{"internalType":"uint24","name":"c","type":"uint24"}],"name":"_mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creators","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getTokenData","outputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint8","name":"rotation","type":"uint8"},{"internalType":"uint8","name":"width","type":"uint8"},{"internalType":"uint8","name":"height","type":"uint8"},{"internalType":"uint24","name":"color","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"r","type":"uint8"},{"internalType":"uint8","name":"w","type":"uint8"},{"internalType":"uint8","name":"h","type":"uint8"},{"internalType":"uint24","name":"c","type":"uint24"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint8","name":"rotation","type":"uint8"},{"internalType":"uint8","name":"width","type":"uint8"},{"internalType":"uint8","name":"height","type":"uint8"},{"internalType":"uint24","name":"color","type":"uint24"}],"name":"setTokenData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"i","type":"uint24"}],"name":"uint24ToHexStr","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint8","name":"i","type":"uint8"}],"name":"uint8tohexchar","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052662386f26fc10000600b556064600c553480156200002157600080fd5b506040518060400160405280600981526020017f416e204f626a65637400000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f4f424a000000000000000000000000000000000000000000000000000000000081525081600090816200009f91906200043d565b508060019081620000b191906200043d565b505050620000d4620000c8620000f560201b60201c565b620000fd60201b60201c565b6000600f60006101000a81548160ff02191690831515021790555062000524565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200024557607f821691505b6020821081036200025b576200025a620001fd565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620002c57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000286565b620002d1868362000286565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200031e620003186200031284620002e9565b620002f3565b620002e9565b9050919050565b6000819050919050565b6200033a83620002fd565b62000352620003498262000325565b84845462000293565b825550505050565b600090565b620003696200035a565b620003768184846200032f565b505050565b5b818110156200039e57620003926000826200035f565b6001810190506200037c565b5050565b601f821115620003ed57620003b78162000261565b620003c28462000276565b81016020851015620003d2578190505b620003ea620003e18562000276565b8301826200037b565b50505b505050565b600082821c905092915050565b60006200041260001984600802620003f2565b1980831691505092915050565b60006200042d8383620003ff565b9150826002028217905092915050565b6200044882620001c3565b67ffffffffffffffff811115620004645762000463620001ce565b5b6200047082546200022c565b6200047d828285620003a2565b600060209050601f831160018114620004b55760008415620004a0578287015190505b620004ac85826200041f565b8655506200051c565b601f198416620004c58662000261565b60005b82811015620004ef57848901518255600182019150602085019450602081019050620004c8565b868310156200050f57848901516200050b601f891682620003ff565b8355505b6001600288020188555050505b505050505050565b615acf80620005346000396000f3fe6080604052600436106101c25760003560e01c8063715018a6116100f7578063ae8bcf2611610095578063cd53d08e11610064578063cd53d08e14610659578063e985e9c514610696578063f2fde38b146106d3578063fc8234cb146106fc576101c2565b8063ae8bcf2614610589578063b09afec1146105b2578063b88d4fde146105f3578063c87b56dd1461061c576101c2565b80638da5cb5b116100d15780638da5cb5b146104e157806395d89b411461050c578063a22cb46514610537578063a244187414610560576101c2565b8063715018a614610476578063750c8b461461048d578063853828b6146104ca576101c2565b80632f745c59116101645780634f6ccce71161013e5780634f6ccce71461038257806355bf283b146103bf5780636352211e146103fc57806370a0823114610439576101c2565b80632f745c5914610305578063320b2ad91461034257806342842e0e14610359576101c2565b8063095ea7b3116101a0578063095ea7b31461026c57806318160ddd1461029557806322864839146102c057806323b872dd146102dc576101c2565b806301ffc9a7146101c757806306fdde0314610204578063081812fc1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e991906131ba565b610713565b6040516101fb9190613202565b60405180910390f35b34801561021057600080fd5b5061021961078d565b60405161022691906132ad565b60405180910390f35b34801561023b57600080fd5b5061025660048036038101906102519190613305565b61081f565b6040516102639190613373565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e91906133ba565b610865565b005b3480156102a157600080fd5b506102aa61097c565b6040516102b79190613409565b60405180910390f35b6102da60048036038101906102d59190613498565b610989565b005b3480156102e857600080fd5b5061030360048036038101906102fe91906134ff565b610adc565b005b34801561031157600080fd5b5061032c600480360381019061032791906133ba565b610b3c565b6040516103399190613409565b60405180910390f35b34801561034e57600080fd5b50610357610be1565b005b34801561036557600080fd5b50610380600480360381019061037b91906134ff565b610c06565b005b34801561038e57600080fd5b506103a960048036038101906103a49190613305565b610c26565b6040516103b69190613409565b60405180910390f35b3480156103cb57600080fd5b506103e660048036038101906103e19190613552565b610c97565b6040516103f3919061358e565b60405180910390f35b34801561040857600080fd5b50610423600480360381019061041e9190613305565b610ccb565b6040516104309190613373565b60405180910390f35b34801561044557600080fd5b50610460600480360381019061045b91906135a9565b610d7c565b60405161046d9190613409565b60405180910390f35b34801561048257600080fd5b5061048b610e33565b005b34801561049957600080fd5b506104b460048036038101906104af91906135d6565b610e47565b6040516104c191906132ad565b60405180910390f35b3480156104d657600080fd5b506104df610f25565b005b3480156104ed57600080fd5b506104f6610f7a565b6040516105039190613373565b60405180910390f35b34801561051857600080fd5b50610521610fa4565b60405161052e91906132ad565b60405180910390f35b34801561054357600080fd5b5061055e6004803603810190610559919061362f565b611036565b005b34801561056c57600080fd5b506105876004803603810190610582919061366f565b61104c565b005b34801561059557600080fd5b506105b060048036038101906105ab9190613498565b6112b9565b005b3480156105be57600080fd5b506105d960048036038101906105d49190613305565b611334565b6040516105ea9594939291906136f9565b60405180910390f35b3480156105ff57600080fd5b5061061a60048036038101906106159190613881565b61145d565b005b34801561062857600080fd5b50610643600480360381019061063e9190613305565b6114bf565b60405161065091906132ad565b60405180910390f35b34801561066557600080fd5b50610680600480360381019061067b9190613305565b61165e565b60405161068d9190613373565b60405180910390f35b3480156106a257600080fd5b506106bd60048036038101906106b89190613904565b611691565b6040516106ca9190613202565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f591906135a9565b611725565b005b34801561070857600080fd5b506107116117a8565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107865750610785826117cd565b5b9050919050565b60606000805461079c90613973565b80601f01602080910402602001604051908101604052809291908181526020018280546107c890613973565b80156108155780601f106107ea57610100808354040283529160200191610815565b820191906000526020600020905b8154815290600101906020018083116107f857829003601f168201915b5050505050905090565b600061082a826118af565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061087082610ccb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036108e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d790613a16565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108ff6118fa565b73ffffffffffffffffffffffffffffffffffffffff16148061092e575061092d816109286118fa565b611691565b5b61096d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096490613aa8565b60405180910390fd5b6109778383611902565b505050565b6000600880549050905090565b600f60009054906101000a900460ff16156109d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d090613b14565b60405180910390fd5b600c546109e461097c565b10610a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1b90613b80565b60405180910390fd5b600b54341015610a69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6090613bec565b60405180910390fd5b6000610a74336119bb565b905033600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610ad5818686868661104c565b5050505050565b610aed610ae76118fa565b826119e7565b610b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2390613c7e565b60405180910390fd5b610b37838383611a7c565b505050565b6000610b4783610d7c565b8210610b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7f90613d10565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610be9611ce2565b6001600f60006101000a81548160ff021916908315150217905550565b610c218383836040518060200160405280600081525061145d565b505050565b6000610c3061097c565b8210610c71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6890613da2565b60405180910390fd5b60088281548110610c8557610c84613dc2565b5b90600052602060002001549050919050565b600060098260ff1611610cb657603082610cb19190613e20565b610cc4565b605782610cc39190613e20565b5b9050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6a90613ea1565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de390613f33565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e3b611ce2565b610e456000611d60565b565b60606000600667ffffffffffffffff811115610e6657610e65613756565b5b6040519080825280601f01601f191660200182016040528015610e985781602001600182028036833780820191505090505b5090506000600f90506000600690505b8080610eb390613f53565b915050610ec1828616610c97565b60f81b838281518110610ed757610ed6613dc2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060048562ffffff16901c945060008111610ea857829350505050919050565b610f2d611ce2565b6000479050610f3a610f7a565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050610f7757600080fd5b50565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610fb390613973565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdf90613973565b801561102c5780601f106110015761010080835404028352916020019161102c565b820191906000526020600020905b81548152906001019060200180831161100f57829003601f168201915b5050505050905090565b6110486110416118fa565b8383611e26565b5050565b843373ffffffffffffffffffffffffffffffffffffffff16600d600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e590613fee565b60405180910390fd5b60008560ff1610158015611106575060b48560ff1611155b611145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113c9061405a565b60405180910390fd5b60008460ff1611801561115c575060648460ff1611155b61119b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611192906140c6565b60405180910390fd5b60008360ff161180156111b2575060648360ff1611155b6111f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e890614132565b60405180910390fd5b84600e600088815260200190815260200160002060000160006101000a81548160ff021916908360ff16021790555083600e600088815260200190815260200160002060000160016101000a81548160ff021916908360ff16021790555082600e600088815260200190815260200160002060000160026101000a81548160ff021916908360ff16021790555081600e600088815260200190815260200160002060000160036101000a81548162ffffff021916908362ffffff160217905550505050505050565b6112c1611ce2565b60006112cc336119bb565b905033600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061132d818686868661104c565b5050505050565b600080600080600061134586611f92565b611384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137b906141c4565b60405180910390fd5b600e600087815260200190815260200160002060000160009054906101000a900460ff169350600e600087815260200190815260200160002060000160019054906101000a900460ff169250600e600087815260200190815260200160002060000160029054906101000a900460ff169150600e600087815260200190815260200160002060000160039054906101000a900462ffffff169050600d600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16945091939590929450565b61146e6114686118fa565b836119e7565b6114ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a490613c7e565b60405180910390fd5b6114b984848484611ffe565b50505050565b60606114ca82611f92565b611509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150090614256565b60405180910390fd5b60006115148361205a565b611525611520856121ba565b61230f565b611535611530612472565b61230f565b611564600e600088815260200190815260200160002060000160009054906101000a900460ff1660ff1661205a565b611593600e600089815260200190815260200160002060000160019054906101000a900460ff1660ff1661205a565b6115c2600e60008a815260200190815260200160002060000160029054906101000a900460ff1660ff1661205a565b6115f0600e60008b815260200190815260200160002060000160039054906101000a900462ffffff16610e47565b60405160200161160091906142d8565b604051602081830303815290604052604051602001611625979695949392919061474c565b60405160208183030381529060405290508060405160200161164791906148e9565b604051602081830303815290604052915050919050565b600d6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61172d611ce2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361179c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117939061497d565b60405180910390fd5b6117a581611d60565b50565b6117b0611ce2565b6000600f60006101000a81548160ff021916908315150217905550565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061189857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806118a857506118a7826124b1565b5b9050919050565b6118b881611f92565b6118f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ee90613ea1565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661197583610ccb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806119c8601061251b565b90506119d48382612529565b6119de6010612547565b80915050919050565b6000806119f383610ccb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611a355750611a348185611691565b5b80611a7357508373ffffffffffffffffffffffffffffffffffffffff16611a5b8461081f565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611a9c82610ccb565b73ffffffffffffffffffffffffffffffffffffffff1614611af2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae990614a0f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5890614aa1565b60405180910390fd5b611b6c83838361255d565b611b77600082611902565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bc79190614ac1565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c1e9190614af5565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611cdd8383836125bf565b505050565b611cea6118fa565b73ffffffffffffffffffffffffffffffffffffffff16611d08610f7a565b73ffffffffffffffffffffffffffffffffffffffff1614611d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5590614b75565b60405180910390fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611e94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8b90614be1565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f859190613202565b60405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612009848484611a7c565b612015848484846125c4565b612054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204b90614c73565b60405180910390fd5b50505050565b6060600082036120a1576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121b5565b600082905060005b600082146120d35780806120bc90614c93565b915050600a826120cc9190614d0a565b91506120a9565b60008167ffffffffffffffff8111156120ef576120ee613756565b5b6040519080825280601f01601f1916602001820160405280156121215781602001600182028036833780820191505090505b5090505b600085146121ae5760018261213a9190614ac1565b9150600a856121499190614d3b565b60306121559190614af5565b60f81b81838151811061216b5761216a613dc2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856121a79190614d0a565b9450612125565b8093505050505b919050565b60606000600e600084815260200190815260200160002060000160019054906101000a900460ff1690506000600e600085815260200190815260200160002060000160029054906101000a900460ff1690506000600e600086815260200190815260200160002060000160009054906101000a900460ff16905060006002846122439190614d6c565b905060006002846122549190614d6c565b90506122628360ff1661205a565b61226e8660ff1661205a565b61227a8660ff1661205a565b6122868560ff1661205a565b6122928560ff1661205a565b6122c0600e60008e815260200190815260200160002060000160039054906101000a900462ffffff16610e47565b6040516020016122d091906142d8565b6040516020818303038152906040526040516020016122f496959493929190615095565b60405160208183030381529060405295505050505050919050565b606060008251036123315760405180602001604052806000815250905061246d565b6000604051806060016040528060408152602001615a5a60409139905060006003600285516123609190614af5565b61236a9190614d0a565b6004612376919061513a565b67ffffffffffffffff81111561238f5761238e613756565b5b6040519080825280601f01601f1916602001820160405280156123c15781602001600182028036833780820191505090505b509050600182016020820185865187015b8082101561242d576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453600184019350506123d2565b5050600386510660018114612449576002811461245c57612464565b603d6001830353603d6002830353612464565b603d60018303535b50505080925050505b919050565b606061247c61274b565b61248c61248761097c565b61205a565b60405160200161249d9291906155d0565b604051602081830303815290604052905090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081600001549050919050565b612543828260405180602001604052806000815250612906565b5050565b6001816000016000828254019250508190555050565b612568838383612961565b81600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b505050565b60006125e58473ffffffffffffffffffffffffffffffffffffffff16612a73565b1561273e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261260e6118fa565b8786866040518563ffffffff1660e01b81526004016126309493929190615675565b6020604051808303816000875af192505050801561266c57506040513d601f19601f8201168201806040525081019061266991906156d6565b60015b6126ee573d806000811461269c576040519150601f19603f3d011682016040523d82523d6000602084013e6126a1565b606091505b5060008151036126e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126dd90614c73565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612743565b600190505b949350505050565b6060600061275761097c565b905060006040518060400160405280601381526020017f406b65796672616d657320636f6c6f7273207b00000000000000000000000000815250905060008260646127a29190614d0a565b905060005b83811015612889578261285683836127bf919061513a565b600e600085815260200190815260200160002060000160009054906101000a900460ff16600e600086815260200190815260200160002060000160019054906101000a900460ff16600e600087815260200190815260200160002060000160029054906101000a900460ff16600e600088815260200190815260200160002060000160039054906101000a900462ffffff16612a96565b604051602001612867929190615703565b60405160208183030381529060405292508061288290614c93565b90506127a7565b508161289d600c54600060328060ff612a96565b6040516020016128ae929190615703565b6040516020818303038152906040529150816040516020016128d0919061574d565b6040516020818303038152906040526040516020016128ef9190615773565b604051602081830303815290604052935050505090565b6129108383612c6a565b61291d60008484846125c4565b61295c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295390614c73565b60405180910390fd5b505050565b61296c838383612e43565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129ae576129a981612e48565b6129ed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146129ec576129eb8382612e91565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a2f57612a2a81612ffe565b612a6e565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612a6d57612a6c82826130cf565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060600060405180602001604052806000815250905080612ab68861205a565b604051602001612ac7929190615703565b604051602081830303815290604052905080604051602001612ae991906157b0565b604051602081830303815290604052905080604051602001612b0b91906157fc565b604051602081830303815290604052905080612b298760ff1661205a565b604051602001612b3a929190615703565b604051602081830303815290604052905080604051602001612b5c9190615848565b604051602081830303815290604052905080612b7a8660ff1661205a565b604051602001612b8b929190615703565b604051602081830303815290604052905080604051602001612bad9190615894565b604051602081830303815290604052905080612bcb8560ff1661205a565b604051602001612bdc929190615703565b604051602081830303815290604052905080604051602001612bfe91906158e0565b604051602081830303815290604052905080612c1984610e47565b604051602001612c2a929190615703565b604051602081830303815290604052905080604051602001612c4c919061592c565b60405160208183030381529060405290508091505095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd09061599e565b60405180910390fd5b612ce281611f92565b15612d22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1990615a0a565b60405180910390fd5b612d2e6000838361255d565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d7e9190614af5565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e3f600083836125bf565b5050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612e9e84610d7c565b612ea89190614ac1565b9050600060076000848152602001908152602001600020549050818114612f8d576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506130129190614ac1565b905060006009600084815260200190815260200160002054905060006008838154811061304257613041613dc2565b5b90600052602060002001549050806008838154811061306457613063613dc2565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806130b3576130b2615a2a565b5b6001900381819060005260206000200160009055905550505050565b60006130da83610d7c565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61319781613162565b81146131a257600080fd5b50565b6000813590506131b48161318e565b92915050565b6000602082840312156131d0576131cf613158565b5b60006131de848285016131a5565b91505092915050565b60008115159050919050565b6131fc816131e7565b82525050565b600060208201905061321760008301846131f3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561325757808201518184015260208101905061323c565b60008484015250505050565b6000601f19601f8301169050919050565b600061327f8261321d565b6132898185613228565b9350613299818560208601613239565b6132a281613263565b840191505092915050565b600060208201905081810360008301526132c78184613274565b905092915050565b6000819050919050565b6132e2816132cf565b81146132ed57600080fd5b50565b6000813590506132ff816132d9565b92915050565b60006020828403121561331b5761331a613158565b5b6000613329848285016132f0565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061335d82613332565b9050919050565b61336d81613352565b82525050565b60006020820190506133886000830184613364565b92915050565b61339781613352565b81146133a257600080fd5b50565b6000813590506133b48161338e565b92915050565b600080604083850312156133d1576133d0613158565b5b60006133df858286016133a5565b92505060206133f0858286016132f0565b9150509250929050565b613403816132cf565b82525050565b600060208201905061341e60008301846133fa565b92915050565b600060ff82169050919050565b61343a81613424565b811461344557600080fd5b50565b60008135905061345781613431565b92915050565b600062ffffff82169050919050565b6134758161345d565b811461348057600080fd5b50565b6000813590506134928161346c565b92915050565b600080600080608085870312156134b2576134b1613158565b5b60006134c087828801613448565b94505060206134d187828801613448565b93505060406134e287828801613448565b92505060606134f387828801613483565b91505092959194509250565b60008060006060848603121561351857613517613158565b5b6000613526868287016133a5565b9350506020613537868287016133a5565b9250506040613548868287016132f0565b9150509250925092565b60006020828403121561356857613567613158565b5b600061357684828501613448565b91505092915050565b61358881613424565b82525050565b60006020820190506135a3600083018461357f565b92915050565b6000602082840312156135bf576135be613158565b5b60006135cd848285016133a5565b91505092915050565b6000602082840312156135ec576135eb613158565b5b60006135fa84828501613483565b91505092915050565b61360c816131e7565b811461361757600080fd5b50565b60008135905061362981613603565b92915050565b6000806040838503121561364657613645613158565b5b6000613654858286016133a5565b92505060206136658582860161361a565b9150509250929050565b600080600080600060a0868803121561368b5761368a613158565b5b6000613699888289016132f0565b95505060206136aa88828901613448565b94505060406136bb88828901613448565b93505060606136cc88828901613448565b92505060806136dd88828901613483565b9150509295509295909350565b6136f38161345d565b82525050565b600060a08201905061370e6000830188613364565b61371b602083018761357f565b613728604083018661357f565b613735606083018561357f565b61374260808301846136ea565b9695505050505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61378e82613263565b810181811067ffffffffffffffff821117156137ad576137ac613756565b5b80604052505050565b60006137c061314e565b90506137cc8282613785565b919050565b600067ffffffffffffffff8211156137ec576137eb613756565b5b6137f582613263565b9050602081019050919050565b82818337600083830152505050565b600061382461381f846137d1565b6137b6565b9050828152602081018484840111156138405761383f613751565b5b61384b848285613802565b509392505050565b600082601f8301126138685761386761374c565b5b8135613878848260208601613811565b91505092915050565b6000806000806080858703121561389b5761389a613158565b5b60006138a9878288016133a5565b94505060206138ba878288016133a5565b93505060406138cb878288016132f0565b925050606085013567ffffffffffffffff8111156138ec576138eb61315d565b5b6138f887828801613853565b91505092959194509250565b6000806040838503121561391b5761391a613158565b5b6000613929858286016133a5565b925050602061393a858286016133a5565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061398b57607f821691505b60208210810361399e5761399d613944565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a00602183613228565b9150613a0b826139a4565b604082019050919050565b60006020820190508181036000830152613a2f816139f3565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613a92603e83613228565b9150613a9d82613a36565b604082019050919050565b60006020820190508181036000830152613ac181613a85565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613afe601083613228565b9150613b0982613ac8565b602082019050919050565b60006020820190508181036000830152613b2d81613af1565b9050919050565b7f4d6178696d756d20737570706c7920726561636865642e000000000000000000600082015250565b6000613b6a601783613228565b9150613b7582613b34565b602082019050919050565b60006020820190508181036000830152613b9981613b5d565b9050919050565b7f4e6f7420656e6f7567682045746865722073656e742e00000000000000000000600082015250565b6000613bd6601683613228565b9150613be182613ba0565b602082019050919050565b60006020820190508181036000830152613c0581613bc9565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613c68602e83613228565b9150613c7382613c0c565b604082019050919050565b60006020820190508181036000830152613c9781613c5b565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613cfa602b83613228565b9150613d0582613c9e565b604082019050919050565b60006020820190508181036000830152613d2981613ced565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613d8c602c83613228565b9150613d9782613d30565b604082019050919050565b60006020820190508181036000830152613dbb81613d7f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e2b82613424565b9150613e3683613424565b9250828201905060ff811115613e4f57613e4e613df1565b5b92915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613e8b601883613228565b9150613e9682613e55565b602082019050919050565b60006020820190508181036000830152613eba81613e7e565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613f1d602983613228565b9150613f2882613ec1565b604082019050919050565b60006020820190508181036000830152613f4c81613f10565b9050919050565b6000613f5e826132cf565b915060008203613f7157613f70613df1565b5b600182039050919050565b7f416e4f626a6563742363726561746f724f6e6c793a204f4e4c595f435245415460008201527f4f525f414c4c4f57454400000000000000000000000000000000000000000000602082015250565b6000613fd8602a83613228565b9150613fe382613f7c565b604082019050919050565b6000602082019050818103600083015261400781613fcb565b9050919050565b7f526f746174696f6e206973206f7574206f662072616e67652e00000000000000600082015250565b6000614044601983613228565b915061404f8261400e565b602082019050919050565b6000602082019050818103600083015261407381614037565b9050919050565b7f5769647468206973206f7574206f662072616e67652e00000000000000000000600082015250565b60006140b0601683613228565b91506140bb8261407a565b602082019050919050565b600060208201905081810360008301526140df816140a3565b9050919050565b7f486569676874206973206f7574206f662072616e67652e000000000000000000600082015250565b600061411c601783613228565b9150614127826140e6565b602082019050919050565b6000602082019050818103600083015261414b8161410f565b9050919050565b7f676574546f6b656e446174613a20746f6b656e20717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006141ae602f83613228565b91506141b982614152565b604082019050919050565b600060208201905081810360008301526141dd816141a1565b9050919050565b7f416e4f626a6563743a2055524920717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614240602983613228565b915061424b826141e4565b604082019050919050565b6000602082019050818103600083015261426f81614233565b9050919050565b7f2300000000000000000000000000000000000000000000000000000000000000815250565b600081905092915050565b60006142b28261321d565b6142bc818561429c565b93506142cc818560208601613239565b80840191505092915050565b60006142e382614276565b6001820191506142f382846142a7565b915081905092915050565b7f7b226e616d65223a22416e204f626a6563742023000000000000000000000000600082015250565b600061433460148361429c565b915061433f826142fe565b601482019050919050565b7f222c226465736372697074696f6e223a225468697320697320616e206f626a6560008201527f63742c20706c617920776974682069742e222c00000000000000000000000000602082015250565b60006143a660338361429c565b91506143b18261434a565b603382019050919050565b7f22696d616765223a22646174613a696d6167652f7376672b786d6c3b6261736560008201527f36342c0000000000000000000000000000000000000000000000000000000000602082015250565b600061441860238361429c565b9150614423826143bc565b602382019050919050565b7f222c2265787465726e616c5f75726c223a2022687474703a2f2f7777772e616e60008201527f2d6f626a6563742e78797a222c00000000000000000000000000000000000000602082015250565b600061448a602d8361429c565b91506144958261442e565b602d82019050919050565b7f22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d6c3b60008201527f6261736536342c00000000000000000000000000000000000000000000000000602082015250565b60006144fc60278361429c565b9150614507826144a0565b602782019050919050565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b600061454860028361429c565b915061455382614512565b600282019050919050565b7f2261747472696275746573223a205b7b2274726169745f74797065223a20225260008201527f6f746174696f6e202844656729222c0000000000000000000000000000000000602082015250565b60006145ba602f8361429c565b91506145c58261455e565b602f82019050919050565b7f2276616c7565223a202200000000000000000000000000000000000000000000600082015250565b6000614606600a8361429c565b9150614611826145d0565b600a82019050919050565b7f227d2c7b2274726169745f74797065223a2022576964746820282529222c0000600082015250565b6000614652601e8361429c565b915061465d8261461c565b601e82019050919050565b7f227d2c7b2274726169745f74797065223a202248656967687420282529222c00600082015250565b600061469e601f8361429c565b91506146a982614668565b601f82019050919050565b7f227d2c7b2274726169745f74797065223a2022436f6c6f72202848657829222c600082015250565b60006146ea60208361429c565b91506146f5826146b4565b602082019050919050565b7f227d5d7d00000000000000000000000000000000000000000000000000000000600082015250565b600061473660048361429c565b915061474182614700565b600482019050919050565b600061475782614327565b9150614763828a6142a7565b915061476e82614399565b91506147798261440b565b915061478582896142a7565b91506147908261447d565b915061479b826144ef565b91506147a782886142a7565b91506147b28261453b565b91506147bd826145ad565b91506147c8826145f9565b91506147d482876142a7565b91506147df82614645565b91506147ea826145f9565b91506147f682866142a7565b915061480182614691565b915061480c826145f9565b915061481882856142a7565b9150614823826146dd565b915061482e826145f9565b915061483a82846142a7565b915061484582614729565b915081905098975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e2c00000000000000000000600082015250565b600061488c60168361429c565b915061489782614856565b601682019050919050565b600081519050919050565b600081905092915050565b60006148c3826148a2565b6148cd81856148ad565b93506148dd818560208601613239565b80840191505092915050565b60006148f48261487f565b915061490082846148b8565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614967602683613228565b91506149728261490b565b604082019050919050565b600060208201905081810360008301526149968161495a565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006149f9602583613228565b9150614a048261499d565b604082019050919050565b60006020820190508181036000830152614a28816149ec565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614a8b602483613228565b9150614a9682614a2f565b604082019050919050565b60006020820190508181036000830152614aba81614a7e565b9050919050565b6000614acc826132cf565b9150614ad7836132cf565b9250828203905081811115614aef57614aee613df1565b5b92915050565b6000614b00826132cf565b9150614b0b836132cf565b9250828201905080821115614b2357614b22613df1565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614b5f602083613228565b9150614b6a82614b29565b602082019050919050565b60006020820190508181036000830152614b8e81614b52565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614bcb601983613228565b9150614bd682614b95565b602082019050919050565b60006020820190508181036000830152614bfa81614bbe565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614c5d603283613228565b9150614c6882614c01565b604082019050919050565b60006020820190508181036000830152614c8c81614c50565b9050919050565b6000614c9e826132cf565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614cd057614ccf613df1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614d15826132cf565b9150614d20836132cf565b925082614d3057614d2f614cdb565b5b828204905092915050565b6000614d46826132cf565b9150614d51836132cf565b925082614d6157614d60614cdb565b5b828206905092915050565b6000614d7782613424565b9150614d8283613424565b925082614d9257614d91614cdb565b5b828204905092915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060008201527f30302f737667222076696577426f783d2230203020313030203130302220737460208201527f796c653d226261636b67726f756e642d636f6c6f723a234343433b207472616e60408201527f73666f726d2d626f783a2066696c6c2d626f783b207472616e73666f726d2d6f60608201527f726967696e3a2063656e7465723b207472616e73666f726d3a20726f7461746560808201527f280000000000000000000000000000000000000000000000000000000000000060a082015250565b6000614e9160a18361429c565b9150614e9c82614d9d565b60a182019050919050565b7f646567293b223e3c726563742077696474683d22000000000000000000000000600082015250565b6000614edd60148361429c565b9150614ee882614ea7565b601482019050919050565b7f22206865696768743d2200000000000000000000000000000000000000000000600082015250565b6000614f29600a8361429c565b9150614f3482614ef3565b600a82019050919050565b7f2220783d222d0000000000000000000000000000000000000000000000000000600082015250565b6000614f7560068361429c565b9150614f8082614f3f565b600682019050919050565b7f2220793d222d0000000000000000000000000000000000000000000000000000600082015250565b6000614fc160068361429c565b9150614fcc82614f8b565b600682019050919050565b7f22207472616e73666f726d3d227472616e736c6174652835302c35302922207360008201527f74796c653d2266696c6c3a000000000000000000000000000000000000000000602082015250565b6000615033602b8361429c565b915061503e82614fd7565b602b82019050919050565b7f22202f3e3c2f7376673e00000000000000000000000000000000000000000000600082015250565b600061507f600a8361429c565b915061508a82615049565b600a82019050919050565b60006150a082614e84565b91506150ac82896142a7565b91506150b782614ed0565b91506150c382886142a7565b91506150ce82614f1c565b91506150da82876142a7565b91506150e582614f68565b91506150f182866142a7565b91506150fc82614fb4565b915061510882856142a7565b915061511382615026565b915061511f82846142a7565b915061512a82615072565b9150819050979650505050505050565b6000615145826132cf565b9150615150836132cf565b925082820261515e816132cf565b9150828204841483151761517557615174613df1565b5b5092915050565b7f3c21444f43545950452068746d6c3e3c68746d6c3e3c686561643e3c7469746c60008201527f653e000000000000000000000000000000000000000000000000000000000000602082015250565b60006151d860228361429c565b91506151e38261517c565b602282019050919050565b7f416e204f626a6563742e00000000000000000000000000000000000000000000600082015250565b6000615224600a8361429c565b915061522f826151ee565b600a82019050919050565b7f3c2f7469746c653e3c6d657461206e616d653d226465736372697074696f6e2260008201527f20636f6e74656e743d22416e204f626a65637422202f3e3c7374796c6520747960208201527f70653d22746578742f637373223e626f6479207b206261636b67726f756e643a60408201527f234343433b6d617267696e3a303b70616464696e673a303b6f766572666c6f7760608201527f3a68696464656e3b207d2e636f6e7461696e6572207b206173706563742d726160808201527f74696f3a312f313b206d617267696e3a303b2070616464696e673a303b20706f60a08201527f736974696f6e3a206162736f6c7574653b20746f703a203530253b206c65667460c08201527f3a203530253b207472616e73666f726d3a207472616e736c617465282d35302560e08201527f2c202d353025293b646973706c61793a20666c65783b2020206a7573746966796101008201527f2d636f6e74656e743a2063656e7465723b20616c69676e2d6974656d733a20636101208201527f656e7465723b206865696768743a20313030766d696e3b206d61782d776964746101408201527f683a313030766d696e3b207d000000000000000000000000000000000000000061016082015250565b600061541761016c8361429c565b91506154228261523a565b61016c82019050919050565b7f2e626f78207b6261636b67726f756e643a20233030303046463b77696474683a60008201527f203530253b6865696768743a3530253b7472616e73666f726d2d6f726967696e60208201527f3a2063656e7465722063656e7465723b616e696d6174696f6e2d6e616d653a2060408201527f636f6c6f72733b616e696d6174696f6e2d6475726174696f6e3a000000000000606082015250565b60006154d6607a8361429c565b91506154e18261542e565b607a82019050919050565b7f733b616e696d6174696f6e2d64656c61793a31733b616e696d6174696f6e2d6960008201527f7465726174696f6e2d636f756e743a696e66696e6974653b7d3c2f7374796c6560208201527f3e3c2f686561643e3c626f64793e3c64697620636c6173733d22636f6e74616960408201527f6e6572223e3c64697620636c6173733d22626f78223e3c2f6469763e3c2f646960608201527f763e3c2f626f64793e3c2f68746d6c3e00000000000000000000000000000000608082015250565b60006155ba60908361429c565b91506155c5826154ec565b609082019050919050565b60006155db826151cb565b91506155e682615217565b91506155f182615409565b91506155fd82856148b8565b9150615608826154c9565b915061561482846142a7565b915061561f826155ad565b91508190509392505050565b600082825260208201905092915050565b6000615647826148a2565b615651818561562b565b9350615661818560208601613239565b61566a81613263565b840191505092915050565b600060808201905061568a6000830187613364565b6156976020830186613364565b6156a460408301856133fa565b81810360608301526156b6818461563c565b905095945050505050565b6000815190506156d08161318e565b92915050565b6000602082840312156156ec576156eb613158565b5b60006156fa848285016156c1565b91505092915050565b600061570f82856142a7565b915061571b82846142a7565b91508190509392505050565b7f7d00000000000000000000000000000000000000000000000000000000000000815250565b600061575982846142a7565b915061576482615727565b60018201915081905092915050565b600061577f82846142a7565b915081905092915050565b7f2500000000000000000000000000000000000000000000000000000000000000815250565b60006157bc82846142a7565b91506157c78261578a565b60018201915081905092915050565b7f207b7472616e73666f726d3a20726f7461746528000000000000000000000000815250565b600061580882846142a7565b9150615813826157d6565b60148201915081905092915050565b7f646567293b2077696474683a0000000000000000000000000000000000000000815250565b600061585482846142a7565b915061585f82615822565b600c8201915081905092915050565b7f253b206865696768743a00000000000000000000000000000000000000000000815250565b60006158a082846142a7565b91506158ab8261586e565b600a8201915081905092915050565b7f253b206261636b67726f756e642d636f6c6f723a230000000000000000000000815250565b60006158ec82846142a7565b91506158f7826158ba565b60158201915081905092915050565b7f3b7d000000000000000000000000000000000000000000000000000000000000815250565b600061593882846142a7565b915061594382615906565b60028201915081905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615988602083613228565b915061599382615952565b602082019050919050565b600060208201905081810360008301526159b78161597b565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006159f4601c83613228565b91506159ff826159be565b602082019050919050565b60006020820190508181036000830152615a23816159e7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212205367052902725962fbfffd3836dedf0345ca81a6c7d6a393812e4bbc4ce141d664736f6c63430008110033
Deployed Bytecode
0x6080604052600436106101c25760003560e01c8063715018a6116100f7578063ae8bcf2611610095578063cd53d08e11610064578063cd53d08e14610659578063e985e9c514610696578063f2fde38b146106d3578063fc8234cb146106fc576101c2565b8063ae8bcf2614610589578063b09afec1146105b2578063b88d4fde146105f3578063c87b56dd1461061c576101c2565b80638da5cb5b116100d15780638da5cb5b146104e157806395d89b411461050c578063a22cb46514610537578063a244187414610560576101c2565b8063715018a614610476578063750c8b461461048d578063853828b6146104ca576101c2565b80632f745c59116101645780634f6ccce71161013e5780634f6ccce71461038257806355bf283b146103bf5780636352211e146103fc57806370a0823114610439576101c2565b80632f745c5914610305578063320b2ad91461034257806342842e0e14610359576101c2565b8063095ea7b3116101a0578063095ea7b31461026c57806318160ddd1461029557806322864839146102c057806323b872dd146102dc576101c2565b806301ffc9a7146101c757806306fdde0314610204578063081812fc1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e991906131ba565b610713565b6040516101fb9190613202565b60405180910390f35b34801561021057600080fd5b5061021961078d565b60405161022691906132ad565b60405180910390f35b34801561023b57600080fd5b5061025660048036038101906102519190613305565b61081f565b6040516102639190613373565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e91906133ba565b610865565b005b3480156102a157600080fd5b506102aa61097c565b6040516102b79190613409565b60405180910390f35b6102da60048036038101906102d59190613498565b610989565b005b3480156102e857600080fd5b5061030360048036038101906102fe91906134ff565b610adc565b005b34801561031157600080fd5b5061032c600480360381019061032791906133ba565b610b3c565b6040516103399190613409565b60405180910390f35b34801561034e57600080fd5b50610357610be1565b005b34801561036557600080fd5b50610380600480360381019061037b91906134ff565b610c06565b005b34801561038e57600080fd5b506103a960048036038101906103a49190613305565b610c26565b6040516103b69190613409565b60405180910390f35b3480156103cb57600080fd5b506103e660048036038101906103e19190613552565b610c97565b6040516103f3919061358e565b60405180910390f35b34801561040857600080fd5b50610423600480360381019061041e9190613305565b610ccb565b6040516104309190613373565b60405180910390f35b34801561044557600080fd5b50610460600480360381019061045b91906135a9565b610d7c565b60405161046d9190613409565b60405180910390f35b34801561048257600080fd5b5061048b610e33565b005b34801561049957600080fd5b506104b460048036038101906104af91906135d6565b610e47565b6040516104c191906132ad565b60405180910390f35b3480156104d657600080fd5b506104df610f25565b005b3480156104ed57600080fd5b506104f6610f7a565b6040516105039190613373565b60405180910390f35b34801561051857600080fd5b50610521610fa4565b60405161052e91906132ad565b60405180910390f35b34801561054357600080fd5b5061055e6004803603810190610559919061362f565b611036565b005b34801561056c57600080fd5b506105876004803603810190610582919061366f565b61104c565b005b34801561059557600080fd5b506105b060048036038101906105ab9190613498565b6112b9565b005b3480156105be57600080fd5b506105d960048036038101906105d49190613305565b611334565b6040516105ea9594939291906136f9565b60405180910390f35b3480156105ff57600080fd5b5061061a60048036038101906106159190613881565b61145d565b005b34801561062857600080fd5b50610643600480360381019061063e9190613305565b6114bf565b60405161065091906132ad565b60405180910390f35b34801561066557600080fd5b50610680600480360381019061067b9190613305565b61165e565b60405161068d9190613373565b60405180910390f35b3480156106a257600080fd5b506106bd60048036038101906106b89190613904565b611691565b6040516106ca9190613202565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f591906135a9565b611725565b005b34801561070857600080fd5b506107116117a8565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107865750610785826117cd565b5b9050919050565b60606000805461079c90613973565b80601f01602080910402602001604051908101604052809291908181526020018280546107c890613973565b80156108155780601f106107ea57610100808354040283529160200191610815565b820191906000526020600020905b8154815290600101906020018083116107f857829003601f168201915b5050505050905090565b600061082a826118af565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061087082610ccb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036108e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d790613a16565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108ff6118fa565b73ffffffffffffffffffffffffffffffffffffffff16148061092e575061092d816109286118fa565b611691565b5b61096d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096490613aa8565b60405180910390fd5b6109778383611902565b505050565b6000600880549050905090565b600f60009054906101000a900460ff16156109d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d090613b14565b60405180910390fd5b600c546109e461097c565b10610a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1b90613b80565b60405180910390fd5b600b54341015610a69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6090613bec565b60405180910390fd5b6000610a74336119bb565b905033600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610ad5818686868661104c565b5050505050565b610aed610ae76118fa565b826119e7565b610b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2390613c7e565b60405180910390fd5b610b37838383611a7c565b505050565b6000610b4783610d7c565b8210610b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7f90613d10565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610be9611ce2565b6001600f60006101000a81548160ff021916908315150217905550565b610c218383836040518060200160405280600081525061145d565b505050565b6000610c3061097c565b8210610c71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6890613da2565b60405180910390fd5b60088281548110610c8557610c84613dc2565b5b90600052602060002001549050919050565b600060098260ff1611610cb657603082610cb19190613e20565b610cc4565b605782610cc39190613e20565b5b9050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6a90613ea1565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de390613f33565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e3b611ce2565b610e456000611d60565b565b60606000600667ffffffffffffffff811115610e6657610e65613756565b5b6040519080825280601f01601f191660200182016040528015610e985781602001600182028036833780820191505090505b5090506000600f90506000600690505b8080610eb390613f53565b915050610ec1828616610c97565b60f81b838281518110610ed757610ed6613dc2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060048562ffffff16901c945060008111610ea857829350505050919050565b610f2d611ce2565b6000479050610f3a610f7a565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050610f7757600080fd5b50565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610fb390613973565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdf90613973565b801561102c5780601f106110015761010080835404028352916020019161102c565b820191906000526020600020905b81548152906001019060200180831161100f57829003601f168201915b5050505050905090565b6110486110416118fa565b8383611e26565b5050565b843373ffffffffffffffffffffffffffffffffffffffff16600d600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e590613fee565b60405180910390fd5b60008560ff1610158015611106575060b48560ff1611155b611145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113c9061405a565b60405180910390fd5b60008460ff1611801561115c575060648460ff1611155b61119b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611192906140c6565b60405180910390fd5b60008360ff161180156111b2575060648360ff1611155b6111f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e890614132565b60405180910390fd5b84600e600088815260200190815260200160002060000160006101000a81548160ff021916908360ff16021790555083600e600088815260200190815260200160002060000160016101000a81548160ff021916908360ff16021790555082600e600088815260200190815260200160002060000160026101000a81548160ff021916908360ff16021790555081600e600088815260200190815260200160002060000160036101000a81548162ffffff021916908362ffffff160217905550505050505050565b6112c1611ce2565b60006112cc336119bb565b905033600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061132d818686868661104c565b5050505050565b600080600080600061134586611f92565b611384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137b906141c4565b60405180910390fd5b600e600087815260200190815260200160002060000160009054906101000a900460ff169350600e600087815260200190815260200160002060000160019054906101000a900460ff169250600e600087815260200190815260200160002060000160029054906101000a900460ff169150600e600087815260200190815260200160002060000160039054906101000a900462ffffff169050600d600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16945091939590929450565b61146e6114686118fa565b836119e7565b6114ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a490613c7e565b60405180910390fd5b6114b984848484611ffe565b50505050565b60606114ca82611f92565b611509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150090614256565b60405180910390fd5b60006115148361205a565b611525611520856121ba565b61230f565b611535611530612472565b61230f565b611564600e600088815260200190815260200160002060000160009054906101000a900460ff1660ff1661205a565b611593600e600089815260200190815260200160002060000160019054906101000a900460ff1660ff1661205a565b6115c2600e60008a815260200190815260200160002060000160029054906101000a900460ff1660ff1661205a565b6115f0600e60008b815260200190815260200160002060000160039054906101000a900462ffffff16610e47565b60405160200161160091906142d8565b604051602081830303815290604052604051602001611625979695949392919061474c565b60405160208183030381529060405290508060405160200161164791906148e9565b604051602081830303815290604052915050919050565b600d6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61172d611ce2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361179c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117939061497d565b60405180910390fd5b6117a581611d60565b50565b6117b0611ce2565b6000600f60006101000a81548160ff021916908315150217905550565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061189857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806118a857506118a7826124b1565b5b9050919050565b6118b881611f92565b6118f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ee90613ea1565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661197583610ccb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806119c8601061251b565b90506119d48382612529565b6119de6010612547565b80915050919050565b6000806119f383610ccb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611a355750611a348185611691565b5b80611a7357508373ffffffffffffffffffffffffffffffffffffffff16611a5b8461081f565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611a9c82610ccb565b73ffffffffffffffffffffffffffffffffffffffff1614611af2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae990614a0f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5890614aa1565b60405180910390fd5b611b6c83838361255d565b611b77600082611902565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bc79190614ac1565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c1e9190614af5565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611cdd8383836125bf565b505050565b611cea6118fa565b73ffffffffffffffffffffffffffffffffffffffff16611d08610f7a565b73ffffffffffffffffffffffffffffffffffffffff1614611d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5590614b75565b60405180910390fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611e94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8b90614be1565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f859190613202565b60405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612009848484611a7c565b612015848484846125c4565b612054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204b90614c73565b60405180910390fd5b50505050565b6060600082036120a1576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121b5565b600082905060005b600082146120d35780806120bc90614c93565b915050600a826120cc9190614d0a565b91506120a9565b60008167ffffffffffffffff8111156120ef576120ee613756565b5b6040519080825280601f01601f1916602001820160405280156121215781602001600182028036833780820191505090505b5090505b600085146121ae5760018261213a9190614ac1565b9150600a856121499190614d3b565b60306121559190614af5565b60f81b81838151811061216b5761216a613dc2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856121a79190614d0a565b9450612125565b8093505050505b919050565b60606000600e600084815260200190815260200160002060000160019054906101000a900460ff1690506000600e600085815260200190815260200160002060000160029054906101000a900460ff1690506000600e600086815260200190815260200160002060000160009054906101000a900460ff16905060006002846122439190614d6c565b905060006002846122549190614d6c565b90506122628360ff1661205a565b61226e8660ff1661205a565b61227a8660ff1661205a565b6122868560ff1661205a565b6122928560ff1661205a565b6122c0600e60008e815260200190815260200160002060000160039054906101000a900462ffffff16610e47565b6040516020016122d091906142d8565b6040516020818303038152906040526040516020016122f496959493929190615095565b60405160208183030381529060405295505050505050919050565b606060008251036123315760405180602001604052806000815250905061246d565b6000604051806060016040528060408152602001615a5a60409139905060006003600285516123609190614af5565b61236a9190614d0a565b6004612376919061513a565b67ffffffffffffffff81111561238f5761238e613756565b5b6040519080825280601f01601f1916602001820160405280156123c15781602001600182028036833780820191505090505b509050600182016020820185865187015b8082101561242d576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453600184019350506123d2565b5050600386510660018114612449576002811461245c57612464565b603d6001830353603d6002830353612464565b603d60018303535b50505080925050505b919050565b606061247c61274b565b61248c61248761097c565b61205a565b60405160200161249d9291906155d0565b604051602081830303815290604052905090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081600001549050919050565b612543828260405180602001604052806000815250612906565b5050565b6001816000016000828254019250508190555050565b612568838383612961565b81600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b505050565b60006125e58473ffffffffffffffffffffffffffffffffffffffff16612a73565b1561273e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261260e6118fa565b8786866040518563ffffffff1660e01b81526004016126309493929190615675565b6020604051808303816000875af192505050801561266c57506040513d601f19601f8201168201806040525081019061266991906156d6565b60015b6126ee573d806000811461269c576040519150601f19603f3d011682016040523d82523d6000602084013e6126a1565b606091505b5060008151036126e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126dd90614c73565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612743565b600190505b949350505050565b6060600061275761097c565b905060006040518060400160405280601381526020017f406b65796672616d657320636f6c6f7273207b00000000000000000000000000815250905060008260646127a29190614d0a565b905060005b83811015612889578261285683836127bf919061513a565b600e600085815260200190815260200160002060000160009054906101000a900460ff16600e600086815260200190815260200160002060000160019054906101000a900460ff16600e600087815260200190815260200160002060000160029054906101000a900460ff16600e600088815260200190815260200160002060000160039054906101000a900462ffffff16612a96565b604051602001612867929190615703565b60405160208183030381529060405292508061288290614c93565b90506127a7565b508161289d600c54600060328060ff612a96565b6040516020016128ae929190615703565b6040516020818303038152906040529150816040516020016128d0919061574d565b6040516020818303038152906040526040516020016128ef9190615773565b604051602081830303815290604052935050505090565b6129108383612c6a565b61291d60008484846125c4565b61295c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295390614c73565b60405180910390fd5b505050565b61296c838383612e43565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129ae576129a981612e48565b6129ed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146129ec576129eb8382612e91565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a2f57612a2a81612ffe565b612a6e565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612a6d57612a6c82826130cf565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060600060405180602001604052806000815250905080612ab68861205a565b604051602001612ac7929190615703565b604051602081830303815290604052905080604051602001612ae991906157b0565b604051602081830303815290604052905080604051602001612b0b91906157fc565b604051602081830303815290604052905080612b298760ff1661205a565b604051602001612b3a929190615703565b604051602081830303815290604052905080604051602001612b5c9190615848565b604051602081830303815290604052905080612b7a8660ff1661205a565b604051602001612b8b929190615703565b604051602081830303815290604052905080604051602001612bad9190615894565b604051602081830303815290604052905080612bcb8560ff1661205a565b604051602001612bdc929190615703565b604051602081830303815290604052905080604051602001612bfe91906158e0565b604051602081830303815290604052905080612c1984610e47565b604051602001612c2a929190615703565b604051602081830303815290604052905080604051602001612c4c919061592c565b60405160208183030381529060405290508091505095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd09061599e565b60405180910390fd5b612ce281611f92565b15612d22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1990615a0a565b60405180910390fd5b612d2e6000838361255d565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d7e9190614af5565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e3f600083836125bf565b5050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612e9e84610d7c565b612ea89190614ac1565b9050600060076000848152602001908152602001600020549050818114612f8d576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506130129190614ac1565b905060006009600084815260200190815260200160002054905060006008838154811061304257613041613dc2565b5b90600052602060002001549050806008838154811061306457613063613dc2565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806130b3576130b2615a2a565b5b6001900381819060005260206000200160009055905550505050565b60006130da83610d7c565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61319781613162565b81146131a257600080fd5b50565b6000813590506131b48161318e565b92915050565b6000602082840312156131d0576131cf613158565b5b60006131de848285016131a5565b91505092915050565b60008115159050919050565b6131fc816131e7565b82525050565b600060208201905061321760008301846131f3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561325757808201518184015260208101905061323c565b60008484015250505050565b6000601f19601f8301169050919050565b600061327f8261321d565b6132898185613228565b9350613299818560208601613239565b6132a281613263565b840191505092915050565b600060208201905081810360008301526132c78184613274565b905092915050565b6000819050919050565b6132e2816132cf565b81146132ed57600080fd5b50565b6000813590506132ff816132d9565b92915050565b60006020828403121561331b5761331a613158565b5b6000613329848285016132f0565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061335d82613332565b9050919050565b61336d81613352565b82525050565b60006020820190506133886000830184613364565b92915050565b61339781613352565b81146133a257600080fd5b50565b6000813590506133b48161338e565b92915050565b600080604083850312156133d1576133d0613158565b5b60006133df858286016133a5565b92505060206133f0858286016132f0565b9150509250929050565b613403816132cf565b82525050565b600060208201905061341e60008301846133fa565b92915050565b600060ff82169050919050565b61343a81613424565b811461344557600080fd5b50565b60008135905061345781613431565b92915050565b600062ffffff82169050919050565b6134758161345d565b811461348057600080fd5b50565b6000813590506134928161346c565b92915050565b600080600080608085870312156134b2576134b1613158565b5b60006134c087828801613448565b94505060206134d187828801613448565b93505060406134e287828801613448565b92505060606134f387828801613483565b91505092959194509250565b60008060006060848603121561351857613517613158565b5b6000613526868287016133a5565b9350506020613537868287016133a5565b9250506040613548868287016132f0565b9150509250925092565b60006020828403121561356857613567613158565b5b600061357684828501613448565b91505092915050565b61358881613424565b82525050565b60006020820190506135a3600083018461357f565b92915050565b6000602082840312156135bf576135be613158565b5b60006135cd848285016133a5565b91505092915050565b6000602082840312156135ec576135eb613158565b5b60006135fa84828501613483565b91505092915050565b61360c816131e7565b811461361757600080fd5b50565b60008135905061362981613603565b92915050565b6000806040838503121561364657613645613158565b5b6000613654858286016133a5565b92505060206136658582860161361a565b9150509250929050565b600080600080600060a0868803121561368b5761368a613158565b5b6000613699888289016132f0565b95505060206136aa88828901613448565b94505060406136bb88828901613448565b93505060606136cc88828901613448565b92505060806136dd88828901613483565b9150509295509295909350565b6136f38161345d565b82525050565b600060a08201905061370e6000830188613364565b61371b602083018761357f565b613728604083018661357f565b613735606083018561357f565b61374260808301846136ea565b9695505050505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61378e82613263565b810181811067ffffffffffffffff821117156137ad576137ac613756565b5b80604052505050565b60006137c061314e565b90506137cc8282613785565b919050565b600067ffffffffffffffff8211156137ec576137eb613756565b5b6137f582613263565b9050602081019050919050565b82818337600083830152505050565b600061382461381f846137d1565b6137b6565b9050828152602081018484840111156138405761383f613751565b5b61384b848285613802565b509392505050565b600082601f8301126138685761386761374c565b5b8135613878848260208601613811565b91505092915050565b6000806000806080858703121561389b5761389a613158565b5b60006138a9878288016133a5565b94505060206138ba878288016133a5565b93505060406138cb878288016132f0565b925050606085013567ffffffffffffffff8111156138ec576138eb61315d565b5b6138f887828801613853565b91505092959194509250565b6000806040838503121561391b5761391a613158565b5b6000613929858286016133a5565b925050602061393a858286016133a5565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061398b57607f821691505b60208210810361399e5761399d613944565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a00602183613228565b9150613a0b826139a4565b604082019050919050565b60006020820190508181036000830152613a2f816139f3565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613a92603e83613228565b9150613a9d82613a36565b604082019050919050565b60006020820190508181036000830152613ac181613a85565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613afe601083613228565b9150613b0982613ac8565b602082019050919050565b60006020820190508181036000830152613b2d81613af1565b9050919050565b7f4d6178696d756d20737570706c7920726561636865642e000000000000000000600082015250565b6000613b6a601783613228565b9150613b7582613b34565b602082019050919050565b60006020820190508181036000830152613b9981613b5d565b9050919050565b7f4e6f7420656e6f7567682045746865722073656e742e00000000000000000000600082015250565b6000613bd6601683613228565b9150613be182613ba0565b602082019050919050565b60006020820190508181036000830152613c0581613bc9565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613c68602e83613228565b9150613c7382613c0c565b604082019050919050565b60006020820190508181036000830152613c9781613c5b565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613cfa602b83613228565b9150613d0582613c9e565b604082019050919050565b60006020820190508181036000830152613d2981613ced565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613d8c602c83613228565b9150613d9782613d30565b604082019050919050565b60006020820190508181036000830152613dbb81613d7f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e2b82613424565b9150613e3683613424565b9250828201905060ff811115613e4f57613e4e613df1565b5b92915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613e8b601883613228565b9150613e9682613e55565b602082019050919050565b60006020820190508181036000830152613eba81613e7e565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613f1d602983613228565b9150613f2882613ec1565b604082019050919050565b60006020820190508181036000830152613f4c81613f10565b9050919050565b6000613f5e826132cf565b915060008203613f7157613f70613df1565b5b600182039050919050565b7f416e4f626a6563742363726561746f724f6e6c793a204f4e4c595f435245415460008201527f4f525f414c4c4f57454400000000000000000000000000000000000000000000602082015250565b6000613fd8602a83613228565b9150613fe382613f7c565b604082019050919050565b6000602082019050818103600083015261400781613fcb565b9050919050565b7f526f746174696f6e206973206f7574206f662072616e67652e00000000000000600082015250565b6000614044601983613228565b915061404f8261400e565b602082019050919050565b6000602082019050818103600083015261407381614037565b9050919050565b7f5769647468206973206f7574206f662072616e67652e00000000000000000000600082015250565b60006140b0601683613228565b91506140bb8261407a565b602082019050919050565b600060208201905081810360008301526140df816140a3565b9050919050565b7f486569676874206973206f7574206f662072616e67652e000000000000000000600082015250565b600061411c601783613228565b9150614127826140e6565b602082019050919050565b6000602082019050818103600083015261414b8161410f565b9050919050565b7f676574546f6b656e446174613a20746f6b656e20717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006141ae602f83613228565b91506141b982614152565b604082019050919050565b600060208201905081810360008301526141dd816141a1565b9050919050565b7f416e4f626a6563743a2055524920717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614240602983613228565b915061424b826141e4565b604082019050919050565b6000602082019050818103600083015261426f81614233565b9050919050565b7f2300000000000000000000000000000000000000000000000000000000000000815250565b600081905092915050565b60006142b28261321d565b6142bc818561429c565b93506142cc818560208601613239565b80840191505092915050565b60006142e382614276565b6001820191506142f382846142a7565b915081905092915050565b7f7b226e616d65223a22416e204f626a6563742023000000000000000000000000600082015250565b600061433460148361429c565b915061433f826142fe565b601482019050919050565b7f222c226465736372697074696f6e223a225468697320697320616e206f626a6560008201527f63742c20706c617920776974682069742e222c00000000000000000000000000602082015250565b60006143a660338361429c565b91506143b18261434a565b603382019050919050565b7f22696d616765223a22646174613a696d6167652f7376672b786d6c3b6261736560008201527f36342c0000000000000000000000000000000000000000000000000000000000602082015250565b600061441860238361429c565b9150614423826143bc565b602382019050919050565b7f222c2265787465726e616c5f75726c223a2022687474703a2f2f7777772e616e60008201527f2d6f626a6563742e78797a222c00000000000000000000000000000000000000602082015250565b600061448a602d8361429c565b91506144958261442e565b602d82019050919050565b7f22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d6c3b60008201527f6261736536342c00000000000000000000000000000000000000000000000000602082015250565b60006144fc60278361429c565b9150614507826144a0565b602782019050919050565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b600061454860028361429c565b915061455382614512565b600282019050919050565b7f2261747472696275746573223a205b7b2274726169745f74797065223a20225260008201527f6f746174696f6e202844656729222c0000000000000000000000000000000000602082015250565b60006145ba602f8361429c565b91506145c58261455e565b602f82019050919050565b7f2276616c7565223a202200000000000000000000000000000000000000000000600082015250565b6000614606600a8361429c565b9150614611826145d0565b600a82019050919050565b7f227d2c7b2274726169745f74797065223a2022576964746820282529222c0000600082015250565b6000614652601e8361429c565b915061465d8261461c565b601e82019050919050565b7f227d2c7b2274726169745f74797065223a202248656967687420282529222c00600082015250565b600061469e601f8361429c565b91506146a982614668565b601f82019050919050565b7f227d2c7b2274726169745f74797065223a2022436f6c6f72202848657829222c600082015250565b60006146ea60208361429c565b91506146f5826146b4565b602082019050919050565b7f227d5d7d00000000000000000000000000000000000000000000000000000000600082015250565b600061473660048361429c565b915061474182614700565b600482019050919050565b600061475782614327565b9150614763828a6142a7565b915061476e82614399565b91506147798261440b565b915061478582896142a7565b91506147908261447d565b915061479b826144ef565b91506147a782886142a7565b91506147b28261453b565b91506147bd826145ad565b91506147c8826145f9565b91506147d482876142a7565b91506147df82614645565b91506147ea826145f9565b91506147f682866142a7565b915061480182614691565b915061480c826145f9565b915061481882856142a7565b9150614823826146dd565b915061482e826145f9565b915061483a82846142a7565b915061484582614729565b915081905098975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e2c00000000000000000000600082015250565b600061488c60168361429c565b915061489782614856565b601682019050919050565b600081519050919050565b600081905092915050565b60006148c3826148a2565b6148cd81856148ad565b93506148dd818560208601613239565b80840191505092915050565b60006148f48261487f565b915061490082846148b8565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614967602683613228565b91506149728261490b565b604082019050919050565b600060208201905081810360008301526149968161495a565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006149f9602583613228565b9150614a048261499d565b604082019050919050565b60006020820190508181036000830152614a28816149ec565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614a8b602483613228565b9150614a9682614a2f565b604082019050919050565b60006020820190508181036000830152614aba81614a7e565b9050919050565b6000614acc826132cf565b9150614ad7836132cf565b9250828203905081811115614aef57614aee613df1565b5b92915050565b6000614b00826132cf565b9150614b0b836132cf565b9250828201905080821115614b2357614b22613df1565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614b5f602083613228565b9150614b6a82614b29565b602082019050919050565b60006020820190508181036000830152614b8e81614b52565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614bcb601983613228565b9150614bd682614b95565b602082019050919050565b60006020820190508181036000830152614bfa81614bbe565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614c5d603283613228565b9150614c6882614c01565b604082019050919050565b60006020820190508181036000830152614c8c81614c50565b9050919050565b6000614c9e826132cf565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614cd057614ccf613df1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614d15826132cf565b9150614d20836132cf565b925082614d3057614d2f614cdb565b5b828204905092915050565b6000614d46826132cf565b9150614d51836132cf565b925082614d6157614d60614cdb565b5b828206905092915050565b6000614d7782613424565b9150614d8283613424565b925082614d9257614d91614cdb565b5b828204905092915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060008201527f30302f737667222076696577426f783d2230203020313030203130302220737460208201527f796c653d226261636b67726f756e642d636f6c6f723a234343433b207472616e60408201527f73666f726d2d626f783a2066696c6c2d626f783b207472616e73666f726d2d6f60608201527f726967696e3a2063656e7465723b207472616e73666f726d3a20726f7461746560808201527f280000000000000000000000000000000000000000000000000000000000000060a082015250565b6000614e9160a18361429c565b9150614e9c82614d9d565b60a182019050919050565b7f646567293b223e3c726563742077696474683d22000000000000000000000000600082015250565b6000614edd60148361429c565b9150614ee882614ea7565b601482019050919050565b7f22206865696768743d2200000000000000000000000000000000000000000000600082015250565b6000614f29600a8361429c565b9150614f3482614ef3565b600a82019050919050565b7f2220783d222d0000000000000000000000000000000000000000000000000000600082015250565b6000614f7560068361429c565b9150614f8082614f3f565b600682019050919050565b7f2220793d222d0000000000000000000000000000000000000000000000000000600082015250565b6000614fc160068361429c565b9150614fcc82614f8b565b600682019050919050565b7f22207472616e73666f726d3d227472616e736c6174652835302c35302922207360008201527f74796c653d2266696c6c3a000000000000000000000000000000000000000000602082015250565b6000615033602b8361429c565b915061503e82614fd7565b602b82019050919050565b7f22202f3e3c2f7376673e00000000000000000000000000000000000000000000600082015250565b600061507f600a8361429c565b915061508a82615049565b600a82019050919050565b60006150a082614e84565b91506150ac82896142a7565b91506150b782614ed0565b91506150c382886142a7565b91506150ce82614f1c565b91506150da82876142a7565b91506150e582614f68565b91506150f182866142a7565b91506150fc82614fb4565b915061510882856142a7565b915061511382615026565b915061511f82846142a7565b915061512a82615072565b9150819050979650505050505050565b6000615145826132cf565b9150615150836132cf565b925082820261515e816132cf565b9150828204841483151761517557615174613df1565b5b5092915050565b7f3c21444f43545950452068746d6c3e3c68746d6c3e3c686561643e3c7469746c60008201527f653e000000000000000000000000000000000000000000000000000000000000602082015250565b60006151d860228361429c565b91506151e38261517c565b602282019050919050565b7f416e204f626a6563742e00000000000000000000000000000000000000000000600082015250565b6000615224600a8361429c565b915061522f826151ee565b600a82019050919050565b7f3c2f7469746c653e3c6d657461206e616d653d226465736372697074696f6e2260008201527f20636f6e74656e743d22416e204f626a65637422202f3e3c7374796c6520747960208201527f70653d22746578742f637373223e626f6479207b206261636b67726f756e643a60408201527f234343433b6d617267696e3a303b70616464696e673a303b6f766572666c6f7760608201527f3a68696464656e3b207d2e636f6e7461696e6572207b206173706563742d726160808201527f74696f3a312f313b206d617267696e3a303b2070616464696e673a303b20706f60a08201527f736974696f6e3a206162736f6c7574653b20746f703a203530253b206c65667460c08201527f3a203530253b207472616e73666f726d3a207472616e736c617465282d35302560e08201527f2c202d353025293b646973706c61793a20666c65783b2020206a7573746966796101008201527f2d636f6e74656e743a2063656e7465723b20616c69676e2d6974656d733a20636101208201527f656e7465723b206865696768743a20313030766d696e3b206d61782d776964746101408201527f683a313030766d696e3b207d000000000000000000000000000000000000000061016082015250565b600061541761016c8361429c565b91506154228261523a565b61016c82019050919050565b7f2e626f78207b6261636b67726f756e643a20233030303046463b77696474683a60008201527f203530253b6865696768743a3530253b7472616e73666f726d2d6f726967696e60208201527f3a2063656e7465722063656e7465723b616e696d6174696f6e2d6e616d653a2060408201527f636f6c6f72733b616e696d6174696f6e2d6475726174696f6e3a000000000000606082015250565b60006154d6607a8361429c565b91506154e18261542e565b607a82019050919050565b7f733b616e696d6174696f6e2d64656c61793a31733b616e696d6174696f6e2d6960008201527f7465726174696f6e2d636f756e743a696e66696e6974653b7d3c2f7374796c6560208201527f3e3c2f686561643e3c626f64793e3c64697620636c6173733d22636f6e74616960408201527f6e6572223e3c64697620636c6173733d22626f78223e3c2f6469763e3c2f646960608201527f763e3c2f626f64793e3c2f68746d6c3e00000000000000000000000000000000608082015250565b60006155ba60908361429c565b91506155c5826154ec565b609082019050919050565b60006155db826151cb565b91506155e682615217565b91506155f182615409565b91506155fd82856148b8565b9150615608826154c9565b915061561482846142a7565b915061561f826155ad565b91508190509392505050565b600082825260208201905092915050565b6000615647826148a2565b615651818561562b565b9350615661818560208601613239565b61566a81613263565b840191505092915050565b600060808201905061568a6000830187613364565b6156976020830186613364565b6156a460408301856133fa565b81810360608301526156b6818461563c565b905095945050505050565b6000815190506156d08161318e565b92915050565b6000602082840312156156ec576156eb613158565b5b60006156fa848285016156c1565b91505092915050565b600061570f82856142a7565b915061571b82846142a7565b91508190509392505050565b7f7d00000000000000000000000000000000000000000000000000000000000000815250565b600061575982846142a7565b915061576482615727565b60018201915081905092915050565b600061577f82846142a7565b915081905092915050565b7f2500000000000000000000000000000000000000000000000000000000000000815250565b60006157bc82846142a7565b91506157c78261578a565b60018201915081905092915050565b7f207b7472616e73666f726d3a20726f7461746528000000000000000000000000815250565b600061580882846142a7565b9150615813826157d6565b60148201915081905092915050565b7f646567293b2077696474683a0000000000000000000000000000000000000000815250565b600061585482846142a7565b915061585f82615822565b600c8201915081905092915050565b7f253b206865696768743a00000000000000000000000000000000000000000000815250565b60006158a082846142a7565b91506158ab8261586e565b600a8201915081905092915050565b7f253b206261636b67726f756e642d636f6c6f723a230000000000000000000000815250565b60006158ec82846142a7565b91506158f7826158ba565b60158201915081905092915050565b7f3b7d000000000000000000000000000000000000000000000000000000000000815250565b600061593882846142a7565b915061594382615906565b60028201915081905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615988602083613228565b915061599382615952565b602082019050919050565b600060208201905081810360008301526159b78161597b565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006159f4601c83613228565b91506159ff826159be565b602082019050919050565b60006020820190508181036000830152615a23816159e7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212205367052902725962fbfffd3836dedf0345ca81a6c7d6a393812e4bbc4ce141d664736f6c63430008110033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.