Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 23 from a total of 23 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 16275791 | 1164 days ago | IN | 0 ETH | 0.00059589 | ||||
| Set Approval For... | 16147489 | 1181 days ago | IN | 0 ETH | 0.00126584 | ||||
| Update Max Suppl... | 15341952 | 1298 days ago | IN | 0 ETH | 0.00025941 | ||||
| Mint | 14402310 | 1449 days ago | IN | 0.05 ETH | 0.0212988 | ||||
| Mint | 14309808 | 1463 days ago | IN | 0.05 ETH | 0.02889915 | ||||
| Mint | 14112498 | 1494 days ago | IN | 0.05 ETH | 0.03565437 | ||||
| Update Max Suppl... | 14010407 | 1509 days ago | IN | 0 ETH | 0.00385166 | ||||
| Mint | 13615023 | 1571 days ago | IN | 0.05 ETH | 0.05687097 | ||||
| Set Approval For... | 13613970 | 1571 days ago | IN | 0 ETH | 0.00334227 | ||||
| Update Max Suppl... | 13594773 | 1574 days ago | IN | 0 ETH | 0.00428777 | ||||
| Mint Single | 13521202 | 1586 days ago | IN | 0.02 ETH | 0.03866102 | ||||
| Mint Single | 13421989 | 1602 days ago | IN | 0.02 ETH | 0.01910619 | ||||
| Mint Single | 13421984 | 1602 days ago | IN | 0.02 ETH | 0.01845608 | ||||
| Mint Single | 13421979 | 1602 days ago | IN | 0.02 ETH | 0.01483769 | ||||
| Mint Single | 13404091 | 1604 days ago | IN | 0.02 ETH | 0.01904013 | ||||
| Set Approval For... | 13384019 | 1608 days ago | IN | 0 ETH | 0.00314048 | ||||
| Set Approval For... | 13383913 | 1608 days ago | IN | 0 ETH | 0.00297124 | ||||
| Claim | 13357902 | 1612 days ago | IN | 0 ETH | 0.0291204 | ||||
| Mint | 13354255 | 1612 days ago | IN | 0.05 ETH | 0.04510278 | ||||
| Claim | 13352160 | 1613 days ago | IN | 0 ETH | 0.01870437 | ||||
| Claim | 13352131 | 1613 days ago | IN | 0 ETH | 0.01989849 | ||||
| Mint | 13349586 | 1613 days ago | IN | 0.05 ETH | 0.03081042 | ||||
| Transfer Ownersh... | 13349196 | 1613 days ago | IN | 0 ETH | 0.00149328 |
Latest 11 internal transactions
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 14402310 | 1449 days ago | 0.05 ETH | ||||
| - | 14309808 | 1463 days ago | 0.05 ETH | ||||
| - | 14112498 | 1494 days ago | 0.05 ETH | ||||
| - | 13615023 | 1571 days ago | 0.05 ETH | ||||
| - | 13521202 | 1586 days ago | 0.02 ETH | ||||
| - | 13421989 | 1602 days ago | 0.02 ETH | ||||
| - | 13421984 | 1602 days ago | 0.02 ETH | ||||
| - | 13421979 | 1602 days ago | 0.02 ETH | ||||
| - | 13404091 | 1604 days ago | 0.02 ETH | ||||
| - | 13354255 | 1612 days ago | 0.05 ETH | ||||
| - | 13349586 | 1613 days ago | 0.05 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SignatureLineations
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 "./AbstractSignature.sol";
contract SignatureLineations is AbstractSignature {
constructor() AbstractSignature("Signature Lineations", "signature-lineations", "Lineated interpretations of the minting address", "SIGL") {
_styles[0] = "Pathways";
_styles[1] = "Hatchings";
_styles[2] = "Shutters";
}
function _draw(uint256 styleId, ColorMetaData[] memory colors) internal view override returns(string memory) {
string memory svg;
if (styleId == 1) {
svg = _pathways(colors);
} else if (styleId == 2) {
svg = _hatchings(colors);
} else if (styleId == 3) {
svg = _shutters(colors);
}
return string(abi.encodePacked(_svgPrefix, svg, _svgSuffix));
}
function _pathways(ColorMetaData[] memory colors) internal view returns(string memory) {
string memory result = "<symbol id=\\\"lines\\\" viewPort=\\\"0 0 160 160\\\"><line x1=\\\"0\\\" y1=\\\"35\\\" x2=\\\"35\\\" y2=\\\"0\\\" stroke-width=\\\"4\\\"/><line x1=\\\"0\\\" y1=\\\"65\\\" x2=\\\"65\\\" y2=\\\"0\\\" stroke-width=\\\"4\\\"/><line x1=\\\"0\\\" y1=\\\"95\\\" x2=\\\"95\\\" y2=\\\"0\\\" stroke-width=\\\"4\\\"/><line x1=\\\"0\\\" y1=\\\"125\\\" x2=\\\"125\\\" y2=\\\"0\\\" stroke-width=\\\"4\\\"/><line x1=\\\"35\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"35\\\" stroke-width=\\\"4\\\"/><line x1=\\\"65\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"65\\\" stroke-width=\\\"4\\\"/><line x1=\\\"95\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"95\\\" stroke-width=\\\"4\\\"/><line x1=\\\"125\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"125\\\" stroke-width=\\\"4\\\"/></symbol>";
for (uint8 i = 0; i < _gridCount; i++) {
for (uint8 j = 0; j < _gridCount; j++) {
uint8 index = i * _gridCount + j;
string memory rotation = _uintToString(90 * (colors[index].decimal % 2));
result = string(abi.encodePacked(result, "<use href=\\\"%23lines\\\" stroke=\\\"%23", colors[index].color, "\\\" transform=\\\"rotate(", rotation, " ", _gridCentrePos[i], " ", _gridCentrePos[j], ")\\\" x=\\\"", _gridPos[i],"\\\" y=\\\"", _gridPos[j],"\\\"/>"));
}
}
return result;
}
function _hatchings(ColorMetaData[] memory colors) internal view returns(string memory) {
string memory result = "<symbol id=\\\"tri\\\" viewPort=\\\"0 0 160 160\\\"><line x1=\\\"10\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"10\\\" stroke-width=\\\"4\\\" style=\\\"opacity: 0.96;\\\"/><line x1=\\\"30\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"30\\\" stroke-width=\\\"4\\\" /><line x1=\\\"50\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"50\\\" stroke-width=\\\"4\\\" /><line x1=\\\"70\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"70\\\" stroke-width=\\\"4\\\" /><line x1=\\\"90\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"90\\\" stroke-width=\\\"4\\\" /><line x1=\\\"110\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"110\\\" stroke-width=\\\"4\\\" /><line x1=\\\"130\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"130\\\" stroke-width=\\\"4\\\" /><line x1=\\\"150\\\" y1=\\\"160\\\" x2=\\\"160\\\" y2=\\\"150\\\" stroke-width=\\\"4\\\" /></symbol>";
for (uint8 i = 0; i < _gridCount; i++) {
for (uint8 j = 0; j < _gridCount; j++) {
uint8 index = i * _gridCount + j;
string memory rotation = _uintToString(90 * (colors[index].decimal % 4));
result = string(abi.encodePacked(result, "<use href=\\\"%23tri\\\" stroke=\\\"%23", colors[index].color, "\\\" transform=\\\"rotate(", rotation, " ", _gridCentrePos[i], " ", _gridCentrePos[j], ")\\\" x=\\\"", _gridPos[i],"\\\" y=\\\"", _gridPos[j],"\\\"/>"));
}
}
return result;
}
function _shutters(ColorMetaData[] memory colors) internal view returns(string memory) {
string memory result = "<symbol id=\\\"dot\\\" viewPort=\\\"0 0 160 160\\\"><line y1=\\\"0\\\" x1=\\\"16\\\" y2=\\\"160\\\" x2=\\\"16\\\" stroke-width=\\\"4\\\" style=\\\"opacity: 0.96;\\\"/><line y1=\\\"0\\\" x1=\\\"32\\\" y2=\\\"160\\\" x2=\\\"32\\\" stroke-width=\\\"4\\\" style=\\\"opacity: 0.87;\\\"/><line y1=\\\"0\\\" x1=\\\"48\\\" y2=\\\"160\\\" x2=\\\"48\\\" stroke-width=\\\"4\\\" style=\\\"opacity: 0.79;\\\"/><line y1=\\\"0\\\" x1=\\\"64\\\" y2=\\\"160\\\" x2=\\\"64\\\" stroke-width=\\\"4\\\" style=\\\"opacity: 0.7;\\\"/><line y1=\\\"0\\\" x1=\\\"80\\\" y2=\\\"160\\\" x2=\\\"80\\\" stroke-width=\\\"4\\\" style=\\\"opacity: 0.61;\\\"/><line y1=\\\"0\\\" x1=\\\"96\\\" y2=\\\"160\\\" x2=\\\"96\\\" stroke-width=\\\"4\\\" style=\\\"opacity: 0.52;\\\"/><line y1=\\\"0\\\" x1=\\\"112\\\" y2=\\\"160\\\" x2=\\\"112\\\" stroke-width=\\\"4\\\" style=\\\"opacity: 0.43;\\\"/><line y1=\\\"0\\\" x1=\\\"128\\\" y2=\\\"160\\\" x2=\\\"128\\\" stroke-width=\\\"4\\\" style=\\\"opacity: 0.34;\\\"/><line y1=\\\"0\\\" x1=\\\"144\\\" y2=\\\"160\\\" x2=\\\"144\\\" stroke-width=\\\"4\\\" style=\\\"opacity: 0.25;\\\"/></symbol>";
for (uint8 i = 0; i < _gridCount; i++) {
for (uint8 j = 0; j < _gridCount; j++) {
uint8 index = i * _gridCount + j;
uint decimalColor = colors[index].decimal;
string memory rand = _uintToString(360 * decimalColor / 16777215);
result = string(abi.encodePacked(result, "<use href=\\\"%23dot\\\" stroke=\\\"%23", colors[index].color, "\\\" transform=\\\"rotate(", rand, " ", _gridCentrePos[i], " ", _gridCentrePos[j], ")\\\" x=\\\"", _gridPos[i],"\\\" y=\\\"", _gridPos[j],"\\\"/>"));
}
}
return result;
}
}// 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";
abstract contract AbstractSignature is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable, ERC721Burnable {
using Counters for Counters.Counter;
struct ColorMetaData {
bytes color;
uint decimal;
}
bytes constant _alphabet = "0123456789abcdef";
uint16 constant _canvasSize = 960;
uint8 constant _gridCount = 6;
uint16 constant _gridSize = 160;
string constant _svgPrefix = "<svg viewBox=\\\"0 0 960 960\\\" style=\\\"max-width:100vmin;max-height:100vmin;\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">";
string constant _svgSuffix = "</svg>";
uint16 private _maxSupply;
uint256 private _mintPriceWei;
uint256 private _mintPriceSingleWei;
Counters.Counter private _tokenIdCounter;
mapping(uint256 => uint256) _tokenIdMap;
string[3] _styles;
string[6] _gridPos;
string[6] _gridCentrePos;
string private _description;
string private _collectionUrl;
constructor(string memory name_, string memory collectionUrl_, string memory description_, string memory key_) ERC721(name_, key_) {
_description = description_;
_collectionUrl = collectionUrl_;
_maxSupply = 9999;
_mintPriceWei = 50_000_000_000_000_000;
_mintPriceSingleWei = 20_000_000_000_000_000;
_gridPos[0] = "0";
_gridPos[1] = "160";
_gridPos[2] = "320";
_gridPos[3] = "480";
_gridPos[4] = "640";
_gridPos[5] = "800";
_gridCentrePos[0] = "80";
_gridCentrePos[1] = "240";
_gridCentrePos[2] = "400";
_gridCentrePos[3] = "560";
_gridCentrePos[4] = "720";
_gridCentrePos[5] = "880";
}
function initialConfig() external view returns(uint256[4] memory) {
uint256[4] memory result;
result[0] = _maxSupply;
result[1] = ERC721Enumerable.totalSupply();
result[2] = _mintPriceWei;
result[3] = _mintPriceSingleWei;
return result;
}
function userConfig() external view returns(uint8[] memory, uint256[] memory) {
uint256 tokenPrefix = uint256(uint160(msg.sender)) << 4;
uint8[] memory _minted;
uint256[] memory _owned;
uint256[] memory tokenIds = new uint256[](3);
uint256[] memory minted = new uint256[](3);
uint8 mintedCount = 0;
for (uint8 i=0;i<3;i++) {
tokenIds[i] = tokenPrefix + i + 1;
minted[i] = _tokenIdMap[tokenIds[i]];
if (minted[i] > 0) {
mintedCount = mintedCount + 1;
}
}
if (mintedCount > 0) {
uint8 index = 0;
_minted = new uint8[](mintedCount);
for (uint8 i=0;i<3;i++) {
if (minted[i] > 0) {
_minted[index] = i + 1;
index = index + 1;
}
}
}
uint256 ownerCount = ERC721.balanceOf(msg.sender);
if (ownerCount > 0) {
_owned = new uint256[](ownerCount);
for (uint i=0;i<ownerCount;i++) {
_owned[i] = tokenOfOwnerByIndex(msg.sender, i);
}
}
return (_minted, _owned);
}
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 updateMintPriceWei(uint256 priceWei) external onlyOwner {
_mintPriceWei = priceWei;
}
function updateMintPriceSingleWei(uint256 priceSingleWei) external onlyOwner {
_mintPriceSingleWei = priceSingleWei;
}
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() + 3 <= _maxSupply, string(abi.encodePacked("ERC721: Series already minted")));
uint256 tokenPrefix = uint256(uint160(to)) << 4;
for (uint i=1;i<=3;i++) {
require(!_exists(tokenPrefix + i), "One or more requested tokens already minted!");
}
for (uint i=1;i<=3;i++) {
uint256 tokenId = tokenPrefix + i;
_safeMint(to, tokenId);
_tokenIdCounter.increment();
_tokenIdMap[tokenId] = _tokenIdCounter.current();
}
}
function mintSingle(uint256 styleId) external payable {
address to = msg.sender;
require(to != address(0), "Can't mint for zero address");
require(msg.value >= _mintPriceSingleWei, "Must send at least mintPriceSingleWei");
require(_tokenIdCounter.current() < _maxSupply, string(abi.encodePacked("ERC721: Series already minted")));
uint256 tokenId = (uint256(uint160(to)) << 4) + styleId;
require(!_exists(tokenId), "Token already minted!");
_safeMint(to, tokenId);
_tokenIdCounter.increment();
_tokenIdMap[tokenId] = _tokenIdCounter.current();
_pay(_mintPriceSingleWei);
}
function tokenURI(uint256 tokenId)
public
view
override(ERC721, ERC721URIStorage)
returns (string memory)
{
require(_exists(tokenId), "ERC721: missing token!");
uint256 styleId = tokenId & 0xF;
uint256 mintAddress = tokenId >> 4;
ColorMetaData[] memory colors = _addressToColors(mintAddress);
string memory image = _draw(styleId, colors);
string memory id = _uintToString(_tokenIdMap[tokenId]);
return string(abi.encodePacked("data:application/json;utf8,{\"name\": \"", ERC721.name(), " #", id, "\", \"description\": \"" , _description, "\", \"attributes\": [{\"trait_type\": \"Style\", \"value\": \"", _styles[styleId-1], "\"}], \"image_data\": \"", image, "\", \"external_url\": \"https://obsolete.design/art/collection/", _collectionUrl, "/gallery/", _uintToString(tokenId), "\", \"background_color\": \"110011\"}"));
}
function _draw(uint256 /* styleId */, ColorMetaData[] memory /* colors */) internal view virtual returns(string memory) {
return "";
}
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);
}
// The following functions are overrides required by Solidity.
function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
super._burn(tokenId);
delete _tokenIdMap[tokenId];
}
function supportsInterface(bytes4 interfaceId)
public
view
override(ERC721, ERC721Enumerable)
returns (bool)
{
return super.supportsInterface(interfaceId);
}
function _addressToColors(uint256 _addr) internal pure returns(ColorMetaData[] memory) {
ColorMetaData[] memory colors = new ColorMetaData[](36);
for (uint i = 0; i < 36; i++) {
colors[i] = ColorMetaData({color: new bytes(6), decimal: 0});
}
uint256 mask = 0xf;
for (uint i = 0; i < 40; i++) {
uint256 index = (_addr >> (4 * (39 - i))) & mask;
bytes1 hexChar = _alphabet[index];
for (uint j = 0; j < 6; j++) {
if (i >= j && i < (36 + j)) {
ColorMetaData memory cmd = colors[i - j];
cmd.color[j] = hexChar;
cmd.decimal = cmd.decimal + (index << 4 * (5 - j));
}
}
}
colors[35].color[5] = colors[0].color[0];
return colors;
}
function _uintToString(uint 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",
"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[4]","name":"","type":"uint256[4]"}],"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":[{"internalType":"uint256","name":"styleId","type":"uint256"}],"name":"mintSingle","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":"priceSingleWei","type":"uint256"}],"name":"updateMintPriceSingleWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"priceWei","type":"uint256"}],"name":"updateMintPriceWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userConfig","outputs":[{"internalType":"uint8[]","name":"","type":"uint8[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280601481526020017f5369676e6174757265204c696e656174696f6e730000000000000000000000008152506040518060400160405280601481526020017f7369676e61747572652d6c696e656174696f6e730000000000000000000000008152506040518060600160405280602f815260200162004758602f91396040518060400160405280600481526020016314d251d360e21b81525083818160009080519060200190620000cf92919062000491565b508051620000e590600190602084019062000491565b50505062000102620000fc6200043b60201b60201c565b6200043f565b81516200011790601f90602085019062000491565b5082516200012c906020908186019062000491565b50600b805461ffff60a01b191661270f60a01b17905566b1a2bc2ec50000600c5566470de4df820000600d55604080518082019091526001808252600360fc1b6020909201918252620001829160139162000491565b506040805180820190915260038082526203136360ec1b6020909201918252620001af9160149162000491565b506040805180820190915260038082526203332360ec1b6020909201918252620001dc9160159162000491565b506040805180820190915260038082526203438360ec1b6020909201918252620002099160169162000491565b506040805180820190915260038082526203634360ec1b6020909201918252620002369160179162000491565b506040805180820190915260038082526203830360ec1b6020909201918252620002639160189162000491565b5060408051808201909152600280825261038360f41b60209092019182526200028f9160199162000491565b506040805180820190915260038082526203234360ec1b6020909201918252620002bc91601a9162000491565b506040805180820190915260038082526203430360ec1b6020909201918252620002e991601b9162000491565b506040805180820190915260038082526203536360ec1b60209092019182526200031691601c9162000491565b506040805180820190915260038082526203732360ec1b60209092019182526200034391601d9162000491565b506040805180820190915260038082526203838360ec1b60209092019182526200037091601e9162000491565b505050505060405180604001604052806008815260200167506174687761797360c01b8152506010600060038110620003b957634e487b7160e01b600052603260045260246000fd5b019080519060200190620003cf92919062000491565b50604080518082019091526009808252684861746368696e677360b81b6020909201918252620004029160119162000491565b5060408051808201909152600880825267536875747465727360c01b6020909201918252620004349160129162000491565b5062000574565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200049f9062000537565b90600052602060002090601f016020900481019282620004c357600085556200050e565b82601f10620004de57805160ff19168380011785556200050e565b828001600101855582156200050e579182015b828111156200050e578251825591602001919060010190620004f1565b506200051c92915062000520565b5090565b5b808211156200051c576000815560010162000521565b6002810460018216806200054c57607f821691505b602082108114156200056e57634e487b7160e01b600052602260045260246000fd5b50919050565b6141d480620005846000396000f3fe6080604052600436106101b75760003560e01c806353b8eb67116100ec578063a22cb4651161008a578063c5ff514a11610064578063c5ff514a146104a4578063c87b56dd146104c4578063e985e9c5146104e4578063f2fde38b14610504576101b7565b8063a22cb46514610444578063b262849a14610464578063b88d4fde14610484576101b7565b8063715018a6116100c6578063715018a6146103e257806378d07685146103f75780638da5cb5b1461041a57806395d89b411461042f576101b7565b806353b8eb671461038f5780636352211e146103a257806370a08231146103c2576101b7565b80631e83409a11610159578063303ab0c611610133578063303ab0c61461030f57806342842e0e1461032f57806342966c681461034f5780634f6ccce71461036f576101b7565b80631e83409a146102af57806323b872dd146102cf5780632f745c59146102ef576101b7565b8063081812fc11610195578063081812fc14610236578063095ea7b3146102635780631249c58b1461028557806318160ddd1461028d576101b7565b806301ffc9a7146101bc57806304d94317146101f257806306fdde0314610214575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004612977565b610524565b6040516101e99190613037565b60405180910390f35b3480156101fe57600080fd5b50610207610537565b6040516101e99190612f89565b34801561022057600080fd5b50610229610579565b6040516101e99190613042565b34801561024257600080fd5b506102566102513660046129d1565b61060b565b6040516101e99190612f38565b34801561026f57600080fd5b5061028361027e36600461294e565b610657565b005b6102836106ef565b34801561029957600080fd5b506102a2610727565b6040516101e99190613726565b3480156102bb57600080fd5b506102836102ca3660046127ba565b61072d565b3480156102db57600080fd5b506102836102ea36600461280d565b610778565b3480156102fb57600080fd5b506102a261030a36600461294e565b6107b0565b34801561031b57600080fd5b5061028361032a3660046129d1565b610802565b34801561033b57600080fd5b5061028361034a36600461280d565b610846565b34801561035b57600080fd5b5061028361036a3660046129d1565b610861565b34801561037b57600080fd5b506102a261038a3660046129d1565b610891565b61028361039d3660046129d1565b6108ec565b3480156103ae57600080fd5b506102566103bd3660046129d1565b6109fc565b3480156103ce57600080fd5b506102a26103dd3660046127ba565b610a31565b3480156103ee57600080fd5b50610283610a75565b34801561040357600080fd5b5061040c610abe565b6040516101e9929190612fba565b34801561042657600080fd5b50610256610e03565b34801561043b57600080fd5b50610229610e12565b34801561045057600080fd5b5061028361045f366004612914565b610e21565b34801561047057600080fd5b5061028361047f3660046129d1565b610eef565b34801561049057600080fd5b5061028361049f366004612848565b610f33565b3480156104b057600080fd5b506102836104bf3660046129af565b610f72565b3480156104d057600080fd5b506102296104df3660046129d1565b61102e565b3480156104f057600080fd5b506101dc6104ff3660046127db565b611109565b34801561051057600080fd5b5061028361051f3660046127ba565b611137565b600061052f826111a5565b90505b919050565b61053f61271b565b61054761271b565b600b54600160a01b900461ffff16815261055f610727565b6020820152600c546040820152600d546060820152919050565b60606000805461058890613817565b80601f01602080910402602001604051908101604052809291908181526020018280546105b490613817565b80156106015780601f106105d657610100808354040283529160200191610601565b820191906000526020600020905b8154815290600101906020018083116105e457829003601f168201915b5050505050905090565b6000610616826111ca565b61063b5760405162461bcd60e51b8152600401610632906133d8565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610662826109fc565b9050806001600160a01b0316836001600160a01b031614156106965760405162461bcd60e51b8152600401610632906134d1565b806001600160a01b03166106a86111e7565b6001600160a01b031614806106c457506106c4816104ff6111e7565b6106e05760405162461bcd60e51b8152600401610632906132b3565b6106ea83836111eb565b505050565b600c543410156107115760405162461bcd60e51b815260040161063290613512565b61071a33611259565b610725600c54611395565b565b60085490565b6107356111e7565b6001600160a01b0316610746610e03565b6001600160a01b03161461076c5760405162461bcd60e51b815260040161063290613424565b61077581611259565b50565b6107896107836111e7565b8261141e565b6107a55760405162461bcd60e51b815260040161063290613549565b6106ea8383836114a3565b60006107bb83610a31565b82106107d95760405162461bcd60e51b815260040161063290613055565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61080a6111e7565b6001600160a01b031661081b610e03565b6001600160a01b0316146108415760405162461bcd60e51b815260040161063290613424565b600c55565b6106ea83838360405180602001604052806000815250610f33565b61086c6107836111e7565b6108885760405162461bcd60e51b815260040161063290613662565b610775816115d0565b600061089b610727565b82106108b95760405162461bcd60e51b8152600401610632906135ca565b600882815481106108da57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b338061090a5760405162461bcd60e51b815260040161063290613230565b600d5434101561092c5760405162461bcd60e51b8152600401610632906136b2565b600b54600160a01b900461ffff16610944600e6115ea565b1060405160200161095490612f0f565b604051602081830303815290604052906109815760405162461bcd60e51b81526004016106329190613042565b50600061099b836010600160a41b03600485901b1661373b565b90506109a6816111ca565b156109c35760405162461bcd60e51b815260040161063290613459565b6109cd82826115ee565b6109d7600e61160c565b6109e1600e6115ea565b6000828152600f6020526040902055600d546106ea90611395565b6000818152600260205260408120546001600160a01b03168061052f5760405162461bcd60e51b81526004016106329061335a565b60006001600160a01b038216610a595760405162461bcd60e51b815260040161063290613310565b506001600160a01b031660009081526003602052604090205490565b610a7d6111e7565b6001600160a01b0316610a8e610e03565b6001600160a01b031614610ab45760405162461bcd60e51b815260040161063290613424565b6107256000611615565b6060803360041b818060006003604051908082528060200260200182016040528015610af4578160200160208202803683370190505b506040805160038082526080820190925291925060009190602082016060803683370190505090506000805b60038160ff161015610c3357610b3960ff82168861373b565b610b4490600161373b565b848260ff1681518110610b6757634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600f6000858360ff1681518110610b9a57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054838260ff1681518110610bd457634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506000838260ff1681518110610c0557634e487b7160e01b600052603260045260246000fd5b60200260200101511115610c2157610c1e826001613753565b91505b80610c2b8161386d565b915050610b20565b5060ff811615610d3a5760008160ff1667ffffffffffffffff811115610c6957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c92578160200160208202803683370190505b50955060005b60038160ff161015610d37576000848260ff1681518110610cc957634e487b7160e01b600052603260045260246000fd5b60200260200101511115610d2557610ce2816001613753565b878360ff1681518110610d0557634e487b7160e01b600052603260045260246000fd5b60ff90921660209283029190910190910152610d22826001613753565b91505b80610d2f8161386d565b915050610c98565b50505b6000610d4533610a31565b90508015610df4578067ffffffffffffffff811115610d7457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d9d578160200160208202803683370190505b50945060005b81811015610df257610db533826107b0565b868281518110610dd557634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610dea81613852565b915050610da3565b505b50939650919450505050509091565b600b546001600160a01b031690565b60606001805461058890613817565b610e296111e7565b6001600160a01b0316826001600160a01b03161415610e5a5760405162461bcd60e51b8152600401610632906131f9565b8060056000610e676111e7565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610eab6111e7565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ee39190613037565b60405180910390a35050565b610ef76111e7565b6001600160a01b0316610f08610e03565b6001600160a01b031614610f2e5760405162461bcd60e51b815260040161063290613424565b600d55565b610f44610f3e6111e7565b8361141e565b610f605760405162461bcd60e51b815260040161063290613549565b610f6c84848484611667565b50505050565b610f7a6111e7565b6001600160a01b0316610f8b610e03565b6001600160a01b031614610fb15760405162461bcd60e51b815260040161063290613424565b610fb9610727565b8161ffff161015610fdc5760405162461bcd60e51b81526004016106329061316f565b600b5461ffff600160a01b90910481169082161061100c5760405162461bcd60e51b8152600401610632906136f7565b600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6060611039826111ca565b6110555760405162461bcd60e51b81526004016106329061359a565b600f8216600483901c60006110698261169a565b90506000611077848361198c565b6000878152600f60205260408120549192509061109390611a32565b905061109d610579565b81601f60106110ad60018a6137d4565b600381106110cb57634e487b7160e01b600052603260045260246000fd5b018560206110d88d611a32565b6040516020016110ee9796959493929190612dbb565b60405160208183030381529060405295505050505050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61113f6111e7565b6001600160a01b0316611150610e03565b6001600160a01b0316146111765760405162461bcd60e51b815260040161063290613424565b6001600160a01b03811661119c5760405162461bcd60e51b8152600401610632906130f2565b61077581611615565b60006001600160e01b0319821663780e9d6360e01b148061052f575061052f82611bf0565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611220826109fc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03811661127f5760405162461bcd60e51b815260040161063290613230565b600b54600160a01b900461ffff16611297600e6115ea565b6112a290600361373b565b11156040516020016112b390612f0f565b604051602081830303815290604052906112e05760405162461bcd60e51b81526004016106329190613042565b506010600160a41b03600482901b1660015b6003811161133b5761130c611307828461373b565b6111ca565b156113295760405162461bcd60e51b815260040161063290613616565b8061133381613852565b9150506112f2565b5060015b600381116106ea576000611353828461373b565b905061135f84826115ee565b611369600e61160c565b611373600e6115ea565b6000918252600f6020526040909120558061138d81613852565b91505061133f565b34156107755760006113a782346137d4565b905080156113de57604051339082156108fc029083906000818181858888f193505050501580156113dc573d6000803e3d6000fd5b505b6113e6610e03565b6001600160a01b03166108fc839081150290604051600060405180830381858888f193505050501580156106ea573d6000803e3d6000fd5b6000611429826111ca565b6114455760405162461bcd60e51b815260040161063290613267565b6000611450836109fc565b9050806001600160a01b0316846001600160a01b0316148061148b5750836001600160a01b03166114808461060b565b6001600160a01b0316145b8061149b575061149b8185611109565b949350505050565b826001600160a01b03166114b6826109fc565b6001600160a01b0316146114dc5760405162461bcd60e51b815260040161063290613488565b6001600160a01b0382166115025760405162461bcd60e51b8152600401610632906131b5565b61150d838383611c30565b6115186000826111eb565b6001600160a01b03831660009081526003602052604081208054600192906115419084906137d4565b90915550506001600160a01b038216600090815260036020526040812080546001929061156f90849061373b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6115d981611c3b565b6000908152600f6020526040812055565b5490565b611608828260405180602001604052806000815250611c7b565b5050565b80546001019055565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6116728484846114a3565b61167e84848484611cae565b610f6c5760405162461bcd60e51b8152600401610632906130a0565b6040805160248082526104a0820190925260609160009190816020015b6116bf612739565b8152602001906001900390816116b757905050905060005b602481101561174c576040805160068183018181526080830190935290918291602082018180368337019050508152602001600081525082828151811061172e57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061174490613852565b9150506116d7565b50600f60005b60288110156118c7576000826117698360276137d4565b61177490600461378c565b87901c16905060006040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b81525082815181106117c457634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916905060005b60068110156118b1578084101580156117fa57506117f781602461373b565b84105b1561189f5760008661180c83876137d4565b8151811061182a57634e487b7160e01b600052603260045260246000fd5b60200260200101519050828160000151838151811061185957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061187b8260056137d4565b61188690600461378c565b84901b8160200151611898919061373b565b6020909101525b806118a981613852565b9150506117d8565b50505080806118bf90613852565b915050611752565b50816000815181106118e957634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160008151811061191557634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8260238151811061194157634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160058151811061196d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350909392505050565b60608083600114156119a8576119a183611dc9565b90506119cf565b83600214156119ba576119a183611f90565b83600314156119cf576119cc8361212a565b90505b6040518060a00160405280607281526020016138fa6072913981604051806040016040528060068152602001651e17b9bb339f60d11b815250604051602001611a1a93929190612b66565b60405160208183030381529060405291505092915050565b60408051606480825260a082019092526060919060009082602082018180368337019050509050600084611a8457604051806040016040528060018152602001600360fc1b8152509350505050610532565b8415611afc576000611a97600a8761388d565b9050611aa4600a87613778565b9550611ab181603061373b565b60f81b8383611abf81613852565b945081518110611adf57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050611a84565b60008167ffffffffffffffff811115611b2557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b4f576020820181803683370190505b50905060005b82811015611be657836001611b6a83866137d4565b611b7491906137d4565b81518110611b9257634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b828281518110611bbd57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611bde81613852565b915050611b55565b5095945050505050565b60006001600160e01b031982166380ac58cd60e01b1480611c2157506001600160e01b03198216635b5e139f60e01b145b8061052f575061052f826122ef565b6106ea838383612308565b611c4481612391565b6000818152600a602052604090208054611c5d90613817565b159050610775576000818152600a6020526040812061077591612753565b611c858383612438565b611c926000848484611cae565b6106ea5760405162461bcd60e51b8152600401610632906130a0565b6000611cc2846001600160a01b0316612517565b15611dbe57836001600160a01b031663150b7a02611cde6111e7565b8786866040518563ffffffff1660e01b8152600401611d009493929190612f4c565b602060405180830381600087803b158015611d1a57600080fd5b505af1925050508015611d4a575060408051601f3d908101601f19168201909252611d4791810190612993565b60015b611da4573d808015611d78576040519150601f19603f3d011682016040523d82523d6000602084013e611d7d565b606091505b508051611d9c5760405162461bcd60e51b8152600401610632906130a0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061149b565b506001949350505050565b6060600060405180610280016040528061024b8152602001613f5461024b9139905060005b600660ff82161015611f895760005b600660ff82161015611f7657600081611e176006856137ab565b611e219190613753565b90506000611e736002888460ff1681518110611e4d57634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611e63919061388d565b611e6e90605a61378c565b611a32565b905084878360ff1681518110611e9957634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518260198760ff1660068110611eca57634e487b7160e01b600052603260045260246000fd5b0160198760ff1660068110611eef57634e487b7160e01b600052603260045260246000fd5b0160138960ff1660068110611f1457634e487b7160e01b600052603260045260246000fd5b0160138960ff1660068110611f3957634e487b7160e01b600052603260045260246000fd5b01604051602001611f509796959493929190612cb6565b604051602081830303815290604052945050508080611f6e9061386d565b915050611dfd565b5080611f818161386d565b915050611dee565b5092915050565b60606000604051806102a0016040528061027b815260200161396c61027b9139905060005b600660ff82161015611f895760005b600660ff8216101561211757600081611fde6006856137ab565b611fe89190613753565b905060006120146004888460ff1681518110611e4d57634e487b7160e01b600052603260045260246000fd5b905084878360ff168151811061203a57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518260198760ff166006811061206b57634e487b7160e01b600052603260045260246000fd5b0160198760ff166006811061209057634e487b7160e01b600052603260045260246000fd5b0160138960ff16600681106120b557634e487b7160e01b600052603260045260246000fd5b0160138960ff16600681106120da57634e487b7160e01b600052603260045260246000fd5b016040516020016120f19796959493929190612ba9565b60405160208183030381529060405294505050808061210f9061386d565b915050611fc4565b50806121228161386d565b915050611fb5565b60606000604051806103a0016040528061036d8152602001613be761036d9139905060005b600660ff82161015611f895760005b600660ff821610156122dc576000816121786006856137ab565b6121829190613753565b90506000868260ff16815181106121a957634e487b7160e01b600052603260045260246000fd5b602002602001015160200151905060006121d862ffffff836101686121ce919061378c565b611e6e9190613778565b905085888460ff16815181106121fe57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518260198860ff166006811061222f57634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061225457634e487b7160e01b600052603260045260246000fd5b0160138a60ff166006811061227957634e487b7160e01b600052603260045260246000fd5b0160138a60ff166006811061229e57634e487b7160e01b600052603260045260246000fd5b016040516020016122b59796959493929190612d64565b604051602081830303815290604052955050505080806122d49061386d565b91505061215e565b50806122e78161386d565b91505061214f565b6001600160e01b031981166301ffc9a760e01b14919050565b6123138383836106ea565b6001600160a01b03831661232f5761232a8161251d565b612352565b816001600160a01b0316836001600160a01b031614612352576123528382612561565b6001600160a01b03821661236e57612369816125fe565b6106ea565b826001600160a01b0316826001600160a01b0316146106ea576106ea82826126d7565b600061239c826109fc565b90506123aa81600084611c30565b6123b56000836111eb565b6001600160a01b03811660009081526003602052604081208054600192906123de9084906137d4565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03821661245e5760405162461bcd60e51b8152600401610632906133a3565b612467816111ca565b156124845760405162461bcd60e51b815260040161063290613138565b61249060008383611c30565b6001600160a01b03821660009081526003602052604081208054600192906124b990849061373b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161256e84610a31565b61257891906137d4565b6000838152600760205260409020549091508082146125cb576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612610906001906137d4565b6000838152600960205260408120546008805493945090928490811061264657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061267557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806126bb57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006126e283610a31565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528060608152602001600081525090565b50805461275f90613817565b6000825580601f106127715750610775565b601f01602090049060005260206000209081019061077591905b8082111561279f576000815560010161278b565b5090565b80356001600160a01b038116811461053257600080fd5b6000602082840312156127cb578081fd5b6127d4826127a3565b9392505050565b600080604083850312156127ed578081fd5b6127f6836127a3565b9150612804602084016127a3565b90509250929050565b600080600060608486031215612821578081fd5b61282a846127a3565b9250612838602085016127a3565b9150604084013590509250925092565b6000806000806080858703121561285d578081fd5b612866856127a3565b935060206128758187016127a3565b935060408601359250606086013567ffffffffffffffff80821115612898578384fd5b818801915088601f8301126128ab578384fd5b8135818111156128bd576128bd6138cd565b604051601f8201601f19168101850183811182821017156128e0576128e06138cd565b60405281815283820185018b10156128f6578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612926578182fd5b61292f836127a3565b915060208301358015158114612943578182fd5b809150509250929050565b60008060408385031215612960578182fd5b612969836127a3565b946020939093013593505050565b600060208284031215612988578081fd5b81356127d4816138e3565b6000602082840312156129a4578081fd5b81516127d4816138e3565b6000602082840312156129c0578081fd5b813561ffff811681146127d4578182fd5b6000602082840312156129e2578081fd5b5035919050565b60008151808452612a018160208601602086016137eb565b601f01601f19169290920160200192915050565b60008151612a278185602086016137eb565b9290920192915050565b805460009060028104600180831680612a4b57607f831692505b6020808410821415612a6b57634e487b7160e01b86526022600452602486fd5b818015612a7f5760018114612a9057612abd565b60ff19861689528489019650612abd565b612a998861372f565b60005b86811015612ab55781548b820152908501908301612a9c565b505084890196505b50505050505092915050565b7f222c20226261636b67726f756e645f636f6c6f72223a2022313130303131227d815260200190565b682f67616c6c6572792f60b81b815260090190565b7f222c202265787465726e616c5f75726c223a202268747470733a2f2f6f62736f81527f6c6574652e64657369676e2f6172742f636f6c6c656374696f6e2f00000000006020820152603b0190565b632e11179f60e11b815260040190565b60008451612b788184602089016137eb565b845190830190612b8c8183602089016137eb565b8451910190612b9f8183602088016137eb565b0195945050505050565b60008851612bbb818460208d016137eb565b80830190507f3c75736520687265663d5c222532337472695c22207374726f6b653d5c2225328152603360f81b60208201528851612c00816021840160208d016137eb565b750b84440e8e4c2dce6ccdee4da7ab844e4dee8c2e8ca560531b602192909101918201528751612c37816037840160208c016137eb565b808201915050600160fd1b806037830152612c556038830189612a31565b9081529050612c676001820187612a31565b6714ae11103c1eae1160c11b81529050612c846008820186612a31565b662e11103c9eae1160c91b81529050612ca8612ca36007830186612a31565b612b56565b9a9950505050505050505050565b60008851612cc8818460208d016137eb565b80830190507f3c75736520687265663d5c222532336c696e65735c22207374726f6b653d5c2281526225323360e81b60208201528851612d0f816023840160208d016137eb565b750b84440e8e4c2dce6ccdee4da7ab844e4dee8c2e8ca560531b602392909101918201528751612d46816039840160208c016137eb565b808201915050600160fd1b806039830152612c55603a830189612a31565b60008851612d76818460208d016137eb565b80830190507f3c75736520687265663d5c22253233646f745c22207374726f6b653d5c2225328152603360f81b60208201528851612c00816021840160208d016137eb565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d82526432911d101160d91b60208301528851612e01816025850160208d016137eb565b61202360f01b6025918401918201528851612e23816027840160208d016137eb565b72111610113232b9b1b934b83a34b7b7111d101160691b60279290910191820152612e51603a820189612a31565b7f222c202261747472696275746573223a205b7b2274726169745f74797065223a815273101129ba3cb632911610113b30b63ab2911d101160611b60208201529050612ea06034820188612a31565b73113eae96101134b6b0b3b2afb230ba30911d101160611b81528651909150612ed0816014840160208a016137eb565b612f00612efb612ef5612ef0612eea601486880101612b07565b8a612a31565b612af2565b87612a15565b612ac9565b9b9a5050505050505050505050565b7f4552433732313a2053657269657320616c7265616479206d696e7465640000008152601d0190565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f7f908301846129e9565b9695505050505050565b60808101818360005b6004811015612fb1578151835260209283019290910190600101612f92565b50505092915050565b604080825283519082018190526000906020906060840190828701845b82811015612ff657815160ff1684529284019290840190600101612fd7565b50505083810382850152845180825285830191830190845b8181101561302a5783518352928401929184019160010161300e565b5090979650505050505050565b901515815260200190565b6000602082526127d460208301846129e9565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526026908201527f43616e27742072656475636520737570706c792062656c6f7720746f74616c20604082015265737570706c7960d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601b908201527f43616e2774206d696e7420666f72207a65726f20616464726573730000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260159082015274546f6b656e20616c7265616479206d696e7465642160581b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601f908201527f4d7573742073656e64206174206c65617374206d696e74507269636557656900604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601690820152754552433732313a206d697373696e6720746f6b656e2160501b604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602c908201527f4f6e65206f72206d6f72652072657175657374656420746f6b656e7320616c7260408201526b65616479206d696e7465642160a01b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b60208082526025908201527f4d7573742073656e64206174206c65617374206d696e74507269636553696e676040820152646c6557656960d81b606082015260800190565b60208082526015908201527443616e277420696e63726561736520737570706c7960581b604082015260600190565b90815260200190565b60009081526020902090565b6000821982111561374e5761374e6138a1565b500190565b600060ff821660ff84168060ff03821115613770576137706138a1565b019392505050565b600082613787576137876138b7565b500490565b60008160001904831182151516156137a6576137a66138a1565b500290565b600060ff821660ff84168160ff04811182151516156137cc576137cc6138a1565b029392505050565b6000828210156137e6576137e66138a1565b500390565b60005b838110156138065781810151838201526020016137ee565b83811115610f6c5750506000910152565b60028104600182168061382b57607f821691505b6020821081141561384c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613866576138666138a1565b5060010190565b600060ff821660ff811415613884576138846138a1565b60010192915050565b60008261389c5761389c6138b7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461077557600080fdfe3c7376672076696577426f783d5c2230203020393630203936305c22207374796c653d5c226d61782d77696474683a313030766d696e3b6d61782d6865696768743a313030766d696e3b5c2220786d6c6e733d5c22687474703a2f2f7777772e77332e6f72672f323030302f7376675c223e3c73796d626f6c2069643d5c227472695c222076696577506f72743d5c2230203020313630203136305c223e3c6c696e652078313d5c2231305c222079313d5c223136305c222078323d5c223136305c222079323d5c2231305c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e39363b5c222f3e3c6c696e652078313d5c2233305c222079313d5c223136305c222078323d5c223136305c222079323d5c2233305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c2235305c222079313d5c223136305c222078323d5c223136305c222079323d5c2235305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c2237305c222079313d5c223136305c222078323d5c223136305c222079323d5c2237305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c2239305c222079313d5c223136305c222078323d5c223136305c222079323d5c2239305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c223131305c222079313d5c223136305c222078323d5c223136305c222079323d5c223131305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c223133305c222079313d5c223136305c222078323d5c223136305c222079323d5c223133305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c223135305c222079313d5c223136305c222078323d5c223136305c222079323d5c223135305c22207374726f6b652d77696474683d5c22345c22202f3e3c2f73796d626f6c3e3c73796d626f6c2069643d5c22646f745c222076696577506f72743d5c2230203020313630203136305c223e3c6c696e652079313d5c22305c222078313d5c2231365c222079323d5c223136305c222078323d5c2231365c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e39363b5c222f3e3c6c696e652079313d5c22305c222078313d5c2233325c222079323d5c223136305c222078323d5c2233325c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e38373b5c222f3e3c6c696e652079313d5c22305c222078313d5c2234385c222079323d5c223136305c222078323d5c2234385c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e37393b5c222f3e3c6c696e652079313d5c22305c222078313d5c2236345c222079323d5c223136305c222078323d5c2236345c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e373b5c222f3e3c6c696e652079313d5c22305c222078313d5c2238305c222079323d5c223136305c222078323d5c2238305c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e36313b5c222f3e3c6c696e652079313d5c22305c222078313d5c2239365c222079323d5c223136305c222078323d5c2239365c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e35323b5c222f3e3c6c696e652079313d5c22305c222078313d5c223131325c222079323d5c223136305c222078323d5c223131325c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e34333b5c222f3e3c6c696e652079313d5c22305c222078313d5c223132385c222079323d5c223136305c222078323d5c223132385c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e33343b5c222f3e3c6c696e652079313d5c22305c222078313d5c223134345c222079323d5c223136305c222078323d5c223134345c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e32353b5c222f3e3c2f73796d626f6c3e3c73796d626f6c2069643d5c226c696e65735c222076696577506f72743d5c2230203020313630203136305c223e3c6c696e652078313d5c22305c222079313d5c2233355c222078323d5c2233355c222079323d5c22305c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c22305c222079313d5c2236355c222078323d5c2236355c222079323d5c22305c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c22305c222079313d5c2239355c222078323d5c2239355c222079323d5c22305c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c22305c222079313d5c223132355c222078323d5c223132355c222079323d5c22305c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c2233355c222079313d5c223136305c222078323d5c223136305c222079323d5c2233355c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c2236355c222079313d5c223136305c222078323d5c223136305c222079323d5c2236355c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c2239355c222079313d5c223136305c222078323d5c223136305c222079323d5c2239355c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c223132355c222079313d5c223136305c222078323d5c223136305c222079323d5c223132355c22207374726f6b652d77696474683d5c22345c222f3e3c2f73796d626f6c3ea2646970667358221220af43c44bbbd2e8569c4e4a13594e0235eb40c179c9444814b853ba491e4b98a264736f6c634300080000334c696e656174656420696e746572707265746174696f6e73206f6620746865206d696e74696e672061646472657373
Deployed Bytecode
0x6080604052600436106101b75760003560e01c806353b8eb67116100ec578063a22cb4651161008a578063c5ff514a11610064578063c5ff514a146104a4578063c87b56dd146104c4578063e985e9c5146104e4578063f2fde38b14610504576101b7565b8063a22cb46514610444578063b262849a14610464578063b88d4fde14610484576101b7565b8063715018a6116100c6578063715018a6146103e257806378d07685146103f75780638da5cb5b1461041a57806395d89b411461042f576101b7565b806353b8eb671461038f5780636352211e146103a257806370a08231146103c2576101b7565b80631e83409a11610159578063303ab0c611610133578063303ab0c61461030f57806342842e0e1461032f57806342966c681461034f5780634f6ccce71461036f576101b7565b80631e83409a146102af57806323b872dd146102cf5780632f745c59146102ef576101b7565b8063081812fc11610195578063081812fc14610236578063095ea7b3146102635780631249c58b1461028557806318160ddd1461028d576101b7565b806301ffc9a7146101bc57806304d94317146101f257806306fdde0314610214575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004612977565b610524565b6040516101e99190613037565b60405180910390f35b3480156101fe57600080fd5b50610207610537565b6040516101e99190612f89565b34801561022057600080fd5b50610229610579565b6040516101e99190613042565b34801561024257600080fd5b506102566102513660046129d1565b61060b565b6040516101e99190612f38565b34801561026f57600080fd5b5061028361027e36600461294e565b610657565b005b6102836106ef565b34801561029957600080fd5b506102a2610727565b6040516101e99190613726565b3480156102bb57600080fd5b506102836102ca3660046127ba565b61072d565b3480156102db57600080fd5b506102836102ea36600461280d565b610778565b3480156102fb57600080fd5b506102a261030a36600461294e565b6107b0565b34801561031b57600080fd5b5061028361032a3660046129d1565b610802565b34801561033b57600080fd5b5061028361034a36600461280d565b610846565b34801561035b57600080fd5b5061028361036a3660046129d1565b610861565b34801561037b57600080fd5b506102a261038a3660046129d1565b610891565b61028361039d3660046129d1565b6108ec565b3480156103ae57600080fd5b506102566103bd3660046129d1565b6109fc565b3480156103ce57600080fd5b506102a26103dd3660046127ba565b610a31565b3480156103ee57600080fd5b50610283610a75565b34801561040357600080fd5b5061040c610abe565b6040516101e9929190612fba565b34801561042657600080fd5b50610256610e03565b34801561043b57600080fd5b50610229610e12565b34801561045057600080fd5b5061028361045f366004612914565b610e21565b34801561047057600080fd5b5061028361047f3660046129d1565b610eef565b34801561049057600080fd5b5061028361049f366004612848565b610f33565b3480156104b057600080fd5b506102836104bf3660046129af565b610f72565b3480156104d057600080fd5b506102296104df3660046129d1565b61102e565b3480156104f057600080fd5b506101dc6104ff3660046127db565b611109565b34801561051057600080fd5b5061028361051f3660046127ba565b611137565b600061052f826111a5565b90505b919050565b61053f61271b565b61054761271b565b600b54600160a01b900461ffff16815261055f610727565b6020820152600c546040820152600d546060820152919050565b60606000805461058890613817565b80601f01602080910402602001604051908101604052809291908181526020018280546105b490613817565b80156106015780601f106105d657610100808354040283529160200191610601565b820191906000526020600020905b8154815290600101906020018083116105e457829003601f168201915b5050505050905090565b6000610616826111ca565b61063b5760405162461bcd60e51b8152600401610632906133d8565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610662826109fc565b9050806001600160a01b0316836001600160a01b031614156106965760405162461bcd60e51b8152600401610632906134d1565b806001600160a01b03166106a86111e7565b6001600160a01b031614806106c457506106c4816104ff6111e7565b6106e05760405162461bcd60e51b8152600401610632906132b3565b6106ea83836111eb565b505050565b600c543410156107115760405162461bcd60e51b815260040161063290613512565b61071a33611259565b610725600c54611395565b565b60085490565b6107356111e7565b6001600160a01b0316610746610e03565b6001600160a01b03161461076c5760405162461bcd60e51b815260040161063290613424565b61077581611259565b50565b6107896107836111e7565b8261141e565b6107a55760405162461bcd60e51b815260040161063290613549565b6106ea8383836114a3565b60006107bb83610a31565b82106107d95760405162461bcd60e51b815260040161063290613055565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61080a6111e7565b6001600160a01b031661081b610e03565b6001600160a01b0316146108415760405162461bcd60e51b815260040161063290613424565b600c55565b6106ea83838360405180602001604052806000815250610f33565b61086c6107836111e7565b6108885760405162461bcd60e51b815260040161063290613662565b610775816115d0565b600061089b610727565b82106108b95760405162461bcd60e51b8152600401610632906135ca565b600882815481106108da57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b338061090a5760405162461bcd60e51b815260040161063290613230565b600d5434101561092c5760405162461bcd60e51b8152600401610632906136b2565b600b54600160a01b900461ffff16610944600e6115ea565b1060405160200161095490612f0f565b604051602081830303815290604052906109815760405162461bcd60e51b81526004016106329190613042565b50600061099b836010600160a41b03600485901b1661373b565b90506109a6816111ca565b156109c35760405162461bcd60e51b815260040161063290613459565b6109cd82826115ee565b6109d7600e61160c565b6109e1600e6115ea565b6000828152600f6020526040902055600d546106ea90611395565b6000818152600260205260408120546001600160a01b03168061052f5760405162461bcd60e51b81526004016106329061335a565b60006001600160a01b038216610a595760405162461bcd60e51b815260040161063290613310565b506001600160a01b031660009081526003602052604090205490565b610a7d6111e7565b6001600160a01b0316610a8e610e03565b6001600160a01b031614610ab45760405162461bcd60e51b815260040161063290613424565b6107256000611615565b6060803360041b818060006003604051908082528060200260200182016040528015610af4578160200160208202803683370190505b506040805160038082526080820190925291925060009190602082016060803683370190505090506000805b60038160ff161015610c3357610b3960ff82168861373b565b610b4490600161373b565b848260ff1681518110610b6757634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600f6000858360ff1681518110610b9a57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054838260ff1681518110610bd457634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506000838260ff1681518110610c0557634e487b7160e01b600052603260045260246000fd5b60200260200101511115610c2157610c1e826001613753565b91505b80610c2b8161386d565b915050610b20565b5060ff811615610d3a5760008160ff1667ffffffffffffffff811115610c6957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c92578160200160208202803683370190505b50955060005b60038160ff161015610d37576000848260ff1681518110610cc957634e487b7160e01b600052603260045260246000fd5b60200260200101511115610d2557610ce2816001613753565b878360ff1681518110610d0557634e487b7160e01b600052603260045260246000fd5b60ff90921660209283029190910190910152610d22826001613753565b91505b80610d2f8161386d565b915050610c98565b50505b6000610d4533610a31565b90508015610df4578067ffffffffffffffff811115610d7457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d9d578160200160208202803683370190505b50945060005b81811015610df257610db533826107b0565b868281518110610dd557634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610dea81613852565b915050610da3565b505b50939650919450505050509091565b600b546001600160a01b031690565b60606001805461058890613817565b610e296111e7565b6001600160a01b0316826001600160a01b03161415610e5a5760405162461bcd60e51b8152600401610632906131f9565b8060056000610e676111e7565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610eab6111e7565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ee39190613037565b60405180910390a35050565b610ef76111e7565b6001600160a01b0316610f08610e03565b6001600160a01b031614610f2e5760405162461bcd60e51b815260040161063290613424565b600d55565b610f44610f3e6111e7565b8361141e565b610f605760405162461bcd60e51b815260040161063290613549565b610f6c84848484611667565b50505050565b610f7a6111e7565b6001600160a01b0316610f8b610e03565b6001600160a01b031614610fb15760405162461bcd60e51b815260040161063290613424565b610fb9610727565b8161ffff161015610fdc5760405162461bcd60e51b81526004016106329061316f565b600b5461ffff600160a01b90910481169082161061100c5760405162461bcd60e51b8152600401610632906136f7565b600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6060611039826111ca565b6110555760405162461bcd60e51b81526004016106329061359a565b600f8216600483901c60006110698261169a565b90506000611077848361198c565b6000878152600f60205260408120549192509061109390611a32565b905061109d610579565b81601f60106110ad60018a6137d4565b600381106110cb57634e487b7160e01b600052603260045260246000fd5b018560206110d88d611a32565b6040516020016110ee9796959493929190612dbb565b60405160208183030381529060405295505050505050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61113f6111e7565b6001600160a01b0316611150610e03565b6001600160a01b0316146111765760405162461bcd60e51b815260040161063290613424565b6001600160a01b03811661119c5760405162461bcd60e51b8152600401610632906130f2565b61077581611615565b60006001600160e01b0319821663780e9d6360e01b148061052f575061052f82611bf0565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611220826109fc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03811661127f5760405162461bcd60e51b815260040161063290613230565b600b54600160a01b900461ffff16611297600e6115ea565b6112a290600361373b565b11156040516020016112b390612f0f565b604051602081830303815290604052906112e05760405162461bcd60e51b81526004016106329190613042565b506010600160a41b03600482901b1660015b6003811161133b5761130c611307828461373b565b6111ca565b156113295760405162461bcd60e51b815260040161063290613616565b8061133381613852565b9150506112f2565b5060015b600381116106ea576000611353828461373b565b905061135f84826115ee565b611369600e61160c565b611373600e6115ea565b6000918252600f6020526040909120558061138d81613852565b91505061133f565b34156107755760006113a782346137d4565b905080156113de57604051339082156108fc029083906000818181858888f193505050501580156113dc573d6000803e3d6000fd5b505b6113e6610e03565b6001600160a01b03166108fc839081150290604051600060405180830381858888f193505050501580156106ea573d6000803e3d6000fd5b6000611429826111ca565b6114455760405162461bcd60e51b815260040161063290613267565b6000611450836109fc565b9050806001600160a01b0316846001600160a01b0316148061148b5750836001600160a01b03166114808461060b565b6001600160a01b0316145b8061149b575061149b8185611109565b949350505050565b826001600160a01b03166114b6826109fc565b6001600160a01b0316146114dc5760405162461bcd60e51b815260040161063290613488565b6001600160a01b0382166115025760405162461bcd60e51b8152600401610632906131b5565b61150d838383611c30565b6115186000826111eb565b6001600160a01b03831660009081526003602052604081208054600192906115419084906137d4565b90915550506001600160a01b038216600090815260036020526040812080546001929061156f90849061373b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6115d981611c3b565b6000908152600f6020526040812055565b5490565b611608828260405180602001604052806000815250611c7b565b5050565b80546001019055565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6116728484846114a3565b61167e84848484611cae565b610f6c5760405162461bcd60e51b8152600401610632906130a0565b6040805160248082526104a0820190925260609160009190816020015b6116bf612739565b8152602001906001900390816116b757905050905060005b602481101561174c576040805160068183018181526080830190935290918291602082018180368337019050508152602001600081525082828151811061172e57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061174490613852565b9150506116d7565b50600f60005b60288110156118c7576000826117698360276137d4565b61177490600461378c565b87901c16905060006040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b81525082815181106117c457634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916905060005b60068110156118b1578084101580156117fa57506117f781602461373b565b84105b1561189f5760008661180c83876137d4565b8151811061182a57634e487b7160e01b600052603260045260246000fd5b60200260200101519050828160000151838151811061185957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061187b8260056137d4565b61188690600461378c565b84901b8160200151611898919061373b565b6020909101525b806118a981613852565b9150506117d8565b50505080806118bf90613852565b915050611752565b50816000815181106118e957634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160008151811061191557634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8260238151811061194157634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160058151811061196d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350909392505050565b60608083600114156119a8576119a183611dc9565b90506119cf565b83600214156119ba576119a183611f90565b83600314156119cf576119cc8361212a565b90505b6040518060a00160405280607281526020016138fa6072913981604051806040016040528060068152602001651e17b9bb339f60d11b815250604051602001611a1a93929190612b66565b60405160208183030381529060405291505092915050565b60408051606480825260a082019092526060919060009082602082018180368337019050509050600084611a8457604051806040016040528060018152602001600360fc1b8152509350505050610532565b8415611afc576000611a97600a8761388d565b9050611aa4600a87613778565b9550611ab181603061373b565b60f81b8383611abf81613852565b945081518110611adf57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050611a84565b60008167ffffffffffffffff811115611b2557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b4f576020820181803683370190505b50905060005b82811015611be657836001611b6a83866137d4565b611b7491906137d4565b81518110611b9257634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b828281518110611bbd57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611bde81613852565b915050611b55565b5095945050505050565b60006001600160e01b031982166380ac58cd60e01b1480611c2157506001600160e01b03198216635b5e139f60e01b145b8061052f575061052f826122ef565b6106ea838383612308565b611c4481612391565b6000818152600a602052604090208054611c5d90613817565b159050610775576000818152600a6020526040812061077591612753565b611c858383612438565b611c926000848484611cae565b6106ea5760405162461bcd60e51b8152600401610632906130a0565b6000611cc2846001600160a01b0316612517565b15611dbe57836001600160a01b031663150b7a02611cde6111e7565b8786866040518563ffffffff1660e01b8152600401611d009493929190612f4c565b602060405180830381600087803b158015611d1a57600080fd5b505af1925050508015611d4a575060408051601f3d908101601f19168201909252611d4791810190612993565b60015b611da4573d808015611d78576040519150601f19603f3d011682016040523d82523d6000602084013e611d7d565b606091505b508051611d9c5760405162461bcd60e51b8152600401610632906130a0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061149b565b506001949350505050565b6060600060405180610280016040528061024b8152602001613f5461024b9139905060005b600660ff82161015611f895760005b600660ff82161015611f7657600081611e176006856137ab565b611e219190613753565b90506000611e736002888460ff1681518110611e4d57634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611e63919061388d565b611e6e90605a61378c565b611a32565b905084878360ff1681518110611e9957634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518260198760ff1660068110611eca57634e487b7160e01b600052603260045260246000fd5b0160198760ff1660068110611eef57634e487b7160e01b600052603260045260246000fd5b0160138960ff1660068110611f1457634e487b7160e01b600052603260045260246000fd5b0160138960ff1660068110611f3957634e487b7160e01b600052603260045260246000fd5b01604051602001611f509796959493929190612cb6565b604051602081830303815290604052945050508080611f6e9061386d565b915050611dfd565b5080611f818161386d565b915050611dee565b5092915050565b60606000604051806102a0016040528061027b815260200161396c61027b9139905060005b600660ff82161015611f895760005b600660ff8216101561211757600081611fde6006856137ab565b611fe89190613753565b905060006120146004888460ff1681518110611e4d57634e487b7160e01b600052603260045260246000fd5b905084878360ff168151811061203a57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518260198760ff166006811061206b57634e487b7160e01b600052603260045260246000fd5b0160198760ff166006811061209057634e487b7160e01b600052603260045260246000fd5b0160138960ff16600681106120b557634e487b7160e01b600052603260045260246000fd5b0160138960ff16600681106120da57634e487b7160e01b600052603260045260246000fd5b016040516020016120f19796959493929190612ba9565b60405160208183030381529060405294505050808061210f9061386d565b915050611fc4565b50806121228161386d565b915050611fb5565b60606000604051806103a0016040528061036d8152602001613be761036d9139905060005b600660ff82161015611f895760005b600660ff821610156122dc576000816121786006856137ab565b6121829190613753565b90506000868260ff16815181106121a957634e487b7160e01b600052603260045260246000fd5b602002602001015160200151905060006121d862ffffff836101686121ce919061378c565b611e6e9190613778565b905085888460ff16815181106121fe57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518260198860ff166006811061222f57634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061225457634e487b7160e01b600052603260045260246000fd5b0160138a60ff166006811061227957634e487b7160e01b600052603260045260246000fd5b0160138a60ff166006811061229e57634e487b7160e01b600052603260045260246000fd5b016040516020016122b59796959493929190612d64565b604051602081830303815290604052955050505080806122d49061386d565b91505061215e565b50806122e78161386d565b91505061214f565b6001600160e01b031981166301ffc9a760e01b14919050565b6123138383836106ea565b6001600160a01b03831661232f5761232a8161251d565b612352565b816001600160a01b0316836001600160a01b031614612352576123528382612561565b6001600160a01b03821661236e57612369816125fe565b6106ea565b826001600160a01b0316826001600160a01b0316146106ea576106ea82826126d7565b600061239c826109fc565b90506123aa81600084611c30565b6123b56000836111eb565b6001600160a01b03811660009081526003602052604081208054600192906123de9084906137d4565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03821661245e5760405162461bcd60e51b8152600401610632906133a3565b612467816111ca565b156124845760405162461bcd60e51b815260040161063290613138565b61249060008383611c30565b6001600160a01b03821660009081526003602052604081208054600192906124b990849061373b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161256e84610a31565b61257891906137d4565b6000838152600760205260409020549091508082146125cb576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612610906001906137d4565b6000838152600960205260408120546008805493945090928490811061264657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061267557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806126bb57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006126e283610a31565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528060608152602001600081525090565b50805461275f90613817565b6000825580601f106127715750610775565b601f01602090049060005260206000209081019061077591905b8082111561279f576000815560010161278b565b5090565b80356001600160a01b038116811461053257600080fd5b6000602082840312156127cb578081fd5b6127d4826127a3565b9392505050565b600080604083850312156127ed578081fd5b6127f6836127a3565b9150612804602084016127a3565b90509250929050565b600080600060608486031215612821578081fd5b61282a846127a3565b9250612838602085016127a3565b9150604084013590509250925092565b6000806000806080858703121561285d578081fd5b612866856127a3565b935060206128758187016127a3565b935060408601359250606086013567ffffffffffffffff80821115612898578384fd5b818801915088601f8301126128ab578384fd5b8135818111156128bd576128bd6138cd565b604051601f8201601f19168101850183811182821017156128e0576128e06138cd565b60405281815283820185018b10156128f6578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612926578182fd5b61292f836127a3565b915060208301358015158114612943578182fd5b809150509250929050565b60008060408385031215612960578182fd5b612969836127a3565b946020939093013593505050565b600060208284031215612988578081fd5b81356127d4816138e3565b6000602082840312156129a4578081fd5b81516127d4816138e3565b6000602082840312156129c0578081fd5b813561ffff811681146127d4578182fd5b6000602082840312156129e2578081fd5b5035919050565b60008151808452612a018160208601602086016137eb565b601f01601f19169290920160200192915050565b60008151612a278185602086016137eb565b9290920192915050565b805460009060028104600180831680612a4b57607f831692505b6020808410821415612a6b57634e487b7160e01b86526022600452602486fd5b818015612a7f5760018114612a9057612abd565b60ff19861689528489019650612abd565b612a998861372f565b60005b86811015612ab55781548b820152908501908301612a9c565b505084890196505b50505050505092915050565b7f222c20226261636b67726f756e645f636f6c6f72223a2022313130303131227d815260200190565b682f67616c6c6572792f60b81b815260090190565b7f222c202265787465726e616c5f75726c223a202268747470733a2f2f6f62736f81527f6c6574652e64657369676e2f6172742f636f6c6c656374696f6e2f00000000006020820152603b0190565b632e11179f60e11b815260040190565b60008451612b788184602089016137eb565b845190830190612b8c8183602089016137eb565b8451910190612b9f8183602088016137eb565b0195945050505050565b60008851612bbb818460208d016137eb565b80830190507f3c75736520687265663d5c222532337472695c22207374726f6b653d5c2225328152603360f81b60208201528851612c00816021840160208d016137eb565b750b84440e8e4c2dce6ccdee4da7ab844e4dee8c2e8ca560531b602192909101918201528751612c37816037840160208c016137eb565b808201915050600160fd1b806037830152612c556038830189612a31565b9081529050612c676001820187612a31565b6714ae11103c1eae1160c11b81529050612c846008820186612a31565b662e11103c9eae1160c91b81529050612ca8612ca36007830186612a31565b612b56565b9a9950505050505050505050565b60008851612cc8818460208d016137eb565b80830190507f3c75736520687265663d5c222532336c696e65735c22207374726f6b653d5c2281526225323360e81b60208201528851612d0f816023840160208d016137eb565b750b84440e8e4c2dce6ccdee4da7ab844e4dee8c2e8ca560531b602392909101918201528751612d46816039840160208c016137eb565b808201915050600160fd1b806039830152612c55603a830189612a31565b60008851612d76818460208d016137eb565b80830190507f3c75736520687265663d5c22253233646f745c22207374726f6b653d5c2225328152603360f81b60208201528851612c00816021840160208d016137eb565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d82526432911d101160d91b60208301528851612e01816025850160208d016137eb565b61202360f01b6025918401918201528851612e23816027840160208d016137eb565b72111610113232b9b1b934b83a34b7b7111d101160691b60279290910191820152612e51603a820189612a31565b7f222c202261747472696275746573223a205b7b2274726169745f74797065223a815273101129ba3cb632911610113b30b63ab2911d101160611b60208201529050612ea06034820188612a31565b73113eae96101134b6b0b3b2afb230ba30911d101160611b81528651909150612ed0816014840160208a016137eb565b612f00612efb612ef5612ef0612eea601486880101612b07565b8a612a31565b612af2565b87612a15565b612ac9565b9b9a5050505050505050505050565b7f4552433732313a2053657269657320616c7265616479206d696e7465640000008152601d0190565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f7f908301846129e9565b9695505050505050565b60808101818360005b6004811015612fb1578151835260209283019290910190600101612f92565b50505092915050565b604080825283519082018190526000906020906060840190828701845b82811015612ff657815160ff1684529284019290840190600101612fd7565b50505083810382850152845180825285830191830190845b8181101561302a5783518352928401929184019160010161300e565b5090979650505050505050565b901515815260200190565b6000602082526127d460208301846129e9565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526026908201527f43616e27742072656475636520737570706c792062656c6f7720746f74616c20604082015265737570706c7960d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601b908201527f43616e2774206d696e7420666f72207a65726f20616464726573730000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260159082015274546f6b656e20616c7265616479206d696e7465642160581b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601f908201527f4d7573742073656e64206174206c65617374206d696e74507269636557656900604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601690820152754552433732313a206d697373696e6720746f6b656e2160501b604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602c908201527f4f6e65206f72206d6f72652072657175657374656420746f6b656e7320616c7260408201526b65616479206d696e7465642160a01b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b60208082526025908201527f4d7573742073656e64206174206c65617374206d696e74507269636553696e676040820152646c6557656960d81b606082015260800190565b60208082526015908201527443616e277420696e63726561736520737570706c7960581b604082015260600190565b90815260200190565b60009081526020902090565b6000821982111561374e5761374e6138a1565b500190565b600060ff821660ff84168060ff03821115613770576137706138a1565b019392505050565b600082613787576137876138b7565b500490565b60008160001904831182151516156137a6576137a66138a1565b500290565b600060ff821660ff84168160ff04811182151516156137cc576137cc6138a1565b029392505050565b6000828210156137e6576137e66138a1565b500390565b60005b838110156138065781810151838201526020016137ee565b83811115610f6c5750506000910152565b60028104600182168061382b57607f821691505b6020821081141561384c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613866576138666138a1565b5060010190565b600060ff821660ff811415613884576138846138a1565b60010192915050565b60008261389c5761389c6138b7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461077557600080fdfe3c7376672076696577426f783d5c2230203020393630203936305c22207374796c653d5c226d61782d77696474683a313030766d696e3b6d61782d6865696768743a313030766d696e3b5c2220786d6c6e733d5c22687474703a2f2f7777772e77332e6f72672f323030302f7376675c223e3c73796d626f6c2069643d5c227472695c222076696577506f72743d5c2230203020313630203136305c223e3c6c696e652078313d5c2231305c222079313d5c223136305c222078323d5c223136305c222079323d5c2231305c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e39363b5c222f3e3c6c696e652078313d5c2233305c222079313d5c223136305c222078323d5c223136305c222079323d5c2233305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c2235305c222079313d5c223136305c222078323d5c223136305c222079323d5c2235305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c2237305c222079313d5c223136305c222078323d5c223136305c222079323d5c2237305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c2239305c222079313d5c223136305c222078323d5c223136305c222079323d5c2239305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c223131305c222079313d5c223136305c222078323d5c223136305c222079323d5c223131305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c223133305c222079313d5c223136305c222078323d5c223136305c222079323d5c223133305c22207374726f6b652d77696474683d5c22345c22202f3e3c6c696e652078313d5c223135305c222079313d5c223136305c222078323d5c223136305c222079323d5c223135305c22207374726f6b652d77696474683d5c22345c22202f3e3c2f73796d626f6c3e3c73796d626f6c2069643d5c22646f745c222076696577506f72743d5c2230203020313630203136305c223e3c6c696e652079313d5c22305c222078313d5c2231365c222079323d5c223136305c222078323d5c2231365c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e39363b5c222f3e3c6c696e652079313d5c22305c222078313d5c2233325c222079323d5c223136305c222078323d5c2233325c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e38373b5c222f3e3c6c696e652079313d5c22305c222078313d5c2234385c222079323d5c223136305c222078323d5c2234385c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e37393b5c222f3e3c6c696e652079313d5c22305c222078313d5c2236345c222079323d5c223136305c222078323d5c2236345c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e373b5c222f3e3c6c696e652079313d5c22305c222078313d5c2238305c222079323d5c223136305c222078323d5c2238305c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e36313b5c222f3e3c6c696e652079313d5c22305c222078313d5c2239365c222079323d5c223136305c222078323d5c2239365c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e35323b5c222f3e3c6c696e652079313d5c22305c222078313d5c223131325c222079323d5c223136305c222078323d5c223131325c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e34333b5c222f3e3c6c696e652079313d5c22305c222078313d5c223132385c222079323d5c223136305c222078323d5c223132385c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e33343b5c222f3e3c6c696e652079313d5c22305c222078313d5c223134345c222079323d5c223136305c222078323d5c223134345c22207374726f6b652d77696474683d5c22345c22207374796c653d5c226f7061636974793a20302e32353b5c222f3e3c2f73796d626f6c3e3c73796d626f6c2069643d5c226c696e65735c222076696577506f72743d5c2230203020313630203136305c223e3c6c696e652078313d5c22305c222079313d5c2233355c222078323d5c2233355c222079323d5c22305c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c22305c222079313d5c2236355c222078323d5c2236355c222079323d5c22305c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c22305c222079313d5c2239355c222078323d5c2239355c222079323d5c22305c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c22305c222079313d5c223132355c222078323d5c223132355c222079323d5c22305c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c2233355c222079313d5c223136305c222078323d5c223136305c222079323d5c2233355c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c2236355c222079313d5c223136305c222078323d5c223136305c222079323d5c2236355c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c2239355c222079313d5c223136305c222078323d5c223136305c222079323d5c2239355c22207374726f6b652d77696474683d5c22345c222f3e3c6c696e652078313d5c223132355c222079313d5c223136305c222078323d5c223136305c222079323d5c223132355c22207374726f6b652d77696474683d5c22345c222f3e3c2f73796d626f6c3ea2646970667358221220af43c44bbbd2e8569c4e4a13594e0235eb40c179c9444814b853ba491e4b98a264736f6c63430008000033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 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.