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 16 from a total of 16 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Mint Token And D... | 18374601 | 886 days ago | IN | 0.02 ETH | 0.00575079 | ||||
| Mint | 18308608 | 895 days ago | IN | 0 ETH | 0.00089414 | ||||
| Mint Token And D... | 18102206 | 924 days ago | IN | 0.02 ETH | 0.00588026 | ||||
| Mint | 17593308 | 996 days ago | IN | 0 ETH | 0.00556128 | ||||
| Mint | 17593114 | 996 days ago | IN | 0 ETH | 0.00485863 | ||||
| Mint | 17555419 | 1001 days ago | IN | 0 ETH | 0.00188307 | ||||
| Mint | 17555390 | 1001 days ago | IN | 0 ETH | 0.00177881 | ||||
| Mint | 17554193 | 1001 days ago | IN | 0 ETH | 0.00176058 | ||||
| Mint | 17549801 | 1002 days ago | IN | 0 ETH | 0.00179584 | ||||
| Mint | 17548532 | 1002 days ago | IN | 0 ETH | 0.00208123 | ||||
| Mint Token And D... | 17547534 | 1002 days ago | IN | 0.02 ETH | 0.00978858 | ||||
| Mint Token And D... | 17547124 | 1002 days ago | IN | 0.02 ETH | 0.00913964 | ||||
| Mint | 17546663 | 1002 days ago | IN | 0 ETH | 0.00194702 | ||||
| Mint | 17546651 | 1002 days ago | IN | 0 ETH | 0.00196879 | ||||
| Mint | 17545868 | 1002 days ago | IN | 0 ETH | 0.00207214 | ||||
| Set Is On Sale | 17545750 | 1002 days ago | IN | 0 ETH | 0.00037537 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ConnectedWindows
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import {Util} from "./Util.sol";
interface IADiscSystem {
function tokenIdToAttributes(uint256 tokenId)
external
view
returns (
bytes32,
string memory,
string memory,
string memory,
string memory,
uint256,
uint256,
uint256,
uint256,
bool
);
function ownerOf(uint256 tokenId) external view returns (address);
function mint(uint256 quantity) external payable;
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
function mintedTokenIdList() external view returns (uint256[] memory);
}
contract ConnectedWindows is
ERC721,
IERC721Receiver,
ReentrancyGuard,
Ownable,
Util,
DefaultOperatorFilterer
{
uint256 public constant DISC_PRICE = 0.02 ether;
struct Attribute {
bytes32 hash;
string palette;
string image;
string message;
string shape;
uint256 speed;
uint256 size;
uint256 weight;
uint256 offset;
bool dynamic;
}
IADiscSystem public discSystem;
bool public isOnSale;
bool public isMetadataFrozen;
mapping(uint256 => uint256) public tokenIdToDiscTokenId;
mapping(uint256 => Attribute) public tokenIdToAttribute;
mapping(uint256 => bool) public usedDiscTokenId;
uint256 public completeCycleInSec = 60;
uint256 public breakInSec = 2;
uint256[] private _mintedTokenIdList;
string private _baseThumbnailURI;
string private _artCodeURI;
uint256 private EMPTY_DISC_TOKEN_ID = 9999;
constructor(
string memory baseThumbnailURI,
string memory artCodeURI,
address discSystemAddress
) ERC721("Connected Windows", "CW") {
_baseThumbnailURI = baseThumbnailURI;
_artCodeURI = artCodeURI;
discSystem = IADiscSystem(discSystemAddress);
}
function mintedTokenIdList() external view returns (uint256[] memory) {
return _mintedTokenIdList;
}
function totalCount() public view returns (uint256) {
return _mintedTokenIdList.length;
}
function mint(uint256 discTokenId) external {
require(isOnSale, "Connected Windows: Not on sale");
require(
usedDiscTokenId[discTokenId] == false,
"Connected Windows: The disc token ID is already used"
);
_mintAndTransfer(_msgSender(), discTokenId);
}
function mintTokenAndDisc() external payable nonReentrant {
require(isOnSale, "Connected Windows: Not on sale");
require(msg.value == DISC_PRICE, "Connected Windows: Invalid value");
discSystem.mint{value: DISC_PRICE}(1);
uint256 discTokenId = discSystem.mintedTokenIdList().length - 1;
require(
address(this) == discSystem.ownerOf(discTokenId),
"Connected Windows: Not owner"
);
// Transfer the token from contract address to the user
discSystem.safeTransferFrom(address(this), _msgSender(), discTokenId);
_mintAndTransfer(_msgSender(), discTokenId);
}
function tokenURI(uint256 tokenId)
public
view
override
returns (string memory)
{
require(_exists(tokenId), "not exists");
string memory tokenIdStr = Strings.toString(tokenId);
uint256 discTokenId = tokenIdToDiscTokenId[tokenId];
Attribute memory attrs;
if (discTokenId == EMPTY_DISC_TOKEN_ID) {
attrs = tokenIdToAttribute[tokenId];
} else {
attrs = _getAttribute(discTokenId);
}
string memory image = string(
bytes.concat(
bytes(_baseThumbnailURI),
bytes(Strings.toString(tokenId)),
bytes(".png")
)
);
string memory animationUrlObj = _getAnimationUrl(tokenId, attrs);
return
string.concat(
"data:application/json;base64,",
Base64.encode(
abi.encodePacked(
'{"name":"Connected Windows #',
tokenIdStr,
'","description":"',
"Artist: NIINOMI\\n\\nConnected Windows is an artwork that explores the theme of connections formed through a collection of NFTs, with the motif being computer user interfaces called windows. Within this collection, there exist digital creatures called ANIMA, which traverse between the windows of NFTs generated within the collection. As the number of owners in the collection increases, the time ANIMA stays in one window becomes shorter, leaving only the windows on the screen. While computer windows serve as interfaces for displaying information, in Connected Windows, they also serve as a space for ANIMA to visit. Owning one edition in the NFT collection signifies the formation of a loose connection with other owners. Becoming an owner of this collection means becoming a member who shares ANIMA, and the visitation of ANIMA to the window is a testament to the formation of these subtle connections.",
'","image":"',
image,
'","animation_url":"',
animationUrlObj,
'","discTokenId":',
Strings.toString(discTokenId),
",",
_attributesText(attrs),
"}"
)
)
);
}
function setDisc(uint256 tokenId, uint256 discTokenId) external {
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"Connected Windows: caller is not token owner"
);
require(
_msgSender() == discSystem.ownerOf(discTokenId),
"Connected Windows: Not owner"
);
tokenIdToDiscTokenId[tokenId] = discTokenId;
}
function setIsOnSale(bool _isOnSale) external onlyOwner {
isOnSale = _isOnSale;
}
function setIsMetadataFrozen(bool _isMetadataFrozen) external onlyOwner {
require(
!isMetadataFrozen,
"Connected Windows: isMetadataFrozen cannot be changed"
);
isMetadataFrozen = _isMetadataFrozen;
}
function setBaseThumbnailURI(string memory baseThumbnailURI)
external
onlyOwner
{
require(!isMetadataFrozen, "Connected Windows: Metadata is already frozen");
_baseThumbnailURI = baseThumbnailURI;
}
function setArtCodeURI(string memory artCodeURI) external onlyOwner {
require(!isMetadataFrozen, "Connected Windows: Metadata is already frozen");
_artCodeURI = artCodeURI;
}
function setCompleteCycleInSec(uint256 _completeCycleInSec)
external
onlyOwner
{
completeCycleInSec = _completeCycleInSec;
}
function setBreakInSec(uint256 _breakInSec) external onlyOwner {
breakInSec = _breakInSec;
}
function withdraw() external onlyOwner {
Address.sendValue(payable(msg.sender), address(this).balance);
}
function onERC721Received(
address,
address,
uint256,
bytes calldata
) public virtual override returns (bytes4) {
return this.onERC721Received.selector;
}
function _mintAndTransfer(address to, uint256 discTokenId) internal {
uint256 nextTokenId = _mintedTokenIdList.length + 1;
require(
to == discSystem.ownerOf(discTokenId),
"Connected Windows: Not owner"
);
usedDiscTokenId[discTokenId] = true;
tokenIdToDiscTokenId[nextTokenId] = discTokenId;
_mintedTokenIdList.push(nextTokenId);
_safeMint(to, nextTokenId);
}
function _getAttribute(uint256 discTokenId)
internal
view
returns (Attribute memory)
{
(
bytes32 hash,
string memory palette,
string memory image,
string memory message,
string memory shape,
uint256 speed,
uint256 size,
uint256 weight,
uint256 offset,
bool dynamic
) = discSystem.tokenIdToAttributes(discTokenId);
return
Attribute(
hash,
palette,
image,
message,
shape,
speed,
size,
weight,
offset,
dynamic
);
}
function _getAnimationUrl(uint256 tokenId, Attribute memory attrs)
internal
view
returns (string memory)
{
string memory attrObj = _getAttrObj(attrs);
uint256 _totalCount = totalCount();
string memory htmlData = string.concat(
"<html>",
"<head>",
'<meta name="viewport" width="device-width," initial-scale="1.0," maximum-scale="1.0," user-scalable="0" />',
"<style> body { margin: 0; } .artCanvas { width: 100%;height: 100%;position: fixed;overflow: hidden;display: flex;justify-content: center;align-items: center;</style>",
"\n<script>\n",
_embedVariable("attributes", attrObj),
_embedVariable("id", Strings.toString(tokenId)),
_embedVariable("totalNum", Strings.toString(_totalCount)),
_embedVariable(
"completeCycleInSec",
Strings.toString(completeCycleInSec)
),
_embedVariable("breakInSec", Strings.toString(breakInSec)),
"\n</script>\n",
"</head>",
"<body>",
'<canvas id="canvas" class="artCanvas"></canvas><canvas id="canvas2" class="artCanvas"></canvas>',
_embedScript(_artCodeURI),
"</body>",
"</html>"
);
return
string.concat(
"data:text/html;charset=UTF-8;base64,",
Base64.encode(bytes(htmlData))
);
}
function _getAttrObj(Attribute memory attrs)
internal
pure
returns (string memory)
{
string memory hash = string.concat("0x", bytes32ToHexString(attrs.hash));
string memory json1 = string(
abi.encodePacked(
"{",
'"hash":"',
hash,
'","palette":"',
attrs.palette,
'","image":"',
attrs.image,
'","message":"',
attrs.message,
'","shape":"',
attrs.shape,
'","speed":',
Strings.toString(attrs.speed)
)
);
string memory json2 = string(
abi.encodePacked(
',"size":',
Strings.toString(attrs.size),
',"weight":',
Strings.toString(attrs.weight),
',"offset":',
Strings.toString(attrs.offset),
',"dynamic":',
attrs.dynamic ? "true" : "false",
"}"
)
);
return string(abi.encodePacked(json1, json2));
}
function _embedVariable(string memory name, string memory value)
private
pure
returns (string memory)
{
return string.concat(name, " = ", value, ";\n");
}
function _embedScript(string memory src)
private
pure
returns (string memory)
{
return string.concat('<script src="', src, '"></script>');
}
function _attributesText(Attribute memory attrs)
internal
pure
returns (string memory)
{
return
string.concat(
'"attributes":[{"trait_type":"palette","value":"',
attrs.palette,
'"},{"trait_type":"image","value":"',
attrs.image,
'"},{"trait_type":"message","value":"',
attrs.message,
'"},{"trait_type":"shape","value":"',
attrs.shape,
'"},{"trait_type":"speed","value":',
Strings.toString(attrs.speed),
'},{"trait_type":"size","value":',
Strings.toString(attrs.size),
'},{"trait_type":"weight","value":',
Strings.toString(attrs.weight),
'},{"trait_type":"offset","value":',
Strings.toString(attrs.offset),
'},{"trait_type":"dynamic","value":"',
attrs.dynamic ? "true" : "false",
'"}]'
);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal override(ERC721) {
super._beforeTokenTransfer(from, to, tokenId);
if (from != address(0)) {
uint256 discTokenId = tokenIdToDiscTokenId[tokenId];
if (discTokenId != EMPTY_DISC_TOKEN_ID) {
tokenIdToDiscTokenId[tokenId] = EMPTY_DISC_TOKEN_ID;
Attribute memory attribute = _getAttribute(discTokenId);
tokenIdToAttribute[tokenId] = attribute;
}
}
}
/**
* Operator Filter Registry
*/
function setApprovalForAll(address operator, bool approved)
public
override
onlyAllowedOperatorApproval(operator)
{
super.setApprovalForAll(operator, approved);
}
function approve(address operator, uint256 tokenId)
public
override
onlyAllowedOperatorApproval(operator)
{
super.approve(operator, tokenId);
}
function transferFrom(
address from,
address to,
uint256 tokenId
) public override onlyAllowedOperator(from) {
super.transferFrom(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public override onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public override onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId, data);
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
contract Util {
function bytes32ToHexString(bytes32 _bytes32)
public
pure
returns (string memory)
{
bytes memory byteArray = new bytes(64);
for (uint8 i = 0; i < 32; i++) {
uint8 currentByte = uint8(_bytes32[i]);
uint8 highNibble = currentByte >> 4;
uint8 lowNibble = currentByte & 0x0f;
byteArray[i * 2] = toByte(highNibble);
byteArray[i * 2 + 1] = toByte(lowNibble);
}
return string(byteArray);
}
function toByte(uint8 _value) private pure returns (bytes1) {
if (_value < 10) {
return bytes1(uint8(bytes1("0")) + _value);
} else {
return bytes1(uint8(bytes1("a")) + _value - 10);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: address zero is not a valid owner");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: invalid token ID");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
_requireMinted(tokenId);
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not token owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
_requireMinted(tokenId);
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_safeTransfer(from, to, tokenId, data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits an {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits an {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Reverts if the `tokenId` has not been minted yet.
*/
function _requireMinted(uint256 tokenId) internal view virtual {
require(_exists(tokenId), "ERC721: invalid token ID");
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
/// @solidity memory-safe-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides a set of functions to operate with Base64 strings.
*
* _Available since v4.5._
*/
library Base64 {
/**
* @dev Base64 Encoding/Decoding Table
*/
string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/**
* @dev Converts a `bytes` to its Bytes64 `string` representation.
*/
function encode(bytes memory data) internal pure returns (string memory) {
/**
* Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
* https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
*/
if (data.length == 0) return "";
// Loads the table into memory
string memory table = _TABLE;
// Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
// and split into 4 numbers of 6 bits.
// The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
// - `data.length + 2` -> Round up
// - `/ 3` -> Number of 3-bytes chunks
// - `4 *` -> 4 characters for each chunk
string memory result = new string(4 * ((data.length + 2) / 3));
/// @solidity memory-safe-assembly
assembly {
// Prepare the lookup table (skip the first "length" byte)
let tablePtr := add(table, 1)
// Prepare result pointer, jump over length
let resultPtr := add(result, 32)
// Run over the input, 3 bytes at a time
for {
let dataPtr := data
let endPtr := add(data, mload(data))
} lt(dataPtr, endPtr) {
} {
// Advance 3 bytes
dataPtr := add(dataPtr, 3)
let input := mload(dataPtr)
// To write each character, shift the 3 bytes (18 bits) chunk
// 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
// and apply logical AND with 0x3F which is the number of
// the previous character in the ASCII table prior to the Base64 Table
// The result is then added to the table to get the character to write,
// and finally write it in the result pointer but with a left shift
// of 256 (1 byte) - 8 (1 ASCII char) = 248 bits
mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
}
// When data `bytes` is not exactly 3 bytes long
// it is padded with `=` characters at the end
switch mod(mload(data), 3)
case 1 {
mstore8(sub(resultPtr, 1), 0x3d)
mstore8(sub(resultPtr, 2), 0x3d)
}
case 2 {
mstore8(sub(resultPtr, 1), 0x3d)
}
}
return result;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {OperatorFilterer} from "./OperatorFilterer.sol";
/**
* @title DefaultOperatorFilterer
* @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
*/
abstract contract DefaultOperatorFilterer is OperatorFilterer {
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
/**
* @title OperatorFilterer
* @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
* registrant's entries in the OperatorFilterRegistry.
* @dev This smart contract is meant to be inherited by token contracts so they can use the following:
* - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
* - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
*/
abstract contract OperatorFilterer {
error OperatorNotAllowed(address operator);
IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
// If an inheriting token contract is deployed to a network without the registry deployed, the modifier
// will not revert, but the contract will need to be registered with the registry once it is deployed in
// order for the modifier to filter addresses.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (subscribe) {
OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
} else {
if (subscriptionOrRegistrantToCopy != address(0)) {
OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
} else {
OPERATOR_FILTER_REGISTRY.register(address(this));
}
}
}
}
modifier onlyAllowedOperator(address from) virtual {
// Allow spending tokens from addresses with balance
// Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
// from an EOA.
if (from != msg.sender) {
_checkFilterOperator(msg.sender);
}
_;
}
modifier onlyAllowedOperatorApproval(address operator) virtual {
_checkFilterOperator(operator);
_;
}
function _checkFilterOperator(address operator) internal view virtual {
// Check registry code length to facilitate testing in environments without a deployed registry.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
revert OperatorNotAllowed(operator);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface IOperatorFilterRegistry {
function isOperatorAllowed(address registrant, address operator) external view returns (bool);
function register(address registrant) external;
function registerAndSubscribe(address registrant, address subscription) external;
function registerAndCopyEntries(address registrant, address registrantToCopy) external;
function unregister(address addr) external;
function updateOperator(address registrant, address operator, bool filtered) external;
function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
function subscribe(address registrant, address registrantToSubscribe) external;
function unsubscribe(address registrant, bool copyExistingEntries) external;
function subscriptionOf(address addr) external returns (address registrant);
function subscribers(address registrant) external returns (address[] memory);
function subscriberAt(address registrant, uint256 index) external returns (address);
function copyEntriesOf(address registrant, address registrantToCopy) external;
function isOperatorFiltered(address registrant, address operator) external returns (bool);
function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
function filteredOperators(address addr) external returns (address[] memory);
function filteredCodeHashes(address addr) external returns (bytes32[] memory);
function filteredOperatorAt(address registrant, uint256 index) external returns (address);
function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
function isRegistered(address addr) external returns (bool);
function codeHashOf(address addr) external returns (bytes32);
}{
"optimizer": {
"enabled": true,
"runs": 1000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"baseThumbnailURI","type":"string"},{"internalType":"string","name":"artCodeURI","type":"string"},{"internalType":"address","name":"discSystemAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"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":[],"name":"DISC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":[],"name":"breakInSec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_bytes32","type":"bytes32"}],"name":"bytes32ToHexString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"completeCycleInSec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discSystem","outputs":[{"internalType":"contract IADiscSystem","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"isMetadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOnSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"discTokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintTokenAndDisc","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedTokenIdList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":"string","name":"artCodeURI","type":"string"}],"name":"setArtCodeURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseThumbnailURI","type":"string"}],"name":"setBaseThumbnailURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_breakInSec","type":"uint256"}],"name":"setBreakInSec","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_completeCycleInSec","type":"uint256"}],"name":"setCompleteCycleInSec","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"discTokenId","type":"uint256"}],"name":"setDisc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isMetadataFrozen","type":"bool"}],"name":"setIsMetadataFrozen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOnSale","type":"bool"}],"name":"setIsOnSale","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":"","type":"uint256"}],"name":"tokenIdToAttribute","outputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"string","name":"palette","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"message","type":"string"},{"internalType":"string","name":"shape","type":"string"},{"internalType":"uint256","name":"speed","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"},{"internalType":"uint256","name":"weight","type":"uint256"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"bool","name":"dynamic","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToDiscTokenId","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":"totalCount","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":"uint256","name":"","type":"uint256"}],"name":"usedDiscTokenId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052603c600c556002600d5561270f6011553480156200002157600080fd5b506040516200542c3803806200542c83398101604081905262000044916200043a565b6040805180820182526011815270436f6e6e65637465642057696e646f777360781b602080830191825283518085019094526002845261435760f01b908401528151733cc6cdda760b79bafa08df41ecfa224f810dceb693600193929091620000b091600091620002c7565b508051620000c6906001906020840190620002c7565b5050600160065550620000d93362000275565b6daaeb6d7670e522a718067333cd4e3b156200021e5780156200016c57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200014d57600080fd5b505af115801562000162573d6000803e3d6000fd5b505050506200021e565b6001600160a01b03821615620001bd5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000132565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200020457600080fd5b505af115801562000219573d6000803e3d6000fd5b505050505b505082516200023590600f906020860190620002c7565b5081516200024b906010906020850190620002c7565b50600880546001600160a01b0319166001600160a01b039290921691909117905550620005039050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002d590620004c7565b90600052602060002090601f016020900481019282620002f9576000855562000344565b82601f106200031457805160ff191683800117855562000344565b8280016001018555821562000344579182015b828111156200034457825182559160200191906001019062000327565b506200035292915062000356565b5090565b5b8082111562000352576000815560010162000357565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200039557600080fd5b81516001600160401b0380821115620003b257620003b26200036d565b604051601f8301601f19908116603f01168101908282118183101715620003dd57620003dd6200036d565b81604052838152602092508683858801011115620003fa57600080fd5b600091505b838210156200041e5785820183015181830184015290820190620003ff565b83821115620004305760008385830101525b9695505050505050565b6000806000606084860312156200045057600080fd5b83516001600160401b03808211156200046857600080fd5b620004768783880162000383565b945060208601519150808211156200048d57600080fd5b506200049c8682870162000383565b604086015190935090506001600160a01b0381168114620004bc57600080fd5b809150509250925092565b600181811c90821680620004dc57607f821691505b602082108103620004fd57634e487b7160e01b600052602260045260246000fd5b50919050565b614f1980620005136000396000f3fe6080604052600436106102bb5760003560e01c8063890e839f1161016e578063b88d4fde116100cb578063e985e9c51161007f578063f2fde38b11610064578063f2fde38b146107c8578063fb8ea9f6146107e8578063fd57fca51461080357600080fd5b8063e985e9c51461075f578063eee5840c146107a857600080fd5b8063c87b56dd116100b0578063c87b56dd146106ef578063dc7bf24d1461070f578063e037999b1461073f57600080fd5b8063b88d4fde146106af578063c68b3787146106cf57600080fd5b80639a812a6611610122578063a22cb46511610107578063a22cb46514610659578063a950539014610679578063ab3b0f891461068f57600080fd5b80639a812a6614610619578063a0712d681461063957600080fd5b806391f7ba851161015357806391f7ba85146105b757806393f0029d146105e457806395d89b411461060457600080fd5b8063890e839f146105785780638da5cb5b1461059957600080fd5b806334eafb111161021c5780636352211e116101d057806370a08231116101b557806370a082311461052d578063715018a61461054d5780637fcd08ae1461056257600080fd5b80636352211e146104d75780636811890c146104f757600080fd5b806341f434341161020157806341f434341461047357806342842e0e1461049557806348ba8ef4146104b557600080fd5b806334eafb111461043f5780633ccfd60b1461045e57600080fd5b80630e24495e116102735780631976d113116102585780631976d113146103f757806323b872dd146103ff5780632d1db4c61461041f57600080fd5b80630e24495e14610391578063150b7a02146103b257600080fd5b8063081812fc116102a4578063081812fc14610317578063095ea7b31461034f57806309a23c3e1461037157600080fd5b806301ffc9a7146102c057806306fdde03146102f5575b600080fd5b3480156102cc57600080fd5b506102e06102db3660046134b3565b610823565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b5061030a6108c0565b6040516102ec919061352f565b34801561032357600080fd5b50610337610332366004613542565b610952565b6040516001600160a01b0390911681526020016102ec565b34801561035b57600080fd5b5061036f61036a366004613570565b610979565b005b34801561037d57600080fd5b5061036f61038c366004613542565b610992565b34801561039d57600080fd5b506008546102e090600160a81b900460ff1681565b3480156103be57600080fd5b506103de6103cd36600461359c565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020016102ec565b61036f61099f565b34801561040b57600080fd5b5061036f61041a36600461363b565b610d14565b34801561042b57600080fd5b5061036f61043a36600461368a565b610d3f565b34801561044b57600080fd5b50600e545b6040519081526020016102ec565b34801561046a57600080fd5b5061036f610e00565b34801561047f57600080fd5b506103376daaeb6d7670e522a718067333cd4e81565b3480156104a157600080fd5b5061036f6104b036600461363b565b610e14565b3480156104c157600080fd5b506104ca610e39565b6040516102ec91906136a7565b3480156104e357600080fd5b506103376104f2366004613542565b610e90565b34801561050357600080fd5b50610517610512366004613542565b610ef5565b6040516102ec9a999897969594939291906136eb565b34801561053957600080fd5b50610450610548366004613773565b611166565b34801561055957600080fd5b5061036f611200565b34801561056e57600080fd5b50610450600d5481565b34801561058457600080fd5b506008546102e090600160a01b900460ff1681565b3480156105a557600080fd5b506007546001600160a01b0316610337565b3480156105c357600080fd5b506104506105d2366004613542565b60096020526000908152604090205481565b3480156105f057600080fd5b5061036f6105ff36600461383d565b611212565b34801561061057600080fd5b5061030a6112a1565b34801561062557600080fd5b5061036f610634366004613542565b6112b0565b34801561064557600080fd5b5061036f610654366004613542565b6112bd565b34801561066557600080fd5b5061036f610674366004613886565b6113a7565b34801561068557600080fd5b50610450600c5481565b34801561069b57600080fd5b5061036f6106aa3660046138bf565b6113bb565b3480156106bb57600080fd5b5061036f6106ca3660046138e1565b611517565b3480156106db57600080fd5b5061030a6106ea366004613542565b611544565b3480156106fb57600080fd5b5061030a61070a366004613542565b61163e565b34801561071b57600080fd5b506102e061072a366004613542565b600b6020526000908152604090205460ff1681565b34801561074b57600080fd5b50600854610337906001600160a01b031681565b34801561076b57600080fd5b506102e061077a366004613961565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107b457600080fd5b5061036f6107c336600461383d565b611ac9565b3480156107d457600080fd5b5061036f6107e3366004613773565b611b54565b3480156107f457600080fd5b5061045066470de4df82000081565b34801561080f57600080fd5b5061036f61081e36600461368a565b611be1565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061088657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108ba57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600080546108cf9061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546108fb9061398f565b80156109485780601f1061091d57610100808354040283529160200191610948565b820191906000526020600020905b81548152906001019060200180831161092b57829003601f168201915b5050505050905090565b600061095d82611c22565b506000908152600460205260409020546001600160a01b031690565b8161098381611c86565b61098d8383611d71565b505050565b61099a611e9d565b600d55565b6002600654036109f65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600655600854600160a01b900460ff16610a545760405162461bcd60e51b815260206004820152601e60248201527f436f6e6e65637465642057696e646f77733a204e6f74206f6e2073616c65000060448201526064016109ed565b66470de4df8200003414610aaa5760405162461bcd60e51b815260206004820181905260248201527f436f6e6e65637465642057696e646f77733a20496e76616c69642076616c756560448201526064016109ed565b6008546040517fa0712d68000000000000000000000000000000000000000000000000000000008152600160048201526001600160a01b039091169063a0712d689066470de4df820000906024016000604051808303818588803b158015610b1157600080fd5b505af1158015610b25573d6000803e3d6000fd5b505050505060006001600860009054906101000a90046001600160a01b03166001600160a01b03166348ba8ef46040518163ffffffff1660e01b8152600401600060405180830381865afa158015610b81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ba991908101906139c9565b51610bb49190613a85565b6008546040516331a9108f60e11b8152600481018390529192506001600160a01b031690636352211e90602401602060405180830381865afa158015610bfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c229190613a9c565b6001600160a01b0316306001600160a01b031614610c825760405162461bcd60e51b815260206004820152601c60248201527f436f6e6e65637465642057696e646f77733a204e6f74206f776e65720000000060448201526064016109ed565b6008546001600160a01b03166342842e0e30336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101849052606401600060405180830381600087803b158015610ce457600080fd5b505af1158015610cf8573d6000803e3d6000fd5b50505050610d0c610d063390565b82611ef7565b506001600655565b826001600160a01b0381163314610d2e57610d2e33611c86565b610d3984848461203d565b50505050565b610d47611e9d565b600854600160a81b900460ff1615610dc75760405162461bcd60e51b815260206004820152603560248201527f436f6e6e65637465642057696e646f77733a2069734d6574616461746146726f60448201527f7a656e2063616e6e6f74206265206368616e676564000000000000000000000060648201526084016109ed565b60088054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b610e08611e9d565b610e1233476120c4565b565b826001600160a01b0381163314610e2e57610e2e33611c86565b610d398484846121dd565b6060600e80548060200260200160405190810160405280929190818152602001828054801561094857602002820191906000526020600020905b815481526020019060010190808311610e73575050505050905090565b6000818152600260205260408120546001600160a01b0316806108ba5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016109ed565b600a6020526000908152604090208054600182018054919291610f179061398f565b80601f0160208091040260200160405190810160405280929190818152602001828054610f439061398f565b8015610f905780601f10610f6557610100808354040283529160200191610f90565b820191906000526020600020905b815481529060010190602001808311610f7357829003601f168201915b505050505090806002018054610fa59061398f565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd19061398f565b801561101e5780601f10610ff35761010080835404028352916020019161101e565b820191906000526020600020905b81548152906001019060200180831161100157829003601f168201915b5050505050908060030180546110339061398f565b80601f016020809104026020016040519081016040528092919081815260200182805461105f9061398f565b80156110ac5780601f10611081576101008083540402835291602001916110ac565b820191906000526020600020905b81548152906001019060200180831161108f57829003601f168201915b5050505050908060040180546110c19061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546110ed9061398f565b801561113a5780601f1061110f5761010080835404028352916020019161113a565b820191906000526020600020905b81548152906001019060200180831161111d57829003601f168201915b505050600584015460068501546007860154600887015460099097015495969295919450925060ff168a565b60006001600160a01b0382166111e45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016109ed565b506001600160a01b031660009081526003602052604090205490565b611208611e9d565b610e1260006121f8565b61121a611e9d565b600854600160a81b900460ff161561128a5760405162461bcd60e51b815260206004820152602d60248201527f436f6e6e65637465642057696e646f77733a204d65746164617461206973206160448201526c363932b0b23c90333937bd32b760991b60648201526084016109ed565b805161129d90600f906020840190613404565b5050565b6060600180546108cf9061398f565b6112b8611e9d565b600c55565b600854600160a01b900460ff166113165760405162461bcd60e51b815260206004820152601e60248201527f436f6e6e65637465642057696e646f77733a204e6f74206f6e2073616c65000060448201526064016109ed565b6000818152600b602052604090205460ff161561139b5760405162461bcd60e51b815260206004820152603460248201527f436f6e6e65637465642057696e646f77733a20546865206469736320746f6b6560448201527f6e20494420697320616c7265616479207573656400000000000000000000000060648201526084016109ed565b6113a433610d06565b50565b816113b181611c86565b61098d8383612257565b6113c6335b83612262565b6114385760405162461bcd60e51b815260206004820152602c60248201527f436f6e6e65637465642057696e646f77733a2063616c6c6572206973206e6f7460448201527f20746f6b656e206f776e6572000000000000000000000000000000000000000060648201526084016109ed565b6008546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e90602401602060405180830381865afa158015611481573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a59190613a9c565b6001600160a01b0316336001600160a01b0316146115055760405162461bcd60e51b815260206004820152601c60248201527f436f6e6e65637465642057696e646f77733a204e6f74206f776e65720000000060448201526064016109ed565b60009182526009602052604090912055565b836001600160a01b03811633146115315761153133611c86565b61153d858585856122e1565b5050505050565b6040805181815260608181018352916000919060208201818036833701905050905060005b60208160ff161015611637576000848260ff166020811061158c5761158c613ab9565b1a9050600481901c600f82166115a182612368565b856115ad866002613acf565b60ff16815181106115c0576115c0613ab9565b60200101906001600160f81b031916908160001a9053506115e081612368565b856115ec866002613acf565b6115f7906001613af8565b60ff168151811061160a5761160a613ab9565b60200101906001600160f81b031916908160001a905350505050808061162f90613b1d565b915050611569565b5092915050565b6000818152600260205260409020546060906001600160a01b03166116a55760405162461bcd60e51b815260206004820152600a60248201527f6e6f74206578697374730000000000000000000000000000000000000000000060448201526064016109ed565b60006116b0836123a6565b90506000600960008581526020019081526020016000205490506117256040518061014001604052806000801916815260200160608152602001606081526020016060815260200160608152602001600081526020016000815260200160008152602001600081526020016000151581525090565b60115482036119de57600a600086815260200190815260200160002060405180610140016040529081600082015481526020016001820180546117679061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546117939061398f565b80156117e05780601f106117b5576101008083540402835291602001916117e0565b820191906000526020600020905b8154815290600101906020018083116117c357829003601f168201915b505050505081526020016002820180546117f99061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546118259061398f565b80156118725780601f1061184757610100808354040283529160200191611872565b820191906000526020600020905b81548152906001019060200180831161185557829003601f168201915b5050505050815260200160038201805461188b9061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546118b79061398f565b80156119045780601f106118d957610100808354040283529160200191611904565b820191906000526020600020905b8154815290600101906020018083116118e757829003601f168201915b5050505050815260200160048201805461191d9061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546119499061398f565b80156119965780601f1061196b57610100808354040283529160200191611996565b820191906000526020600020905b81548152906001019060200180831161197957829003601f168201915b50505091835250506005820154602082015260068201546040820152600782015460608201526008820154608082015260099091015460ff16151560a09091015290506119ea565b6119e7826124c3565b90505b6000600f6119f7876123a6565b6040518060400160405280600481526020017f2e706e6700000000000000000000000000000000000000000000000000000000815250604051602001611a3f93929190613b58565b60405160208183030381529060405290506000611a5c878461260f565b9050611a9e858383611a6d886123a6565b611a7688612869565b604051602001611a8a959493929190613c08565b60405160208183030381529060405261292d565b604051602001611aae91906141a5565b60405160208183030381529060405295505050505050919050565b611ad1611e9d565b600854600160a81b900460ff1615611b415760405162461bcd60e51b815260206004820152602d60248201527f436f6e6e65637465642057696e646f77733a204d65746164617461206973206160448201526c363932b0b23c90333937bd32b760991b60648201526084016109ed565b805161129d906010906020840190613404565b611b5c611e9d565b6001600160a01b038116611bd85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109ed565b6113a4816121f8565b611be9611e9d565b60088054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000818152600260205260409020546001600160a01b03166113a45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016109ed565b6daaeb6d7670e522a718067333cd4e3b156113a4576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611d0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d3091906141f5565b6113a4576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024016109ed565b6000611d7c82610e90565b9050806001600160a01b0316836001600160a01b031603611e055760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109ed565b336001600160a01b0382161480611e215750611e21813361077a565b611e935760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016109ed565b61098d8383612a80565b6007546001600160a01b03163314610e125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ed565b600e54600090611f08906001614212565b6008546040516331a9108f60e11b8152600481018590529192506001600160a01b031690636352211e90602401602060405180830381865afa158015611f52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f769190613a9c565b6001600160a01b0316836001600160a01b031614611fd65760405162461bcd60e51b815260206004820152601c60248201527f436f6e6e65637465642057696e646f77733a204e6f74206f776e65720000000060448201526064016109ed565b6000828152600b60209081526040808320805460ff1916600190811790915584845260099092528220849055600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0181905561098d8382612afb565b6120473382612262565b6120b95760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016109ed565b61098d838383612b15565b804710156121145760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109ed565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612161576040519150601f19603f3d011682016040523d82523d6000602084013e612166565b606091505b505090508061098d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109ed565b61098d83838360405180602001604052806000815250611517565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61129d338383612cfa565b60008061226e83610e90565b9050806001600160a01b0316846001600160a01b031614806122b557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806122d95750836001600160a01b03166122ce84610952565b6001600160a01b0316145b949350505050565b6122ea336113c0565b61235c5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016109ed565b610d3984848484612dc8565b6000600a8260ff16101561238a57612381826030613af8565b60f81b92915050565b600a612397836061613af8565b612381919061422a565b919050565b6060816000036123e957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561241357806123fd8161424d565b915061240c9050600a8361427c565b91506123ed565b60008167ffffffffffffffff81111561242e5761242e613790565b6040519080825280601f01601f191660200182016040528015612458576020820181803683370190505b5090505b84156122d95761246d600183613a85565b915061247a600a86614290565b612485906030614212565b60f81b81838151811061249a5761249a613ab9565b60200101906001600160f81b031916908160001a9053506124bc600a8661427c565b945061245c565b61251e6040518061014001604052806000801916815260200160608152602001606081526020016060815260200160608152602001600081526020016000815260200160008152602001600081526020016000151581525090565b600080600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b0316631177f3798d6040518263ffffffff1660e01b815260040161257091815260200190565b600060405180830381865afa15801561258d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125b591908101906142e9565b60408051610140810182529a8b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e084015261010083015215156101208201529c9b505050505050505050505050565b6060600061261c83612e46565b90506000612629600e5490565b9050600061266c6040518060400160405280600a81526020017f617474726962757465730000000000000000000000000000000000000000000081525084612f87565b6126b36040518060400160405280600281526020017f69640000000000000000000000000000000000000000000000000000000000008152506126ae896123a6565b612f87565b6126f56040518060400160405280600881526020017f746f74616c4e756d0000000000000000000000000000000000000000000000008152506126ae866123a6565b6127396040518060400160405280601281526020017f636f6d706c6574654379636c65496e53656300000000000000000000000000008152506126ae600c546123a6565b61277d6040518060400160405280600a81526020017f627265616b496e536563000000000000000000000000000000000000000000008152506126ae600d546123a6565b6128106010805461278d9061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546127b99061398f565b80156128065780601f106127db57610100808354040283529160200191612806565b820191906000526020600020905b8154815290600101906020018083116127e957829003601f168201915b5050505050612fb3565b604051602001612825969594939291906143d9565b604051602081830303815290604052905061283f8161292d565b60405160200161284f9190614736565b604051602081830303815290604052935050505092915050565b6060816020015182604001518360600151846080015161288c8660a001516123a6565b6128998760c001516123a6565b6128a68860e001516123a6565b6128b48961010001516123a6565b8961012001516128e1576040518060400160405280600581526020016466616c736560d81b8152506128ff565b604051806040016040528060048152602001637472756560e01b8152505b604051602001612917999897969594939291906147a1565b6040516020818303038152906040529050919050565b6060815160000361294c57505060408051602081019091526000815290565b6000604051806060016040528060408152602001614ea4604091399050600060038451600261297b9190614212565b612985919061427c565b612990906004614a4d565b67ffffffffffffffff8111156129a8576129a8613790565b6040519080825280601f01601f1916602001820160405280156129d2576020820181803683370190505b509050600182016020820185865187015b80821015612a3e576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506129e3565b5050600386510660018114612a5a5760028114612a6d57612a75565b603d6001830353603d6002830353612a75565b603d60018303535b509195945050505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612ac282610e90565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61129d828260405180602001604052806000815250612fc6565b826001600160a01b0316612b2882610e90565b6001600160a01b031614612ba45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016109ed565b6001600160a01b038216612c1f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109ed565b612c2a838383613044565b612c35600082612a80565b6001600160a01b0383166000908152600360205260408120805460019290612c5e908490613a85565b90915550506001600160a01b0382166000908152600360205260408120805460019290612c8c908490614212565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031603612d5b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109ed565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612dd3848484612b15565b612ddf8484848461315d565b610d395760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109ed565b60606000612e578360000151611544565b604051602001612e679190614a6c565b60405160208183030381529060405290506000818460200151856040015186606001518760800151612e9c8960a001516123a6565b604051602001612eb196959493929190614ab1565b60405160208183030381529060405290506000612ed18560c001516123a6565b612ede8660e001516123a6565b612eec8761010001516123a6565b876101200151612f19576040518060400160405280600581526020016466616c736560d81b815250612f37565b604051806040016040528060048152602001637472756560e01b8152505b604051602001612f4a9493929190614c2a565b60405160208183030381529060405290508181604051602001612f6e929190614d37565b6040516020818303038152906040529350505050919050565b60608282604051602001612f9c929190614d66565b604051602081830303815290604052905092915050565b6060816040516020016129179190614de8565b612fd083836132a9565b612fdd600084848461315d565b61098d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109ed565b6001600160a01b0383161561098d576000818152600960205260409020546011548114610d3957601154600083815260096020526040812091909155613089826124c3565b6000848152600a6020908152604090912082518155818301518051939450849391926130bd92600185019290910190613404565b50604082015180516130d9916002840191602090910190613404565b50606082015180516130f5916003840191602090910190613404565b5060808201518051613111916004840191602090910190613404565b5060a0820151600582015560c0820151600682015560e082015160078201556101008201516008820155610120909101516009909101805460ff19169115159190911790555050505050565b60006001600160a01b0384163b1561329e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131a1903390899088908890600401614e54565b6020604051808303816000875af19250505080156131dc575060408051601f3d908101601f191682019092526131d991810190614e86565b60015b613284573d80801561320a576040519150601f19603f3d011682016040523d82523d6000602084013e61320f565b606091505b50805160000361327c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109ed565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122d9565b506001949350505050565b6001600160a01b0382166132ff5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109ed565b6000818152600260205260409020546001600160a01b0316156133645760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109ed565b61337060008383613044565b6001600160a01b0382166000908152600360205260408120805460019290613399908490614212565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546134109061398f565b90600052602060002090601f0160209004810192826134325760008555613478565b82601f1061344b57805160ff1916838001178555613478565b82800160010185558215613478579182015b8281111561347857825182559160200191906001019061345d565b50613484929150613488565b5090565b5b808211156134845760008155600101613489565b6001600160e01b0319811681146113a457600080fd5b6000602082840312156134c557600080fd5b81356134d08161349d565b9392505050565b60005b838110156134f25781810151838201526020016134da565b83811115610d395750506000910152565b6000815180845261351b8160208601602086016134d7565b601f01601f19169290920160200192915050565b6020815260006134d06020830184613503565b60006020828403121561355457600080fd5b5035919050565b6001600160a01b03811681146113a457600080fd5b6000806040838503121561358357600080fd5b823561358e8161355b565b946020939093013593505050565b6000806000806000608086880312156135b457600080fd5b85356135bf8161355b565b945060208601356135cf8161355b565b935060408601359250606086013567ffffffffffffffff808211156135f357600080fd5b818801915088601f83011261360757600080fd5b81358181111561361657600080fd5b89602082850101111561362857600080fd5b9699959850939650602001949392505050565b60008060006060848603121561365057600080fd5b833561365b8161355b565b9250602084013561366b8161355b565b929592945050506040919091013590565b80151581146113a457600080fd5b60006020828403121561369c57600080fd5b81356134d08161367c565b6020808252825182820181905260009190848201906040850190845b818110156136df578351835292840192918401916001016136c3565b50909695505050505050565b60006101408c83528060208401526137058184018d613503565b90508281036040840152613719818c613503565b9050828103606084015261372d818b613503565b90508281036080840152613741818a613503565b60a0840198909852505060c081019490945260e084019290925261010083015215156101209091015295945050505050565b60006020828403121561378557600080fd5b81356134d08161355b565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156137cf576137cf613790565b604052919050565b600067ffffffffffffffff8211156137f1576137f1613790565b50601f01601f191660200190565b600061381261380d846137d7565b6137a6565b905082815283838301111561382657600080fd5b828260208301376000602084830101529392505050565b60006020828403121561384f57600080fd5b813567ffffffffffffffff81111561386657600080fd5b8201601f8101841361387757600080fd5b6122d9848235602084016137ff565b6000806040838503121561389957600080fd5b82356138a48161355b565b915060208301356138b48161367c565b809150509250929050565b600080604083850312156138d257600080fd5b50508035926020909101359150565b600080600080608085870312156138f757600080fd5b84356139028161355b565b935060208501356139128161355b565b925060408501359150606085013567ffffffffffffffff81111561393557600080fd5b8501601f8101871361394657600080fd5b613955878235602084016137ff565b91505092959194509250565b6000806040838503121561397457600080fd5b823561397f8161355b565b915060208301356138b48161355b565b600181811c908216806139a357607f821691505b6020821081036139c357634e487b7160e01b600052602260045260246000fd5b50919050565b600060208083850312156139dc57600080fd5b825167ffffffffffffffff808211156139f457600080fd5b818501915085601f830112613a0857600080fd5b815181811115613a1a57613a1a613790565b8060051b9150613a2b8483016137a6565b8181529183018401918481019088841115613a4557600080fd5b938501935b83851015613a6357845182529385019390850190613a4a565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b600082821015613a9757613a97613a6f565b500390565b600060208284031215613aae57600080fd5b81516134d08161355b565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168160ff0481118215151615613af057613af0613a6f565b029392505050565b600060ff821660ff84168060ff03821115613b1557613b15613a6f565b019392505050565b600060ff821660ff8103613b3357613b33613a6f565b60010192915050565b60008151613b4e8185602086016134d7565b9290920192915050565b600080855481600182811c915080831680613b7457607f831692505b60208084108203613b9357634e487b7160e01b86526022600452602486fd5b818015613ba75760018114613bb857613be5565b60ff19861689528489019650613be5565b60008c81526020902060005b86811015613bdd5781548b820152908501908301613bc4565b505084890196505b505050505050613bfe613bf88287613b3c565b85613b3c565b9695505050505050565b7f7b226e616d65223a22436f6e6e65637465642057696e646f7773202300000000815260008651613c4081601c850160208b016134d7565b7f222c226465736372697074696f6e223a22000000000000000000000000000000601c918401918201527f4172746973743a204e49494e4f4d495c6e5c6e436f6e6e65637465642057696e602d8201527f646f777320697320616e20617274776f726b2074686174206578706c6f726573604d8201527f20746865207468656d65206f6620636f6e6e656374696f6e7320666f726d6564606d8201527f207468726f756768206120636f6c6c656374696f6e206f66204e4654732c2077608d8201527f69746820746865206d6f746966206265696e6720636f6d70757465722075736560ad8201527f7220696e74657266616365732063616c6c65642077696e646f77732e2057697460cd8201527f68696e207468697320636f6c6c656374696f6e2c20746865726520657869737460ed8201527f206469676974616c206372656174757265732063616c6c656420414e494d412c61010d8201527f207768696368207472617665727365206265747765656e207468652077696e6461012d8201527f6f7773206f66204e4654732067656e6572617465642077697468696e2074686561014d8201527f20636f6c6c656374696f6e2e20417320746865206e756d626572206f66206f7761016d8201527f6e65727320696e2074686520636f6c6c656374696f6e20696e6372656173657361018d8201527f2c207468652074696d6520414e494d4120737461797320696e206f6e652077696101ad8201527f6e646f77206265636f6d65732073686f727465722c206c656176696e67206f6e6101cd8201527f6c79207468652077696e646f7773206f6e207468652073637265656e2e2057686101ed8201527f696c6520636f6d70757465722077696e646f777320736572766520617320696e61020d8201527f746572666163657320666f7220646973706c6179696e6720696e666f726d617461022d8201527f696f6e2c20696e20436f6e6e65637465642057696e646f77732c20746865792061024d8201527f616c736f207365727665206173206120737061636520666f7220414e494d412061026d8201527f746f2076697369742e204f776e696e67206f6e652065646974696f6e20696e2061028d8201527f746865204e465420636f6c6c656374696f6e207369676e6966696573207468656102ad8201527f20666f726d6174696f6e206f662061206c6f6f736520636f6e6e656374696f6e6102cd8201527f2077697468206f74686572206f776e6572732e204265636f6d696e6720616e206102ed8201527f6f776e6572206f66207468697320636f6c6c656374696f6e206d65616e73206261030d8201527f65636f6d696e672061206d656d6265722077686f2073686172657320414e494d61032d8201527f412c20616e64207468652076697369746174696f6e206f6620414e494d41207461034d8201527f6f207468652077696e646f7720697320612074657374616d656e7420746f207461036d8201527f686520666f726d6174696f6e206f6620746865736520737562746c6520636f6e61038d8201527f6e656374696f6e732e00000000000000000000000000000000000000000000006103ad820152613a6361419861419261416961416361413a61413461410b6141056103b68a016a11161134b6b0b3b2911d1160a91b8152600b0190565b8f613b3c565b7f222c22616e696d6174696f6e5f75726c223a2200000000000000000000000000815260130190565b8c613b3c565b7f222c2264697363546f6b656e4964223a00000000000000000000000000000000815260100190565b89613b3c565b7f2c00000000000000000000000000000000000000000000000000000000000000815260010190565b86613b3c565b607d60f81b815260010190565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516141dd81601d8501602087016134d7565b91909101601d0192915050565b80516123a18161367c565b60006020828403121561420757600080fd5b81516134d08161367c565b6000821982111561422557614225613a6f565b500190565b600060ff821660ff84168082101561424457614244613a6f565b90039392505050565b60006001820161425f5761425f613a6f565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261428b5761428b614266565b500490565b60008261429f5761429f614266565b500690565b600082601f8301126142b557600080fd5b81516142c361380d826137d7565b8181528460208386010111156142d857600080fd5b6122d98260208301602087016134d7565b6000806000806000806000806000806101408b8d03121561430957600080fd5b8a51995060208b015167ffffffffffffffff8082111561432857600080fd5b6143348e838f016142a4565b9a5060408d015191508082111561434a57600080fd5b6143568e838f016142a4565b995060608d015191508082111561436c57600080fd5b6143788e838f016142a4565b985060808d015191508082111561438e57600080fd5b5061439b8d828e016142a4565b96505060a08b0151945060c08b0151935060e08b015192506101008b015191506143c86101208c016141ea565b90509295989b9194979a5092959850565b7f3c68746d6c3e000000000000000000000000000000000000000000000000000081527f3c686561643e000000000000000000000000000000000000000000000000000060068201527f3c6d657461206e616d653d2276696577706f7274222077696474683d22646576600c8201527f6963652d77696474682c2220696e697469616c2d7363616c653d22312e302c22602c8201527f206d6178696d756d2d7363616c653d22312e302c2220757365722d7363616c61604c8201527f626c653d223022202f3e00000000000000000000000000000000000000000000606c8201527f3c7374796c653e20626f6479207b206d617267696e3a20303b207d202e61727460768201527f43616e766173207b2077696474683a20313030253b6865696768743a2031303060968201527f253b706f736974696f6e3a2066697865643b6f766572666c6f773a206869646460b68201527f656e3b646973706c61793a20666c65783b6a7573746966792d636f6e74656e7460d68201527f3a2063656e7465723b616c69676e2d6974656d733a2063656e7465723b3c2f7360f68201527f74796c653e000000000000000000000000000000000000000000000000000000610116820152600061011b82017f0a3c7363726970743e0a0000000000000000000000000000000000000000000081526145ee6141926145e86145e2614134600a86018e613b3c565b8a613b3c565b88613b3c565b7f0a3c2f7363726970743e0a000000000000000000000000000000000000000000815290507f3c2f686561643e00000000000000000000000000000000000000000000000000600b8201527f3c626f64793e000000000000000000000000000000000000000000000000000060128201527f3c63616e7661732069643d2263616e7661732220636c6173733d22617274436160188201527f6e766173223e3c2f63616e7661733e3c63616e7661732069643d2263616e766160388201527f73322220636c6173733d2261727443616e766173223e3c2f63616e7661733e0060588201526146dd60778201613bf8565b7f3c2f626f64793e0000000000000000000000000000000000000000000000000081527f3c2f68746d6c3e000000000000000000000000000000000000000000000000006007820152600e019998505050505050505050565b7f646174613a746578742f68746d6c3b636861727365743d5554462d383b62617381527f6536342c000000000000000000000000000000000000000000000000000000006020820152600082516147948160248501602087016134d7565b9190910160240192915050565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2270616c81527f65747465222c2276616c7565223a220000000000000000000000000000000000602082015260008a516147ff81602f850160208f016134d7565b7f227d2c7b2274726169745f74797065223a22696d616765222c2276616c756522602f91840191820152611d1160f11b604f8201528a51614847816051840160208f016134d7565b7f227d2c7b2274726169745f74797065223a226d657373616765222c2276616c75605192909101918201527f65223a220000000000000000000000000000000000000000000000000000000060718201526149186141636148e56141346148b1607586018f613b3c565b7f227d2c7b2274726169745f74797065223a227368617065222c2276616c7565228152611d1160f11b602082015260220190565b7f227d2c7b2274726169745f74797065223a227370656564222c2276616c7565228152601d60f91b602082015260210190565b7f7d2c7b2274726169745f74797065223a2273697a65222c2276616c7565223a0081529050614a17613bf86149c86145e861499561498f61495c601f88018e613b3c565b7f7d2c7b2274726169745f74797065223a22776569676874222c2276616c7565228152601d60f91b602082015260210190565b8b613b3c565b7f7d2c7b2274726169745f74797065223a226f6666736574222c2276616c7565228152601d60f91b602082015260210190565b7f7d2c7b2274726169745f74797065223a2264796e616d6963222c2276616c756581527f223a220000000000000000000000000000000000000000000000000000000000602082015260230190565b7f227d5d000000000000000000000000000000000000000000000000000000000081526003019c9b505050505050505050505050565b6000816000190483118215151615614a6757614a67613a6f565b500290565b7f3078000000000000000000000000000000000000000000000000000000000000815260008251614aa48160028501602087016134d7565b9190910160020192915050565b7f7b0000000000000000000000000000000000000000000000000000000000000081527f2268617368223a22000000000000000000000000000000000000000000000000600182015260008751614b0f816009850160208c016134d7565b7f222c2270616c65747465223a22000000000000000000000000000000000000006009918401918201528751614b4c816016840160208c016134d7565b6a11161134b6b0b3b2911d1160a91b601692909101918201528651614b78816021840160208b016134d7565b7f222c226d657373616765223a2200000000000000000000000000000000000000602192909101918201528551614bb681602e840160208a016134d7565b7f222c227368617065223a22000000000000000000000000000000000000000000602e9290910191820152614c1d613bf8614bf46039840188613b3c565b7f222c227370656564223a000000000000000000000000000000000000000000008152600a0190565b9998505050505050505050565b7f2c2273697a65223a000000000000000000000000000000000000000000000000815260008551614c62816008850160208a016134d7565b7f2c22776569676874223a000000000000000000000000000000000000000000006008918401918201528551614c9f816012840160208a016134d7565b7f2c226f6666736574223a00000000000000000000000000000000000000000000601292909101918201528451614cdd81601c8401602089016134d7565b7f2c2264796e616d6963223a000000000000000000000000000000000000000000601c92909101918201528351614d1b8160278401602088016134d7565b607d60f81b602792909101918201526028019695505050505050565b60008351614d498184602088016134d7565b835190830190614d5d8183602088016134d7565b01949350505050565b60008351614d788184602088016134d7565b7f203d2000000000000000000000000000000000000000000000000000000000009083019081528351614db28160038401602088016134d7565b7f3b0a00000000000000000000000000000000000000000000000000000000000060039290910191820152600501949350505050565b7f3c736372697074207372633d2200000000000000000000000000000000000000815260008251614e2081600d8501602087016134d7565b7f223e3c2f7363726970743e000000000000000000000000000000000000000000600d939091019283015250601801919050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bfe6080830184613503565b600060208284031215614e9857600080fd5b81516134d08161349d56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212201588b4ce7f1356e1714f555ce87a48b7c40d9f0cc557d0f19ad7d3cf3046c33a64736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d37db96941d08ab9218a38d752a1cceff42cac54000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f64693175636f3470657a3167392e636c6f756466726f6e742e6e65742f6e69696e6f6d692f636f6e6e65637465645f77696e646f77732f00000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f6e69696e6f6d692e6d7970696e6174612e636c6f75642f697066732f516d517a47727552507035644d337678683347705a52656a6b637a6442437167456f6e754272684a6e55505577680000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102bb5760003560e01c8063890e839f1161016e578063b88d4fde116100cb578063e985e9c51161007f578063f2fde38b11610064578063f2fde38b146107c8578063fb8ea9f6146107e8578063fd57fca51461080357600080fd5b8063e985e9c51461075f578063eee5840c146107a857600080fd5b8063c87b56dd116100b0578063c87b56dd146106ef578063dc7bf24d1461070f578063e037999b1461073f57600080fd5b8063b88d4fde146106af578063c68b3787146106cf57600080fd5b80639a812a6611610122578063a22cb46511610107578063a22cb46514610659578063a950539014610679578063ab3b0f891461068f57600080fd5b80639a812a6614610619578063a0712d681461063957600080fd5b806391f7ba851161015357806391f7ba85146105b757806393f0029d146105e457806395d89b411461060457600080fd5b8063890e839f146105785780638da5cb5b1461059957600080fd5b806334eafb111161021c5780636352211e116101d057806370a08231116101b557806370a082311461052d578063715018a61461054d5780637fcd08ae1461056257600080fd5b80636352211e146104d75780636811890c146104f757600080fd5b806341f434341161020157806341f434341461047357806342842e0e1461049557806348ba8ef4146104b557600080fd5b806334eafb111461043f5780633ccfd60b1461045e57600080fd5b80630e24495e116102735780631976d113116102585780631976d113146103f757806323b872dd146103ff5780632d1db4c61461041f57600080fd5b80630e24495e14610391578063150b7a02146103b257600080fd5b8063081812fc116102a4578063081812fc14610317578063095ea7b31461034f57806309a23c3e1461037157600080fd5b806301ffc9a7146102c057806306fdde03146102f5575b600080fd5b3480156102cc57600080fd5b506102e06102db3660046134b3565b610823565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b5061030a6108c0565b6040516102ec919061352f565b34801561032357600080fd5b50610337610332366004613542565b610952565b6040516001600160a01b0390911681526020016102ec565b34801561035b57600080fd5b5061036f61036a366004613570565b610979565b005b34801561037d57600080fd5b5061036f61038c366004613542565b610992565b34801561039d57600080fd5b506008546102e090600160a81b900460ff1681565b3480156103be57600080fd5b506103de6103cd36600461359c565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020016102ec565b61036f61099f565b34801561040b57600080fd5b5061036f61041a36600461363b565b610d14565b34801561042b57600080fd5b5061036f61043a36600461368a565b610d3f565b34801561044b57600080fd5b50600e545b6040519081526020016102ec565b34801561046a57600080fd5b5061036f610e00565b34801561047f57600080fd5b506103376daaeb6d7670e522a718067333cd4e81565b3480156104a157600080fd5b5061036f6104b036600461363b565b610e14565b3480156104c157600080fd5b506104ca610e39565b6040516102ec91906136a7565b3480156104e357600080fd5b506103376104f2366004613542565b610e90565b34801561050357600080fd5b50610517610512366004613542565b610ef5565b6040516102ec9a999897969594939291906136eb565b34801561053957600080fd5b50610450610548366004613773565b611166565b34801561055957600080fd5b5061036f611200565b34801561056e57600080fd5b50610450600d5481565b34801561058457600080fd5b506008546102e090600160a01b900460ff1681565b3480156105a557600080fd5b506007546001600160a01b0316610337565b3480156105c357600080fd5b506104506105d2366004613542565b60096020526000908152604090205481565b3480156105f057600080fd5b5061036f6105ff36600461383d565b611212565b34801561061057600080fd5b5061030a6112a1565b34801561062557600080fd5b5061036f610634366004613542565b6112b0565b34801561064557600080fd5b5061036f610654366004613542565b6112bd565b34801561066557600080fd5b5061036f610674366004613886565b6113a7565b34801561068557600080fd5b50610450600c5481565b34801561069b57600080fd5b5061036f6106aa3660046138bf565b6113bb565b3480156106bb57600080fd5b5061036f6106ca3660046138e1565b611517565b3480156106db57600080fd5b5061030a6106ea366004613542565b611544565b3480156106fb57600080fd5b5061030a61070a366004613542565b61163e565b34801561071b57600080fd5b506102e061072a366004613542565b600b6020526000908152604090205460ff1681565b34801561074b57600080fd5b50600854610337906001600160a01b031681565b34801561076b57600080fd5b506102e061077a366004613961565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107b457600080fd5b5061036f6107c336600461383d565b611ac9565b3480156107d457600080fd5b5061036f6107e3366004613773565b611b54565b3480156107f457600080fd5b5061045066470de4df82000081565b34801561080f57600080fd5b5061036f61081e36600461368a565b611be1565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061088657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108ba57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600080546108cf9061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546108fb9061398f565b80156109485780601f1061091d57610100808354040283529160200191610948565b820191906000526020600020905b81548152906001019060200180831161092b57829003601f168201915b5050505050905090565b600061095d82611c22565b506000908152600460205260409020546001600160a01b031690565b8161098381611c86565b61098d8383611d71565b505050565b61099a611e9d565b600d55565b6002600654036109f65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600655600854600160a01b900460ff16610a545760405162461bcd60e51b815260206004820152601e60248201527f436f6e6e65637465642057696e646f77733a204e6f74206f6e2073616c65000060448201526064016109ed565b66470de4df8200003414610aaa5760405162461bcd60e51b815260206004820181905260248201527f436f6e6e65637465642057696e646f77733a20496e76616c69642076616c756560448201526064016109ed565b6008546040517fa0712d68000000000000000000000000000000000000000000000000000000008152600160048201526001600160a01b039091169063a0712d689066470de4df820000906024016000604051808303818588803b158015610b1157600080fd5b505af1158015610b25573d6000803e3d6000fd5b505050505060006001600860009054906101000a90046001600160a01b03166001600160a01b03166348ba8ef46040518163ffffffff1660e01b8152600401600060405180830381865afa158015610b81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ba991908101906139c9565b51610bb49190613a85565b6008546040516331a9108f60e11b8152600481018390529192506001600160a01b031690636352211e90602401602060405180830381865afa158015610bfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c229190613a9c565b6001600160a01b0316306001600160a01b031614610c825760405162461bcd60e51b815260206004820152601c60248201527f436f6e6e65637465642057696e646f77733a204e6f74206f776e65720000000060448201526064016109ed565b6008546001600160a01b03166342842e0e30336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101849052606401600060405180830381600087803b158015610ce457600080fd5b505af1158015610cf8573d6000803e3d6000fd5b50505050610d0c610d063390565b82611ef7565b506001600655565b826001600160a01b0381163314610d2e57610d2e33611c86565b610d3984848461203d565b50505050565b610d47611e9d565b600854600160a81b900460ff1615610dc75760405162461bcd60e51b815260206004820152603560248201527f436f6e6e65637465642057696e646f77733a2069734d6574616461746146726f60448201527f7a656e2063616e6e6f74206265206368616e676564000000000000000000000060648201526084016109ed565b60088054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b610e08611e9d565b610e1233476120c4565b565b826001600160a01b0381163314610e2e57610e2e33611c86565b610d398484846121dd565b6060600e80548060200260200160405190810160405280929190818152602001828054801561094857602002820191906000526020600020905b815481526020019060010190808311610e73575050505050905090565b6000818152600260205260408120546001600160a01b0316806108ba5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016109ed565b600a6020526000908152604090208054600182018054919291610f179061398f565b80601f0160208091040260200160405190810160405280929190818152602001828054610f439061398f565b8015610f905780601f10610f6557610100808354040283529160200191610f90565b820191906000526020600020905b815481529060010190602001808311610f7357829003601f168201915b505050505090806002018054610fa59061398f565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd19061398f565b801561101e5780601f10610ff35761010080835404028352916020019161101e565b820191906000526020600020905b81548152906001019060200180831161100157829003601f168201915b5050505050908060030180546110339061398f565b80601f016020809104026020016040519081016040528092919081815260200182805461105f9061398f565b80156110ac5780601f10611081576101008083540402835291602001916110ac565b820191906000526020600020905b81548152906001019060200180831161108f57829003601f168201915b5050505050908060040180546110c19061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546110ed9061398f565b801561113a5780601f1061110f5761010080835404028352916020019161113a565b820191906000526020600020905b81548152906001019060200180831161111d57829003601f168201915b505050600584015460068501546007860154600887015460099097015495969295919450925060ff168a565b60006001600160a01b0382166111e45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016109ed565b506001600160a01b031660009081526003602052604090205490565b611208611e9d565b610e1260006121f8565b61121a611e9d565b600854600160a81b900460ff161561128a5760405162461bcd60e51b815260206004820152602d60248201527f436f6e6e65637465642057696e646f77733a204d65746164617461206973206160448201526c363932b0b23c90333937bd32b760991b60648201526084016109ed565b805161129d90600f906020840190613404565b5050565b6060600180546108cf9061398f565b6112b8611e9d565b600c55565b600854600160a01b900460ff166113165760405162461bcd60e51b815260206004820152601e60248201527f436f6e6e65637465642057696e646f77733a204e6f74206f6e2073616c65000060448201526064016109ed565b6000818152600b602052604090205460ff161561139b5760405162461bcd60e51b815260206004820152603460248201527f436f6e6e65637465642057696e646f77733a20546865206469736320746f6b6560448201527f6e20494420697320616c7265616479207573656400000000000000000000000060648201526084016109ed565b6113a433610d06565b50565b816113b181611c86565b61098d8383612257565b6113c6335b83612262565b6114385760405162461bcd60e51b815260206004820152602c60248201527f436f6e6e65637465642057696e646f77733a2063616c6c6572206973206e6f7460448201527f20746f6b656e206f776e6572000000000000000000000000000000000000000060648201526084016109ed565b6008546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e90602401602060405180830381865afa158015611481573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a59190613a9c565b6001600160a01b0316336001600160a01b0316146115055760405162461bcd60e51b815260206004820152601c60248201527f436f6e6e65637465642057696e646f77733a204e6f74206f776e65720000000060448201526064016109ed565b60009182526009602052604090912055565b836001600160a01b03811633146115315761153133611c86565b61153d858585856122e1565b5050505050565b6040805181815260608181018352916000919060208201818036833701905050905060005b60208160ff161015611637576000848260ff166020811061158c5761158c613ab9565b1a9050600481901c600f82166115a182612368565b856115ad866002613acf565b60ff16815181106115c0576115c0613ab9565b60200101906001600160f81b031916908160001a9053506115e081612368565b856115ec866002613acf565b6115f7906001613af8565b60ff168151811061160a5761160a613ab9565b60200101906001600160f81b031916908160001a905350505050808061162f90613b1d565b915050611569565b5092915050565b6000818152600260205260409020546060906001600160a01b03166116a55760405162461bcd60e51b815260206004820152600a60248201527f6e6f74206578697374730000000000000000000000000000000000000000000060448201526064016109ed565b60006116b0836123a6565b90506000600960008581526020019081526020016000205490506117256040518061014001604052806000801916815260200160608152602001606081526020016060815260200160608152602001600081526020016000815260200160008152602001600081526020016000151581525090565b60115482036119de57600a600086815260200190815260200160002060405180610140016040529081600082015481526020016001820180546117679061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546117939061398f565b80156117e05780601f106117b5576101008083540402835291602001916117e0565b820191906000526020600020905b8154815290600101906020018083116117c357829003601f168201915b505050505081526020016002820180546117f99061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546118259061398f565b80156118725780601f1061184757610100808354040283529160200191611872565b820191906000526020600020905b81548152906001019060200180831161185557829003601f168201915b5050505050815260200160038201805461188b9061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546118b79061398f565b80156119045780601f106118d957610100808354040283529160200191611904565b820191906000526020600020905b8154815290600101906020018083116118e757829003601f168201915b5050505050815260200160048201805461191d9061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546119499061398f565b80156119965780601f1061196b57610100808354040283529160200191611996565b820191906000526020600020905b81548152906001019060200180831161197957829003601f168201915b50505091835250506005820154602082015260068201546040820152600782015460608201526008820154608082015260099091015460ff16151560a09091015290506119ea565b6119e7826124c3565b90505b6000600f6119f7876123a6565b6040518060400160405280600481526020017f2e706e6700000000000000000000000000000000000000000000000000000000815250604051602001611a3f93929190613b58565b60405160208183030381529060405290506000611a5c878461260f565b9050611a9e858383611a6d886123a6565b611a7688612869565b604051602001611a8a959493929190613c08565b60405160208183030381529060405261292d565b604051602001611aae91906141a5565b60405160208183030381529060405295505050505050919050565b611ad1611e9d565b600854600160a81b900460ff1615611b415760405162461bcd60e51b815260206004820152602d60248201527f436f6e6e65637465642057696e646f77733a204d65746164617461206973206160448201526c363932b0b23c90333937bd32b760991b60648201526084016109ed565b805161129d906010906020840190613404565b611b5c611e9d565b6001600160a01b038116611bd85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109ed565b6113a4816121f8565b611be9611e9d565b60088054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000818152600260205260409020546001600160a01b03166113a45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016109ed565b6daaeb6d7670e522a718067333cd4e3b156113a4576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611d0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d3091906141f5565b6113a4576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b03821660048201526024016109ed565b6000611d7c82610e90565b9050806001600160a01b0316836001600160a01b031603611e055760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109ed565b336001600160a01b0382161480611e215750611e21813361077a565b611e935760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016109ed565b61098d8383612a80565b6007546001600160a01b03163314610e125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ed565b600e54600090611f08906001614212565b6008546040516331a9108f60e11b8152600481018590529192506001600160a01b031690636352211e90602401602060405180830381865afa158015611f52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f769190613a9c565b6001600160a01b0316836001600160a01b031614611fd65760405162461bcd60e51b815260206004820152601c60248201527f436f6e6e65637465642057696e646f77733a204e6f74206f776e65720000000060448201526064016109ed565b6000828152600b60209081526040808320805460ff1916600190811790915584845260099092528220849055600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0181905561098d8382612afb565b6120473382612262565b6120b95760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016109ed565b61098d838383612b15565b804710156121145760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109ed565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612161576040519150601f19603f3d011682016040523d82523d6000602084013e612166565b606091505b505090508061098d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109ed565b61098d83838360405180602001604052806000815250611517565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61129d338383612cfa565b60008061226e83610e90565b9050806001600160a01b0316846001600160a01b031614806122b557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806122d95750836001600160a01b03166122ce84610952565b6001600160a01b0316145b949350505050565b6122ea336113c0565b61235c5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016109ed565b610d3984848484612dc8565b6000600a8260ff16101561238a57612381826030613af8565b60f81b92915050565b600a612397836061613af8565b612381919061422a565b919050565b6060816000036123e957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561241357806123fd8161424d565b915061240c9050600a8361427c565b91506123ed565b60008167ffffffffffffffff81111561242e5761242e613790565b6040519080825280601f01601f191660200182016040528015612458576020820181803683370190505b5090505b84156122d95761246d600183613a85565b915061247a600a86614290565b612485906030614212565b60f81b81838151811061249a5761249a613ab9565b60200101906001600160f81b031916908160001a9053506124bc600a8661427c565b945061245c565b61251e6040518061014001604052806000801916815260200160608152602001606081526020016060815260200160608152602001600081526020016000815260200160008152602001600081526020016000151581525090565b600080600080600080600080600080600860009054906101000a90046001600160a01b03166001600160a01b0316631177f3798d6040518263ffffffff1660e01b815260040161257091815260200190565b600060405180830381865afa15801561258d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125b591908101906142e9565b60408051610140810182529a8b5260208b0199909952978901969096526060880194909452608087019290925260a086015260c085015260e084015261010083015215156101208201529c9b505050505050505050505050565b6060600061261c83612e46565b90506000612629600e5490565b9050600061266c6040518060400160405280600a81526020017f617474726962757465730000000000000000000000000000000000000000000081525084612f87565b6126b36040518060400160405280600281526020017f69640000000000000000000000000000000000000000000000000000000000008152506126ae896123a6565b612f87565b6126f56040518060400160405280600881526020017f746f74616c4e756d0000000000000000000000000000000000000000000000008152506126ae866123a6565b6127396040518060400160405280601281526020017f636f6d706c6574654379636c65496e53656300000000000000000000000000008152506126ae600c546123a6565b61277d6040518060400160405280600a81526020017f627265616b496e536563000000000000000000000000000000000000000000008152506126ae600d546123a6565b6128106010805461278d9061398f565b80601f01602080910402602001604051908101604052809291908181526020018280546127b99061398f565b80156128065780601f106127db57610100808354040283529160200191612806565b820191906000526020600020905b8154815290600101906020018083116127e957829003601f168201915b5050505050612fb3565b604051602001612825969594939291906143d9565b604051602081830303815290604052905061283f8161292d565b60405160200161284f9190614736565b604051602081830303815290604052935050505092915050565b6060816020015182604001518360600151846080015161288c8660a001516123a6565b6128998760c001516123a6565b6128a68860e001516123a6565b6128b48961010001516123a6565b8961012001516128e1576040518060400160405280600581526020016466616c736560d81b8152506128ff565b604051806040016040528060048152602001637472756560e01b8152505b604051602001612917999897969594939291906147a1565b6040516020818303038152906040529050919050565b6060815160000361294c57505060408051602081019091526000815290565b6000604051806060016040528060408152602001614ea4604091399050600060038451600261297b9190614212565b612985919061427c565b612990906004614a4d565b67ffffffffffffffff8111156129a8576129a8613790565b6040519080825280601f01601f1916602001820160405280156129d2576020820181803683370190505b509050600182016020820185865187015b80821015612a3e576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506129e3565b5050600386510660018114612a5a5760028114612a6d57612a75565b603d6001830353603d6002830353612a75565b603d60018303535b509195945050505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612ac282610e90565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61129d828260405180602001604052806000815250612fc6565b826001600160a01b0316612b2882610e90565b6001600160a01b031614612ba45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016109ed565b6001600160a01b038216612c1f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109ed565b612c2a838383613044565b612c35600082612a80565b6001600160a01b0383166000908152600360205260408120805460019290612c5e908490613a85565b90915550506001600160a01b0382166000908152600360205260408120805460019290612c8c908490614212565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031603612d5b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109ed565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612dd3848484612b15565b612ddf8484848461315d565b610d395760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109ed565b60606000612e578360000151611544565b604051602001612e679190614a6c565b60405160208183030381529060405290506000818460200151856040015186606001518760800151612e9c8960a001516123a6565b604051602001612eb196959493929190614ab1565b60405160208183030381529060405290506000612ed18560c001516123a6565b612ede8660e001516123a6565b612eec8761010001516123a6565b876101200151612f19576040518060400160405280600581526020016466616c736560d81b815250612f37565b604051806040016040528060048152602001637472756560e01b8152505b604051602001612f4a9493929190614c2a565b60405160208183030381529060405290508181604051602001612f6e929190614d37565b6040516020818303038152906040529350505050919050565b60608282604051602001612f9c929190614d66565b604051602081830303815290604052905092915050565b6060816040516020016129179190614de8565b612fd083836132a9565b612fdd600084848461315d565b61098d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109ed565b6001600160a01b0383161561098d576000818152600960205260409020546011548114610d3957601154600083815260096020526040812091909155613089826124c3565b6000848152600a6020908152604090912082518155818301518051939450849391926130bd92600185019290910190613404565b50604082015180516130d9916002840191602090910190613404565b50606082015180516130f5916003840191602090910190613404565b5060808201518051613111916004840191602090910190613404565b5060a0820151600582015560c0820151600682015560e082015160078201556101008201516008820155610120909101516009909101805460ff19169115159190911790555050505050565b60006001600160a01b0384163b1561329e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131a1903390899088908890600401614e54565b6020604051808303816000875af19250505080156131dc575060408051601f3d908101601f191682019092526131d991810190614e86565b60015b613284573d80801561320a576040519150601f19603f3d011682016040523d82523d6000602084013e61320f565b606091505b50805160000361327c5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109ed565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122d9565b506001949350505050565b6001600160a01b0382166132ff5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109ed565b6000818152600260205260409020546001600160a01b0316156133645760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109ed565b61337060008383613044565b6001600160a01b0382166000908152600360205260408120805460019290613399908490614212565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546134109061398f565b90600052602060002090601f0160209004810192826134325760008555613478565b82601f1061344b57805160ff1916838001178555613478565b82800160010185558215613478579182015b8281111561347857825182559160200191906001019061345d565b50613484929150613488565b5090565b5b808211156134845760008155600101613489565b6001600160e01b0319811681146113a457600080fd5b6000602082840312156134c557600080fd5b81356134d08161349d565b9392505050565b60005b838110156134f25781810151838201526020016134da565b83811115610d395750506000910152565b6000815180845261351b8160208601602086016134d7565b601f01601f19169290920160200192915050565b6020815260006134d06020830184613503565b60006020828403121561355457600080fd5b5035919050565b6001600160a01b03811681146113a457600080fd5b6000806040838503121561358357600080fd5b823561358e8161355b565b946020939093013593505050565b6000806000806000608086880312156135b457600080fd5b85356135bf8161355b565b945060208601356135cf8161355b565b935060408601359250606086013567ffffffffffffffff808211156135f357600080fd5b818801915088601f83011261360757600080fd5b81358181111561361657600080fd5b89602082850101111561362857600080fd5b9699959850939650602001949392505050565b60008060006060848603121561365057600080fd5b833561365b8161355b565b9250602084013561366b8161355b565b929592945050506040919091013590565b80151581146113a457600080fd5b60006020828403121561369c57600080fd5b81356134d08161367c565b6020808252825182820181905260009190848201906040850190845b818110156136df578351835292840192918401916001016136c3565b50909695505050505050565b60006101408c83528060208401526137058184018d613503565b90508281036040840152613719818c613503565b9050828103606084015261372d818b613503565b90508281036080840152613741818a613503565b60a0840198909852505060c081019490945260e084019290925261010083015215156101209091015295945050505050565b60006020828403121561378557600080fd5b81356134d08161355b565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156137cf576137cf613790565b604052919050565b600067ffffffffffffffff8211156137f1576137f1613790565b50601f01601f191660200190565b600061381261380d846137d7565b6137a6565b905082815283838301111561382657600080fd5b828260208301376000602084830101529392505050565b60006020828403121561384f57600080fd5b813567ffffffffffffffff81111561386657600080fd5b8201601f8101841361387757600080fd5b6122d9848235602084016137ff565b6000806040838503121561389957600080fd5b82356138a48161355b565b915060208301356138b48161367c565b809150509250929050565b600080604083850312156138d257600080fd5b50508035926020909101359150565b600080600080608085870312156138f757600080fd5b84356139028161355b565b935060208501356139128161355b565b925060408501359150606085013567ffffffffffffffff81111561393557600080fd5b8501601f8101871361394657600080fd5b613955878235602084016137ff565b91505092959194509250565b6000806040838503121561397457600080fd5b823561397f8161355b565b915060208301356138b48161355b565b600181811c908216806139a357607f821691505b6020821081036139c357634e487b7160e01b600052602260045260246000fd5b50919050565b600060208083850312156139dc57600080fd5b825167ffffffffffffffff808211156139f457600080fd5b818501915085601f830112613a0857600080fd5b815181811115613a1a57613a1a613790565b8060051b9150613a2b8483016137a6565b8181529183018401918481019088841115613a4557600080fd5b938501935b83851015613a6357845182529385019390850190613a4a565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b600082821015613a9757613a97613a6f565b500390565b600060208284031215613aae57600080fd5b81516134d08161355b565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168160ff0481118215151615613af057613af0613a6f565b029392505050565b600060ff821660ff84168060ff03821115613b1557613b15613a6f565b019392505050565b600060ff821660ff8103613b3357613b33613a6f565b60010192915050565b60008151613b4e8185602086016134d7565b9290920192915050565b600080855481600182811c915080831680613b7457607f831692505b60208084108203613b9357634e487b7160e01b86526022600452602486fd5b818015613ba75760018114613bb857613be5565b60ff19861689528489019650613be5565b60008c81526020902060005b86811015613bdd5781548b820152908501908301613bc4565b505084890196505b505050505050613bfe613bf88287613b3c565b85613b3c565b9695505050505050565b7f7b226e616d65223a22436f6e6e65637465642057696e646f7773202300000000815260008651613c4081601c850160208b016134d7565b7f222c226465736372697074696f6e223a22000000000000000000000000000000601c918401918201527f4172746973743a204e49494e4f4d495c6e5c6e436f6e6e65637465642057696e602d8201527f646f777320697320616e20617274776f726b2074686174206578706c6f726573604d8201527f20746865207468656d65206f6620636f6e6e656374696f6e7320666f726d6564606d8201527f207468726f756768206120636f6c6c656374696f6e206f66204e4654732c2077608d8201527f69746820746865206d6f746966206265696e6720636f6d70757465722075736560ad8201527f7220696e74657266616365732063616c6c65642077696e646f77732e2057697460cd8201527f68696e207468697320636f6c6c656374696f6e2c20746865726520657869737460ed8201527f206469676974616c206372656174757265732063616c6c656420414e494d412c61010d8201527f207768696368207472617665727365206265747765656e207468652077696e6461012d8201527f6f7773206f66204e4654732067656e6572617465642077697468696e2074686561014d8201527f20636f6c6c656374696f6e2e20417320746865206e756d626572206f66206f7761016d8201527f6e65727320696e2074686520636f6c6c656374696f6e20696e6372656173657361018d8201527f2c207468652074696d6520414e494d4120737461797320696e206f6e652077696101ad8201527f6e646f77206265636f6d65732073686f727465722c206c656176696e67206f6e6101cd8201527f6c79207468652077696e646f7773206f6e207468652073637265656e2e2057686101ed8201527f696c6520636f6d70757465722077696e646f777320736572766520617320696e61020d8201527f746572666163657320666f7220646973706c6179696e6720696e666f726d617461022d8201527f696f6e2c20696e20436f6e6e65637465642057696e646f77732c20746865792061024d8201527f616c736f207365727665206173206120737061636520666f7220414e494d412061026d8201527f746f2076697369742e204f776e696e67206f6e652065646974696f6e20696e2061028d8201527f746865204e465420636f6c6c656374696f6e207369676e6966696573207468656102ad8201527f20666f726d6174696f6e206f662061206c6f6f736520636f6e6e656374696f6e6102cd8201527f2077697468206f74686572206f776e6572732e204265636f6d696e6720616e206102ed8201527f6f776e6572206f66207468697320636f6c6c656374696f6e206d65616e73206261030d8201527f65636f6d696e672061206d656d6265722077686f2073686172657320414e494d61032d8201527f412c20616e64207468652076697369746174696f6e206f6620414e494d41207461034d8201527f6f207468652077696e646f7720697320612074657374616d656e7420746f207461036d8201527f686520666f726d6174696f6e206f6620746865736520737562746c6520636f6e61038d8201527f6e656374696f6e732e00000000000000000000000000000000000000000000006103ad820152613a6361419861419261416961416361413a61413461410b6141056103b68a016a11161134b6b0b3b2911d1160a91b8152600b0190565b8f613b3c565b7f222c22616e696d6174696f6e5f75726c223a2200000000000000000000000000815260130190565b8c613b3c565b7f222c2264697363546f6b656e4964223a00000000000000000000000000000000815260100190565b89613b3c565b7f2c00000000000000000000000000000000000000000000000000000000000000815260010190565b86613b3c565b607d60f81b815260010190565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516141dd81601d8501602087016134d7565b91909101601d0192915050565b80516123a18161367c565b60006020828403121561420757600080fd5b81516134d08161367c565b6000821982111561422557614225613a6f565b500190565b600060ff821660ff84168082101561424457614244613a6f565b90039392505050565b60006001820161425f5761425f613a6f565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261428b5761428b614266565b500490565b60008261429f5761429f614266565b500690565b600082601f8301126142b557600080fd5b81516142c361380d826137d7565b8181528460208386010111156142d857600080fd5b6122d98260208301602087016134d7565b6000806000806000806000806000806101408b8d03121561430957600080fd5b8a51995060208b015167ffffffffffffffff8082111561432857600080fd5b6143348e838f016142a4565b9a5060408d015191508082111561434a57600080fd5b6143568e838f016142a4565b995060608d015191508082111561436c57600080fd5b6143788e838f016142a4565b985060808d015191508082111561438e57600080fd5b5061439b8d828e016142a4565b96505060a08b0151945060c08b0151935060e08b015192506101008b015191506143c86101208c016141ea565b90509295989b9194979a5092959850565b7f3c68746d6c3e000000000000000000000000000000000000000000000000000081527f3c686561643e000000000000000000000000000000000000000000000000000060068201527f3c6d657461206e616d653d2276696577706f7274222077696474683d22646576600c8201527f6963652d77696474682c2220696e697469616c2d7363616c653d22312e302c22602c8201527f206d6178696d756d2d7363616c653d22312e302c2220757365722d7363616c61604c8201527f626c653d223022202f3e00000000000000000000000000000000000000000000606c8201527f3c7374796c653e20626f6479207b206d617267696e3a20303b207d202e61727460768201527f43616e766173207b2077696474683a20313030253b6865696768743a2031303060968201527f253b706f736974696f6e3a2066697865643b6f766572666c6f773a206869646460b68201527f656e3b646973706c61793a20666c65783b6a7573746966792d636f6e74656e7460d68201527f3a2063656e7465723b616c69676e2d6974656d733a2063656e7465723b3c2f7360f68201527f74796c653e000000000000000000000000000000000000000000000000000000610116820152600061011b82017f0a3c7363726970743e0a0000000000000000000000000000000000000000000081526145ee6141926145e86145e2614134600a86018e613b3c565b8a613b3c565b88613b3c565b7f0a3c2f7363726970743e0a000000000000000000000000000000000000000000815290507f3c2f686561643e00000000000000000000000000000000000000000000000000600b8201527f3c626f64793e000000000000000000000000000000000000000000000000000060128201527f3c63616e7661732069643d2263616e7661732220636c6173733d22617274436160188201527f6e766173223e3c2f63616e7661733e3c63616e7661732069643d2263616e766160388201527f73322220636c6173733d2261727443616e766173223e3c2f63616e7661733e0060588201526146dd60778201613bf8565b7f3c2f626f64793e0000000000000000000000000000000000000000000000000081527f3c2f68746d6c3e000000000000000000000000000000000000000000000000006007820152600e019998505050505050505050565b7f646174613a746578742f68746d6c3b636861727365743d5554462d383b62617381527f6536342c000000000000000000000000000000000000000000000000000000006020820152600082516147948160248501602087016134d7565b9190910160240192915050565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2270616c81527f65747465222c2276616c7565223a220000000000000000000000000000000000602082015260008a516147ff81602f850160208f016134d7565b7f227d2c7b2274726169745f74797065223a22696d616765222c2276616c756522602f91840191820152611d1160f11b604f8201528a51614847816051840160208f016134d7565b7f227d2c7b2274726169745f74797065223a226d657373616765222c2276616c75605192909101918201527f65223a220000000000000000000000000000000000000000000000000000000060718201526149186141636148e56141346148b1607586018f613b3c565b7f227d2c7b2274726169745f74797065223a227368617065222c2276616c7565228152611d1160f11b602082015260220190565b7f227d2c7b2274726169745f74797065223a227370656564222c2276616c7565228152601d60f91b602082015260210190565b7f7d2c7b2274726169745f74797065223a2273697a65222c2276616c7565223a0081529050614a17613bf86149c86145e861499561498f61495c601f88018e613b3c565b7f7d2c7b2274726169745f74797065223a22776569676874222c2276616c7565228152601d60f91b602082015260210190565b8b613b3c565b7f7d2c7b2274726169745f74797065223a226f6666736574222c2276616c7565228152601d60f91b602082015260210190565b7f7d2c7b2274726169745f74797065223a2264796e616d6963222c2276616c756581527f223a220000000000000000000000000000000000000000000000000000000000602082015260230190565b7f227d5d000000000000000000000000000000000000000000000000000000000081526003019c9b505050505050505050505050565b6000816000190483118215151615614a6757614a67613a6f565b500290565b7f3078000000000000000000000000000000000000000000000000000000000000815260008251614aa48160028501602087016134d7565b9190910160020192915050565b7f7b0000000000000000000000000000000000000000000000000000000000000081527f2268617368223a22000000000000000000000000000000000000000000000000600182015260008751614b0f816009850160208c016134d7565b7f222c2270616c65747465223a22000000000000000000000000000000000000006009918401918201528751614b4c816016840160208c016134d7565b6a11161134b6b0b3b2911d1160a91b601692909101918201528651614b78816021840160208b016134d7565b7f222c226d657373616765223a2200000000000000000000000000000000000000602192909101918201528551614bb681602e840160208a016134d7565b7f222c227368617065223a22000000000000000000000000000000000000000000602e9290910191820152614c1d613bf8614bf46039840188613b3c565b7f222c227370656564223a000000000000000000000000000000000000000000008152600a0190565b9998505050505050505050565b7f2c2273697a65223a000000000000000000000000000000000000000000000000815260008551614c62816008850160208a016134d7565b7f2c22776569676874223a000000000000000000000000000000000000000000006008918401918201528551614c9f816012840160208a016134d7565b7f2c226f6666736574223a00000000000000000000000000000000000000000000601292909101918201528451614cdd81601c8401602089016134d7565b7f2c2264796e616d6963223a000000000000000000000000000000000000000000601c92909101918201528351614d1b8160278401602088016134d7565b607d60f81b602792909101918201526028019695505050505050565b60008351614d498184602088016134d7565b835190830190614d5d8183602088016134d7565b01949350505050565b60008351614d788184602088016134d7565b7f203d2000000000000000000000000000000000000000000000000000000000009083019081528351614db28160038401602088016134d7565b7f3b0a00000000000000000000000000000000000000000000000000000000000060039290910191820152600501949350505050565b7f3c736372697074207372633d2200000000000000000000000000000000000000815260008251614e2081600d8501602087016134d7565b7f223e3c2f7363726970743e000000000000000000000000000000000000000000600d939091019283015250601801919050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bfe6080830184613503565b600060208284031215614e9857600080fd5b81516134d08161349d56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212201588b4ce7f1356e1714f555ce87a48b7c40d9f0cc557d0f19ad7d3cf3046c33a64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d37db96941d08ab9218a38d752a1cceff42cac54000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f64693175636f3470657a3167392e636c6f756466726f6e742e6e65742f6e69696e6f6d692f636f6e6e65637465645f77696e646f77732f00000000000000000000000000000000000000000000000000000000000000005268747470733a2f2f6e69696e6f6d692e6d7970696e6174612e636c6f75642f697066732f516d517a47727552507035644d337678683347705a52656a6b637a6442437167456f6e754272684a6e55505577680000000000000000000000000000
-----Decoded View---------------
Arg [0] : baseThumbnailURI (string): https://di1uco4pez1g9.cloudfront.net/niinomi/connected_windows/
Arg [1] : artCodeURI (string): https://niinomi.mypinata.cloud/ipfs/QmQzGruRPp5dM3vxh3GpZRejkczdBCqgEonuBrhJnUPUwh
Arg [2] : discSystemAddress (address): 0xd37DB96941d08Ab9218a38D752a1CCEff42CAc54
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000d37db96941d08ab9218a38d752a1cceff42cac54
Arg [3] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [4] : 68747470733a2f2f64693175636f3470657a3167392e636c6f756466726f6e74
Arg [5] : 2e6e65742f6e69696e6f6d692f636f6e6e65637465645f77696e646f77732f00
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000052
Arg [7] : 68747470733a2f2f6e69696e6f6d692e6d7970696e6174612e636c6f75642f69
Arg [8] : 7066732f516d517a47727552507035644d337678683347705a52656a6b637a64
Arg [9] : 42437167456f6e754272684a6e55505577680000000000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.