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 12 from a total of 12 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Update Max Suppl... | 15341954 | 1254 days ago | IN | 0 ETH | 0.00031664 | ||||
| Mint | 14112504 | 1450 days ago | IN | 0.05 ETH | 0.03309615 | ||||
| Update Max Suppl... | 14010411 | 1465 days ago | IN | 0 ETH | 0.00357209 | ||||
| Set Approval For... | 13614060 | 1528 days ago | IN | 0 ETH | 0.00445382 | ||||
| Update Max Suppl... | 13594780 | 1531 days ago | IN | 0 ETH | 0.00488643 | ||||
| Set Approval For... | 13384053 | 1564 days ago | IN | 0 ETH | 0.00269539 | ||||
| Set Approval For... | 13383922 | 1564 days ago | IN | 0 ETH | 0.00264778 | ||||
| Claim | 13357895 | 1568 days ago | IN | 0 ETH | 0.03374917 | ||||
| Claim | 13352153 | 1569 days ago | IN | 0 ETH | 0.01912195 | ||||
| Claim | 13352103 | 1569 days ago | IN | 0 ETH | 0.0266683 | ||||
| Mint | 13349565 | 1569 days ago | IN | 0.05 ETH | 0.03362211 | ||||
| Transfer Ownersh... | 13349194 | 1569 days ago | IN | 0 ETH | 0.00145639 |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SignatureAlternates
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 SignatureAlternates is AbstractSignature {
string constant _svgTrianglePrefix = "<svg viewBox=\\\"-1 -1 962 962\\\" style=\\\"max-width:100vmin;max-height:100vmin;\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">";
constructor() AbstractSignature("Signature Alternates", "signature-alternates", "Alternate interpretations of the minting address", "SIGA") {
_styles[0] = "Terrazzo";
_styles[1] = "Bubbles";
_styles[2] = "Edges";
}
function _draw(uint256 styleId, ColorMetaData[] memory colors) internal view override returns(string memory) {
string memory svg;
if (styleId == 1) {
svg = _terrazzo(colors);
} else if (styleId == 2) {
svg = _bubbles(colors);
} else if (styleId == 3) {
svg = _edges(colors);
}
return string(abi.encodePacked(styleId == 3 ? _svgTrianglePrefix : _svgPrefix, svg, _svgSuffix));
}
function _terrazzo(ColorMetaData[] memory colors) internal pure returns(string memory) {
string memory result;
for (uint8 i = 0; i < _gridCount; i++) {
for (uint8 j = 0; j < _gridCount; j++) {
uint8 index = i * _gridCount + j;
uint256 posX = _gridSize * i;
uint256 posY = _gridSize * j;
bytes memory color = colors[index].color;
uint decimalColor = colors[index].decimal;
uint256[8] memory offsets;
uint mask = 0xFFFF;
for (uint p=0;p<8;p++) {
uint c = (decimalColor >> 1 * p) & mask;
offsets[p] = 55 * _gridSize * c / 6553500;
}
string memory points = string(abi.encodePacked(_uintToString(posX + offsets[0]), ",", _uintToString(posY + offsets[1]), " ", _uintToString(posX + _gridSize - offsets[2]), ",", _uintToString(posY + offsets[3]), " ", _uintToString(posX + _gridSize - offsets[4]), ",", _uintToString(posY + _gridSize - offsets[5]), " ", _uintToString(posX + offsets[6]), ",", _uintToString(posY + _gridSize - offsets[7])));
string memory rand = _uintToString(360 * decimalColor / 16777215);
string memory g = string(abi.encodePacked("<g transform=\\\"rotate(", rand, " ", _uintToString(posX + (5 * _gridSize / 10)), " ", _uintToString(posY + (5 * _gridSize) / 10), "\\\">"));
result = string(abi.encodePacked(result, g, "<polygon points=\\\"", points, "\\\" fill=\\\"%23", color, "\\\" /></g>"));
}
}
return result;
}
function _bubbles(ColorMetaData[] memory colors) internal pure returns(string memory) {
string memory result;
for (uint8 i = 0; i < _gridCount; i++) {
for (uint8 j = 0; j < _gridCount; j++) {
uint8 index = i * _gridCount + j;
string memory r = _uintToString(colors[index].decimal * _gridSize / 16777215);
result = string(abi.encodePacked(result, "<circle fill=\\\"%23", colors[index].color, "A0\\\" cx=\\\"", _uintToString(_gridSize * (10 * i + 5) / 10),"\\\" cy=\\\"", _uintToString(_gridSize * (10 * j + 5) / 10), "\\\" r=\\\"", r, "\\\"/>"));
}
}
return result;
}
function _edges(ColorMetaData[] memory colors) internal view returns(string memory) {
string memory result = "<symbol id=\\\"pxl\\\" viewPort=\\\"0 0 160 160\\\" overflow=\\\"visible\\\" style=\\\"overflow: visible;\\\"><rect stroke-width=\\\"2\\\" fill=\\\"none\\\" width=\\\"160\\\" height=\\\"160\\\"/></symbol><symbol id=\\\"tri\\\" viewPort=\\\"0 0 160 160\\\" overflow=\\\"visible\\\" style=\\\"overflow: visible;\\\"><polygon stroke-width=\\\"2\\\" fill=\\\"none\\\" width=\\\"160\\\" height=\\\"160\\\" points=\\\"0,0 0,160 160,0\\\"/></symbol>";
for (uint8 i = 0; i < _gridCount; i++) {
for (uint8 j = 0; j < _gridCount; j++) {
uint8 index = i * _gridCount + j;
uint shape = colors[index].decimal % 5;
if (shape == 0) {
result = string(abi.encodePacked(result, "<use href=\\\"%23pxl\\\" stroke=\\\"%23", colors[index].color ,"\\\" x=\\\"", _gridPos[i], "\\\" y=\\\"", _gridPos[j],"\\\"/>"));
} else {
if (shape == 1) {
result = string(abi.encodePacked(result, "<use href=\\\"%23tri\\\" stroke=\\\"%23", colors[index].color ,"\\\" x=\\\"", _gridPos[i], "\\\" y=\\\"", _gridPos[j],"\\\" transform=\\\"rotate(90 ",_gridCentrePos[i], ",", _gridCentrePos[j],")\\\"/>"));
} else if (shape == 2) {
result = string(abi.encodePacked(result, "<use href=\\\"%23tri\\\" stroke=\\\"%23", colors[index].color ,"\\\" x=\\\"", _gridPos[i], "\\\" y=\\\"", _gridPos[j],"\\\" transform=\\\"rotate(180 ",_gridCentrePos[i], ",", _gridCentrePos[j],")\\\"/>"));
} else if (shape == 3) {
result = string(abi.encodePacked(result, "<use href=\\\"%23tri\\\" stroke=\\\"%23", colors[index].color ,"\\\" x=\\\"", _gridPos[i], "\\\" y=\\\"", _gridPos[j],"\\\" transform=\\\"rotate(270 ",_gridCentrePos[i], ",", _gridCentrePos[j],")\\\"/>"));
} else if (shape == 4) {
result = string(abi.encodePacked(result, "<use href=\\\"%23tri\\\" stroke=\\\"%23", colors[index].color ,"\\\" 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
60806040523480156200001157600080fd5b506040518060400160405280601481526020017f5369676e617475726520416c7465726e617465730000000000000000000000008152506040518060400160405280601481526020017f7369676e61747572652d616c7465726e617465730000000000000000000000008152506040518060600160405280603081526020016200498560309139604051806040016040528060048152602001635349474160e01b81525083818160009080519060200190620000cf9291906200048c565b508051620000e59060019060208401906200048c565b50505062000102620000fc6200043660201b60201c565b6200043a565b81516200011790601f9060208501906200048c565b5082516200012c90602090818601906200048c565b50600b805461ffff60a01b191661270f60a01b17905566b1a2bc2ec50000600c5566470de4df820000600d55604080518082019091526001808252600360fc1b602090920191825262000182916013916200048c565b506040805180820190915260038082526203136360ec1b6020909201918252620001af916014916200048c565b506040805180820190915260038082526203332360ec1b6020909201918252620001dc916015916200048c565b506040805180820190915260038082526203438360ec1b602090920191825262000209916016916200048c565b506040805180820190915260038082526203634360ec1b602090920191825262000236916017916200048c565b506040805180820190915260038082526203830360ec1b602090920191825262000263916018916200048c565b5060408051808201909152600280825261038360f41b60209092019182526200028f916019916200048c565b506040805180820190915260038082526203234360ec1b6020909201918252620002bc91601a916200048c565b506040805180820190915260038082526203430360ec1b6020909201918252620002e991601b916200048c565b506040805180820190915260038082526203536360ec1b60209092019182526200031691601c916200048c565b506040805180820190915260038082526203732360ec1b60209092019182526200034391601d916200048c565b506040805180820190915260038082526203838360ec1b60209092019182526200037091601e916200048c565b50505050506040518060400160405280600881526020016754657272617a7a6f60c01b8152506010600060038110620003b957634e487b7160e01b600052603260045260246000fd5b019080519060200190620003cf9291906200048c565b5060408051808201909152600780825266427562626c657360c81b602090920191825262000400916011916200048c565b5060408051808201909152600580825264456467657360d81b60209092019182526200042f916012916200048c565b506200056f565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200049a9062000532565b90600052602060002090601f016020900481019282620004be576000855562000509565b82601f10620004d957805160ff191683800117855562000509565b8280016001018555821562000509579182015b8281111562000509578251825591602001919060010190620004ec565b50620005179291506200051b565b5090565b5b808211156200051757600081556001016200051c565b6002810460018216806200054757607f821691505b602082108114156200056957634e487b7160e01b600052602260045260246000fd5b50919050565b614406806200057f6000396000f3fe6080604052600436106101b75760003560e01c806353b8eb67116100ec578063a22cb4651161008a578063c5ff514a11610064578063c5ff514a146104a4578063c87b56dd146104c4578063e985e9c5146104e4578063f2fde38b14610504576101b7565b8063a22cb46514610444578063b262849a14610464578063b88d4fde14610484576101b7565b8063715018a6116100c6578063715018a6146103e257806378d07685146103f75780638da5cb5b1461041a57806395d89b411461042f576101b7565b806353b8eb671461038f5780636352211e146103a257806370a08231146103c2576101b7565b80631e83409a11610159578063303ab0c611610133578063303ab0c61461030f57806342842e0e1461032f57806342966c681461034f5780634f6ccce71461036f576101b7565b80631e83409a146102af57806323b872dd146102cf5780632f745c59146102ef576101b7565b8063081812fc11610195578063081812fc14610236578063095ea7b3146102635780631249c58b1461028557806318160ddd1461028d576101b7565b806301ffc9a7146101bc57806304d94317146101f257806306fdde0314610214575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004612daf565b610524565b6040516101e99190613867565b60405180910390f35b3480156101fe57600080fd5b50610207610537565b6040516101e991906137b9565b34801561022057600080fd5b50610229610579565b6040516101e99190613872565b34801561024257600080fd5b50610256610251366004612e09565b61060b565b6040516101e99190613768565b34801561026f57600080fd5b5061028361027e366004612d86565b610657565b005b6102836106ef565b34801561029957600080fd5b506102a2610727565b6040516101e99190613f56565b3480156102bb57600080fd5b506102836102ca366004612bf2565b61072d565b3480156102db57600080fd5b506102836102ea366004612c45565b610778565b3480156102fb57600080fd5b506102a261030a366004612d86565b6107b0565b34801561031b57600080fd5b5061028361032a366004612e09565b610802565b34801561033b57600080fd5b5061028361034a366004612c45565b610846565b34801561035b57600080fd5b5061028361036a366004612e09565b610861565b34801561037b57600080fd5b506102a261038a366004612e09565b610891565b61028361039d366004612e09565b6108ec565b3480156103ae57600080fd5b506102566103bd366004612e09565b6109fc565b3480156103ce57600080fd5b506102a26103dd366004612bf2565b610a31565b3480156103ee57600080fd5b50610283610a75565b34801561040357600080fd5b5061040c610abe565b6040516101e99291906137ea565b34801561042657600080fd5b50610256610e03565b34801561043b57600080fd5b50610229610e12565b34801561045057600080fd5b5061028361045f366004612d4c565b610e21565b34801561047057600080fd5b5061028361047f366004612e09565b610eef565b34801561049057600080fd5b5061028361049f366004612c80565b610f33565b3480156104b057600080fd5b506102836104bf366004612de7565b610f72565b3480156104d057600080fd5b506102296104df366004612e09565b61102e565b3480156104f057600080fd5b506101dc6104ff366004612c13565b611109565b34801561051057600080fd5b5061028361051f366004612bf2565b611137565b600061052f826111a5565b90505b919050565b61053f612b2f565b610547612b2f565b600b54600160a01b900461ffff16815261055f610727565b6020820152600c546040820152600d546060820152919050565b60606000805461058890614092565b80601f01602080910402602001604051908101604052809291908181526020018280546105b490614092565b80156106015780601f106105d657610100808354040283529160200191610601565b820191906000526020600020905b8154815290600101906020018083116105e457829003601f168201915b5050505050905090565b6000610616826111ca565b61063b5760405162461bcd60e51b815260040161063290613c08565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610662826109fc565b9050806001600160a01b0316836001600160a01b031614156106965760405162461bcd60e51b815260040161063290613d01565b806001600160a01b03166106a86111e7565b6001600160a01b031614806106c457506106c4816104ff6111e7565b6106e05760405162461bcd60e51b815260040161063290613ae3565b6106ea83836111eb565b505050565b600c543410156107115760405162461bcd60e51b815260040161063290613d42565b61071a33611259565b610725600c54611395565b565b60085490565b6107356111e7565b6001600160a01b0316610746610e03565b6001600160a01b03161461076c5760405162461bcd60e51b815260040161063290613c54565b61077581611259565b50565b6107896107836111e7565b8261141e565b6107a55760405162461bcd60e51b815260040161063290613d79565b6106ea8383836114a3565b60006107bb83610a31565b82106107d95760405162461bcd60e51b815260040161063290613885565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61080a6111e7565b6001600160a01b031661081b610e03565b6001600160a01b0316146108415760405162461bcd60e51b815260040161063290613c54565b600c55565b6106ea83838360405180602001604052806000815250610f33565b61086c6107836111e7565b6108885760405162461bcd60e51b815260040161063290613e92565b610775816115d0565b600061089b610727565b82106108b95760405162461bcd60e51b815260040161063290613dfa565b600882815481106108da57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b338061090a5760405162461bcd60e51b815260040161063290613a60565b600d5434101561092c5760405162461bcd60e51b815260040161063290613ee2565b600b54600160a01b900461ffff16610944600e6115ea565b106040516020016109549061373f565b604051602081830303815290604052906109815760405162461bcd60e51b81526004016106329190613872565b50600061099b836010600160a41b03600485901b16613f6b565b90506109a6816111ca565b156109c35760405162461bcd60e51b815260040161063290613c89565b6109cd82826115ee565b6109d7600e61160c565b6109e1600e6115ea565b6000828152600f6020526040902055600d546106ea90611395565b6000818152600260205260408120546001600160a01b03168061052f5760405162461bcd60e51b815260040161063290613b8a565b60006001600160a01b038216610a595760405162461bcd60e51b815260040161063290613b40565b506001600160a01b031660009081526003602052604090205490565b610a7d6111e7565b6001600160a01b0316610a8e610e03565b6001600160a01b031614610ab45760405162461bcd60e51b815260040161063290613c54565b6107256000611615565b6060803360041b818060006003604051908082528060200260200182016040528015610af4578160200160208202803683370190505b506040805160038082526080820190925291925060009190602082016060803683370190505090506000805b60038160ff161015610c3357610b3960ff821688613f6b565b610b44906001613f6b565b848260ff1681518110610b6757634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600f6000858360ff1681518110610b9a57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054838260ff1681518110610bd457634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506000838260ff1681518110610c0557634e487b7160e01b600052603260045260246000fd5b60200260200101511115610c2157610c1e826001613f83565b91505b80610c2b816140e8565b915050610b20565b5060ff811615610d3a5760008160ff1667ffffffffffffffff811115610c6957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c92578160200160208202803683370190505b50955060005b60038160ff161015610d37576000848260ff1681518110610cc957634e487b7160e01b600052603260045260246000fd5b60200260200101511115610d2557610ce2816001613f83565b878360ff1681518110610d0557634e487b7160e01b600052603260045260246000fd5b60ff90921660209283029190910190910152610d22826001613f83565b91505b80610d2f816140e8565b915050610c98565b50505b6000610d4533610a31565b90508015610df4578067ffffffffffffffff811115610d7457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d9d578160200160208202803683370190505b50945060005b81811015610df257610db533826107b0565b868281518110610dd557634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610dea816140cd565b915050610da3565b505b50939650919450505050509091565b600b546001600160a01b031690565b60606001805461058890614092565b610e296111e7565b6001600160a01b0316826001600160a01b03161415610e5a5760405162461bcd60e51b815260040161063290613a29565b8060056000610e676111e7565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610eab6111e7565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ee39190613867565b60405180910390a35050565b610ef76111e7565b6001600160a01b0316610f08610e03565b6001600160a01b031614610f2e5760405162461bcd60e51b815260040161063290613c54565b600d55565b610f44610f3e6111e7565b8361141e565b610f605760405162461bcd60e51b815260040161063290613d79565b610f6c84848484611667565b50505050565b610f7a6111e7565b6001600160a01b0316610f8b610e03565b6001600160a01b031614610fb15760405162461bcd60e51b815260040161063290613c54565b610fb9610727565b8161ffff161015610fdc5760405162461bcd60e51b81526004016106329061399f565b600b5461ffff600160a01b90910481169082161061100c5760405162461bcd60e51b815260040161063290613f27565b600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6060611039826111ca565b6110555760405162461bcd60e51b815260040161063290613dca565b600f8216600483901c60006110698261169a565b90506000611077848361198c565b6000878152600f60205260408120549192509061109390611a59565b905061109d610579565b81601f60106110ad60018a61404f565b600381106110cb57634e487b7160e01b600052603260045260246000fd5b018560206110d88d611a59565b6040516020016110ee97969594939291906135fa565b60405160208183030381529060405295505050505050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61113f6111e7565b6001600160a01b0316611150610e03565b6001600160a01b0316146111765760405162461bcd60e51b815260040161063290613c54565b6001600160a01b03811661119c5760405162461bcd60e51b815260040161063290613922565b61077581611615565b60006001600160e01b0319821663780e9d6360e01b148061052f575061052f82611c17565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611220826109fc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03811661127f5760405162461bcd60e51b815260040161063290613a60565b600b54600160a01b900461ffff16611297600e6115ea565b6112a2906003613f6b565b11156040516020016112b39061373f565b604051602081830303815290604052906112e05760405162461bcd60e51b81526004016106329190613872565b506010600160a41b03600482901b1660015b6003811161133b5761130c6113078284613f6b565b6111ca565b156113295760405162461bcd60e51b815260040161063290613e46565b80611333816140cd565b9150506112f2565b5060015b600381116106ea5760006113538284613f6b565b905061135f84826115ee565b611369600e61160c565b611373600e6115ea565b6000918252600f6020526040909120558061138d816140cd565b91505061133f565b34156107755760006113a7823461404f565b905080156113de57604051339082156108fc029083906000818181858888f193505050501580156113dc573d6000803e3d6000fd5b505b6113e6610e03565b6001600160a01b03166108fc839081150290604051600060405180830381858888f193505050501580156106ea573d6000803e3d6000fd5b6000611429826111ca565b6114455760405162461bcd60e51b815260040161063290613a97565b6000611450836109fc565b9050806001600160a01b0316846001600160a01b0316148061148b5750836001600160a01b03166114808461060b565b6001600160a01b0316145b8061149b575061149b8185611109565b949350505050565b826001600160a01b03166114b6826109fc565b6001600160a01b0316146114dc5760405162461bcd60e51b815260040161063290613cb8565b6001600160a01b0382166115025760405162461bcd60e51b8152600401610632906139e5565b61150d838383611c57565b6115186000826111eb565b6001600160a01b038316600090815260036020526040812080546001929061154190849061404f565b90915550506001600160a01b038216600090815260036020526040812080546001929061156f908490613f6b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6115d981611c62565b6000908152600f6020526040812055565b5490565b611608828260405180602001604052806000815250611ca2565b5050565b80546001019055565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6116728484846114a3565b61167e84848484611cd5565b610f6c5760405162461bcd60e51b8152600401610632906138d0565b6040805160248082526104a0820190925260609160009190816020015b6116bf612b4d565b8152602001906001900390816116b757905050905060005b602481101561174c576040805160068183018181526080830190935290918291602082018180368337019050508152602001600081525082828151811061172e57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080611744906140cd565b9150506116d7565b50600f60005b60288110156118c75760008261176983602761404f565b611774906004614007565b87901c16905060006040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b81525082815181106117c457634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916905060005b60068110156118b1578084101580156117fa57506117f7816024613f6b565b84105b1561189f5760008661180c838761404f565b8151811061182a57634e487b7160e01b600052603260045260246000fd5b60200260200101519050828160000151838151811061185957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061187b82600561404f565b611886906004614007565b84901b81602001516118989190613f6b565b6020909101525b806118a9816140cd565b9150506117d8565b50505080806118bf906140cd565b915050611752565b50816000815181106118e957634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160008151811061191557634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8260238151811061194157634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160058151811061196d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350909392505050565b60608083600114156119a8576119a183611df0565b90506119cf565b83600214156119ba576119a1836120fc565b83600314156119cf576119cc8361224c565b90505b836003146119f5576040518060a001604052806072815260200161417560729139611a0f565b6040518060a001604052806074815260200161435d607491395b81604051806040016040528060068152602001651e17b9bb339f60d11b815250604051602001611a4193929190612fdb565b60405160208183030381529060405291505092915050565b60408051606480825260a082019092526060919060009082602082018180368337019050509050600084611aab57604051806040016040528060018152602001600360fc1b8152509350505050610532565b8415611b23576000611abe600a87614108565b9050611acb600a87613fc9565b9550611ad8816030613f6b565b60f81b8383611ae6816140cd565b945081518110611b0657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050611aab565b60008167ffffffffffffffff811115611b4c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b76576020820181803683370190505b50905060005b82811015611c0d57836001611b91838661404f565b611b9b919061404f565b81518110611bb957634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b828281518110611be457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611c05816140cd565b915050611b7c565b5095945050505050565b60006001600160e01b031982166380ac58cd60e01b1480611c4857506001600160e01b03198216635b5e139f60e01b145b8061052f575061052f82612703565b6106ea83838361271c565b611c6b816127a5565b6000818152600a602052604090208054611c8490614092565b159050610775576000818152600a6020526040812061077591612b67565b611cac838361284c565b611cb96000848484611cd5565b6106ea5760405162461bcd60e51b8152600401610632906138d0565b6000611ce9846001600160a01b031661292b565b15611de557836001600160a01b031663150b7a02611d056111e7565b8786866040518563ffffffff1660e01b8152600401611d27949392919061377c565b602060405180830381600087803b158015611d4157600080fd5b505af1925050508015611d71575060408051601f3d908101601f19168201909252611d6e91810190612dcb565b60015b611dcb573d808015611d9f576040519150601f19603f3d011682016040523d82523d6000602084013e611da4565b606091505b508051611dc35760405162461bcd60e51b8152600401610632906138d0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061149b565b506001949350505050565b60608060005b600660ff821610156120f55760005b600660ff821610156120e257600081611e1f600685614026565b611e299190613f83565b90506000611e3b60ff851660a0613fdd565b61ffff1690506000611e5160ff851660a0613fdd565b61ffff1690506000888460ff1681518110611e7c57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015190506000898560ff1681518110611eaf57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001519050611ec5612ba3565b61ffff60005b6008811015611f4957600082611ee2836001614007565b86901c1690506263ff9c81611ef960a06037613fdd565b61ffff16611f079190614007565b611f119190613fc9565b848360088110611f3157634e487b7160e01b600052603260045260246000fd5b60200201525080611f41816140cd565b915050611ecb565b506000611f6683825b6020020151611f619089613f6b565b611a59565b611f71846001611f52565b6040850151611f8f90611f8560a08c613f6b565b611f61919061404f565b6060860151611fa290611f61908b613f6b565b611fb98760045b6020020151611f8560a08e613f6b565b611fc4886005611fa9565b60c0890151611fd790611f61908f613f6b565b611ff38a6007602002015160a061ffff168f611f859190613f6b565b60405160200161200a9897969594939291906130c4565b60408051601f198184030181529190529050600061203b62ffffff61203187610168614007565b611f619190613fc9565b9050600081612069600a61205160a06005613fdd565b61205b9190613fa8565b611f619061ffff168c613f6b565b61207a600a61205160a06005613fdd565b60405160200161208c9392919061356d565b60405160208183030381529060405290508c8184896040516020016120b4949392919061301e565b6040516020818303038152906040529c505050505050505050505080806120da906140e8565b915050611e05565b50806120ed816140e8565b915050611df6565b5092915050565b60608060005b600660ff821610156120f55760005b600660ff821610156122395760008161212b600685614026565b6121359190613f83565b9050600061217f62ffffff60a061ffff16898560ff168151811061216957634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516120319190614007565b905084878360ff16815181106121a557634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516121ef600a87600a6121c39190614026565b6121ce906005613f83565b6121dc9060ff1660a0613fdd565b6121e69190613fa8565b61ffff16611a59565b6121fe600a6121c38882614026565b84604051602001612213959493929190613490565b604051602081830303815290604052945050508080612231906140e8565b915050612111565b5080612244816140e8565b915050612102565b60606000604051806101a0016040528061017681526020016141e76101769139905060005b600660ff821610156120f55760005b600660ff821610156126f05760008161229a600685614026565b6122a49190613f83565b905060006005878360ff16815181106122cd57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516122e39190614108565b90508061238d5784878360ff168151811061230e57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160138660ff166006811061233e57634e487b7160e01b600052603260045260246000fd5b0160138660ff166006811061236357634e487b7160e01b600052603260045260246000fd5b016040516020016123779493929190613417565b60405160208183030381529060405294506126db565b806001141561246f5784878360ff16815181106123ba57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160138660ff16600681106123ea57634e487b7160e01b600052603260045260246000fd5b0160138660ff166006811061240f57634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061243457634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061245957634e487b7160e01b600052603260045260246000fd5b0160405160200161237796959493929190613198565b80600214156125515784878360ff168151811061249c57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160138660ff16600681106124cc57634e487b7160e01b600052603260045260246000fd5b0160138660ff16600681106124f157634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061251657634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061253b57634e487b7160e01b600052603260045260246000fd5b0160405160200161237796959493929190613263565b80600314156126335784878360ff168151811061257e57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160138660ff16600681106125ae57634e487b7160e01b600052603260045260246000fd5b0160138660ff16600681106125d357634e487b7160e01b600052603260045260246000fd5b0160198860ff16600681106125f857634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061261d57634e487b7160e01b600052603260045260246000fd5b01604051602001612377969594939291906132fd565b80600414156126db5784878360ff168151811061266057634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160138660ff166006811061269057634e487b7160e01b600052603260045260246000fd5b0160138660ff16600681106126b557634e487b7160e01b600052603260045260246000fd5b016040516020016126c99493929190613397565b60405160208183030381529060405294505b505080806126e8906140e8565b915050612280565b50806126fb816140e8565b915050612271565b6001600160e01b031981166301ffc9a760e01b14919050565b6127278383836106ea565b6001600160a01b0383166127435761273e81612931565b612766565b816001600160a01b0316836001600160a01b031614612766576127668382612975565b6001600160a01b0382166127825761277d81612a12565b6106ea565b826001600160a01b0316826001600160a01b0316146106ea576106ea8282612aeb565b60006127b0826109fc565b90506127be81600084611c57565b6127c96000836111eb565b6001600160a01b03811660009081526003602052604081208054600192906127f290849061404f565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166128725760405162461bcd60e51b815260040161063290613bd3565b61287b816111ca565b156128985760405162461bcd60e51b815260040161063290613968565b6128a460008383611c57565b6001600160a01b03821660009081526003602052604081208054600192906128cd908490613f6b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161298284610a31565b61298c919061404f565b6000838152600760205260409020549091508082146129df576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612a249060019061404f565b60008381526009602052604081205460088054939450909284908110612a5a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612a8957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612acf57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612af683610a31565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528060608152602001600081525090565b508054612b7390614092565b6000825580601f10612b855750610775565b601f0160209004906000526020600020908101906107759190612bc2565b6040518061010001604052806008906020820280368337509192915050565b5b80821115612bd75760008155600101612bc3565b5090565b80356001600160a01b038116811461053257600080fd5b600060208284031215612c03578081fd5b612c0c82612bdb565b9392505050565b60008060408385031215612c25578081fd5b612c2e83612bdb565b9150612c3c60208401612bdb565b90509250929050565b600080600060608486031215612c59578081fd5b612c6284612bdb565b9250612c7060208501612bdb565b9150604084013590509250925092565b60008060008060808587031215612c95578081fd5b612c9e85612bdb565b93506020612cad818701612bdb565b935060408601359250606086013567ffffffffffffffff80821115612cd0578384fd5b818801915088601f830112612ce3578384fd5b813581811115612cf557612cf5614148565b604051601f8201601f1916810185018381118282101715612d1857612d18614148565b60405281815283820185018b1015612d2e578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612d5e578182fd5b612d6783612bdb565b915060208301358015158114612d7b578182fd5b809150509250929050565b60008060408385031215612d98578182fd5b612da183612bdb565b946020939093013593505050565b600060208284031215612dc0578081fd5b8135612c0c8161415e565b600060208284031215612ddc578081fd5b8151612c0c8161415e565b600060208284031215612df8578081fd5b813561ffff81168114612c0c578182fd5b600060208284031215612e1a578081fd5b5035919050565b60008151808452612e39816020860160208601614066565b601f01601f19169290920160200192915050565b60008151612e5f818560208601614066565b9290920192915050565b805460009060028104600180831680612e8357607f831692505b6020808410821415612ea357634e487b7160e01b86526022600452602486fd5b818015612eb75760018114612ec857612ef5565b60ff19861689528489019650612ef5565b612ed188613f5f565b60005b86811015612eed5781548b820152908501908301612ed4565b505084890196505b50505050505092915050565b7f222c20226261636b67726f756e645f636f6c6f72223a2022313130303131227d815260200190565b600b60fa1b815260010190565b7f3c75736520687265663d5c222532337472695c22207374726f6b653d5c2225328152603360f81b602082015260210190565b600160fd1b815260010190565b682f67616c6c6572792f60b81b815260090190565b7f222c202265787465726e616c5f75726c223a202268747470733a2f2f6f62736f81527f6c6574652e64657369676e2f6172742f636f6c6c656374696f6e2f00000000006020820152603b0190565b60008451612fed818460208901614066565b845190830190613001818360208901614066565b8451910190613014818360208801614066565b0195945050505050565b60008551613030818460208a01614066565b855190830190613044818360208a01614066565b711e3837b63cb3b7b7103837b4b73a399eae1160711b91019081528451613072816012840160208901614066565b6c5c222066696c6c3d5c2225323360981b6012929091019182015283516130a081601f840160208801614066565b682e1110179f1e17b39f60b91b601f92909101918201526028019695505050505050565b600089516130d6818460208e01614066565b8083019050600b60fa1b8082528a516130f6816001850160208f01614066565b808301925050600160fd1b8060018401528a5161311a816002860160208f01614066565b600293019283018290528951613137816003860160208e01614066565b60039301928301528751613152816004850160208c01614066565b600492019182015261318961318361317e613178613173600586018b612e4d565b612f6a565b88612e4d565b612f2a565b85612e4d565b9b9a5050505050505050505050565b600087516131aa818460208c01614066565b6131b5818401612f37565b905087516131c7818360208c01614066565b662e11103c1eae1160c91b91019081526131e46007820188612e69565b662e11103c9eae1160c91b815290506132006007820187612e69565b90507f5c22207472616e73666f726d3d5c22726f74617465283930200000000000000081526132326019820186612e69565b9050600b60fa1b81526132486001820185612e69565b6414ae11179f60d91b81526005019998505050505050505050565b60008751613275818460208c01614066565b613280818401612f37565b90508751613292818360208c01614066565b662e11103c1eae1160c91b91019081526132af6007820188612e69565b662e11103c9eae1160c91b815290506132cb6007820187612e69565b90507f5c22207472616e73666f726d3d5c22726f7461746528313830200000000000008152613232601a820186612e69565b6000875161330f818460208c01614066565b61331a818401612f37565b9050875161332c818360208c01614066565b662e11103c1eae1160c91b91019081526133496007820188612e69565b662e11103c9eae1160c91b815290506133656007820187612e69565b90507f5c22207472616e73666f726d3d5c22726f7461746528323730200000000000008152613232601a820186612e69565b600085516133a9818460208a01614066565b6133b4818401612f37565b905085516133c6818360208a01614066565b662e11103c1eae1160c91b91019081526133e36007820186612e69565b662e11103c9eae1160c91b815290506133ff6007820185612e69565b632e11179f60e11b8152600401979650505050505050565b60008551613429818460208a01614066565b80830190507f3c75736520687265663d5c2225323370786c5c22207374726f6b653d5c2225328152603360f81b6020820152855161346e816021840160208a01614066565b662e11103c1eae1160c91b602192909101918201526133e36028820186612e69565b600086516134a2818460208b01614066565b713c636972636c652066696c6c3d5c2225323360701b90830190815286516134d1816012840160208b01614066565b6920982e111031bc1eae1160b11b6012929091019182015285516134fc81601c840160208a01614066565b672e111031bc9eae1160c11b601c92909101918201528451613525816024840160208901614066565b662e1110391eae1160c91b60249290910191820152835161354d81602b840160208801614066565b632e11179f60e11b602b9290910191820152602f01979650505050505050565b75078ce40e8e4c2dce6ccdee4da7ab844e4dee8c2e8ca560531b8152835160009061359f816016850160208901614066565b8083019050600160fd1b80601683015285516135c2816017850160208a01614066565b601792019182015283516135dd816018840160208801614066565b622e111f60e91b60189290910191820152601b0195945050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d82526432911d101160d91b60208301528851613640816025850160208d01614066565b61202360f01b6025918401918201528851613662816027840160208d01614066565b72111610113232b9b1b934b83a34b7b7111d101160691b60279290910191820152613690603a820189612e69565b7f222c202261747472696275746573223a205b7b2274726169745f74797065223a815273101129ba3cb632911610113b30b63ab2911d101160611b602082015290506136df6034820188612e69565b73113eae96101134b6b0b3b2afb230ba30911d101160611b8152865190915061370f816014840160208a01614066565b61318961373a61373461372f613729601486880101612f8c565b8a612e69565b612f77565b87612e4d565b612f01565b7f4552433732313a2053657269657320616c7265616479206d696e7465640000008152601d0190565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906137af90830184612e21565b9695505050505050565b60808101818360005b60048110156137e15781518352602092830192909101906001016137c2565b50505092915050565b604080825283519082018190526000906020906060840190828701845b8281101561382657815160ff1684529284019290840190600101613807565b50505083810382850152845180825285830191830190845b8181101561385a5783518352928401929184019160010161383e565b5090979650505050505050565b901515815260200190565b600060208252612c0c6020830184612e21565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526026908201527f43616e27742072656475636520737570706c792062656c6f7720746f74616c20604082015265737570706c7960d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601b908201527f43616e2774206d696e7420666f72207a65726f20616464726573730000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260159082015274546f6b656e20616c7265616479206d696e7465642160581b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601f908201527f4d7573742073656e64206174206c65617374206d696e74507269636557656900604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601690820152754552433732313a206d697373696e6720746f6b656e2160501b604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602c908201527f4f6e65206f72206d6f72652072657175657374656420746f6b656e7320616c7260408201526b65616479206d696e7465642160a01b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b60208082526025908201527f4d7573742073656e64206174206c65617374206d696e74507269636553696e676040820152646c6557656960d81b606082015260800190565b60208082526015908201527443616e277420696e63726561736520737570706c7960581b604082015260600190565b90815260200190565b60009081526020902090565b60008219821115613f7e57613f7e61411c565b500190565b600060ff821660ff84168060ff03821115613fa057613fa061411c565b019392505050565b600061ffff80841680613fbd57613fbd614132565b92169190910492915050565b600082613fd857613fd8614132565b500490565b600061ffff80831681851681830481118215151615613ffe57613ffe61411c565b02949350505050565b60008160001904831182151516156140215761402161411c565b500290565b600060ff821660ff84168160ff04811182151516156140475761404761411c565b029392505050565b6000828210156140615761406161411c565b500390565b60005b83811015614081578181015183820152602001614069565b83811115610f6c5750506000910152565b6002810460018216806140a657607f821691505b602082108114156140c757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140e1576140e161411c565b5060010190565b600060ff821660ff8114156140ff576140ff61411c565b60010192915050565b60008261411757614117614132565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461077557600080fdfe3c7376672076696577426f783d5c2230203020393630203936305c22207374796c653d5c226d61782d77696474683a313030766d696e3b6d61782d6865696768743a313030766d696e3b5c2220786d6c6e733d5c22687474703a2f2f7777772e77332e6f72672f323030302f7376675c223e3c73796d626f6c2069643d5c2270786c5c222076696577506f72743d5c2230203020313630203136305c22206f766572666c6f773d5c2276697369626c655c22207374796c653d5c226f766572666c6f773a2076697369626c653b5c223e3c72656374207374726f6b652d77696474683d5c22325c222066696c6c3d5c226e6f6e655c222077696474683d5c223136305c22206865696768743d5c223136305c222f3e3c2f73796d626f6c3e3c73796d626f6c2069643d5c227472695c222076696577506f72743d5c2230203020313630203136305c22206f766572666c6f773d5c2276697369626c655c22207374796c653d5c226f766572666c6f773a2076697369626c653b5c223e3c706f6c79676f6e207374726f6b652d77696474683d5c22325c222066696c6c3d5c226e6f6e655c222077696474683d5c223136305c22206865696768743d5c223136305c2220706f696e74733d5c22302c3020302c313630203136302c305c222f3e3c2f73796d626f6c3e3c7376672076696577426f783d5c222d31202d3120393632203936325c22207374796c653d5c226d61782d77696474683a313030766d696e3b6d61782d6865696768743a313030766d696e3b5c2220786d6c6e733d5c22687474703a2f2f7777772e77332e6f72672f323030302f7376675c223ea2646970667358221220bbc241e69673aa83d11c4ead1f59e374da655a57e889c1091bd8d017dc5b06cf64736f6c63430008000033416c7465726e61746520696e746572707265746174696f6e73206f6620746865206d696e74696e672061646472657373
Deployed Bytecode
0x6080604052600436106101b75760003560e01c806353b8eb67116100ec578063a22cb4651161008a578063c5ff514a11610064578063c5ff514a146104a4578063c87b56dd146104c4578063e985e9c5146104e4578063f2fde38b14610504576101b7565b8063a22cb46514610444578063b262849a14610464578063b88d4fde14610484576101b7565b8063715018a6116100c6578063715018a6146103e257806378d07685146103f75780638da5cb5b1461041a57806395d89b411461042f576101b7565b806353b8eb671461038f5780636352211e146103a257806370a08231146103c2576101b7565b80631e83409a11610159578063303ab0c611610133578063303ab0c61461030f57806342842e0e1461032f57806342966c681461034f5780634f6ccce71461036f576101b7565b80631e83409a146102af57806323b872dd146102cf5780632f745c59146102ef576101b7565b8063081812fc11610195578063081812fc14610236578063095ea7b3146102635780631249c58b1461028557806318160ddd1461028d576101b7565b806301ffc9a7146101bc57806304d94317146101f257806306fdde0314610214575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004612daf565b610524565b6040516101e99190613867565b60405180910390f35b3480156101fe57600080fd5b50610207610537565b6040516101e991906137b9565b34801561022057600080fd5b50610229610579565b6040516101e99190613872565b34801561024257600080fd5b50610256610251366004612e09565b61060b565b6040516101e99190613768565b34801561026f57600080fd5b5061028361027e366004612d86565b610657565b005b6102836106ef565b34801561029957600080fd5b506102a2610727565b6040516101e99190613f56565b3480156102bb57600080fd5b506102836102ca366004612bf2565b61072d565b3480156102db57600080fd5b506102836102ea366004612c45565b610778565b3480156102fb57600080fd5b506102a261030a366004612d86565b6107b0565b34801561031b57600080fd5b5061028361032a366004612e09565b610802565b34801561033b57600080fd5b5061028361034a366004612c45565b610846565b34801561035b57600080fd5b5061028361036a366004612e09565b610861565b34801561037b57600080fd5b506102a261038a366004612e09565b610891565b61028361039d366004612e09565b6108ec565b3480156103ae57600080fd5b506102566103bd366004612e09565b6109fc565b3480156103ce57600080fd5b506102a26103dd366004612bf2565b610a31565b3480156103ee57600080fd5b50610283610a75565b34801561040357600080fd5b5061040c610abe565b6040516101e99291906137ea565b34801561042657600080fd5b50610256610e03565b34801561043b57600080fd5b50610229610e12565b34801561045057600080fd5b5061028361045f366004612d4c565b610e21565b34801561047057600080fd5b5061028361047f366004612e09565b610eef565b34801561049057600080fd5b5061028361049f366004612c80565b610f33565b3480156104b057600080fd5b506102836104bf366004612de7565b610f72565b3480156104d057600080fd5b506102296104df366004612e09565b61102e565b3480156104f057600080fd5b506101dc6104ff366004612c13565b611109565b34801561051057600080fd5b5061028361051f366004612bf2565b611137565b600061052f826111a5565b90505b919050565b61053f612b2f565b610547612b2f565b600b54600160a01b900461ffff16815261055f610727565b6020820152600c546040820152600d546060820152919050565b60606000805461058890614092565b80601f01602080910402602001604051908101604052809291908181526020018280546105b490614092565b80156106015780601f106105d657610100808354040283529160200191610601565b820191906000526020600020905b8154815290600101906020018083116105e457829003601f168201915b5050505050905090565b6000610616826111ca565b61063b5760405162461bcd60e51b815260040161063290613c08565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610662826109fc565b9050806001600160a01b0316836001600160a01b031614156106965760405162461bcd60e51b815260040161063290613d01565b806001600160a01b03166106a86111e7565b6001600160a01b031614806106c457506106c4816104ff6111e7565b6106e05760405162461bcd60e51b815260040161063290613ae3565b6106ea83836111eb565b505050565b600c543410156107115760405162461bcd60e51b815260040161063290613d42565b61071a33611259565b610725600c54611395565b565b60085490565b6107356111e7565b6001600160a01b0316610746610e03565b6001600160a01b03161461076c5760405162461bcd60e51b815260040161063290613c54565b61077581611259565b50565b6107896107836111e7565b8261141e565b6107a55760405162461bcd60e51b815260040161063290613d79565b6106ea8383836114a3565b60006107bb83610a31565b82106107d95760405162461bcd60e51b815260040161063290613885565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61080a6111e7565b6001600160a01b031661081b610e03565b6001600160a01b0316146108415760405162461bcd60e51b815260040161063290613c54565b600c55565b6106ea83838360405180602001604052806000815250610f33565b61086c6107836111e7565b6108885760405162461bcd60e51b815260040161063290613e92565b610775816115d0565b600061089b610727565b82106108b95760405162461bcd60e51b815260040161063290613dfa565b600882815481106108da57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b338061090a5760405162461bcd60e51b815260040161063290613a60565b600d5434101561092c5760405162461bcd60e51b815260040161063290613ee2565b600b54600160a01b900461ffff16610944600e6115ea565b106040516020016109549061373f565b604051602081830303815290604052906109815760405162461bcd60e51b81526004016106329190613872565b50600061099b836010600160a41b03600485901b16613f6b565b90506109a6816111ca565b156109c35760405162461bcd60e51b815260040161063290613c89565b6109cd82826115ee565b6109d7600e61160c565b6109e1600e6115ea565b6000828152600f6020526040902055600d546106ea90611395565b6000818152600260205260408120546001600160a01b03168061052f5760405162461bcd60e51b815260040161063290613b8a565b60006001600160a01b038216610a595760405162461bcd60e51b815260040161063290613b40565b506001600160a01b031660009081526003602052604090205490565b610a7d6111e7565b6001600160a01b0316610a8e610e03565b6001600160a01b031614610ab45760405162461bcd60e51b815260040161063290613c54565b6107256000611615565b6060803360041b818060006003604051908082528060200260200182016040528015610af4578160200160208202803683370190505b506040805160038082526080820190925291925060009190602082016060803683370190505090506000805b60038160ff161015610c3357610b3960ff821688613f6b565b610b44906001613f6b565b848260ff1681518110610b6757634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600f6000858360ff1681518110610b9a57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002054838260ff1681518110610bd457634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506000838260ff1681518110610c0557634e487b7160e01b600052603260045260246000fd5b60200260200101511115610c2157610c1e826001613f83565b91505b80610c2b816140e8565b915050610b20565b5060ff811615610d3a5760008160ff1667ffffffffffffffff811115610c6957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c92578160200160208202803683370190505b50955060005b60038160ff161015610d37576000848260ff1681518110610cc957634e487b7160e01b600052603260045260246000fd5b60200260200101511115610d2557610ce2816001613f83565b878360ff1681518110610d0557634e487b7160e01b600052603260045260246000fd5b60ff90921660209283029190910190910152610d22826001613f83565b91505b80610d2f816140e8565b915050610c98565b50505b6000610d4533610a31565b90508015610df4578067ffffffffffffffff811115610d7457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d9d578160200160208202803683370190505b50945060005b81811015610df257610db533826107b0565b868281518110610dd557634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610dea816140cd565b915050610da3565b505b50939650919450505050509091565b600b546001600160a01b031690565b60606001805461058890614092565b610e296111e7565b6001600160a01b0316826001600160a01b03161415610e5a5760405162461bcd60e51b815260040161063290613a29565b8060056000610e676111e7565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610eab6111e7565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ee39190613867565b60405180910390a35050565b610ef76111e7565b6001600160a01b0316610f08610e03565b6001600160a01b031614610f2e5760405162461bcd60e51b815260040161063290613c54565b600d55565b610f44610f3e6111e7565b8361141e565b610f605760405162461bcd60e51b815260040161063290613d79565b610f6c84848484611667565b50505050565b610f7a6111e7565b6001600160a01b0316610f8b610e03565b6001600160a01b031614610fb15760405162461bcd60e51b815260040161063290613c54565b610fb9610727565b8161ffff161015610fdc5760405162461bcd60e51b81526004016106329061399f565b600b5461ffff600160a01b90910481169082161061100c5760405162461bcd60e51b815260040161063290613f27565b600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6060611039826111ca565b6110555760405162461bcd60e51b815260040161063290613dca565b600f8216600483901c60006110698261169a565b90506000611077848361198c565b6000878152600f60205260408120549192509061109390611a59565b905061109d610579565b81601f60106110ad60018a61404f565b600381106110cb57634e487b7160e01b600052603260045260246000fd5b018560206110d88d611a59565b6040516020016110ee97969594939291906135fa565b60405160208183030381529060405295505050505050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61113f6111e7565b6001600160a01b0316611150610e03565b6001600160a01b0316146111765760405162461bcd60e51b815260040161063290613c54565b6001600160a01b03811661119c5760405162461bcd60e51b815260040161063290613922565b61077581611615565b60006001600160e01b0319821663780e9d6360e01b148061052f575061052f82611c17565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611220826109fc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03811661127f5760405162461bcd60e51b815260040161063290613a60565b600b54600160a01b900461ffff16611297600e6115ea565b6112a2906003613f6b565b11156040516020016112b39061373f565b604051602081830303815290604052906112e05760405162461bcd60e51b81526004016106329190613872565b506010600160a41b03600482901b1660015b6003811161133b5761130c6113078284613f6b565b6111ca565b156113295760405162461bcd60e51b815260040161063290613e46565b80611333816140cd565b9150506112f2565b5060015b600381116106ea5760006113538284613f6b565b905061135f84826115ee565b611369600e61160c565b611373600e6115ea565b6000918252600f6020526040909120558061138d816140cd565b91505061133f565b34156107755760006113a7823461404f565b905080156113de57604051339082156108fc029083906000818181858888f193505050501580156113dc573d6000803e3d6000fd5b505b6113e6610e03565b6001600160a01b03166108fc839081150290604051600060405180830381858888f193505050501580156106ea573d6000803e3d6000fd5b6000611429826111ca565b6114455760405162461bcd60e51b815260040161063290613a97565b6000611450836109fc565b9050806001600160a01b0316846001600160a01b0316148061148b5750836001600160a01b03166114808461060b565b6001600160a01b0316145b8061149b575061149b8185611109565b949350505050565b826001600160a01b03166114b6826109fc565b6001600160a01b0316146114dc5760405162461bcd60e51b815260040161063290613cb8565b6001600160a01b0382166115025760405162461bcd60e51b8152600401610632906139e5565b61150d838383611c57565b6115186000826111eb565b6001600160a01b038316600090815260036020526040812080546001929061154190849061404f565b90915550506001600160a01b038216600090815260036020526040812080546001929061156f908490613f6b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6115d981611c62565b6000908152600f6020526040812055565b5490565b611608828260405180602001604052806000815250611ca2565b5050565b80546001019055565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6116728484846114a3565b61167e84848484611cd5565b610f6c5760405162461bcd60e51b8152600401610632906138d0565b6040805160248082526104a0820190925260609160009190816020015b6116bf612b4d565b8152602001906001900390816116b757905050905060005b602481101561174c576040805160068183018181526080830190935290918291602082018180368337019050508152602001600081525082828151811061172e57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080611744906140cd565b9150506116d7565b50600f60005b60288110156118c75760008261176983602761404f565b611774906004614007565b87901c16905060006040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b81525082815181106117c457634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916905060005b60068110156118b1578084101580156117fa57506117f7816024613f6b565b84105b1561189f5760008661180c838761404f565b8151811061182a57634e487b7160e01b600052603260045260246000fd5b60200260200101519050828160000151838151811061185957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061187b82600561404f565b611886906004614007565b84901b81602001516118989190613f6b565b6020909101525b806118a9816140cd565b9150506117d8565b50505080806118bf906140cd565b915050611752565b50816000815181106118e957634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160008151811061191557634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8260238151811061194157634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160058151811061196d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350909392505050565b60608083600114156119a8576119a183611df0565b90506119cf565b83600214156119ba576119a1836120fc565b83600314156119cf576119cc8361224c565b90505b836003146119f5576040518060a001604052806072815260200161417560729139611a0f565b6040518060a001604052806074815260200161435d607491395b81604051806040016040528060068152602001651e17b9bb339f60d11b815250604051602001611a4193929190612fdb565b60405160208183030381529060405291505092915050565b60408051606480825260a082019092526060919060009082602082018180368337019050509050600084611aab57604051806040016040528060018152602001600360fc1b8152509350505050610532565b8415611b23576000611abe600a87614108565b9050611acb600a87613fc9565b9550611ad8816030613f6b565b60f81b8383611ae6816140cd565b945081518110611b0657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050611aab565b60008167ffffffffffffffff811115611b4c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b76576020820181803683370190505b50905060005b82811015611c0d57836001611b91838661404f565b611b9b919061404f565b81518110611bb957634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b828281518110611be457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611c05816140cd565b915050611b7c565b5095945050505050565b60006001600160e01b031982166380ac58cd60e01b1480611c4857506001600160e01b03198216635b5e139f60e01b145b8061052f575061052f82612703565b6106ea83838361271c565b611c6b816127a5565b6000818152600a602052604090208054611c8490614092565b159050610775576000818152600a6020526040812061077591612b67565b611cac838361284c565b611cb96000848484611cd5565b6106ea5760405162461bcd60e51b8152600401610632906138d0565b6000611ce9846001600160a01b031661292b565b15611de557836001600160a01b031663150b7a02611d056111e7565b8786866040518563ffffffff1660e01b8152600401611d27949392919061377c565b602060405180830381600087803b158015611d4157600080fd5b505af1925050508015611d71575060408051601f3d908101601f19168201909252611d6e91810190612dcb565b60015b611dcb573d808015611d9f576040519150601f19603f3d011682016040523d82523d6000602084013e611da4565b606091505b508051611dc35760405162461bcd60e51b8152600401610632906138d0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061149b565b506001949350505050565b60608060005b600660ff821610156120f55760005b600660ff821610156120e257600081611e1f600685614026565b611e299190613f83565b90506000611e3b60ff851660a0613fdd565b61ffff1690506000611e5160ff851660a0613fdd565b61ffff1690506000888460ff1681518110611e7c57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015190506000898560ff1681518110611eaf57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001519050611ec5612ba3565b61ffff60005b6008811015611f4957600082611ee2836001614007565b86901c1690506263ff9c81611ef960a06037613fdd565b61ffff16611f079190614007565b611f119190613fc9565b848360088110611f3157634e487b7160e01b600052603260045260246000fd5b60200201525080611f41816140cd565b915050611ecb565b506000611f6683825b6020020151611f619089613f6b565b611a59565b611f71846001611f52565b6040850151611f8f90611f8560a08c613f6b565b611f61919061404f565b6060860151611fa290611f61908b613f6b565b611fb98760045b6020020151611f8560a08e613f6b565b611fc4886005611fa9565b60c0890151611fd790611f61908f613f6b565b611ff38a6007602002015160a061ffff168f611f859190613f6b565b60405160200161200a9897969594939291906130c4565b60408051601f198184030181529190529050600061203b62ffffff61203187610168614007565b611f619190613fc9565b9050600081612069600a61205160a06005613fdd565b61205b9190613fa8565b611f619061ffff168c613f6b565b61207a600a61205160a06005613fdd565b60405160200161208c9392919061356d565b60405160208183030381529060405290508c8184896040516020016120b4949392919061301e565b6040516020818303038152906040529c505050505050505050505080806120da906140e8565b915050611e05565b50806120ed816140e8565b915050611df6565b5092915050565b60608060005b600660ff821610156120f55760005b600660ff821610156122395760008161212b600685614026565b6121359190613f83565b9050600061217f62ffffff60a061ffff16898560ff168151811061216957634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516120319190614007565b905084878360ff16815181106121a557634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516121ef600a87600a6121c39190614026565b6121ce906005613f83565b6121dc9060ff1660a0613fdd565b6121e69190613fa8565b61ffff16611a59565b6121fe600a6121c38882614026565b84604051602001612213959493929190613490565b604051602081830303815290604052945050508080612231906140e8565b915050612111565b5080612244816140e8565b915050612102565b60606000604051806101a0016040528061017681526020016141e76101769139905060005b600660ff821610156120f55760005b600660ff821610156126f05760008161229a600685614026565b6122a49190613f83565b905060006005878360ff16815181106122cd57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516122e39190614108565b90508061238d5784878360ff168151811061230e57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160138660ff166006811061233e57634e487b7160e01b600052603260045260246000fd5b0160138660ff166006811061236357634e487b7160e01b600052603260045260246000fd5b016040516020016123779493929190613417565b60405160208183030381529060405294506126db565b806001141561246f5784878360ff16815181106123ba57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160138660ff16600681106123ea57634e487b7160e01b600052603260045260246000fd5b0160138660ff166006811061240f57634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061243457634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061245957634e487b7160e01b600052603260045260246000fd5b0160405160200161237796959493929190613198565b80600214156125515784878360ff168151811061249c57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160138660ff16600681106124cc57634e487b7160e01b600052603260045260246000fd5b0160138660ff16600681106124f157634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061251657634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061253b57634e487b7160e01b600052603260045260246000fd5b0160405160200161237796959493929190613263565b80600314156126335784878360ff168151811061257e57634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160138660ff16600681106125ae57634e487b7160e01b600052603260045260246000fd5b0160138660ff16600681106125d357634e487b7160e01b600052603260045260246000fd5b0160198860ff16600681106125f857634e487b7160e01b600052603260045260246000fd5b0160198860ff166006811061261d57634e487b7160e01b600052603260045260246000fd5b01604051602001612377969594939291906132fd565b80600414156126db5784878360ff168151811061266057634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160138660ff166006811061269057634e487b7160e01b600052603260045260246000fd5b0160138660ff16600681106126b557634e487b7160e01b600052603260045260246000fd5b016040516020016126c99493929190613397565b60405160208183030381529060405294505b505080806126e8906140e8565b915050612280565b50806126fb816140e8565b915050612271565b6001600160e01b031981166301ffc9a760e01b14919050565b6127278383836106ea565b6001600160a01b0383166127435761273e81612931565b612766565b816001600160a01b0316836001600160a01b031614612766576127668382612975565b6001600160a01b0382166127825761277d81612a12565b6106ea565b826001600160a01b0316826001600160a01b0316146106ea576106ea8282612aeb565b60006127b0826109fc565b90506127be81600084611c57565b6127c96000836111eb565b6001600160a01b03811660009081526003602052604081208054600192906127f290849061404f565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166128725760405162461bcd60e51b815260040161063290613bd3565b61287b816111ca565b156128985760405162461bcd60e51b815260040161063290613968565b6128a460008383611c57565b6001600160a01b03821660009081526003602052604081208054600192906128cd908490613f6b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161298284610a31565b61298c919061404f565b6000838152600760205260409020549091508082146129df576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612a249060019061404f565b60008381526009602052604081205460088054939450909284908110612a5a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612a8957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612acf57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612af683610a31565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528060608152602001600081525090565b508054612b7390614092565b6000825580601f10612b855750610775565b601f0160209004906000526020600020908101906107759190612bc2565b6040518061010001604052806008906020820280368337509192915050565b5b80821115612bd75760008155600101612bc3565b5090565b80356001600160a01b038116811461053257600080fd5b600060208284031215612c03578081fd5b612c0c82612bdb565b9392505050565b60008060408385031215612c25578081fd5b612c2e83612bdb565b9150612c3c60208401612bdb565b90509250929050565b600080600060608486031215612c59578081fd5b612c6284612bdb565b9250612c7060208501612bdb565b9150604084013590509250925092565b60008060008060808587031215612c95578081fd5b612c9e85612bdb565b93506020612cad818701612bdb565b935060408601359250606086013567ffffffffffffffff80821115612cd0578384fd5b818801915088601f830112612ce3578384fd5b813581811115612cf557612cf5614148565b604051601f8201601f1916810185018381118282101715612d1857612d18614148565b60405281815283820185018b1015612d2e578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612d5e578182fd5b612d6783612bdb565b915060208301358015158114612d7b578182fd5b809150509250929050565b60008060408385031215612d98578182fd5b612da183612bdb565b946020939093013593505050565b600060208284031215612dc0578081fd5b8135612c0c8161415e565b600060208284031215612ddc578081fd5b8151612c0c8161415e565b600060208284031215612df8578081fd5b813561ffff81168114612c0c578182fd5b600060208284031215612e1a578081fd5b5035919050565b60008151808452612e39816020860160208601614066565b601f01601f19169290920160200192915050565b60008151612e5f818560208601614066565b9290920192915050565b805460009060028104600180831680612e8357607f831692505b6020808410821415612ea357634e487b7160e01b86526022600452602486fd5b818015612eb75760018114612ec857612ef5565b60ff19861689528489019650612ef5565b612ed188613f5f565b60005b86811015612eed5781548b820152908501908301612ed4565b505084890196505b50505050505092915050565b7f222c20226261636b67726f756e645f636f6c6f72223a2022313130303131227d815260200190565b600b60fa1b815260010190565b7f3c75736520687265663d5c222532337472695c22207374726f6b653d5c2225328152603360f81b602082015260210190565b600160fd1b815260010190565b682f67616c6c6572792f60b81b815260090190565b7f222c202265787465726e616c5f75726c223a202268747470733a2f2f6f62736f81527f6c6574652e64657369676e2f6172742f636f6c6c656374696f6e2f00000000006020820152603b0190565b60008451612fed818460208901614066565b845190830190613001818360208901614066565b8451910190613014818360208801614066565b0195945050505050565b60008551613030818460208a01614066565b855190830190613044818360208a01614066565b711e3837b63cb3b7b7103837b4b73a399eae1160711b91019081528451613072816012840160208901614066565b6c5c222066696c6c3d5c2225323360981b6012929091019182015283516130a081601f840160208801614066565b682e1110179f1e17b39f60b91b601f92909101918201526028019695505050505050565b600089516130d6818460208e01614066565b8083019050600b60fa1b8082528a516130f6816001850160208f01614066565b808301925050600160fd1b8060018401528a5161311a816002860160208f01614066565b600293019283018290528951613137816003860160208e01614066565b60039301928301528751613152816004850160208c01614066565b600492019182015261318961318361317e613178613173600586018b612e4d565b612f6a565b88612e4d565b612f2a565b85612e4d565b9b9a5050505050505050505050565b600087516131aa818460208c01614066565b6131b5818401612f37565b905087516131c7818360208c01614066565b662e11103c1eae1160c91b91019081526131e46007820188612e69565b662e11103c9eae1160c91b815290506132006007820187612e69565b90507f5c22207472616e73666f726d3d5c22726f74617465283930200000000000000081526132326019820186612e69565b9050600b60fa1b81526132486001820185612e69565b6414ae11179f60d91b81526005019998505050505050505050565b60008751613275818460208c01614066565b613280818401612f37565b90508751613292818360208c01614066565b662e11103c1eae1160c91b91019081526132af6007820188612e69565b662e11103c9eae1160c91b815290506132cb6007820187612e69565b90507f5c22207472616e73666f726d3d5c22726f7461746528313830200000000000008152613232601a820186612e69565b6000875161330f818460208c01614066565b61331a818401612f37565b9050875161332c818360208c01614066565b662e11103c1eae1160c91b91019081526133496007820188612e69565b662e11103c9eae1160c91b815290506133656007820187612e69565b90507f5c22207472616e73666f726d3d5c22726f7461746528323730200000000000008152613232601a820186612e69565b600085516133a9818460208a01614066565b6133b4818401612f37565b905085516133c6818360208a01614066565b662e11103c1eae1160c91b91019081526133e36007820186612e69565b662e11103c9eae1160c91b815290506133ff6007820185612e69565b632e11179f60e11b8152600401979650505050505050565b60008551613429818460208a01614066565b80830190507f3c75736520687265663d5c2225323370786c5c22207374726f6b653d5c2225328152603360f81b6020820152855161346e816021840160208a01614066565b662e11103c1eae1160c91b602192909101918201526133e36028820186612e69565b600086516134a2818460208b01614066565b713c636972636c652066696c6c3d5c2225323360701b90830190815286516134d1816012840160208b01614066565b6920982e111031bc1eae1160b11b6012929091019182015285516134fc81601c840160208a01614066565b672e111031bc9eae1160c11b601c92909101918201528451613525816024840160208901614066565b662e1110391eae1160c91b60249290910191820152835161354d81602b840160208801614066565b632e11179f60e11b602b9290910191820152602f01979650505050505050565b75078ce40e8e4c2dce6ccdee4da7ab844e4dee8c2e8ca560531b8152835160009061359f816016850160208901614066565b8083019050600160fd1b80601683015285516135c2816017850160208a01614066565b601792019182015283516135dd816018840160208801614066565b622e111f60e91b60189290910191820152601b0195945050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d82526432911d101160d91b60208301528851613640816025850160208d01614066565b61202360f01b6025918401918201528851613662816027840160208d01614066565b72111610113232b9b1b934b83a34b7b7111d101160691b60279290910191820152613690603a820189612e69565b7f222c202261747472696275746573223a205b7b2274726169745f74797065223a815273101129ba3cb632911610113b30b63ab2911d101160611b602082015290506136df6034820188612e69565b73113eae96101134b6b0b3b2afb230ba30911d101160611b8152865190915061370f816014840160208a01614066565b61318961373a61373461372f613729601486880101612f8c565b8a612e69565b612f77565b87612e4d565b612f01565b7f4552433732313a2053657269657320616c7265616479206d696e7465640000008152601d0190565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906137af90830184612e21565b9695505050505050565b60808101818360005b60048110156137e15781518352602092830192909101906001016137c2565b50505092915050565b604080825283519082018190526000906020906060840190828701845b8281101561382657815160ff1684529284019290840190600101613807565b50505083810382850152845180825285830191830190845b8181101561385a5783518352928401929184019160010161383e565b5090979650505050505050565b901515815260200190565b600060208252612c0c6020830184612e21565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526026908201527f43616e27742072656475636520737570706c792062656c6f7720746f74616c20604082015265737570706c7960d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601b908201527f43616e2774206d696e7420666f72207a65726f20616464726573730000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260159082015274546f6b656e20616c7265616479206d696e7465642160581b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601f908201527f4d7573742073656e64206174206c65617374206d696e74507269636557656900604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601690820152754552433732313a206d697373696e6720746f6b656e2160501b604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602c908201527f4f6e65206f72206d6f72652072657175657374656420746f6b656e7320616c7260408201526b65616479206d696e7465642160a01b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b60208082526025908201527f4d7573742073656e64206174206c65617374206d696e74507269636553696e676040820152646c6557656960d81b606082015260800190565b60208082526015908201527443616e277420696e63726561736520737570706c7960581b604082015260600190565b90815260200190565b60009081526020902090565b60008219821115613f7e57613f7e61411c565b500190565b600060ff821660ff84168060ff03821115613fa057613fa061411c565b019392505050565b600061ffff80841680613fbd57613fbd614132565b92169190910492915050565b600082613fd857613fd8614132565b500490565b600061ffff80831681851681830481118215151615613ffe57613ffe61411c565b02949350505050565b60008160001904831182151516156140215761402161411c565b500290565b600060ff821660ff84168160ff04811182151516156140475761404761411c565b029392505050565b6000828210156140615761406161411c565b500390565b60005b83811015614081578181015183820152602001614069565b83811115610f6c5750506000910152565b6002810460018216806140a657607f821691505b602082108114156140c757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140e1576140e161411c565b5060010190565b600060ff821660ff8114156140ff576140ff61411c565b60010192915050565b60008261411757614117614132565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461077557600080fdfe3c7376672076696577426f783d5c2230203020393630203936305c22207374796c653d5c226d61782d77696474683a313030766d696e3b6d61782d6865696768743a313030766d696e3b5c2220786d6c6e733d5c22687474703a2f2f7777772e77332e6f72672f323030302f7376675c223e3c73796d626f6c2069643d5c2270786c5c222076696577506f72743d5c2230203020313630203136305c22206f766572666c6f773d5c2276697369626c655c22207374796c653d5c226f766572666c6f773a2076697369626c653b5c223e3c72656374207374726f6b652d77696474683d5c22325c222066696c6c3d5c226e6f6e655c222077696474683d5c223136305c22206865696768743d5c223136305c222f3e3c2f73796d626f6c3e3c73796d626f6c2069643d5c227472695c222076696577506f72743d5c2230203020313630203136305c22206f766572666c6f773d5c2276697369626c655c22207374796c653d5c226f766572666c6f773a2076697369626c653b5c223e3c706f6c79676f6e207374726f6b652d77696474683d5c22325c222066696c6c3d5c226e6f6e655c222077696474683d5c223136305c22206865696768743d5c223136305c2220706f696e74733d5c22302c3020302c313630203136302c305c222f3e3c2f73796d626f6c3e3c7376672076696577426f783d5c222d31202d3120393632203936325c22207374796c653d5c226d61782d77696474683a313030766d696e3b6d61782d6865696768743a313030766d696e3b5c2220786d6c6e733d5c22687474703a2f2f7777772e77332e6f72672f323030302f7376675c223ea2646970667358221220bbc241e69673aa83d11c4ead1f59e374da655a57e889c1091bd8d017dc5b06cf64736f6c63430008000033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.