Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 21 from a total of 21 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 18805347 | 765 days ago | IN | 0 ETH | 0.00373369 | ||||
| Safe Transfer Fr... | 16275804 | 1120 days ago | IN | 0 ETH | 0.00106901 | ||||
| Set Approval For... | 16147497 | 1137 days ago | IN | 0 ETH | 0.00114308 | ||||
| Set Approval For... | 15348280 | 1253 days ago | IN | 0 ETH | 0.00109407 | ||||
| Mint | 14870612 | 1331 days ago | IN | 0.042 ETH | 0.00347181 | ||||
| Mint | 14869388 | 1331 days ago | IN | 0.042 ETH | 0.00310587 | ||||
| Mint | 14868841 | 1331 days ago | IN | 0.042 ETH | 0.00576015 | ||||
| Update Max Suppl... | 14474632 | 1394 days ago | IN | 0 ETH | 0.00091567 | ||||
| Mint | 14112487 | 1450 days ago | IN | 0.042 ETH | 0.01904053 | ||||
| Mint | 14023778 | 1463 days ago | IN | 0.042 ETH | 0.02644478 | ||||
| Update Max Suppl... | 14010414 | 1465 days ago | IN | 0 ETH | 0.003767 | ||||
| Set Approval For... | 13983929 | 1470 days ago | IN | 0 ETH | 0.00515046 | ||||
| Mint | 13897614 | 1483 days ago | IN | 0.042 ETH | 0.01547521 | ||||
| Set Approval For... | 13773997 | 1502 days ago | IN | 0 ETH | 0.00320064 | ||||
| Set Approval For... | 13773990 | 1502 days ago | IN | 0 ETH | 0.00271692 | ||||
| Set Approval For... | 13773976 | 1502 days ago | IN | 0 ETH | 0.00334155 | ||||
| Transfer Ownersh... | 13773421 | 1502 days ago | IN | 0 ETH | 0.00257519 | ||||
| Claim | 13773391 | 1502 days ago | IN | 0 ETH | 0.02049699 | ||||
| Claim | 13773346 | 1502 days ago | IN | 0 ETH | 0.02134971 | ||||
| Claim | 13773344 | 1502 days ago | IN | 0 ETH | 0.02054732 | ||||
| Claim | 13773342 | 1502 days ago | IN | 0 ETH | 0.02043836 |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Fingerprint
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
contract Fingerprint is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable, ERC721Burnable {
using Counters for Counters.Counter;
struct Palette {
string bg;
string fg;
string accent;
string bgName;
string fgName;
}
struct Density {
uint8 value;
string name;
}
struct Image {
uint8 droplets;
string image;
}
struct PreRendered {
string line1;
string line2;
string circle;
}
struct PrecalculatedValues {
uint256 minter;
Palette palette;
Density density;
uint8 lines;
uint256 fullSize;
bool isOutline;
bool isRekt;
uint8 chunkSize;
uint16 size;
uint16 strokeWidth;
uint16 r;
string strokeWidthStr;
string outlineStrokeWidthStr;
}
struct RowValues {
uint256 width;
string widthStr;
uint256 l1x2;
uint256 l2x1;
string l1x2Str;
string l2x1Str;
uint16 offset;
string offsetStr;
uint16 y1;
uint16 y2;
string y1Str;
string y2Str;
}
uint16 constant _canvasWidth = 1920;
uint16 constant _canvasHeight = 1080;
string constant _svgPrefix = "<svg viewBox=\\\"0 0 1920 1080\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><clipPath id=\\\"clipAll\\\"><rect fill=\\\"%23";
string constant _svgSuffix = "</g></svg>";
uint16 private _maxSupply;
uint256 private _mintPriceWei;
Counters.Counter private _tokenIdCounter;
mapping(uint16 => address) private _tokenToMinter;
mapping(address => uint16) private _minterToToken;
uint8[5] private _lineCounts;
uint256[5] private _sizes;
Density[3] private _densities;
Palette[4] private _palettes;
constructor() ERC721("Fingerprint", "FNGRPRNT") {
_maxSupply = 1024;
_mintPriceWei = 42_000_000_000_000_000;
_lineCounts[0] = 20;
_lineCounts[1] = 10;
_lineCounts[2] = 8;
_lineCounts[3] = 5;
_lineCounts[4] = 4;
_sizes[0] = 0xFF;
_sizes[1] = 0xFFFF;
_sizes[2] = 0xFFFFF;
_sizes[3] = 0xFFFFFFFF;
_sizes[4] = 0xFFFFFFFFFF;
_densities[0] = Density(33, "Open");
_densities[1] = Density(45, "Regular");
_densities[2] = Density(60, "Compact");
_palettes[0] = Palette("f0f0e0", "220022", "dd0000", "Sand", "Ink");
_palettes[1] = Palette("220022", "f0f0e0", "dd0000", "Ink", "Sand");
_palettes[2] = Palette("f0f0e0", "2a2a2a", "ff6607", "Sand", "Graphite");
_palettes[3] = Palette("2a2a2a", "f0f0e0", "ff6607", "Graphite", "Sand");
}
function initialConfig() external view returns(uint256[3] memory) {
uint256[3] memory result;
result[0] = _maxSupply;
result[1] = ERC721Enumerable.totalSupply();
result[2] = _mintPriceWei;
return result;
}
function updateMintPriceWei(uint256 priceWei) external onlyOwner {
_mintPriceWei = priceWei;
}
function updateMaxSupply(uint16 maxSupply) external onlyOwner {
require(maxSupply >= ERC721Enumerable.totalSupply(), "Can't reduce supply below total supply");
require(maxSupply < _maxSupply, "Can't increase supply");
_maxSupply = maxSupply;
}
function claim(address to) external onlyOwner {
_mintInternal(to);
}
function mint() external payable {
require(msg.value >= _mintPriceWei, "Must send at least mintPriceWei");
_mintInternal(msg.sender);
_pay(_mintPriceWei);
}
function _mintInternal(address to) private {
require(to != address(0), "Can't mint for zero address");
require(_tokenIdCounter.current() + 1 <= _maxSupply, "Collection fully minted");
_tokenIdCounter.increment();
uint256 tokenId = _tokenIdCounter.current();
_safeMint(to, tokenId);
_tokenToMinter[uint16(tokenId)] = to;
_minterToToken[to] = uint16(tokenId);
}
function tokenURI(uint256 tokenId)
public
view
override(ERC721, ERC721URIStorage)
returns (string memory)
{
require(_exists(tokenId), "ERC721: missing token!");
uint256 minter = uint256(uint160(_tokenToMinter[uint16(tokenId)]));
uint256 lineIndex = minter % _lineCounts.length;
uint8 lines = _lineCounts[lineIndex];
uint16 size = _canvasHeight / lines;
Density memory density = _densities[minter % _densities.length];
uint16 strokeWidth = uint16(size * density.value / 100);
PrecalculatedValues memory precalc = PrecalculatedValues(
minter,
_palettes[minter % _palettes.length],
density,
lines,
_sizes[lineIndex],
minter % 19 < 6,
minter % 13 < 3,
160 / lines,
size,
strokeWidth,
strokeWidth / 2,
_uintToString(strokeWidth),
_uintToString(strokeWidth - 5)
);
Image memory imageObj = _draw(precalc);
string memory traits = _traits(precalc, imageObj.droplets);
string memory token = _uintToString(tokenId);
return string(abi.encodePacked("data:application/json;utf8,{\"id\": \"", token, "\", \"name\": \"Fingerprint #", token, "\", \"description\": \"Abstract interpretation of the minting address as a fingerprint\", \"attributes\": [", traits, "], \"image_data\": \"", imageObj.image, "\", \"external_url\": \"https://obsolete.design/art/collection/fingerprint/gallery/", token, "\"}"));
}
function _traits(PrecalculatedValues memory precalc, uint8 droplets) internal pure returns(string memory) {
string memory colorTraits = string(abi.encodePacked("{\"trait_type\": \"Color\", \"value\": \"", precalc.palette.fgName, "\"},{\"trait_type\": \"Background\", \"value\": \"", precalc.palette.bgName, "\"}"));
return string(abi.encodePacked(colorTraits, ",{\"trait_type\": \"Density\", \"value\": \"", precalc.density.name, "\"},{\"trait_type\": \"Lines\", \"value\": \"", _uintToString(precalc.lines) ,"\"},{\"trait_type\": \"Style\", \"value\": \"", precalc.isOutline ? "Outlined" : "Solid" , "\"},{\"trait_type\": \"Distortion\", \"value\": \"", precalc.isRekt ? "Rekt" : "Uniform" , "\"},{\"trait_type\": \"Droplets\", \"value\": \"", _uintToString(droplets) , "\"}"));
}
function _draw(PrecalculatedValues memory precalc) internal pure returns(Image memory) {
string memory svg = "";
uint8 droplets = 0;
PreRendered memory pre = _preRender(precalc.palette, precalc.r);
for (uint8 i = 0; i < precalc.lines; i++) {
uint256 offset = i * precalc.chunkSize;
Image memory row = _drawRow((precalc.minter >> offset) & precalc.fullSize, i, precalc, pre);
droplets = droplets + row.droplets;
svg = string(abi.encodePacked(svg, row.image));
}
return _image(droplets, precalc.palette.bg, svg);
}
function _image(uint8 droplets, string memory bg, string memory svg) internal pure returns(Image memory) {
return Image(droplets, string(abi.encodePacked(_svgPrefix, bg, "\\\" x=\\\"0\\\" y=\\\"0\\\" width=\\\"1920\\\" height=\\\"1080\\\"/></clipPath><rect fill=\\\"%23", bg, "\\\" x=\\\"0\\\" y=\\\"0\\\" width=\\\"1920\\\" height=\\\"1080\\\"/><g clip-path=\\\"url(%23clipAll)\\\">", svg, _svgSuffix)));
}
function _preRender(Palette memory palette, uint16 r) internal pure returns(PreRendered memory) {
return PreRendered(string(abi.encodePacked("\\\" x1=\\\"0\\\" stroke-linecap=\\\"round\\\" />")), string(abi.encodePacked("\\\" x2=\\\"1920\\\" stroke-linecap=\\\"round\\\" />")), string(abi.encodePacked("\\\" r=\\\"", _uintToString(r), "\\\" fill=\\\"%23", palette.accent, "\\\" stroke=\\\"none\\\" />")));
}
function _drawRow(uint256 chunk, uint8 i, PrecalculatedValues memory precalc, PreRendered memory pre) internal pure returns(Image memory) {
RowValues memory rowValues = _calcRowValues(chunk, i, precalc);
uint8 droplets = 0;
string memory line1 = "";
string memory line2 = "";
string memory outline1 = "";
string memory outline2 = "";
string memory circle = "";
if (rowValues.l1x2 > 0) {
line1 = string(abi.encodePacked("<line stroke=\\\"%23", precalc.palette.fg, "\\\" stroke-width=\\\"", precalc.strokeWidthStr, "\\\" y1=\\\"", rowValues.y1Str, "\\\" x2=\\\"", rowValues.l1x2Str, "\\\" y2=\\\"", rowValues.y2Str, pre.line1));
}
if (rowValues.l2x1 < _canvasWidth) {
line2 = string(abi.encodePacked("<line stroke=\\\"%23", precalc.palette.fg, "\\\" stroke-width=\\\"", precalc.strokeWidthStr, "\\\" x1=\\\"", rowValues.l2x1Str, "\\\" y1=\\\"", rowValues.y1Str, "\\\" y2=\\\"", rowValues.y2Str, pre.line2));
}
if (chunk % 31 == 0) {
droplets = droplets + 1;
circle = string(abi.encodePacked("<circle cx=\\\"", rowValues.widthStr, "\\\" cy=\\\"", rowValues.offsetStr, pre.circle));
}
if (precalc.isOutline) {
if (rowValues.l1x2 > 0) {
outline1 = string(abi.encodePacked("<line stroke=\\\"%23", precalc.palette.bg, "\\\" stroke-width=\\\"", precalc.outlineStrokeWidthStr, "\\\" y1=\\\"", rowValues.y1Str, "\\\" x2=\\\"", rowValues.l1x2Str, "\\\" y2=\\\"", rowValues.y2Str, pre.line1));
}
if (rowValues.l2x1 < _canvasWidth) {
outline2 = string(abi.encodePacked("<line stroke=\\\"%23", precalc.palette.bg, "\\\" stroke-width=\\\"", precalc.outlineStrokeWidthStr, "\\\" x1=\\\"", rowValues.l2x1Str, "\\\" y1=\\\"", rowValues.y1Str, "\\\" y2=\\\"", rowValues.y2Str, pre.line2));
}
}
return Image(droplets, string(abi.encodePacked(line1, line2, circle, outline1, outline2)));
}
function _calcRowValues(uint256 chunk, uint8 i, PrecalculatedValues memory precalc) internal pure returns(RowValues memory) {
uint256 width = _canvasWidth * chunk / precalc.fullSize;
uint256 l1x2 = width > precalc.strokeWidth ? width - precalc.strokeWidth : 0;
uint256 l2x1 = width + precalc.strokeWidth < _canvasWidth ? width + precalc.strokeWidth : _canvasWidth;
uint16 offset = i * precalc.size + precalc.size / 2;
uint16 y1 = offset;
uint16 y2 = offset;
if (precalc.isRekt) {
bool rektPositive = width % 2 == 0;
y1 = rektPositive ? offset + precalc.r : (offset > precalc.r ? offset - precalc.r : 0);
y2 = rektPositive ? (offset > precalc.r ? offset - precalc.r : 0) : offset + precalc.r;
}
return RowValues(
width,
_uintToString(width),
l1x2,
l2x1,
_uintToString(l1x2),
_uintToString(l2x1),
offset,
_uintToString(offset),
y1,
y2,
_uintToString(y1),
_uintToString(y2)
);
}
function _pay(uint256 amount) internal {
if (msg.value > 0) {
uint256 refund = msg.value - amount;
if (refund > 0) {
payable(msg.sender).transfer(refund);
}
payable(owner()).transfer(amount);
}
}
function _beforeTokenTransfer(address from, address to, uint256 tokenId)
internal
override(ERC721, ERC721Enumerable)
{
super._beforeTokenTransfer(from, to, tokenId);
}
function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
super._burn(tokenId);
address minter = _tokenToMinter[uint16(tokenId)];
delete _tokenToMinter[uint16(tokenId)];
delete _minterToToken[minter];
}
function userConfig() external view returns(uint16, uint16[] memory) {
uint16[] memory _owned;
uint256 ownerCount = ERC721.balanceOf(msg.sender);
if (ownerCount > 0) {
_owned = new uint16[](ownerCount);
for (uint i=0;i<ownerCount;i++) {
_owned[i] = uint16(tokenOfOwnerByIndex(msg.sender, i));
}
}
return (_minterToToken[msg.sender], _owned);
}
function supportsInterface(bytes4 interfaceId)
public
view
override(ERC721, ERC721Enumerable)
returns (bool)
{
return super.supportsInterface(interfaceId);
}
function _uintToString(uint256 v) internal pure returns(string memory) {
uint maxlength = 100;
bytes memory reversed = new bytes(maxlength);
uint i = 0;
if (v == 0) {
return "0";
}
while (v != 0) {
uint remainder = v % 10;
v = v / 10;
reversed[i++] = bytes1(uint8(48 + remainder));
}
bytes memory s = new bytes(i);
for (uint j = 0; j < i; j++) {
s[j] = reversed[i - j - 1];
}
return string(s);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
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
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
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC721.sol";
/**
* @dev ERC721 token with storage based token URI management.
*/
abstract contract ERC721URIStorage is ERC721 {
using Strings for uint256;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
string memory base = _baseURI();
// If there is no base URI, return the token URI.
if (bytes(base).length == 0) {
return _tokenURI;
}
// If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
if (bytes(_tokenURI).length > 0) {
return string(abi.encodePacked(base, _tokenURI));
}
return super.tokenURI(tokenId);
}
/**
* @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
/**
* @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 override {
super._burn(tokenId);
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "./IERC721Enumerable.sol";
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "../../../utils/Context.sol";
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenId` or be an approved operator.
*/
function burn(uint256 tokenId) public virtual {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
_burn(tokenId);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
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 {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "istanbul",
"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialConfig","outputs":[{"internalType":"uint256[3]","name":"","type":"uint256[3]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"maxSupply","type":"uint16"}],"name":"updateMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"priceWei","type":"uint256"}],"name":"updateMintPriceWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userConfig","outputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252600b81526a119a5b99d95c9c1c9a5b9d60aa1b602080830191825283518085019094526008845267119391d49414939560c21b908401528151919291620000659160009162000763565b5080516200007b90600190602084019062000763565b50505062000098620000926200070d60201b60201c565b62000711565b600b8054600160aa1b61ffff60a01b19909116179055669536c708910000600c556010805460ff191660141761ff001916610a001762ff00001916620800001763ff000000191663050000001760ff60201b191664040000000017905560ff60116000015561ffff601255620fffff60135563ffffffff60145564ffffffffff601555604080518082018252602181528151808301909252600482526327b832b760e11b6020808401918252820183905281516016805460ff191660ff9092169190911781559251919291620001719160179162000763565b5050604080518082018252602d8152815180830190925260078252662932b3bab630b960c91b6020808401918252820183905281516018805460ff191660ff9092169190911781559251919350620001cd916019919062000763565b5050604080518082018252603c81528151808301909252600782526610dbdb5c1858dd60ca1b602080840191825282018390528151601a805460ff191660ff90921691909117815592519193506200022991601b919062000763565b50506040805160e081018252600660a082018181526506630663065360d41b60c08401528252825180840184528181526519191818191960d11b60208083019190915280840191909152835180850185529182526506464303030360d41b828201528284019190915282518084018452600481526314d85b9960e21b81830152606083015282518084019093526003835262496e6b60e81b83820152608082019290925280518051919350601c92620002e89284929091019062000763565b50602082810151805162000303926001850192019062000763565b50604082015180516200032191600284019160209091019062000763565b50606082015180516200033f91600384019160209091019062000763565b50608082015180516200035d91600484019160209091019062000763565b50506040805160e081018252600660a082018181526519191818191960d11b60c08401528252825180840184528181526506630663065360d41b60208083019190915280840191909152835180850185529182526506464303030360d41b8282015282840191909152825180840184526003815262496e6b60e81b8183015260608301528251808401909352600483526314d85b9960e21b838201526080820192909252805180519193506021926200041c9284929091019062000763565b50602082810151805162000437926001850192019062000763565b50604082015180516200045591600284019160209091019062000763565b50606082015180516200047391600384019160209091019062000763565b50608082015180516200049191600484019160209091019062000763565b50506040805160e081018252600660a082018181526506630663065360d41b60c08401528252825180840184528181526532613261326160d01b60208083019190915280840191909152835180850185529182526566663636303760d01b828201528284019190915282518084018452600481526314d85b9960e21b81830152606083015282518084019093526008835267477261706869746560c01b83820152608082019290925280518051919350602692620005559284929091019062000763565b50602082810151805162000570926001850192019062000763565b50604082015180516200058e91600284019160209091019062000763565b5060608201518051620005ac91600384019160209091019062000763565b5060808201518051620005ca91600484019160209091019062000763565b50506040805160e081018252600660a082018181526532613261326160d01b60c08401528252825180840184528181526506630663065360d41b60208083019190915280840191909152835180850185529182526566663636303760d01b8282015282840191909152825180840184526008815267477261706869746560c01b8183015260608301528251808401909352600483526314d85b9960e21b83820152608082019290925280518051919350602b926200068e9284929091019062000763565b506020828101518051620006a9926001850192019062000763565b5060408201518051620006c791600284019160209091019062000763565b5060608201518051620006e591600384019160209091019062000763565b50608082015180516200070391600484019160209091019062000763565b5090505062000846565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620007719062000809565b90600052602060002090601f016020900481019282620007955760008555620007e0565b82601f10620007b057805160ff1916838001178555620007e0565b82800160010185558215620007e0579182015b82811115620007e0578251825591602001919060010190620007c3565b50620007ee929150620007f2565b5090565b5b80821115620007ee5760008155600101620007f3565b6002810460018216806200081e57607f821691505b602082108114156200084057634e487b7160e01b600052602260045260246000fd5b50919050565b613d7d80620008566000396000f3fe6080604052600436106101815760003560e01c80634f6ccce7116100d157806395d89b411161008a578063c5ff514a11610064578063c5ff514a1461043b578063c87b56dd1461045b578063e985e9c51461047b578063f2fde38b1461049b57610181565b806395d89b41146103e6578063a22cb465146103fb578063b88d4fde1461041b57610181565b80634f6ccce7146103395780636352211e1461035957806370a0823114610379578063715018a61461039957806378d07685146103ae5780638da5cb5b146103d157610181565b806318160ddd1161013e5780632f745c59116101185780632f745c59146102b9578063303ab0c6146102d957806342842e0e146102f957806342966c681461031957610181565b806318160ddd146102575780631e83409a1461027957806323b872dd1461029957610181565b806301ffc9a71461018657806304d94317146101bc57806306fdde03146101de578063081812fc14610200578063095ea7b31461022d5780631249c58b1461024f575b600080fd5b34801561019257600080fd5b506101a66101a1366004612993565b6104bb565b6040516101b391906133ab565b60405180910390f35b3480156101c857600080fd5b506101d16104ce565b6040516101b3919061337a565b3480156101ea57600080fd5b506101f3610508565b6040516101b391906133b6565b34801561020c57600080fd5b5061022061021b3660046129ed565b61059a565b6040516101b39190613329565b34801561023957600080fd5b5061024d61024836600461296a565b6105e6565b005b61024d61067e565b34801561026357600080fd5b5061026c6106b6565b6040516101b39190613a66565b34801561028557600080fd5b5061024d6102943660046127d6565b6106bc565b3480156102a557600080fd5b5061024d6102b4366004612829565b610707565b3480156102c557600080fd5b5061026c6102d436600461296a565b61073f565b3480156102e557600080fd5b5061024d6102f43660046129ed565b610791565b34801561030557600080fd5b5061024d610314366004612829565b6107d5565b34801561032557600080fd5b5061024d6103343660046129ed565b6107f0565b34801561034557600080fd5b5061026c6103543660046129ed565b610820565b34801561036557600080fd5b506102206103743660046129ed565b61087b565b34801561038557600080fd5b5061026c6103943660046127d6565b6108b0565b3480156103a557600080fd5b5061024d6108f4565b3480156103ba57600080fd5b506103c361093d565b6040516101b3929190613a11565b3480156103dd57600080fd5b50610220610a21565b3480156103f257600080fd5b506101f3610a30565b34801561040757600080fd5b5061024d610416366004612930565b610a3f565b34801561042757600080fd5b5061024d610436366004612864565b610b0d565b34801561044757600080fd5b5061024d6104563660046129cb565b610b4c565b34801561046757600080fd5b506101f36104763660046129ed565b610c08565b34801561048757600080fd5b506101a66104963660046127f7565b611204565b3480156104a757600080fd5b5061024d6104b63660046127d6565b611232565b60006104c6826112a0565b90505b919050565b6104d66126a6565b6104de6126a6565b600b54600160a01b900461ffff1681526104f66106b6565b6020820152600c546040820152919050565b60606000805461051790613bf8565b80601f016020809104026020016040519081016040528092919081815260200182805461054390613bf8565b80156105905780601f1061056557610100808354040283529160200191610590565b820191906000526020600020905b81548152906001019060200180831161057357829003601f168201915b5050505050905090565b60006105a5826112c5565b6105ca5760405162461bcd60e51b81526004016105c19061374c565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105f18261087b565b9050806001600160a01b0316836001600160a01b031614156106255760405162461bcd60e51b81526004016105c19061384d565b806001600160a01b03166106376112e2565b6001600160a01b031614806106535750610653816104966112e2565b61066f5760405162461bcd60e51b81526004016105c190613627565b61067983836112e6565b505050565b600c543410156106a05760405162461bcd60e51b81526004016105c19061388e565b6106a933611354565b6106b4600c54611428565b565b60085490565b6106c46112e2565b6001600160a01b03166106d5610a21565b6001600160a01b0316146106fb5760405162461bcd60e51b81526004016105c190613798565b61070481611354565b50565b6107186107126112e2565b826114b1565b6107345760405162461bcd60e51b81526004016105c1906138c5565b610679838383611536565b600061074a836108b0565b82106107685760405162461bcd60e51b81526004016105c1906133c9565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6107996112e2565b6001600160a01b03166107aa610a21565b6001600160a01b0316146107d05760405162461bcd60e51b81526004016105c190613798565b600c55565b61067983838360405180602001604052806000815250610b0d565b6107fb6107126112e2565b6108175760405162461bcd60e51b81526004016105c190613992565b61070481611663565b600061082a6106b6565b82106108485760405162461bcd60e51b81526004016105c190613946565b6008828154811061086957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104c65760405162461bcd60e51b81526004016105c1906136ce565b60006001600160a01b0382166108d85760405162461bcd60e51b81526004016105c190613684565b506001600160a01b031660009081526003602052604090205490565b6108fc6112e2565b6001600160a01b031661090d610a21565b6001600160a01b0316146109335760405162461bcd60e51b81526004016105c190613798565b6106b460006116ae565b6000606080600061094d336108b0565b90508015610a04578067ffffffffffffffff81111561097c57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156109a5578160200160208202803683370190505b50915060005b81811015610a02576109bd338261073f565b8382815181106109dd57634e487b7160e01b600052603260045260246000fd5b61ffff90921660209283029190910190910152806109fa81613c33565b9150506109ab565b505b50336000908152600f602052604090205461ffff16925090509091565b600b546001600160a01b031690565b60606001805461051790613bf8565b610a476112e2565b6001600160a01b0316826001600160a01b03161415610a785760405162461bcd60e51b81526004016105c19061356d565b8060056000610a856112e2565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ac96112e2565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610b0191906133ab565b60405180910390a35050565b610b1e610b186112e2565b836114b1565b610b3a5760405162461bcd60e51b81526004016105c1906138c5565b610b4684848484611700565b50505050565b610b546112e2565b6001600160a01b0316610b65610a21565b6001600160a01b031614610b8b5760405162461bcd60e51b81526004016105c190613798565b610b936106b6565b8161ffff161015610bb65760405162461bcd60e51b81526004016105c1906134e3565b600b5461ffff600160a01b909104811690821610610be65760405162461bcd60e51b81526004016105c1906139e2565b600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6060610c13826112c5565b610c2f5760405162461bcd60e51b81526004016105c190613916565b61ffff82166000908152600e60205260408120546001600160a01b031690610c58600583613c6e565b9050600060108260058110610c7d57634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a90041690506000610ca382610438613ac9565b905060006016610cb4600387613c6e565b60038110610cd257634e487b7160e01b600052603260045260246000fd5b6040805180820190915260029190910291909101805460ff168252600181018054602084019190610d0290613bf8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2e90613bf8565b8015610d7b5780601f10610d5057610100808354040283529160200191610d7b565b820191906000526020600020905b815481529060010190602001808311610d5e57829003601f168201915b505050505081525050905060006064826000015160ff1684610d9d9190613b20565b610da79190613ac9565b90506000604051806101a00160405280888152602001601c60048a610dcc9190613c6e565b60048110610dea57634e487b7160e01b600052603260045260246000fd5b600502016040518060a0016040529081600082018054610e0990613bf8565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3590613bf8565b8015610e825780601f10610e5757610100808354040283529160200191610e82565b820191906000526020600020905b815481529060010190602001808311610e6557829003601f168201915b50505050508152602001600182018054610e9b90613bf8565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec790613bf8565b8015610f145780601f10610ee957610100808354040283529160200191610f14565b820191906000526020600020905b815481529060010190602001808311610ef757829003601f168201915b50505050508152602001600282018054610f2d90613bf8565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5990613bf8565b8015610fa65780601f10610f7b57610100808354040283529160200191610fa6565b820191906000526020600020905b815481529060010190602001808311610f8957829003601f168201915b50505050508152602001600382018054610fbf90613bf8565b80601f0160208091040260200160405190810160405280929190818152602001828054610feb90613bf8565b80156110385780601f1061100d57610100808354040283529160200191611038565b820191906000526020600020905b81548152906001019060200180831161101b57829003601f168201915b5050505050815260200160048201805461105190613bf8565b80601f016020809104026020016040519081016040528092919081815260200182805461107d90613bf8565b80156110ca5780601f1061109f576101008083540402835291602001916110ca565b820191906000526020600020905b8154815290600101906020018083116110ad57829003601f168201915b50505050508152505081526020018481526020018660ff1681526020016011886005811061110857634e487b7160e01b600052603260045260246000fd5b01548152602001600661111c60138b613c6e565b108152602001600361112f600d8b613c6e565b1081526020016111408760a0613afe565b60ff16815261ffff808716602083015284166040820152606001611165600285613ac9565b61ffff16815260200161117b8461ffff16611733565b815260200161119761118e600586613b92565b61ffff16611733565b9052905060006111a6826118f1565b905060006111b88383600001516119d7565b905060006111c58c611733565b90508081838560200151846040516020016111e4959493929190612f1b565b6040516020818303038152906040529a5050505050505050505050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61123a6112e2565b6001600160a01b031661124b610a21565b6001600160a01b0316146112715760405162461bcd60e51b81526004016105c190613798565b6001600160a01b0381166112975760405162461bcd60e51b81526004016105c190613466565b610704816116ae565b60006001600160e01b0319821663780e9d6360e01b14806104c657506104c682611afc565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061131b8261087b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03811661137a5760405162461bcd60e51b81526004016105c1906135a4565b600b54600160a01b900461ffff16611392600d611b3c565b61139d906001613a8c565b11156113bb5760405162461bcd60e51b81526004016105c190613816565b6113c5600d611b40565b60006113d1600d611b3c565b90506113dd8282611b49565b61ffff166000818152600e6020908152604080832080546001600160a01b039096166001600160a01b031990961686179055938252600f905291909120805461ffff19169091179055565b341561070457600061143a8234613bb5565b9050801561147157604051339082156108fc029083906000818181858888f1935050505015801561146f573d6000803e3d6000fd5b505b611479610a21565b6001600160a01b03166108fc839081150290604051600060405180830381858888f19350505050158015610679573d6000803e3d6000fd5b60006114bc826112c5565b6114d85760405162461bcd60e51b81526004016105c1906135db565b60006114e38361087b565b9050806001600160a01b0316846001600160a01b0316148061151e5750836001600160a01b03166115138461059a565b6001600160a01b0316145b8061152e575061152e8185611204565b949350505050565b826001600160a01b03166115498261087b565b6001600160a01b03161461156f5760405162461bcd60e51b81526004016105c1906137cd565b6001600160a01b0382166115955760405162461bcd60e51b81526004016105c190613529565b6115a0838383611b67565b6115ab6000826112e6565b6001600160a01b03831660009081526003602052604081208054600192906115d4908490613bb5565b90915550506001600160a01b0382166000908152600360205260408120805460019290611602908490613a8c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61166c81611b72565b61ffff166000908152600e6020908152604080832080546001600160a01b031981169091556001600160a01b03168352600f9091529020805461ffff19169055565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61170b848484611536565b61171784848484611bb2565b610b465760405162461bcd60e51b81526004016105c190613414565b60408051606480825260a08201909252606091906000908260208201818036833701905050905060008461178557604051806040016040528060018152602001600360fc1b81525093505050506104c9565b84156117fd576000611798600a87613c6e565b90506117a5600a87613aea565b95506117b2816030613a8c565b60f81b83836117c081613c33565b9450815181106117e057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050611785565b60008167ffffffffffffffff81111561182657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611850576020820181803683370190505b50905060005b828110156118e75783600161186b8386613bb5565b6118759190613bb5565b8151811061189357634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8282815181106118be57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806118df81613c33565b915050611856565b5095945050505050565b6118f96126c4565b60006040518060200160405280600081525090506000806119238560200151866101400151611ccd565b905060005b856060015160ff168160ff1610156119ba5760008660e001518261194c9190613b69565b60ff169050600061196c8860800151838a60000151901c16848a87611d62565b805190915061197b9086613aa4565b9450858160200151604051602001611994929190612b56565b6040516020818303038152906040529550505080806119b290613c4e565b915050611928565b506119ce8286602001516000015185611f9d565b95945050505050565b606060008360200151608001518460200151606001516040516020016119fe929190612e34565b604051602081830303815290604052905080846040015160200151611a29866060015160ff16611733565b8660a00151611a55576040518060400160405280600581526020016414dbdb1a5960da1b815250611a77565b6040518060400160405280600881526020016713dd5d1b1a5b995960c21b8152505b8760c00151611aa55760405180604001604052806007815260200166556e69666f726d60c81b815250611ac3565b6040518060400160405280600481526020016314995add60e21b8152505b611acf8860ff16611733565b604051602001611ae496959493929190612d12565b60405160208183030381529060405291505092915050565b60006001600160e01b031982166380ac58cd60e01b1480611b2d57506001600160e01b03198216635b5e139f60e01b145b806104c657506104c682612026565b5490565b80546001019055565b611b6382826040518060200160405280600081525061203f565b5050565b610679838383612072565b611b7b816120fb565b6000818152600a602052604090208054611b9490613bf8565b159050610704576000818152600a60205260408120610704916126dc565b6000611bc6846001600160a01b03166121a2565b15611cc257836001600160a01b031663150b7a02611be26112e2565b8786866040518563ffffffff1660e01b8152600401611c04949392919061333d565b602060405180830381600087803b158015611c1e57600080fd5b505af1925050508015611c4e575060408051601f3d908101601f19168201909252611c4b918101906129af565b60015b611ca8573d808015611c7c576040519150601f19603f3d011682016040523d82523d6000602084013e611c81565b606091505b508051611ca05760405162461bcd60e51b81526004016105c190613414565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061152e565b506001949350505050565b611cd5612718565b6040518060600160405280604051602001611cef90612ee2565b6040516020818303038152906040528152602001604051602001611d12906132ed565b6040516020818303038152906040528152602001611d338461ffff16611733565b8560400151604051602001611d4992919061326f565b60408051601f1981840301815291905290529392505050565b611d6a6126c4565b6000611d778686866121a8565b6040805160208082018352600080835283518083018552818152845180840186528281528551808501875283815286519485018752838552958701519697509195939490939192909115611e09576020808b0151810151610160808d01516101408b015160808c0151928c01518e51604051611df797949593940161305f565b60405160208183030381529060405294505b60608701516107801115611e5d576020808b0151810151610160808d015160a08b01516101408c0151928c01518e860151604051611e4b979495939401613149565b60405160208183030381529060405293505b611e68601f8d613c6e565b611eac57611e77866001613aa4565b955086602001518760e001518a60400151604051602001611e9a939291906131fb565b60405160208183030381529060405290505b8960a0015115611f4e57604087015115611eff576020808b0151516101808c01516101408a015160808b01516101608c01518e51604051611eed970161305f565b60405160208183030381529060405292505b60608701516107801115611f4e576020808b0151516101808c015160a08a01516101408b01516101608c01518e860151604051611f3c9701613149565b60405160208183030381529060405291505b60405180604001604052808760ff1681526020018686848787604051602001611f7b959493929190612b85565b60408051601f1981840301815291905290529c9b505050505050505050505050565b611fa56126c4565b60405180604001604052808560ff1681526020016040518060a00160405280606d8152602001613cdb606d91398586866040518060400160405280600a8152602001691e17b39f1e17b9bb339f60b11b81525060405160200161200c959493929190612bf0565b60408051601f198184030181529190529052949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b61204983836123c9565b6120566000848484611bb2565b6106795760405162461bcd60e51b81526004016105c190613414565b61207d838383610679565b6001600160a01b03831661209957612094816124a8565b6120bc565b816001600160a01b0316836001600160a01b0316146120bc576120bc83826124ec565b6001600160a01b0382166120d8576120d381612589565b610679565b826001600160a01b0316826001600160a01b031614610679576106798282612662565b60006121068261087b565b905061211481600084611b67565b61211f6000836112e6565b6001600160a01b0381166000908152600360205260408120805460019290612148908490613bb5565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b3b151590565b6121b0612739565b60808201516000906121c486610780613b4a565b6121ce9190613aea565b9050600083610120015161ffff1682116121e95760006121fd565b6101208401516121fd9061ffff1683613bb5565b9050600061078061ffff1685610120015161ffff168461221d9190613a8c565b1061222a5761078061223e565b61012085015161223e9061ffff1684613a8c565b9050600060028661010001516122549190613ac9565b6101008701516122679060ff8a16613b20565b6122719190613a6f565b60c0870151909150819081901561232257600061228f600288613c6e565b159050806122c75788610140015161ffff168461ffff16116122b25760006122c2565b6101408901516122c29085613b92565b6122d7565b6101408901516122d79085613a6f565b9250806122f3576101408901516122ee9085613a6f565b61231e565b88610140015161ffff168461ffff161161230e57600061231e565b61014089015161231e9085613b92565b9150505b60405180610180016040528087815260200161233d88611733565b815260200186815260200185815260200161235787611733565b815260200161236586611733565b81526020018461ffff1681526020016123818561ffff16611733565b81526020018361ffff1681526020018261ffff1681526020016123a78461ffff16611733565b81526020016123b98361ffff16611733565b90529a9950505050505050505050565b6001600160a01b0382166123ef5760405162461bcd60e51b81526004016105c190613717565b6123f8816112c5565b156124155760405162461bcd60e51b81526004016105c1906134ac565b61242160008383611b67565b6001600160a01b038216600090815260036020526040812080546001929061244a908490613a8c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b600060016124f9846108b0565b6125039190613bb5565b600083815260076020526040902054909150808214612556576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061259b90600190613bb5565b600083815260096020526040812054600880549394509092849081106125d157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061260057634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061264657634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061266d836108b0565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180606001604052806003906020820280368337509192915050565b60408051808201909152600081526060602082015290565b5080546126e890613bf8565b6000825580601f106126fa5750610704565b601f01602090049060005260206000209081019061070491906127a6565b60405180606001604052806060815260200160608152602001606081525090565b604051806101800160405280600081526020016060815260200160008152602001600081526020016060815260200160608152602001600061ffff16815260200160608152602001600061ffff168152602001600061ffff16815260200160608152602001606081525090565b5b808211156127bb57600081556001016127a7565b5090565b80356001600160a01b03811681146104c957600080fd5b6000602082840312156127e7578081fd5b6127f0826127bf565b9392505050565b60008060408385031215612809578081fd5b612812836127bf565b9150612820602084016127bf565b90509250929050565b60008060006060848603121561283d578081fd5b612846846127bf565b9250612854602085016127bf565b9150604084013590509250925092565b60008060008060808587031215612879578081fd5b612882856127bf565b935060206128918187016127bf565b935060408601359250606086013567ffffffffffffffff808211156128b4578384fd5b818801915088601f8301126128c7578384fd5b8135818111156128d9576128d9613cae565b604051601f8201601f19168101850183811182821017156128fc576128fc613cae565b60405281815283820185018b1015612912578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612942578182fd5b61294b836127bf565b91506020830135801515811461295f578182fd5b809150509250929050565b6000806040838503121561297c578182fd5b612985836127bf565b946020939093013593505050565b6000602082840312156129a4578081fd5b81356127f081613cc4565b6000602082840312156129c0578081fd5b81516127f081613cc4565b6000602082840312156129dc578081fd5b813561ffff811681146127f0578182fd5b6000602082840312156129fe578081fd5b5035919050565b60008151808452612a1d816020860160208601613bcc565b601f01601f19169290920160200192915050565b60008151612a43818560208601613bcc565b9290920192915050565b7f222c202265787465726e616c5f75726c223a202268747470733a2f2f6f62736f81527f6c6574652e64657369676e2f6172742f636f6c6c656374696f6e2f66696e676560208201526e727072696e742f67616c6c6572792f60881b6040820152604f0190565b7f227d2c7b2274726169745f74797065223a202244726f706c657473222c20227681526730b63ab2911d101160c11b602082015260280190565b61227d60f01b815260020190565b7f227d2c7b2274726169745f74797065223a2022446973746f7274696f6e222c20815269113b30b63ab2911d101160b11b6020820152602a0190565b712e96101134b6b0b3b2afb230ba30911d101160711b815260120190565b60008351612b68818460208801613bcc565b835190830190612b7c818360208801613bcc565b01949350505050565b60008651612b97818460208b01613bcc565b865190830190612bab818360208b01613bcc565b8651910190612bbe818360208a01613bcc565b8551910190612bd1818360208901613bcc565b8451910190612be4818360208801613bcc565b01979650505050505050565b600086516020612c038285838c01613bcc565b875191840191612c168184848c01613bcc565b7f5c2220783d5c22305c2220793d5c22305c222077696474683d5c22313932305c92018281527f22206865696768743d5c22313038305c222f3e3c2f636c6970506174683e3c72828201526d6563742066696c6c3d5c2225323360901b60408201528751909290612c8d81604e86018b8601613bcc565b604e9301928301527f22206865696768743d5c22313038305c222f3e3c6720636c69702d706174683d606e830152732e113ab93614129919b1b634b820b63614ae111f60611b608e8301528551612cea8160a28501848a01613bcc565b8551920191612cff8160a28501848901613bcc565b9190910160a20198975050505050505050565b60008751612d24818460208c01613bcc565b80830190507f2c7b2274726169745f74797065223a202244656e73697479222c202276616c7581526432911d101160d91b8060208301528851612d6e816025850160208d01613bcc565b8083019250507f227d2c7b2274726169745f74797065223a20224c696e6573222c202276616c7560258301528060458301528751612db381604a850160208c01613bcc565b7f227d2c7b2274726169745f74797065223a20225374796c65222c202276616c75604a9390910192830152606a8201528551612df681606f840160208a01613bcc565b612e26612e21612e1b612e16612e10606f86880101612afc565b8a612a31565b612ab4565b87612a31565b612aee565b9a9950505050505050505050565b60007f7b2274726169745f74797065223a2022436f6c6f72222c202276616c7565223a825261101160f11b60208301528351612e77816022850160208801613bcc565b7f227d2c7b2274726169745f74797065223a20224261636b67726f756e64222c2060229184019182015269113b30b63ab2911d101160b11b60428201528351612ec781604c840160208801613bcc565b61227d60f01b604c9290910191820152604e01949350505050565b7f5c222078313d5c22305c22207374726f6b652d6c696e656361703d5c22726f7581526637322e1110179f60c91b602082015260270190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226964228252621d101160e91b60208301528651612f5f816023850160208b01613bcc565b7f222c20226e616d65223a202246696e6765727072696e742023000000000000006023918401918201528651612f9c81603c840160208b01613bcc565b7f222c20226465736372697074696f6e223a2022416273747261637420696e7465603c92909101918201527f72707265746174696f6e206f6620746865206d696e74696e6720616464726573605c8201527f7320617320612066696e6765727072696e74222c202261747472696275746573607c82015263223a205b60e01b609c82015285516130338160a0840160208a01613bcc565b613052612e21612e1b61304d612e1060a086880101612b38565b612a4d565b9998505050505050505050565b713c6c696e65207374726f6b653d5c2225323360701b8152865160009061308d816012850160208c01613bcc565b712e111039ba3937b5b296bbb4b23a341eae1160711b60129184019182015287516130bf816024840160208c01613bcc565b672e11103c989eae1160c11b6024929091019182015286516130e881602c840160208b01613bcc565b672e11103c191eae1160c11b602c92909101918201528551613111816034840160208a01613bcc565b672e11103c991eae1160c11b60349290910191820152845161313a81603c840160208901613bcc565b612e26603c8284010186612a31565b713c6c696e65207374726f6b653d5c2225323360701b81528651600090613177816012850160208c01613bcc565b712e111039ba3937b5b296bbb4b23a341eae1160711b60129184019182015287516131a9816024840160208c01613bcc565b672e11103c189eae1160c11b6024929091019182015286516131d281602c840160208b01613bcc565b672e11103c989eae1160c11b602c92909101918201528551613111816034840160208a01613bcc565b6c1e31b4b931b6329031bc1eae1160991b8152835160009061322481600d850160208901613bcc565b672e111031bc9eae1160c11b600d91840191820152845161324c816015840160208901613bcc565b8451910190613262816015840160208801613bcc565b0160150195945050505050565b662e1110391eae1160c91b81528251600090613292816007850160208801613bcc565b6c5c222066696c6c3d5c2225323360981b60079184019182015283516132bf816014840160208801613bcc565b742e111039ba3937b5b29eae113737b732ae1110179f60591b60149290910191820152602901949350505050565b7f5c222078323d5c22313932305c22207374726f6b652d6c696e656361703d5c228152693937bab7322e1110179f60b11b6020820152602a0190565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061337090830184612a05565b9695505050505050565b60608101818360005b60038110156133a2578151835260209283019290910190600101613383565b50505092915050565b901515815260200190565b6000602082526127f06020830184612a05565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526026908201527f43616e27742072656475636520737570706c792062656c6f7720746f74616c20604082015265737570706c7960d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601b908201527f43616e2774206d696e7420666f72207a65726f20616464726573730000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526017908201527f436f6c6c656374696f6e2066756c6c79206d696e746564000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601f908201527f4d7573742073656e64206174206c65617374206d696e74507269636557656900604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601690820152754552433732313a206d697373696e6720746f6b656e2160501b604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b60208082526015908201527443616e277420696e63726561736520737570706c7960581b604082015260600190565b60006040820161ffff808616845260206040818601528286518085526060870191508288019450855b81811015613a58578551851683529483019491830191600101613a3a565b509098975050505050505050565b90815260200190565b600061ffff808316818516808303821115612b7c57612b7c613c82565b60008219821115613a9f57613a9f613c82565b500190565b600060ff821660ff84168060ff03821115613ac157613ac1613c82565b019392505050565b600061ffff80841680613ade57613ade613c98565b92169190910492915050565b600082613af957613af9613c98565b500490565b600060ff831680613b1157613b11613c98565b8060ff84160491505092915050565b600061ffff80831681851681830481118215151615613b4157613b41613c82565b02949350505050565b6000816000190483118215151615613b6457613b64613c82565b500290565b600060ff821660ff84168160ff0481118215151615613b8a57613b8a613c82565b029392505050565b600061ffff83811690831681811015613bad57613bad613c82565b039392505050565b600082821015613bc757613bc7613c82565b500390565b60005b83811015613be7578181015183820152602001613bcf565b83811115610b465750506000910152565b600281046001821680613c0c57607f821691505b60208210811415613c2d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613c4757613c47613c82565b5060010190565b600060ff821660ff811415613c6557613c65613c82565b60010192915050565b600082613c7d57613c7d613c98565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461070457600080fdfe3c7376672076696577426f783d5c22302030203139323020313038305c2220786d6c6e733d5c22687474703a2f2f7777772e77332e6f72672f323030302f7376675c223e3c636c6970506174682069643d5c22636c6970416c6c5c223e3c726563742066696c6c3d5c22253233a264697066735822122055af6f16a2610bf57bdedb458f8b754907451adfba2df6b3ed00fb7fd4fdd1cb64736f6c63430008000033
Deployed Bytecode
0x6080604052600436106101815760003560e01c80634f6ccce7116100d157806395d89b411161008a578063c5ff514a11610064578063c5ff514a1461043b578063c87b56dd1461045b578063e985e9c51461047b578063f2fde38b1461049b57610181565b806395d89b41146103e6578063a22cb465146103fb578063b88d4fde1461041b57610181565b80634f6ccce7146103395780636352211e1461035957806370a0823114610379578063715018a61461039957806378d07685146103ae5780638da5cb5b146103d157610181565b806318160ddd1161013e5780632f745c59116101185780632f745c59146102b9578063303ab0c6146102d957806342842e0e146102f957806342966c681461031957610181565b806318160ddd146102575780631e83409a1461027957806323b872dd1461029957610181565b806301ffc9a71461018657806304d94317146101bc57806306fdde03146101de578063081812fc14610200578063095ea7b31461022d5780631249c58b1461024f575b600080fd5b34801561019257600080fd5b506101a66101a1366004612993565b6104bb565b6040516101b391906133ab565b60405180910390f35b3480156101c857600080fd5b506101d16104ce565b6040516101b3919061337a565b3480156101ea57600080fd5b506101f3610508565b6040516101b391906133b6565b34801561020c57600080fd5b5061022061021b3660046129ed565b61059a565b6040516101b39190613329565b34801561023957600080fd5b5061024d61024836600461296a565b6105e6565b005b61024d61067e565b34801561026357600080fd5b5061026c6106b6565b6040516101b39190613a66565b34801561028557600080fd5b5061024d6102943660046127d6565b6106bc565b3480156102a557600080fd5b5061024d6102b4366004612829565b610707565b3480156102c557600080fd5b5061026c6102d436600461296a565b61073f565b3480156102e557600080fd5b5061024d6102f43660046129ed565b610791565b34801561030557600080fd5b5061024d610314366004612829565b6107d5565b34801561032557600080fd5b5061024d6103343660046129ed565b6107f0565b34801561034557600080fd5b5061026c6103543660046129ed565b610820565b34801561036557600080fd5b506102206103743660046129ed565b61087b565b34801561038557600080fd5b5061026c6103943660046127d6565b6108b0565b3480156103a557600080fd5b5061024d6108f4565b3480156103ba57600080fd5b506103c361093d565b6040516101b3929190613a11565b3480156103dd57600080fd5b50610220610a21565b3480156103f257600080fd5b506101f3610a30565b34801561040757600080fd5b5061024d610416366004612930565b610a3f565b34801561042757600080fd5b5061024d610436366004612864565b610b0d565b34801561044757600080fd5b5061024d6104563660046129cb565b610b4c565b34801561046757600080fd5b506101f36104763660046129ed565b610c08565b34801561048757600080fd5b506101a66104963660046127f7565b611204565b3480156104a757600080fd5b5061024d6104b63660046127d6565b611232565b60006104c6826112a0565b90505b919050565b6104d66126a6565b6104de6126a6565b600b54600160a01b900461ffff1681526104f66106b6565b6020820152600c546040820152919050565b60606000805461051790613bf8565b80601f016020809104026020016040519081016040528092919081815260200182805461054390613bf8565b80156105905780601f1061056557610100808354040283529160200191610590565b820191906000526020600020905b81548152906001019060200180831161057357829003601f168201915b5050505050905090565b60006105a5826112c5565b6105ca5760405162461bcd60e51b81526004016105c19061374c565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105f18261087b565b9050806001600160a01b0316836001600160a01b031614156106255760405162461bcd60e51b81526004016105c19061384d565b806001600160a01b03166106376112e2565b6001600160a01b031614806106535750610653816104966112e2565b61066f5760405162461bcd60e51b81526004016105c190613627565b61067983836112e6565b505050565b600c543410156106a05760405162461bcd60e51b81526004016105c19061388e565b6106a933611354565b6106b4600c54611428565b565b60085490565b6106c46112e2565b6001600160a01b03166106d5610a21565b6001600160a01b0316146106fb5760405162461bcd60e51b81526004016105c190613798565b61070481611354565b50565b6107186107126112e2565b826114b1565b6107345760405162461bcd60e51b81526004016105c1906138c5565b610679838383611536565b600061074a836108b0565b82106107685760405162461bcd60e51b81526004016105c1906133c9565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6107996112e2565b6001600160a01b03166107aa610a21565b6001600160a01b0316146107d05760405162461bcd60e51b81526004016105c190613798565b600c55565b61067983838360405180602001604052806000815250610b0d565b6107fb6107126112e2565b6108175760405162461bcd60e51b81526004016105c190613992565b61070481611663565b600061082a6106b6565b82106108485760405162461bcd60e51b81526004016105c190613946565b6008828154811061086957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104c65760405162461bcd60e51b81526004016105c1906136ce565b60006001600160a01b0382166108d85760405162461bcd60e51b81526004016105c190613684565b506001600160a01b031660009081526003602052604090205490565b6108fc6112e2565b6001600160a01b031661090d610a21565b6001600160a01b0316146109335760405162461bcd60e51b81526004016105c190613798565b6106b460006116ae565b6000606080600061094d336108b0565b90508015610a04578067ffffffffffffffff81111561097c57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156109a5578160200160208202803683370190505b50915060005b81811015610a02576109bd338261073f565b8382815181106109dd57634e487b7160e01b600052603260045260246000fd5b61ffff90921660209283029190910190910152806109fa81613c33565b9150506109ab565b505b50336000908152600f602052604090205461ffff16925090509091565b600b546001600160a01b031690565b60606001805461051790613bf8565b610a476112e2565b6001600160a01b0316826001600160a01b03161415610a785760405162461bcd60e51b81526004016105c19061356d565b8060056000610a856112e2565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ac96112e2565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610b0191906133ab565b60405180910390a35050565b610b1e610b186112e2565b836114b1565b610b3a5760405162461bcd60e51b81526004016105c1906138c5565b610b4684848484611700565b50505050565b610b546112e2565b6001600160a01b0316610b65610a21565b6001600160a01b031614610b8b5760405162461bcd60e51b81526004016105c190613798565b610b936106b6565b8161ffff161015610bb65760405162461bcd60e51b81526004016105c1906134e3565b600b5461ffff600160a01b909104811690821610610be65760405162461bcd60e51b81526004016105c1906139e2565b600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6060610c13826112c5565b610c2f5760405162461bcd60e51b81526004016105c190613916565b61ffff82166000908152600e60205260408120546001600160a01b031690610c58600583613c6e565b9050600060108260058110610c7d57634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a90041690506000610ca382610438613ac9565b905060006016610cb4600387613c6e565b60038110610cd257634e487b7160e01b600052603260045260246000fd5b6040805180820190915260029190910291909101805460ff168252600181018054602084019190610d0290613bf8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2e90613bf8565b8015610d7b5780601f10610d5057610100808354040283529160200191610d7b565b820191906000526020600020905b815481529060010190602001808311610d5e57829003601f168201915b505050505081525050905060006064826000015160ff1684610d9d9190613b20565b610da79190613ac9565b90506000604051806101a00160405280888152602001601c60048a610dcc9190613c6e565b60048110610dea57634e487b7160e01b600052603260045260246000fd5b600502016040518060a0016040529081600082018054610e0990613bf8565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3590613bf8565b8015610e825780601f10610e5757610100808354040283529160200191610e82565b820191906000526020600020905b815481529060010190602001808311610e6557829003601f168201915b50505050508152602001600182018054610e9b90613bf8565b80601f0160208091040260200160405190810160405280929190818152602001828054610ec790613bf8565b8015610f145780601f10610ee957610100808354040283529160200191610f14565b820191906000526020600020905b815481529060010190602001808311610ef757829003601f168201915b50505050508152602001600282018054610f2d90613bf8565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5990613bf8565b8015610fa65780601f10610f7b57610100808354040283529160200191610fa6565b820191906000526020600020905b815481529060010190602001808311610f8957829003601f168201915b50505050508152602001600382018054610fbf90613bf8565b80601f0160208091040260200160405190810160405280929190818152602001828054610feb90613bf8565b80156110385780601f1061100d57610100808354040283529160200191611038565b820191906000526020600020905b81548152906001019060200180831161101b57829003601f168201915b5050505050815260200160048201805461105190613bf8565b80601f016020809104026020016040519081016040528092919081815260200182805461107d90613bf8565b80156110ca5780601f1061109f576101008083540402835291602001916110ca565b820191906000526020600020905b8154815290600101906020018083116110ad57829003601f168201915b50505050508152505081526020018481526020018660ff1681526020016011886005811061110857634e487b7160e01b600052603260045260246000fd5b01548152602001600661111c60138b613c6e565b108152602001600361112f600d8b613c6e565b1081526020016111408760a0613afe565b60ff16815261ffff808716602083015284166040820152606001611165600285613ac9565b61ffff16815260200161117b8461ffff16611733565b815260200161119761118e600586613b92565b61ffff16611733565b9052905060006111a6826118f1565b905060006111b88383600001516119d7565b905060006111c58c611733565b90508081838560200151846040516020016111e4959493929190612f1b565b6040516020818303038152906040529a5050505050505050505050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61123a6112e2565b6001600160a01b031661124b610a21565b6001600160a01b0316146112715760405162461bcd60e51b81526004016105c190613798565b6001600160a01b0381166112975760405162461bcd60e51b81526004016105c190613466565b610704816116ae565b60006001600160e01b0319821663780e9d6360e01b14806104c657506104c682611afc565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061131b8261087b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03811661137a5760405162461bcd60e51b81526004016105c1906135a4565b600b54600160a01b900461ffff16611392600d611b3c565b61139d906001613a8c565b11156113bb5760405162461bcd60e51b81526004016105c190613816565b6113c5600d611b40565b60006113d1600d611b3c565b90506113dd8282611b49565b61ffff166000818152600e6020908152604080832080546001600160a01b039096166001600160a01b031990961686179055938252600f905291909120805461ffff19169091179055565b341561070457600061143a8234613bb5565b9050801561147157604051339082156108fc029083906000818181858888f1935050505015801561146f573d6000803e3d6000fd5b505b611479610a21565b6001600160a01b03166108fc839081150290604051600060405180830381858888f19350505050158015610679573d6000803e3d6000fd5b60006114bc826112c5565b6114d85760405162461bcd60e51b81526004016105c1906135db565b60006114e38361087b565b9050806001600160a01b0316846001600160a01b0316148061151e5750836001600160a01b03166115138461059a565b6001600160a01b0316145b8061152e575061152e8185611204565b949350505050565b826001600160a01b03166115498261087b565b6001600160a01b03161461156f5760405162461bcd60e51b81526004016105c1906137cd565b6001600160a01b0382166115955760405162461bcd60e51b81526004016105c190613529565b6115a0838383611b67565b6115ab6000826112e6565b6001600160a01b03831660009081526003602052604081208054600192906115d4908490613bb5565b90915550506001600160a01b0382166000908152600360205260408120805460019290611602908490613a8c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61166c81611b72565b61ffff166000908152600e6020908152604080832080546001600160a01b031981169091556001600160a01b03168352600f9091529020805461ffff19169055565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61170b848484611536565b61171784848484611bb2565b610b465760405162461bcd60e51b81526004016105c190613414565b60408051606480825260a08201909252606091906000908260208201818036833701905050905060008461178557604051806040016040528060018152602001600360fc1b81525093505050506104c9565b84156117fd576000611798600a87613c6e565b90506117a5600a87613aea565b95506117b2816030613a8c565b60f81b83836117c081613c33565b9450815181106117e057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050611785565b60008167ffffffffffffffff81111561182657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611850576020820181803683370190505b50905060005b828110156118e75783600161186b8386613bb5565b6118759190613bb5565b8151811061189357634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8282815181106118be57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806118df81613c33565b915050611856565b5095945050505050565b6118f96126c4565b60006040518060200160405280600081525090506000806119238560200151866101400151611ccd565b905060005b856060015160ff168160ff1610156119ba5760008660e001518261194c9190613b69565b60ff169050600061196c8860800151838a60000151901c16848a87611d62565b805190915061197b9086613aa4565b9450858160200151604051602001611994929190612b56565b6040516020818303038152906040529550505080806119b290613c4e565b915050611928565b506119ce8286602001516000015185611f9d565b95945050505050565b606060008360200151608001518460200151606001516040516020016119fe929190612e34565b604051602081830303815290604052905080846040015160200151611a29866060015160ff16611733565b8660a00151611a55576040518060400160405280600581526020016414dbdb1a5960da1b815250611a77565b6040518060400160405280600881526020016713dd5d1b1a5b995960c21b8152505b8760c00151611aa55760405180604001604052806007815260200166556e69666f726d60c81b815250611ac3565b6040518060400160405280600481526020016314995add60e21b8152505b611acf8860ff16611733565b604051602001611ae496959493929190612d12565b60405160208183030381529060405291505092915050565b60006001600160e01b031982166380ac58cd60e01b1480611b2d57506001600160e01b03198216635b5e139f60e01b145b806104c657506104c682612026565b5490565b80546001019055565b611b6382826040518060200160405280600081525061203f565b5050565b610679838383612072565b611b7b816120fb565b6000818152600a602052604090208054611b9490613bf8565b159050610704576000818152600a60205260408120610704916126dc565b6000611bc6846001600160a01b03166121a2565b15611cc257836001600160a01b031663150b7a02611be26112e2565b8786866040518563ffffffff1660e01b8152600401611c04949392919061333d565b602060405180830381600087803b158015611c1e57600080fd5b505af1925050508015611c4e575060408051601f3d908101601f19168201909252611c4b918101906129af565b60015b611ca8573d808015611c7c576040519150601f19603f3d011682016040523d82523d6000602084013e611c81565b606091505b508051611ca05760405162461bcd60e51b81526004016105c190613414565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061152e565b506001949350505050565b611cd5612718565b6040518060600160405280604051602001611cef90612ee2565b6040516020818303038152906040528152602001604051602001611d12906132ed565b6040516020818303038152906040528152602001611d338461ffff16611733565b8560400151604051602001611d4992919061326f565b60408051601f1981840301815291905290529392505050565b611d6a6126c4565b6000611d778686866121a8565b6040805160208082018352600080835283518083018552818152845180840186528281528551808501875283815286519485018752838552958701519697509195939490939192909115611e09576020808b0151810151610160808d01516101408b015160808c0151928c01518e51604051611df797949593940161305f565b60405160208183030381529060405294505b60608701516107801115611e5d576020808b0151810151610160808d015160a08b01516101408c0151928c01518e860151604051611e4b979495939401613149565b60405160208183030381529060405293505b611e68601f8d613c6e565b611eac57611e77866001613aa4565b955086602001518760e001518a60400151604051602001611e9a939291906131fb565b60405160208183030381529060405290505b8960a0015115611f4e57604087015115611eff576020808b0151516101808c01516101408a015160808b01516101608c01518e51604051611eed970161305f565b60405160208183030381529060405292505b60608701516107801115611f4e576020808b0151516101808c015160a08a01516101408b01516101608c01518e860151604051611f3c9701613149565b60405160208183030381529060405291505b60405180604001604052808760ff1681526020018686848787604051602001611f7b959493929190612b85565b60408051601f1981840301815291905290529c9b505050505050505050505050565b611fa56126c4565b60405180604001604052808560ff1681526020016040518060a00160405280606d8152602001613cdb606d91398586866040518060400160405280600a8152602001691e17b39f1e17b9bb339f60b11b81525060405160200161200c959493929190612bf0565b60408051601f198184030181529190529052949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b61204983836123c9565b6120566000848484611bb2565b6106795760405162461bcd60e51b81526004016105c190613414565b61207d838383610679565b6001600160a01b03831661209957612094816124a8565b6120bc565b816001600160a01b0316836001600160a01b0316146120bc576120bc83826124ec565b6001600160a01b0382166120d8576120d381612589565b610679565b826001600160a01b0316826001600160a01b031614610679576106798282612662565b60006121068261087b565b905061211481600084611b67565b61211f6000836112e6565b6001600160a01b0381166000908152600360205260408120805460019290612148908490613bb5565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b3b151590565b6121b0612739565b60808201516000906121c486610780613b4a565b6121ce9190613aea565b9050600083610120015161ffff1682116121e95760006121fd565b6101208401516121fd9061ffff1683613bb5565b9050600061078061ffff1685610120015161ffff168461221d9190613a8c565b1061222a5761078061223e565b61012085015161223e9061ffff1684613a8c565b9050600060028661010001516122549190613ac9565b6101008701516122679060ff8a16613b20565b6122719190613a6f565b60c0870151909150819081901561232257600061228f600288613c6e565b159050806122c75788610140015161ffff168461ffff16116122b25760006122c2565b6101408901516122c29085613b92565b6122d7565b6101408901516122d79085613a6f565b9250806122f3576101408901516122ee9085613a6f565b61231e565b88610140015161ffff168461ffff161161230e57600061231e565b61014089015161231e9085613b92565b9150505b60405180610180016040528087815260200161233d88611733565b815260200186815260200185815260200161235787611733565b815260200161236586611733565b81526020018461ffff1681526020016123818561ffff16611733565b81526020018361ffff1681526020018261ffff1681526020016123a78461ffff16611733565b81526020016123b98361ffff16611733565b90529a9950505050505050505050565b6001600160a01b0382166123ef5760405162461bcd60e51b81526004016105c190613717565b6123f8816112c5565b156124155760405162461bcd60e51b81526004016105c1906134ac565b61242160008383611b67565b6001600160a01b038216600090815260036020526040812080546001929061244a908490613a8c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b600060016124f9846108b0565b6125039190613bb5565b600083815260076020526040902054909150808214612556576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061259b90600190613bb5565b600083815260096020526040812054600880549394509092849081106125d157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061260057634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061264657634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061266d836108b0565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180606001604052806003906020820280368337509192915050565b60408051808201909152600081526060602082015290565b5080546126e890613bf8565b6000825580601f106126fa5750610704565b601f01602090049060005260206000209081019061070491906127a6565b60405180606001604052806060815260200160608152602001606081525090565b604051806101800160405280600081526020016060815260200160008152602001600081526020016060815260200160608152602001600061ffff16815260200160608152602001600061ffff168152602001600061ffff16815260200160608152602001606081525090565b5b808211156127bb57600081556001016127a7565b5090565b80356001600160a01b03811681146104c957600080fd5b6000602082840312156127e7578081fd5b6127f0826127bf565b9392505050565b60008060408385031215612809578081fd5b612812836127bf565b9150612820602084016127bf565b90509250929050565b60008060006060848603121561283d578081fd5b612846846127bf565b9250612854602085016127bf565b9150604084013590509250925092565b60008060008060808587031215612879578081fd5b612882856127bf565b935060206128918187016127bf565b935060408601359250606086013567ffffffffffffffff808211156128b4578384fd5b818801915088601f8301126128c7578384fd5b8135818111156128d9576128d9613cae565b604051601f8201601f19168101850183811182821017156128fc576128fc613cae565b60405281815283820185018b1015612912578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612942578182fd5b61294b836127bf565b91506020830135801515811461295f578182fd5b809150509250929050565b6000806040838503121561297c578182fd5b612985836127bf565b946020939093013593505050565b6000602082840312156129a4578081fd5b81356127f081613cc4565b6000602082840312156129c0578081fd5b81516127f081613cc4565b6000602082840312156129dc578081fd5b813561ffff811681146127f0578182fd5b6000602082840312156129fe578081fd5b5035919050565b60008151808452612a1d816020860160208601613bcc565b601f01601f19169290920160200192915050565b60008151612a43818560208601613bcc565b9290920192915050565b7f222c202265787465726e616c5f75726c223a202268747470733a2f2f6f62736f81527f6c6574652e64657369676e2f6172742f636f6c6c656374696f6e2f66696e676560208201526e727072696e742f67616c6c6572792f60881b6040820152604f0190565b7f227d2c7b2274726169745f74797065223a202244726f706c657473222c20227681526730b63ab2911d101160c11b602082015260280190565b61227d60f01b815260020190565b7f227d2c7b2274726169745f74797065223a2022446973746f7274696f6e222c20815269113b30b63ab2911d101160b11b6020820152602a0190565b712e96101134b6b0b3b2afb230ba30911d101160711b815260120190565b60008351612b68818460208801613bcc565b835190830190612b7c818360208801613bcc565b01949350505050565b60008651612b97818460208b01613bcc565b865190830190612bab818360208b01613bcc565b8651910190612bbe818360208a01613bcc565b8551910190612bd1818360208901613bcc565b8451910190612be4818360208801613bcc565b01979650505050505050565b600086516020612c038285838c01613bcc565b875191840191612c168184848c01613bcc565b7f5c2220783d5c22305c2220793d5c22305c222077696474683d5c22313932305c92018281527f22206865696768743d5c22313038305c222f3e3c2f636c6970506174683e3c72828201526d6563742066696c6c3d5c2225323360901b60408201528751909290612c8d81604e86018b8601613bcc565b604e9301928301527f22206865696768743d5c22313038305c222f3e3c6720636c69702d706174683d606e830152732e113ab93614129919b1b634b820b63614ae111f60611b608e8301528551612cea8160a28501848a01613bcc565b8551920191612cff8160a28501848901613bcc565b9190910160a20198975050505050505050565b60008751612d24818460208c01613bcc565b80830190507f2c7b2274726169745f74797065223a202244656e73697479222c202276616c7581526432911d101160d91b8060208301528851612d6e816025850160208d01613bcc565b8083019250507f227d2c7b2274726169745f74797065223a20224c696e6573222c202276616c7560258301528060458301528751612db381604a850160208c01613bcc565b7f227d2c7b2274726169745f74797065223a20225374796c65222c202276616c75604a9390910192830152606a8201528551612df681606f840160208a01613bcc565b612e26612e21612e1b612e16612e10606f86880101612afc565b8a612a31565b612ab4565b87612a31565b612aee565b9a9950505050505050505050565b60007f7b2274726169745f74797065223a2022436f6c6f72222c202276616c7565223a825261101160f11b60208301528351612e77816022850160208801613bcc565b7f227d2c7b2274726169745f74797065223a20224261636b67726f756e64222c2060229184019182015269113b30b63ab2911d101160b11b60428201528351612ec781604c840160208801613bcc565b61227d60f01b604c9290910191820152604e01949350505050565b7f5c222078313d5c22305c22207374726f6b652d6c696e656361703d5c22726f7581526637322e1110179f60c91b602082015260270190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226964228252621d101160e91b60208301528651612f5f816023850160208b01613bcc565b7f222c20226e616d65223a202246696e6765727072696e742023000000000000006023918401918201528651612f9c81603c840160208b01613bcc565b7f222c20226465736372697074696f6e223a2022416273747261637420696e7465603c92909101918201527f72707265746174696f6e206f6620746865206d696e74696e6720616464726573605c8201527f7320617320612066696e6765727072696e74222c202261747472696275746573607c82015263223a205b60e01b609c82015285516130338160a0840160208a01613bcc565b613052612e21612e1b61304d612e1060a086880101612b38565b612a4d565b9998505050505050505050565b713c6c696e65207374726f6b653d5c2225323360701b8152865160009061308d816012850160208c01613bcc565b712e111039ba3937b5b296bbb4b23a341eae1160711b60129184019182015287516130bf816024840160208c01613bcc565b672e11103c989eae1160c11b6024929091019182015286516130e881602c840160208b01613bcc565b672e11103c191eae1160c11b602c92909101918201528551613111816034840160208a01613bcc565b672e11103c991eae1160c11b60349290910191820152845161313a81603c840160208901613bcc565b612e26603c8284010186612a31565b713c6c696e65207374726f6b653d5c2225323360701b81528651600090613177816012850160208c01613bcc565b712e111039ba3937b5b296bbb4b23a341eae1160711b60129184019182015287516131a9816024840160208c01613bcc565b672e11103c189eae1160c11b6024929091019182015286516131d281602c840160208b01613bcc565b672e11103c989eae1160c11b602c92909101918201528551613111816034840160208a01613bcc565b6c1e31b4b931b6329031bc1eae1160991b8152835160009061322481600d850160208901613bcc565b672e111031bc9eae1160c11b600d91840191820152845161324c816015840160208901613bcc565b8451910190613262816015840160208801613bcc565b0160150195945050505050565b662e1110391eae1160c91b81528251600090613292816007850160208801613bcc565b6c5c222066696c6c3d5c2225323360981b60079184019182015283516132bf816014840160208801613bcc565b742e111039ba3937b5b29eae113737b732ae1110179f60591b60149290910191820152602901949350505050565b7f5c222078323d5c22313932305c22207374726f6b652d6c696e656361703d5c228152693937bab7322e1110179f60b11b6020820152602a0190565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061337090830184612a05565b9695505050505050565b60608101818360005b60038110156133a2578151835260209283019290910190600101613383565b50505092915050565b901515815260200190565b6000602082526127f06020830184612a05565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526026908201527f43616e27742072656475636520737570706c792062656c6f7720746f74616c20604082015265737570706c7960d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601b908201527f43616e2774206d696e7420666f72207a65726f20616464726573730000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526017908201527f436f6c6c656374696f6e2066756c6c79206d696e746564000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601f908201527f4d7573742073656e64206174206c65617374206d696e74507269636557656900604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601690820152754552433732313a206d697373696e6720746f6b656e2160501b604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b60208082526015908201527443616e277420696e63726561736520737570706c7960581b604082015260600190565b60006040820161ffff808616845260206040818601528286518085526060870191508288019450855b81811015613a58578551851683529483019491830191600101613a3a565b509098975050505050505050565b90815260200190565b600061ffff808316818516808303821115612b7c57612b7c613c82565b60008219821115613a9f57613a9f613c82565b500190565b600060ff821660ff84168060ff03821115613ac157613ac1613c82565b019392505050565b600061ffff80841680613ade57613ade613c98565b92169190910492915050565b600082613af957613af9613c98565b500490565b600060ff831680613b1157613b11613c98565b8060ff84160491505092915050565b600061ffff80831681851681830481118215151615613b4157613b41613c82565b02949350505050565b6000816000190483118215151615613b6457613b64613c82565b500290565b600060ff821660ff84168160ff0481118215151615613b8a57613b8a613c82565b029392505050565b600061ffff83811690831681811015613bad57613bad613c82565b039392505050565b600082821015613bc757613bc7613c82565b500390565b60005b83811015613be7578181015183820152602001613bcf565b83811115610b465750506000910152565b600281046001821680613c0c57607f821691505b60208210811415613c2d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613c4757613c47613c82565b5060010190565b600060ff821660ff811415613c6557613c65613c82565b60010192915050565b600082613c7d57613c7d613c98565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461070457600080fdfe3c7376672076696577426f783d5c22302030203139323020313038305c2220786d6c6e733d5c22687474703a2f2f7777772e77332e6f72672f323030302f7376675c223e3c636c6970506174682069643d5c22636c6970416c6c5c223e3c726563742066696c6c3d5c22253233a264697066735822122055af6f16a2610bf57bdedb458f8b754907451adfba2df6b3ed00fb7fd4fdd1cb64736f6c63430008000033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.