Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
336
Transfers
-
0
Market
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
ERC721
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 9999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, Ownable {
using Address for address;
using Strings for uint256;
using SafeMath for uint256;
using Counters for Counters.Counter;
struct Auction {
uint256 id;
uint256 endTime;
uint256 tokenId;
}
struct Rate {
uint256 id;
uint256 cost;
address owner;
}
event TokenCreated(uint256 indexed tokenId, address indexed owner);
event MultipleTokenCreated(uint256[] tokenIds, address indexed owner);
event CreateAuction(
uint256 indexed tokenId,
address indexed owner,
uint256 indexed price
);
event ResetAuction(
uint256 indexed tokenId
);
event PlaceBid(
uint256 indexed tokenId,
address indexed owner,
uint256 indexed price
);
event CompleteAuction(
uint256 indexed tokenId,
address indexed toAddress,
uint256 indexed price
);
//Creator fee
uint256 public creatorPercent = 89;
//Platform + charity fee
uint256 public systemPercent = 11;
//Duration for each auction
uint256 public timeInterval = 24 hours;
//Time extension if a new bid appears near the end
uint256 public timeExtension = 15 minutes;
//Percentage by which new bid should be greater than old
uint256 public rateStep = 10;
//Min bid amount WEI
uint256 public minBid = 0.01 ether;
//Is preminting or postminting
bool public isPreMinting;
//Enable approveAuctionWithCreator function
bool public canApproveWithCreator;
//Auction of tokenId
mapping(uint256 => Auction) public auctionOfToken;
//Rate of auctionId
mapping(uint256 => Rate) public rateOfAuctionId;
//Creator of tokenId
mapping(uint256 => address) public tokenCreator;
//Creator addresses
mapping(uint256 => address) public creatorAddresses;
//Admin addresses
mapping(address => bool) public adminPool;
//Approved auctions
mapping(uint256 => bool) public claimableAuctions;
//System address
address payable public systemAddress = payable(address(0xd613c3878CbC435feAf066D3d510165D7DE9AcC1));
uint256 public auctionCount = 1;
uint256 public rateCount = 1;
uint256 private tokensCounter = 0;
modifier onlyAdmin() {
require(adminPool[_msgSender()], "Caller is not the admin");
_;
}
function setCreatorFeePercent(uint256 percent) external onlyOwner {
creatorPercent = percent;
}
function setSystemFeePercent(uint256 percent) external onlyOwner {
systemPercent = percent;
}
function setMinBidAmount(uint256 _minBid) external onlyOwner {
minBid = _minBid;
}
function setRateStep(uint256 _newValue) external onlyOwner {
require(_newValue <= 100, "Rate step too high");
rateStep = _newValue;
}
function setTimeExtension(uint256 _newValue) external onlyOwner {
require(_newValue <= 24 hours, "Too much extension");
timeExtension = _newValue;
}
function setSystemAddress(address payable _address) external onlyOwner {
systemAddress = _address;
}
function setTimeInterval(uint256 newTime) external onlyOwner {
timeInterval = newTime;
}
function setAdminPool(address _address, bool value) external onlyOwner {
adminPool[_address] = value;
}
function setMintType(bool value) external onlyOwner {
isPreMinting = value;
}
function setApproveWithCreator(bool value) external onlyOwner {
canApproveWithCreator = value;
}
function approveAuction(uint256 tokenId, uint256 serverBidPrice) external onlyAdmin {
Auction memory auction = auctionOfToken[tokenId];
require(auction.id != 0, "Auction does not exist");
require(auction.endTime <= block.timestamp, "Auction has not ended yet");
Rate memory maxRate = rateOfAuctionId[auction.id];
if (maxRate.cost >= serverBidPrice) {
claimableAuctions[tokenId] = true;
} else {
returnRateToUser(tokenId);
delete auctionOfToken[tokenId];
delete rateOfAuctionId[auction.id];
}
}
function approveAuctionWithCreator(uint256 tokenId, uint256 serverBidPrice, address creator) external onlyAdmin {
require(canApproveWithCreator, "Approving with creator disabled");
Auction memory auction = auctionOfToken[tokenId];
require(auction.id != 0, "Auction does not exist");
require(auction.endTime <= block.timestamp, "Auction has not ended yet");
Rate memory maxRate = rateOfAuctionId[auction.id];
if (maxRate.cost >= serverBidPrice) {
claimableAuctions[tokenId] = true;
creatorAddresses[tokenId] = creator;
} else {
returnRateToUser(tokenId);
delete auctionOfToken[tokenId];
delete rateOfAuctionId[auction.id];
}
}
function emergencyCancelAuction(uint256 tokenId) external onlyOwner {
Auction memory auction = auctionOfToken[tokenId];
require(auction.id != 0, "Auction not exist");
returnRateToUser(tokenId);
delete auctionOfToken[tokenId];
delete rateOfAuctionId[auction.id];
emit ResetAuction(tokenId);
}
function startAuction(uint256 tokenId) external payable {
require(auctionOfToken[tokenId].id == 0, "Auction already exists");
require(!isPreMinting, "Pre-minting is active");
require(_owners[tokenId] == address(0), "Token already owned");
require(msg.value >= minBid, "ETH amount too low");
_setAuctionToMap(tokenId);
_setRateToAuction(auctionOfToken[tokenId].id, _msgSender(), msg.value);
emit CreateAuction(tokenId, _msgSender(), msg.value);
}
function returnRateToUser(uint256 tokenId) private {
Auction memory auction = auctionOfToken[tokenId];
Rate memory oldRate = rateOfAuctionId[auction.id];
require(oldRate.id != 0, "Bid does not exist");
address payable owner = payable(oldRate.owner);
owner.transfer(oldRate.cost);
}
function placeBid(uint256 tokenId) external payable {
require(auctionOfToken[tokenId].id != 0, "Auction does not exist");
Auction memory auction = auctionOfToken[tokenId];
Rate memory maxRate = rateOfAuctionId[auction.id];
require(msg.value >= (maxRate.cost).mul(rateStep + 100).div(100),
"Bid must be greater than current bid"
);
if (block.timestamp > auction.endTime.sub(timeExtension))
auctionOfToken[tokenId].endTime = block.timestamp + timeExtension;
_setRateToAuction(auction.id, _msgSender(), msg.value);
emit PlaceBid(tokenId, _msgSender(), msg.value);
}
function claimToken(uint256 tokenId) external {
require(_owners[tokenId] == address(0), "Token already claimed");
Auction memory auction = auctionOfToken[tokenId];
require(auction.endTime <= block.timestamp, "Auction has not ended yet");
Rate memory maxRate = rateOfAuctionId[auction.id];
require(maxRate.owner != address(0), "No address for previous bidder");
require(claimableAuctions[tokenId], "Auction has not been approved yet");
_safeMint(maxRate.owner, tokenId);
if(creatorAddresses[tokenId] != address(0)) {
address payable _creatorAddress = payable(creatorAddresses[tokenId]);
_creatorAddress.transfer(getQuantityByTotalAndPercent(maxRate.cost, creatorPercent));
systemAddress.transfer(getQuantityByTotalAndPercent(maxRate.cost, systemPercent));
} else {
systemAddress.transfer(maxRate.cost);
}
delete auctionOfToken[tokenId];
delete rateOfAuctionId[auction.id];
delete claimableAuctions[tokenId];
emit CompleteAuction(tokenId, maxRate.owner, maxRate.cost);
}
function _setRateToAuction(uint256 auctionId, address rateOwnAddress, uint256 cost) private {
Rate memory oldRate = rateOfAuctionId[auctionId];
Rate memory rate;
rate.cost = cost;
rate.owner = rateOwnAddress;
rate.id = rateCount;
rateCount = rateCount + 1;
rateOfAuctionId[auctionId] = rate;
if (oldRate.id != 0) {
address payable owner = payable(oldRate.owner);
owner.transfer(oldRate.cost);
}
}
function getHighestBidFromAuction(uint256 tokenId) public view returns (uint256) {
require(auctionOfToken[tokenId].id != 0, "Auction does not exist");
Auction memory auction = auctionOfToken[tokenId];
Rate memory maxRate = rateOfAuctionId[auction.id];
require(maxRate.id != 0, "Bid does not exist");
return maxRate.cost;
}
function isAuctionOver(uint256 tokenId) public view returns (bool) {
Auction memory auction = auctionOfToken[tokenId];
if(auctionOfToken[tokenId].id == 0)
return false;
return block.timestamp > auction.endTime;
}
function _setAuctionToMap(uint256 _tokenId) private {
Auction memory auction;
auction.tokenId = _tokenId;
auction.id = auctionCount;
auction.endTime = block.timestamp + timeInterval;
auctionOfToken[_tokenId] = auction;
auctionCount++;
}
// Create tokens
function createToken() public returns (uint256) {
require(isPreMinting, "Post-minting is active");
uint256 tokenId = totalSupply();
while (ownerOf(tokenId) != address(0)) {
tokenId++;
}
_safeMint(_msgSender(), tokenId);
tokensCounter++;
emit TokenCreated(tokenId, _msgSender());
return tokenId;
}
function createMultipleTokens(uint256 count) public returns (uint256[] memory) {
require(count <= 50, "Max limit is 50 tokens");
require(isPreMinting, "Post-minting is active");
uint256[] memory tokensArray = new uint256[](count);
for (uint256 i = 0; i < count; i++) {
uint256 tokenId = totalSupply();
while (ownerOf(tokenId) != address(0)) {
tokenId++;
}
_safeMint(_msgSender(), tokenId);
tokensCounter++;
tokensArray[i] = tokenId;
}
emit MultipleTokenCreated(tokensArray, _msgSender());
return tokensArray;
}
function getQuantityByTotalAndPercent(uint256 totalCount, uint256 percent) public pure returns (uint256) {
if (percent == 0) return 0;
return totalCount.mul(percent).div(100);
}
function changeTokensOwner(address newAddress) public {
uint256[] memory tokens = tokensOfOwner(_msgSender());
for (uint256 i = 0; i < tokens.length; i++) {
_safeTransfer(_msgSender(), newAddress, tokens[i], "");
tokenCreator[tokens[i]] = newAddress;
}
}
function withdraw(address _address) public onlyOwner {
address payable owner = payable(address(uint160(_msgSender())));
if (_address == address(0)) {
owner.transfer(address(this).balance);
} else {
require(
IERC20(_address).transfer(
_msgSender(),
IERC20(_address).balanceOf(address(this))
),
"Error while transferring token"
);
}
}
// Token name
string private _name = "NFTitties";
// Token symbol
string private _symbol = "TITS";
// 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 See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : "";
}
/**
* @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
* in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "https://www.nftitties.app/token/";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(address from, address to, uint256 tokenId) public virtual override {
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"ERC721: transfer caller is not owner nor approved"
);
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"ERC721: transfer caller is not owner nor approved"
);
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
_transfer(from, to, tokenId);
require(
_checkOnERC721Received(from, to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(address from, address to, uint256 tokenId) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) {
if (to.isContract()) {
try
IERC721Receiver(to).onERC721Received(
_msgSender(),
from,
tokenId,
_data
)
returns (bytes4 retval) {
return retval == IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert(
"ERC721: transfer to non ERC721Receiver implementer"
);
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual {
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
// Mapping from owner to list of owned token IDs
mapping(address => uint256[]) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
function totalSupply() public view returns (uint256) {
return _allTokens.length;
}
function tokensOfOwner(address owner) public view returns (uint256[] memory) {
return _tokensOfOwner(owner);
}
function _tokensOfOwner(address owner) internal view returns (uint256[] storage) {
return _ownedTokens[owner];
}
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
_ownedTokensIndex[tokenId] = _ownedTokens[to].length;
_ownedTokens[to].push(tokenId);
}
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _ownedTokens[from].length.sub(1);
uint256 tokenIndex = _ownedTokensIndex[tokenId];
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
_ownedTokens[from].pop();
}
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length.sub(1);
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
_allTokens.pop();
_allTokensIndex[tokenId] = 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @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;
}
}{
"optimizer": {
"enabled": true,
"runs": 9999
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"price","type":"uint256"}],"name":"CompleteAuction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"price","type":"uint256"}],"name":"CreateAuction","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"MultipleTokenCreated","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"price","type":"uint256"}],"name":"PlaceBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ResetAuction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"TokenCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"adminPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"serverBidPrice","type":"uint256"}],"name":"approveAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"serverBidPrice","type":"uint256"},{"internalType":"address","name":"creator","type":"address"}],"name":"approveAuctionWithCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctionOfToken","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canApproveWithCreator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"changeTokensOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimableAuctions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"createMultipleTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"createToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creatorAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creatorPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emergencyCancelAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHighestBidFromAuction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"totalCount","type":"uint256"},{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"getQuantityByTotalAndPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isAuctionOver","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPreMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"placeBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"rateCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rateOfAuctionId","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rateStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_address","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAdminPool","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":"bool","name":"value","type":"bool"}],"name":"setApproveWithCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"setCreatorFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minBid","type":"uint256"}],"name":"setMinBidAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setMintType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newValue","type":"uint256"}],"name":"setRateStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_address","type":"address"}],"name":"setSystemAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"setSystemFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newValue","type":"uint256"}],"name":"setTimeExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTime","type":"uint256"}],"name":"setTimeInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"startAuction","outputs":[],"stateMutability":"payable","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":[],"name":"systemAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"systemPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeExtension","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60596001908155600b60025562015180600355610384600455600a600555662386f26fc10000600655600e80546001600160a01b03191673d613c3878cbc435feaf066d3d510165d7de9acc1179055600f819055601055600060115560c060405260096080819052684e465469747469657360b81b60a090815262000088916012919062000126565b50604080518082019091526004808252635449545360e01b6020909201918252620000b69160139162000126565b50348015620000c457600080fd5b50620000d033620000d6565b62000209565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200013490620001cc565b90600052602060002090601f016020900481019282620001585760008555620001a3565b82601f106200017357805160ff1916838001178555620001a3565b82800160010185558215620001a3579182015b82811115620001a357825182559160200191906001019062000186565b50620001b1929150620001b5565b5090565b5b80821115620001b15760008155600101620001b6565b600181811c90821680620001e157607f821691505b602082108114156200020357634e487b7160e01b600052602260045260246000fd5b50919050565b61441380620002196000396000f3fe6080604052600436106103815760003560e01c80635a95cf49116101d157806398f0c8ab11610102578063a9e7c2e5116100a0578063d3e848f11161006f578063d3e848f114610aaf578063e05c4ace14610acf578063e985e9c514610aff578063f2fde38b14610b4857600080fd5b8063a9e7c2e514610a1f578063aaddc62114610a3f578063b88d4fde14610a6f578063c87b56dd14610a8f57600080fd5b80639ff1440a116100dc5780639ff1440a146109a5578063a157acbd146109c5578063a22cb465146109e5578063a534a0cd14610a0557600080fd5b806398f0c8ab146109675780639979ef451461097d5780639cbf9e361461099057600080fd5b8063715018a61161016f5780638da5cb5b116101495780638da5cb5b146108fe5780638f5164381461091c57806393c0fc231461093257806395d89b411461095257600080fd5b8063715018a6146108935780637c0cc8b3146108a85780638462151c146108de57600080fd5b80636bbe36bf116101ab5780636bbe36bf1461081d5780636c281387146108335780636ff6c4b81461085357806370a082311461087357600080fd5b80635a95cf49146107c75780636352211e146107dd5780636a32d91d146107fd57600080fd5b80632ad71573116102b65780633e109a191161025457806342842e0e1161022357806342842e0e146107515780634602b15d14610771578063498fc4d81461078757806351cff8d9146107a757600080fd5b80633e109a19146106b85780633fa2ad83146106ce57806340c1a064146106fb578063417fd6b61461073157600080fd5b806336dae2251161029057806336dae2251461060157806338835b4e146106215780633a70215d146106415780633b9bd4f91461066157600080fd5b80632ad71573146105ab5780632ae11ca8146105c15780632c104a92146105e157600080fd5b80630e976656116103235780631b3a5929116102fd5780631b3a5929146104e357806323b872dd1461054c57806325423a1b1461056c578063295e64961461058c57600080fd5b80630e9766561461048a578063143551e4146104aa57806318160ddd146104ce57600080fd5b806306fdde031161035f57806306fdde03146103f0578063081812fc14610412578063095ea7b31461044a5780630b6ac5cb1461046a57600080fd5b806301ffc9a71461038657806306210197146103bb578063065de74c146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004613d5e565b610b68565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103db6103d6366004613d90565b610c4d565b005b6103db6103eb366004613dad565b610ce6565b3480156103fc57600080fd5b50610405610ea2565b6040516103b29190613e3c565b34801561041e57600080fd5b5061043261042d366004613dad565b610f34565b6040516001600160a01b0390911681526020016103b2565b34801561045657600080fd5b506103db610465366004613e4f565b610fda565b34801561047657600080fd5b506103db610485366004613e89565b61110c565b34801561049657600080fd5b506103db6104a5366004613d90565b611179565b3480156104b657600080fd5b506104c060045481565b6040519081526020016103b2565b3480156104da57600080fd5b50601b546104c0565b3480156104ef57600080fd5b506105286104fe366004613dad565b6009602052600090815260409020805460018201546002909201549091906001600160a01b031683565b6040805193845260208401929092526001600160a01b0316908201526060016103b2565b34801561055857600080fd5b506103db610567366004613ea6565b61122a565b34801561057857600080fd5b506103db610587366004613dad565b6112b1565b34801561059857600080fd5b506007546103a690610100900460ff1681565b3480156105b757600080fd5b506104c0600f5481565b3480156105cd57600080fd5b506103db6105dc366004613dad565b611310565b3480156105ed57600080fd5b506103a66105fc366004613dad565b611484565b34801561060d57600080fd5b506104c061061c366004613ee7565b6114d9565b34801561062d57600080fd5b506103db61063c366004613dad565b611504565b34801561064d57600080fd5b506104c061065c366004613dad565b611563565b34801561066d57600080fd5b5061069d61067c366004613dad565b60086020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016103b2565b3480156106c457600080fd5b506104c060065481565b3480156106da57600080fd5b506106ee6106e9366004613dad565b611680565b6040516103b29190613f09565b34801561070757600080fd5b50610432610716366004613dad565b600a602052600090815260409020546001600160a01b031681565b34801561073d57600080fd5b506103db61074c366004613dad565b611849565b34801561075d57600080fd5b506103db61076c366004613ea6565b6118a8565b34801561077d57600080fd5b506104c060055481565b34801561079357600080fd5b506103db6107a2366004613e89565b6118c3565b3480156107b357600080fd5b506103db6107c2366004613d90565b611954565b3480156107d357600080fd5b506104c060105481565b3480156107e957600080fd5b506104326107f8366004613dad565b611b78565b34801561080957600080fd5b506103db610818366004613f4d565b611c03565b34801561082957600080fd5b506104c060025481565b34801561083f57600080fd5b506103db61084e366004613dad565b611c88565b34801561085f57600080fd5b506103db61086e366004613dad565b611d38565b34801561087f57600080fd5b506104c061088e366004613d90565b611d97565b34801561089f57600080fd5b506103db611e31565b3480156108b457600080fd5b506104326108c3366004613dad565b600b602052600090815260409020546001600160a01b031681565b3480156108ea57600080fd5b506106ee6108f9366004613d90565b611e97565b34801561090a57600080fd5b506000546001600160a01b0316610432565b34801561092857600080fd5b506104c060035481565b34801561093e57600080fd5b506103db61094d366004613dad565b611f0d565b34801561095e57600080fd5b50610405611fbf565b34801561097357600080fd5b506104c060015481565b6103db61098b366004613dad565b611fce565b34801561099c57600080fd5b506104c061219c565b3480156109b157600080fd5b506103db6109c0366004613f86565b61228a565b3480156109d157600080fd5b506103db6109e0366004613ee7565b61252c565b3480156109f157600080fd5b506103db610a00366004613f4d565b612739565b348015610a1157600080fd5b506007546103a69060ff1681565b348015610a2b57600080fd5b506103db610a3a366004613dad565b6127fe565b348015610a4b57600080fd5b506103a6610a5a366004613dad565b600d6020526000908152604090205460ff1681565b348015610a7b57600080fd5b506103db610a8a366004613fee565b612bc8565b348015610a9b57600080fd5b50610405610aaa366004613dad565b612c50565b348015610abb57600080fd5b50600e54610432906001600160a01b031681565b348015610adb57600080fd5b506103a6610aea366004613d90565b600c6020526000908152604090205460ff1681565b348015610b0b57600080fd5b506103a6610b1a3660046140ec565b6001600160a01b03918216600090815260176020908152604080832093909416825291909152205460ff1690565b348015610b5457600080fd5b506103db610b63366004613d90565b612d6a565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610bfb57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c4757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000546001600160a01b03163314610cac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60008181526008602052604090205415610d425760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e20616c726561647920657869737473000000000000000000006044820152606401610ca3565b60075460ff1615610d955760405162461bcd60e51b815260206004820152601560248201527f5072652d6d696e74696e672069732061637469766500000000000000000000006044820152606401610ca3565b6000818152601460205260409020546001600160a01b031615610dfa5760405162461bcd60e51b815260206004820152601360248201527f546f6b656e20616c7265616479206f776e6564000000000000000000000000006044820152606401610ca3565b600654341015610e4c5760405162461bcd60e51b815260206004820152601260248201527f45544820616d6f756e7420746f6f206c6f7700000000000000000000000000006044820152606401610ca3565b610e5581612e4c565b600081815260086020526040902054610e7090335b34612ece565b6040513490339083907ffd127abe6ca0bff44e1fcf69bc427735c1b352c0322f8958287e9f49f3fe9e2390600090a450565b606060128054610eb19061411a565b80601f0160208091040260200160405190810160405280929190818152602001828054610edd9061411a565b8015610f2a5780601f10610eff57610100808354040283529160200191610f2a565b820191906000526020600020905b815481529060010190602001808311610f0d57829003601f168201915b5050505050905090565b6000818152601460205260408120546001600160a01b0316610fbe5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ca3565b506000908152601660205260409020546001600160a01b031690565b6000610fe582611b78565b9050806001600160a01b0316836001600160a01b0316141561106f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ca3565b336001600160a01b038216148061108b575061108b8133610b1a565b6110fd5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ca3565b6111078383612fe3565b505050565b6000546001600160a01b031633146111665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b6007805460ff1916911515919091179055565b600061118433611e97565b905060005b8151811015611107576111c633848484815181106111a9576111a961416e565b602002602001015160405180602001604052806000815250613069565b82600a60008484815181106111dd576111dd61416e565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080611222906141cc565b915050611189565b61123433826130f2565b6112a65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca3565b6111078383836131fa565b6000546001600160a01b0316331461130b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b600355565b6000546001600160a01b0316331461136a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b60008181526008602090815260409182902082516060810184528154808252600183015493820193909352600290910154928101929092526113ee5760405162461bcd60e51b815260206004820152601160248201527f41756374696f6e206e6f742065786973740000000000000000000000000000006044820152606401610ca3565b6113f7826133ea565b6000828152600860209081526040808320838155600180820185905560029182018590558551855260099093528184208481559283018490559190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183917f07451e7a90d245fe33bb76884a8ae9a548a039b6227d22e54f9945027764216591a25050565b6000818152600860208181526040808420815160608101835281548082526001830154828601526002909201549281019290925285855292909152906114cd5750600092915050565b60200151421192915050565b6000816114e857506000610c47565b6114fd60646114f785856134e2565b906134ee565b9392505050565b6000546001600160a01b0316331461155e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b600255565b6000818152600860205260408120546115be5760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e20646f6573206e6f74206578697374000000000000000000006044820152606401610ca3565b6000828152600860209081526040808320815160608082018452825480835260018085015484880152600294850154848701529087526009865295849020845191820185528054808352968101549582019590955293909101546001600160a01b031691830191909152916116755760405162461bcd60e51b815260206004820152601260248201527f42696420646f6573206e6f7420657869737400000000000000000000000000006044820152606401610ca3565b602001519392505050565b606060328211156116d35760405162461bcd60e51b815260206004820152601660248201527f4d6178206c696d697420697320353020746f6b656e73000000000000000000006044820152606401610ca3565b60075460ff166117255760405162461bcd60e51b815260206004820152601660248201527f506f73742d6d696e74696e6720697320616374697665000000000000000000006044820152606401610ca3565b60008267ffffffffffffffff81111561174057611740613fbf565b604051908082528060200260200182016040528015611769578160200160208202803683370190505b50905060005b83811015611801576000611782601b5490565b90505b600061179082611b78565b6001600160a01b0316146117b057806117a8816141cc565b915050611785565b6117bb335b826134fa565b601180549060006117cb836141cc565b9190505550808383815181106117e3576117e361416e565b602090810291909101015250806117f9816141cc565b91505061176f565b50336001600160a01b03167feda6e6839e9a928308dd221293852ef9a470228baab5f3360cb1cbc37225c4258260405161183b9190613f09565b60405180910390a292915050565b6000546001600160a01b031633146118a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b600655565b61110783838360405180602001604052806000815250612bc8565b6000546001600160a01b0316331461191d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b60078054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b6000546001600160a01b031633146119ae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b336001600160a01b0382166119f2576040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611107573d6000803e3d6000fd5b6001600160a01b03821663a9059cbb336040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038616906370a082319060240160206040518083038186803b158015611a5a57600080fd5b505afa158015611a6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a929190614205565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611af057600080fd5b505af1158015611b04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b28919061421e565b611b745760405162461bcd60e51b815260206004820152601e60248201527f4572726f72207768696c65207472616e7366657272696e6720746f6b656e00006044820152606401610ca3565b5050565b6000818152601460205260408120546001600160a01b031680610c475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ca3565b6000546001600160a01b03163314611c5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314611ce25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b6064811115611d335760405162461bcd60e51b815260206004820152601260248201527f52617465207374657020746f6f206869676800000000000000000000000000006044820152606401610ca3565b600555565b6000546001600160a01b03163314611d925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b600155565b60006001600160a01b038216611e155760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ca3565b506001600160a01b031660009081526015602052604090205490565b6000546001600160a01b03163314611e8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b611e956000613514565b565b6060611eb7826001600160a01b0316600090815260186020526040902090565b805480602002602001604051908101604052809291908181526020018280548015611f0157602002820191906000526020600020905b815481526020019060010190808311611eed575b50505050509050919050565b6000546001600160a01b03163314611f675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b62015180811115611fba5760405162461bcd60e51b815260206004820152601260248201527f546f6f206d75636820657874656e73696f6e00000000000000000000000000006044820152606401610ca3565b600455565b606060138054610eb19061411a565b6000818152600860205260409020546120295760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e20646f6573206e6f74206578697374000000000000000000006044820152606401610ca3565b6000818152600860209081526040808320815160608082018452825480835260018085015484880152600294850154848701529087526009865295849020845191820185528054825295860154948101949094529301546001600160a01b0316908201526005546120b0906064906114f7906120a5908361423b565b6020850151906134e2565b3410156121245760405162461bcd60e51b8152602060048201526024808201527f426964206d7573742062652067726561746572207468616e2063757272656e7460448201527f20626964000000000000000000000000000000000000000000000000000000006064820152608401610ca3565b60045460208301516121359161357c565b42111561215c57600454612149904261423b565b6000848152600860205260409020600101555b81516121689033610e6a565b6040513490339085907f842d2ac3c24f62f502b949d8099647c7c74cc52d7897769455905a6aecc27c7690600090a4505050565b60075460009060ff166121f15760405162461bcd60e51b815260206004820152601660248201527f506f73742d6d696e74696e6720697320616374697665000000000000000000006044820152606401610ca3565b60006121fc601b5490565b90505b600061220a82611b78565b6001600160a01b03161461222a5780612222816141cc565b9150506121ff565b612233336117b5565b60118054906000612243836141cc565b919050555061224f3390565b6001600160a01b0316817fc331dc3e37e2ab4d6e65d42a119ffdfab8481b9be24d26704f9f4b4a331d4dd060405160405180910390a3919050565b336000908152600c602052604090205460ff166122e95760405162461bcd60e51b815260206004820152601760248201527f43616c6c6572206973206e6f74207468652061646d696e0000000000000000006044820152606401610ca3565b600754610100900460ff166123405760405162461bcd60e51b815260206004820152601f60248201527f417070726f76696e6720776974682063726561746f722064697361626c6564006044820152606401610ca3565b60008381526008602090815260409182902082516060810184528154808252600183015493820193909352600290910154928101929092526123c45760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e20646f6573206e6f74206578697374000000000000000000006044820152606401610ca3565b42816020015111156124185760405162461bcd60e51b815260206004820152601960248201527f41756374696f6e20686173206e6f7420656e64656420796574000000000000006044820152606401610ca3565b805160009081526009602090815260409182902082516060810184528154815260018201549281018390526002909101546001600160a01b03169281019290925284116124ba576000858152600d60209081526040808320805460ff19166001179055600b909152902080546001600160a01b0385167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116179055612525565b6124c3856133ea565b600085815260086020908152604080832083815560018082018590556002918201859055865185526009909352908320838155918201929092550180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555b5050505050565b336000908152600c602052604090205460ff1661258b5760405162461bcd60e51b815260206004820152601760248201527f43616c6c6572206973206e6f74207468652061646d696e0000000000000000006044820152606401610ca3565b600082815260086020908152604091829020825160608101845281548082526001830154938201939093526002909101549281019290925261260f5760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e20646f6573206e6f74206578697374000000000000000000006044820152606401610ca3565b42816020015111156126635760405162461bcd60e51b815260206004820152601960248201527f41756374696f6e20686173206e6f7420656e64656420796574000000000000006044820152606401610ca3565b805160009081526009602090815260409182902082516060810184528154815260018201549281018390526002909101546001600160a01b03169281019290925283116126c8576000848152600d60205260409020805460ff19166001179055612733565b6126d1846133ea565b600084815260086020908152604080832083815560018082018590556002918201859055865185526009909352908320838155918201929092550180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555b50505050565b6001600160a01b0382163314156127925760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ca3565b3360008181526017602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000818152601460205260409020546001600160a01b0316156128635760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20616c726561647920636c61696d656400000000000000000000006044820152606401610ca3565b6000818152600860209081526040918290208251606081018452815481526001820154928101839052600290910154928101929092524210156128e85760405162461bcd60e51b815260206004820152601960248201527f41756374696f6e20686173206e6f7420656e64656420796574000000000000006044820152606401610ca3565b8051600090815260096020908152604091829020825160608101845281548152600182015492810192909252600201546001600160a01b0316918101829052906129745760405162461bcd60e51b815260206004820152601e60248201527f4e6f206164647265737320666f722070726576696f75732062696464657200006044820152606401610ca3565b6000838152600d602052604090205460ff166129f85760405162461bcd60e51b815260206004820152602160248201527f41756374696f6e20686173206e6f74206265656e20617070726f76656420796560448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610ca3565b612a068160400151846134fa565b6000838152600b60205260409020546001600160a01b031615612ad4576000838152600b6020908152604090912054908201516001546001600160a01b039092169182916108fc91612a5891906114d9565b6040518115909202916000818181858888f19350505050158015612a80573d6000803e3d6000fd5b50600e5460208301516002546001600160a01b03909216916108fc91612aa5916114d9565b6040518115909202916000818181858888f19350505050158015612acd573d6000803e3d6000fd5b5050612b14565b600e5460208201516040516001600160a01b039092169181156108fc0291906000818181858888f19350505050158015612b12573d6000803e3d6000fd5b505b60008381526008602090815260408083208381556001808201859055600291820185905586518552600984528285208581559081018590550180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055858352600d8252808320805460ff191690559083015183820151915190926001600160a01b039092169186917f704c5c8c04f5c436a24b43787f4583d803b23a3d29246fe4567e365fa5c2c6699190a4505050565b612bd233836130f2565b612c445760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca3565b61273384848484613069565b6000818152601460205260409020546060906001600160a01b0316612cdd5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ca3565b6000612d196040805180820190915260208082527f68747470733a2f2f7777772e6e66746974746965732e6170702f746f6b656e2f9082015290565b90506000815111612d3957604051806020016040528060008152506114fd565b80612d4384613588565b604051602001612d54929190614253565b6040516020818303038152906040529392505050565b6000546001600160a01b03163314612dc45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b6001600160a01b038116612e405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ca3565b612e4981613514565b50565b612e7060405180606001604052806000815260200160008152602001600081525090565b60408101829052600f548152600354612e89904261423b565b60208083019182526000848152600890915260408082208451815592516001840155830151600290920191909155600f805491612ec5836141cc565b91905055505050565b60008381526009602090815260409182902082516060808201855282548252600180840154838601526002909301546001600160a01b03908116838701528551918201865293810186905292861693830193909352601054808352612f329161423b565b6010556000858152600960209081526040918290208351815590830151600182015590820151600290910180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909216919091179055815115612525576040808301516020840151915190916001600160a01b0383169181156108fc0291906000818181858888f19350505050158015612fda573d6000803e3d6000fd5b50505050505050565b600081815260166020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061303082611b78565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6130748484846131fa565b613080848484846136ba565b6127335760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca3565b6000818152601460205260408120546001600160a01b031661317c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ca3565b600061318783611b78565b9050806001600160a01b0316846001600160a01b031614806131c25750836001600160a01b03166131b784610f34565b6001600160a01b0316145b806131f257506001600160a01b0380821660009081526017602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661320d82611b78565b6001600160a01b0316146132895760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ca3565b6001600160a01b0382166133045760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ca3565b61330f838383613885565b61331a600082612fe3565b6001600160a01b03831660009081526015602052604081208054600192906133439084906142aa565b90915550506001600160a01b038216600090815260156020526040812080546001929061337190849061423b565b909155505060008181526014602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600860209081526040808320815160608082018452825480835260018085015484880152600294850154848701529087526009865295849020845191820185528054808352968101549582019590955293909101546001600160a01b031691830191909152916134a15760405162461bcd60e51b815260206004820152601260248201527f42696420646f6573206e6f7420657869737400000000000000000000000000006044820152606401610ca3565b6040808201516020830151915190916001600160a01b0383169181156108fc0291906000818181858888f19350505050158015612525573d6000803e3d6000fd5b60006114fd82846142c1565b60006114fd828461432d565b611b74828260405180602001604052806000815250613973565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006114fd82846142aa565b6060816135c857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135f257806135dc816141cc565b91506135eb9050600a8361432d565b91506135cc565b60008167ffffffffffffffff81111561360d5761360d613fbf565b6040519080825280601f01601f191660200182016040528015613637576020820181803683370190505b5090505b84156131f25761364c6001836142aa565b9150613659600a86614341565b61366490603061423b565b60f81b8183815181106136795761367961416e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506136b3600a8661432d565b945061363b565b60006001600160a01b0384163b1561387a576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613717903390899088908890600401614355565b602060405180830381600087803b15801561373157600080fd5b505af192505050801561377f575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261377c91810190614391565b60015b61382f573d8080156137ad576040519150601f19603f3d011682016040523d82523d6000602084013e6137b2565b606091505b5080516138275760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca3565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506131f2565b506001949350505050565b6001600160a01b0383166138e0576138db81601b80546000838152601a60205260408120829055600182018355919091527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc10155565b613903565b816001600160a01b0316836001600160a01b0316146139035761390383826139fc565b6001600160a01b03821661391a5761110781613b0a565b826001600160a01b0316826001600160a01b031614611107576001600160a01b03919091166000908152601860208181526040808420805486865260198452918520829055928252600181018355918352909120015550565b61397d8383613bca565b61398a60008484846136ba565b6111075760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca3565b6001600160a01b038216600090815260186020526040812054613a2090600161357c565b600083815260196020526040902054909150808214613ac7576001600160a01b0384166000908152601860205260408120805484908110613a6357613a6361416e565b906000526020600020015490508060186000876001600160a01b03166001600160a01b031681526020019081526020016000208381548110613aa757613aa761416e565b600091825260208083209091019290925591825260199052604090208190555b6001600160a01b0384166000908152601860205260409020805480613aee57613aee6143ae565b6001900381819060005260206000200160009055905550505050565b601b54600090613b1b90600161357c565b6000838152601a6020526040812054601b8054939450909284908110613b4357613b4361416e565b9060005260206000200154905080601b8381548110613b6457613b6461416e565b6000918252602080832090910192909255828152601a90915260409020829055601b805480613b9557613b956143ae565b600190038181906000526020600020016000905590556000601a60008681526020019081526020016000208190555050505050565b6001600160a01b038216613c205760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ca3565b6000818152601460205260409020546001600160a01b031615613c855760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ca3565b613c9160008383613885565b6001600160a01b0382166000908152601560205260408120805460019290613cba90849061423b565b909155505060008181526014602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114612e4957600080fd5b600060208284031215613d7057600080fd5b81356114fd81613d30565b6001600160a01b0381168114612e4957600080fd5b600060208284031215613da257600080fd5b81356114fd81613d7b565b600060208284031215613dbf57600080fd5b5035919050565b60005b83811015613de1578181015183820152602001613dc9565b838111156127335750506000910152565b60008151808452613e0a816020860160208601613dc6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006114fd6020830184613df2565b60008060408385031215613e6257600080fd5b8235613e6d81613d7b565b946020939093013593505050565b8015158114612e4957600080fd5b600060208284031215613e9b57600080fd5b81356114fd81613e7b565b600080600060608486031215613ebb57600080fd5b8335613ec681613d7b565b92506020840135613ed681613d7b565b929592945050506040919091013590565b60008060408385031215613efa57600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015613f4157835183529284019291840191600101613f25565b50909695505050505050565b60008060408385031215613f6057600080fd5b8235613f6b81613d7b565b91506020830135613f7b81613e7b565b809150509250929050565b600080600060608486031215613f9b57600080fd5b83359250602084013591506040840135613fb481613d7b565b809150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561400457600080fd5b843561400f81613d7b565b9350602085013561401f81613d7b565b925060408501359150606085013567ffffffffffffffff8082111561404357600080fd5b818701915087601f83011261405757600080fd5b81358181111561406957614069613fbf565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156140af576140af613fbf565b816040528281528a60208487010111156140c857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156140ff57600080fd5b823561410a81613d7b565b91506020830135613f7b81613d7b565b600181811c9082168061412e57607f821691505b60208210811415614168577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156141fe576141fe61419d565b5060010190565b60006020828403121561421757600080fd5b5051919050565b60006020828403121561423057600080fd5b81516114fd81613e7b565b6000821982111561424e5761424e61419d565b500190565b60008351614265818460208801613dc6565b835190830190614279818360208801613dc6565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b6000828210156142bc576142bc61419d565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142f9576142f961419d565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261433c5761433c6142fe565b500490565b600082614350576143506142fe565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526143876080830184613df2565b9695505050505050565b6000602082840312156143a357600080fd5b81516114fd81613d30565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220a9213c09c01e6048b5f9935967dd138c0efe55faf8ebb5ee310d7aea1445fb4564736f6c63430008090033
Deployed Bytecode
0x6080604052600436106103815760003560e01c80635a95cf49116101d157806398f0c8ab11610102578063a9e7c2e5116100a0578063d3e848f11161006f578063d3e848f114610aaf578063e05c4ace14610acf578063e985e9c514610aff578063f2fde38b14610b4857600080fd5b8063a9e7c2e514610a1f578063aaddc62114610a3f578063b88d4fde14610a6f578063c87b56dd14610a8f57600080fd5b80639ff1440a116100dc5780639ff1440a146109a5578063a157acbd146109c5578063a22cb465146109e5578063a534a0cd14610a0557600080fd5b806398f0c8ab146109675780639979ef451461097d5780639cbf9e361461099057600080fd5b8063715018a61161016f5780638da5cb5b116101495780638da5cb5b146108fe5780638f5164381461091c57806393c0fc231461093257806395d89b411461095257600080fd5b8063715018a6146108935780637c0cc8b3146108a85780638462151c146108de57600080fd5b80636bbe36bf116101ab5780636bbe36bf1461081d5780636c281387146108335780636ff6c4b81461085357806370a082311461087357600080fd5b80635a95cf49146107c75780636352211e146107dd5780636a32d91d146107fd57600080fd5b80632ad71573116102b65780633e109a191161025457806342842e0e1161022357806342842e0e146107515780634602b15d14610771578063498fc4d81461078757806351cff8d9146107a757600080fd5b80633e109a19146106b85780633fa2ad83146106ce57806340c1a064146106fb578063417fd6b61461073157600080fd5b806336dae2251161029057806336dae2251461060157806338835b4e146106215780633a70215d146106415780633b9bd4f91461066157600080fd5b80632ad71573146105ab5780632ae11ca8146105c15780632c104a92146105e157600080fd5b80630e976656116103235780631b3a5929116102fd5780631b3a5929146104e357806323b872dd1461054c57806325423a1b1461056c578063295e64961461058c57600080fd5b80630e9766561461048a578063143551e4146104aa57806318160ddd146104ce57600080fd5b806306fdde031161035f57806306fdde03146103f0578063081812fc14610412578063095ea7b31461044a5780630b6ac5cb1461046a57600080fd5b806301ffc9a71461038657806306210197146103bb578063065de74c146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004613d5e565b610b68565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103db6103d6366004613d90565b610c4d565b005b6103db6103eb366004613dad565b610ce6565b3480156103fc57600080fd5b50610405610ea2565b6040516103b29190613e3c565b34801561041e57600080fd5b5061043261042d366004613dad565b610f34565b6040516001600160a01b0390911681526020016103b2565b34801561045657600080fd5b506103db610465366004613e4f565b610fda565b34801561047657600080fd5b506103db610485366004613e89565b61110c565b34801561049657600080fd5b506103db6104a5366004613d90565b611179565b3480156104b657600080fd5b506104c060045481565b6040519081526020016103b2565b3480156104da57600080fd5b50601b546104c0565b3480156104ef57600080fd5b506105286104fe366004613dad565b6009602052600090815260409020805460018201546002909201549091906001600160a01b031683565b6040805193845260208401929092526001600160a01b0316908201526060016103b2565b34801561055857600080fd5b506103db610567366004613ea6565b61122a565b34801561057857600080fd5b506103db610587366004613dad565b6112b1565b34801561059857600080fd5b506007546103a690610100900460ff1681565b3480156105b757600080fd5b506104c0600f5481565b3480156105cd57600080fd5b506103db6105dc366004613dad565b611310565b3480156105ed57600080fd5b506103a66105fc366004613dad565b611484565b34801561060d57600080fd5b506104c061061c366004613ee7565b6114d9565b34801561062d57600080fd5b506103db61063c366004613dad565b611504565b34801561064d57600080fd5b506104c061065c366004613dad565b611563565b34801561066d57600080fd5b5061069d61067c366004613dad565b60086020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016103b2565b3480156106c457600080fd5b506104c060065481565b3480156106da57600080fd5b506106ee6106e9366004613dad565b611680565b6040516103b29190613f09565b34801561070757600080fd5b50610432610716366004613dad565b600a602052600090815260409020546001600160a01b031681565b34801561073d57600080fd5b506103db61074c366004613dad565b611849565b34801561075d57600080fd5b506103db61076c366004613ea6565b6118a8565b34801561077d57600080fd5b506104c060055481565b34801561079357600080fd5b506103db6107a2366004613e89565b6118c3565b3480156107b357600080fd5b506103db6107c2366004613d90565b611954565b3480156107d357600080fd5b506104c060105481565b3480156107e957600080fd5b506104326107f8366004613dad565b611b78565b34801561080957600080fd5b506103db610818366004613f4d565b611c03565b34801561082957600080fd5b506104c060025481565b34801561083f57600080fd5b506103db61084e366004613dad565b611c88565b34801561085f57600080fd5b506103db61086e366004613dad565b611d38565b34801561087f57600080fd5b506104c061088e366004613d90565b611d97565b34801561089f57600080fd5b506103db611e31565b3480156108b457600080fd5b506104326108c3366004613dad565b600b602052600090815260409020546001600160a01b031681565b3480156108ea57600080fd5b506106ee6108f9366004613d90565b611e97565b34801561090a57600080fd5b506000546001600160a01b0316610432565b34801561092857600080fd5b506104c060035481565b34801561093e57600080fd5b506103db61094d366004613dad565b611f0d565b34801561095e57600080fd5b50610405611fbf565b34801561097357600080fd5b506104c060015481565b6103db61098b366004613dad565b611fce565b34801561099c57600080fd5b506104c061219c565b3480156109b157600080fd5b506103db6109c0366004613f86565b61228a565b3480156109d157600080fd5b506103db6109e0366004613ee7565b61252c565b3480156109f157600080fd5b506103db610a00366004613f4d565b612739565b348015610a1157600080fd5b506007546103a69060ff1681565b348015610a2b57600080fd5b506103db610a3a366004613dad565b6127fe565b348015610a4b57600080fd5b506103a6610a5a366004613dad565b600d6020526000908152604090205460ff1681565b348015610a7b57600080fd5b506103db610a8a366004613fee565b612bc8565b348015610a9b57600080fd5b50610405610aaa366004613dad565b612c50565b348015610abb57600080fd5b50600e54610432906001600160a01b031681565b348015610adb57600080fd5b506103a6610aea366004613d90565b600c6020526000908152604090205460ff1681565b348015610b0b57600080fd5b506103a6610b1a3660046140ec565b6001600160a01b03918216600090815260176020908152604080832093909416825291909152205460ff1690565b348015610b5457600080fd5b506103db610b63366004613d90565b612d6a565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610bfb57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c4757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000546001600160a01b03163314610cac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60008181526008602052604090205415610d425760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e20616c726561647920657869737473000000000000000000006044820152606401610ca3565b60075460ff1615610d955760405162461bcd60e51b815260206004820152601560248201527f5072652d6d696e74696e672069732061637469766500000000000000000000006044820152606401610ca3565b6000818152601460205260409020546001600160a01b031615610dfa5760405162461bcd60e51b815260206004820152601360248201527f546f6b656e20616c7265616479206f776e6564000000000000000000000000006044820152606401610ca3565b600654341015610e4c5760405162461bcd60e51b815260206004820152601260248201527f45544820616d6f756e7420746f6f206c6f7700000000000000000000000000006044820152606401610ca3565b610e5581612e4c565b600081815260086020526040902054610e7090335b34612ece565b6040513490339083907ffd127abe6ca0bff44e1fcf69bc427735c1b352c0322f8958287e9f49f3fe9e2390600090a450565b606060128054610eb19061411a565b80601f0160208091040260200160405190810160405280929190818152602001828054610edd9061411a565b8015610f2a5780601f10610eff57610100808354040283529160200191610f2a565b820191906000526020600020905b815481529060010190602001808311610f0d57829003601f168201915b5050505050905090565b6000818152601460205260408120546001600160a01b0316610fbe5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ca3565b506000908152601660205260409020546001600160a01b031690565b6000610fe582611b78565b9050806001600160a01b0316836001600160a01b0316141561106f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ca3565b336001600160a01b038216148061108b575061108b8133610b1a565b6110fd5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ca3565b6111078383612fe3565b505050565b6000546001600160a01b031633146111665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b6007805460ff1916911515919091179055565b600061118433611e97565b905060005b8151811015611107576111c633848484815181106111a9576111a961416e565b602002602001015160405180602001604052806000815250613069565b82600a60008484815181106111dd576111dd61416e565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080611222906141cc565b915050611189565b61123433826130f2565b6112a65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca3565b6111078383836131fa565b6000546001600160a01b0316331461130b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b600355565b6000546001600160a01b0316331461136a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b60008181526008602090815260409182902082516060810184528154808252600183015493820193909352600290910154928101929092526113ee5760405162461bcd60e51b815260206004820152601160248201527f41756374696f6e206e6f742065786973740000000000000000000000000000006044820152606401610ca3565b6113f7826133ea565b6000828152600860209081526040808320838155600180820185905560029182018590558551855260099093528184208481559283018490559190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183917f07451e7a90d245fe33bb76884a8ae9a548a039b6227d22e54f9945027764216591a25050565b6000818152600860208181526040808420815160608101835281548082526001830154828601526002909201549281019290925285855292909152906114cd5750600092915050565b60200151421192915050565b6000816114e857506000610c47565b6114fd60646114f785856134e2565b906134ee565b9392505050565b6000546001600160a01b0316331461155e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b600255565b6000818152600860205260408120546115be5760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e20646f6573206e6f74206578697374000000000000000000006044820152606401610ca3565b6000828152600860209081526040808320815160608082018452825480835260018085015484880152600294850154848701529087526009865295849020845191820185528054808352968101549582019590955293909101546001600160a01b031691830191909152916116755760405162461bcd60e51b815260206004820152601260248201527f42696420646f6573206e6f7420657869737400000000000000000000000000006044820152606401610ca3565b602001519392505050565b606060328211156116d35760405162461bcd60e51b815260206004820152601660248201527f4d6178206c696d697420697320353020746f6b656e73000000000000000000006044820152606401610ca3565b60075460ff166117255760405162461bcd60e51b815260206004820152601660248201527f506f73742d6d696e74696e6720697320616374697665000000000000000000006044820152606401610ca3565b60008267ffffffffffffffff81111561174057611740613fbf565b604051908082528060200260200182016040528015611769578160200160208202803683370190505b50905060005b83811015611801576000611782601b5490565b90505b600061179082611b78565b6001600160a01b0316146117b057806117a8816141cc565b915050611785565b6117bb335b826134fa565b601180549060006117cb836141cc565b9190505550808383815181106117e3576117e361416e565b602090810291909101015250806117f9816141cc565b91505061176f565b50336001600160a01b03167feda6e6839e9a928308dd221293852ef9a470228baab5f3360cb1cbc37225c4258260405161183b9190613f09565b60405180910390a292915050565b6000546001600160a01b031633146118a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b600655565b61110783838360405180602001604052806000815250612bc8565b6000546001600160a01b0316331461191d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b60078054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b6000546001600160a01b031633146119ae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b336001600160a01b0382166119f2576040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611107573d6000803e3d6000fd5b6001600160a01b03821663a9059cbb336040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038616906370a082319060240160206040518083038186803b158015611a5a57600080fd5b505afa158015611a6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a929190614205565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611af057600080fd5b505af1158015611b04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b28919061421e565b611b745760405162461bcd60e51b815260206004820152601e60248201527f4572726f72207768696c65207472616e7366657272696e6720746f6b656e00006044820152606401610ca3565b5050565b6000818152601460205260408120546001600160a01b031680610c475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ca3565b6000546001600160a01b03163314611c5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314611ce25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b6064811115611d335760405162461bcd60e51b815260206004820152601260248201527f52617465207374657020746f6f206869676800000000000000000000000000006044820152606401610ca3565b600555565b6000546001600160a01b03163314611d925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b600155565b60006001600160a01b038216611e155760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ca3565b506001600160a01b031660009081526015602052604090205490565b6000546001600160a01b03163314611e8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b611e956000613514565b565b6060611eb7826001600160a01b0316600090815260186020526040902090565b805480602002602001604051908101604052809291908181526020018280548015611f0157602002820191906000526020600020905b815481526020019060010190808311611eed575b50505050509050919050565b6000546001600160a01b03163314611f675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b62015180811115611fba5760405162461bcd60e51b815260206004820152601260248201527f546f6f206d75636820657874656e73696f6e00000000000000000000000000006044820152606401610ca3565b600455565b606060138054610eb19061411a565b6000818152600860205260409020546120295760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e20646f6573206e6f74206578697374000000000000000000006044820152606401610ca3565b6000818152600860209081526040808320815160608082018452825480835260018085015484880152600294850154848701529087526009865295849020845191820185528054825295860154948101949094529301546001600160a01b0316908201526005546120b0906064906114f7906120a5908361423b565b6020850151906134e2565b3410156121245760405162461bcd60e51b8152602060048201526024808201527f426964206d7573742062652067726561746572207468616e2063757272656e7460448201527f20626964000000000000000000000000000000000000000000000000000000006064820152608401610ca3565b60045460208301516121359161357c565b42111561215c57600454612149904261423b565b6000848152600860205260409020600101555b81516121689033610e6a565b6040513490339085907f842d2ac3c24f62f502b949d8099647c7c74cc52d7897769455905a6aecc27c7690600090a4505050565b60075460009060ff166121f15760405162461bcd60e51b815260206004820152601660248201527f506f73742d6d696e74696e6720697320616374697665000000000000000000006044820152606401610ca3565b60006121fc601b5490565b90505b600061220a82611b78565b6001600160a01b03161461222a5780612222816141cc565b9150506121ff565b612233336117b5565b60118054906000612243836141cc565b919050555061224f3390565b6001600160a01b0316817fc331dc3e37e2ab4d6e65d42a119ffdfab8481b9be24d26704f9f4b4a331d4dd060405160405180910390a3919050565b336000908152600c602052604090205460ff166122e95760405162461bcd60e51b815260206004820152601760248201527f43616c6c6572206973206e6f74207468652061646d696e0000000000000000006044820152606401610ca3565b600754610100900460ff166123405760405162461bcd60e51b815260206004820152601f60248201527f417070726f76696e6720776974682063726561746f722064697361626c6564006044820152606401610ca3565b60008381526008602090815260409182902082516060810184528154808252600183015493820193909352600290910154928101929092526123c45760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e20646f6573206e6f74206578697374000000000000000000006044820152606401610ca3565b42816020015111156124185760405162461bcd60e51b815260206004820152601960248201527f41756374696f6e20686173206e6f7420656e64656420796574000000000000006044820152606401610ca3565b805160009081526009602090815260409182902082516060810184528154815260018201549281018390526002909101546001600160a01b03169281019290925284116124ba576000858152600d60209081526040808320805460ff19166001179055600b909152902080546001600160a01b0385167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116179055612525565b6124c3856133ea565b600085815260086020908152604080832083815560018082018590556002918201859055865185526009909352908320838155918201929092550180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555b5050505050565b336000908152600c602052604090205460ff1661258b5760405162461bcd60e51b815260206004820152601760248201527f43616c6c6572206973206e6f74207468652061646d696e0000000000000000006044820152606401610ca3565b600082815260086020908152604091829020825160608101845281548082526001830154938201939093526002909101549281019290925261260f5760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e20646f6573206e6f74206578697374000000000000000000006044820152606401610ca3565b42816020015111156126635760405162461bcd60e51b815260206004820152601960248201527f41756374696f6e20686173206e6f7420656e64656420796574000000000000006044820152606401610ca3565b805160009081526009602090815260409182902082516060810184528154815260018201549281018390526002909101546001600160a01b03169281019290925283116126c8576000848152600d60205260409020805460ff19166001179055612733565b6126d1846133ea565b600084815260086020908152604080832083815560018082018590556002918201859055865185526009909352908320838155918201929092550180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555b50505050565b6001600160a01b0382163314156127925760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ca3565b3360008181526017602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000818152601460205260409020546001600160a01b0316156128635760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20616c726561647920636c61696d656400000000000000000000006044820152606401610ca3565b6000818152600860209081526040918290208251606081018452815481526001820154928101839052600290910154928101929092524210156128e85760405162461bcd60e51b815260206004820152601960248201527f41756374696f6e20686173206e6f7420656e64656420796574000000000000006044820152606401610ca3565b8051600090815260096020908152604091829020825160608101845281548152600182015492810192909252600201546001600160a01b0316918101829052906129745760405162461bcd60e51b815260206004820152601e60248201527f4e6f206164647265737320666f722070726576696f75732062696464657200006044820152606401610ca3565b6000838152600d602052604090205460ff166129f85760405162461bcd60e51b815260206004820152602160248201527f41756374696f6e20686173206e6f74206265656e20617070726f76656420796560448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610ca3565b612a068160400151846134fa565b6000838152600b60205260409020546001600160a01b031615612ad4576000838152600b6020908152604090912054908201516001546001600160a01b039092169182916108fc91612a5891906114d9565b6040518115909202916000818181858888f19350505050158015612a80573d6000803e3d6000fd5b50600e5460208301516002546001600160a01b03909216916108fc91612aa5916114d9565b6040518115909202916000818181858888f19350505050158015612acd573d6000803e3d6000fd5b5050612b14565b600e5460208201516040516001600160a01b039092169181156108fc0291906000818181858888f19350505050158015612b12573d6000803e3d6000fd5b505b60008381526008602090815260408083208381556001808201859055600291820185905586518552600984528285208581559081018590550180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055858352600d8252808320805460ff191690559083015183820151915190926001600160a01b039092169186917f704c5c8c04f5c436a24b43787f4583d803b23a3d29246fe4567e365fa5c2c6699190a4505050565b612bd233836130f2565b612c445760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca3565b61273384848484613069565b6000818152601460205260409020546060906001600160a01b0316612cdd5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ca3565b6000612d196040805180820190915260208082527f68747470733a2f2f7777772e6e66746974746965732e6170702f746f6b656e2f9082015290565b90506000815111612d3957604051806020016040528060008152506114fd565b80612d4384613588565b604051602001612d54929190614253565b6040516020818303038152906040529392505050565b6000546001600160a01b03163314612dc45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca3565b6001600160a01b038116612e405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ca3565b612e4981613514565b50565b612e7060405180606001604052806000815260200160008152602001600081525090565b60408101829052600f548152600354612e89904261423b565b60208083019182526000848152600890915260408082208451815592516001840155830151600290920191909155600f805491612ec5836141cc565b91905055505050565b60008381526009602090815260409182902082516060808201855282548252600180840154838601526002909301546001600160a01b03908116838701528551918201865293810186905292861693830193909352601054808352612f329161423b565b6010556000858152600960209081526040918290208351815590830151600182015590820151600290910180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909216919091179055815115612525576040808301516020840151915190916001600160a01b0383169181156108fc0291906000818181858888f19350505050158015612fda573d6000803e3d6000fd5b50505050505050565b600081815260166020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061303082611b78565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6130748484846131fa565b613080848484846136ba565b6127335760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca3565b6000818152601460205260408120546001600160a01b031661317c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ca3565b600061318783611b78565b9050806001600160a01b0316846001600160a01b031614806131c25750836001600160a01b03166131b784610f34565b6001600160a01b0316145b806131f257506001600160a01b0380821660009081526017602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661320d82611b78565b6001600160a01b0316146132895760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ca3565b6001600160a01b0382166133045760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ca3565b61330f838383613885565b61331a600082612fe3565b6001600160a01b03831660009081526015602052604081208054600192906133439084906142aa565b90915550506001600160a01b038216600090815260156020526040812080546001929061337190849061423b565b909155505060008181526014602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600860209081526040808320815160608082018452825480835260018085015484880152600294850154848701529087526009865295849020845191820185528054808352968101549582019590955293909101546001600160a01b031691830191909152916134a15760405162461bcd60e51b815260206004820152601260248201527f42696420646f6573206e6f7420657869737400000000000000000000000000006044820152606401610ca3565b6040808201516020830151915190916001600160a01b0383169181156108fc0291906000818181858888f19350505050158015612525573d6000803e3d6000fd5b60006114fd82846142c1565b60006114fd828461432d565b611b74828260405180602001604052806000815250613973565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006114fd82846142aa565b6060816135c857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135f257806135dc816141cc565b91506135eb9050600a8361432d565b91506135cc565b60008167ffffffffffffffff81111561360d5761360d613fbf565b6040519080825280601f01601f191660200182016040528015613637576020820181803683370190505b5090505b84156131f25761364c6001836142aa565b9150613659600a86614341565b61366490603061423b565b60f81b8183815181106136795761367961416e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506136b3600a8661432d565b945061363b565b60006001600160a01b0384163b1561387a576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613717903390899088908890600401614355565b602060405180830381600087803b15801561373157600080fd5b505af192505050801561377f575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261377c91810190614391565b60015b61382f573d8080156137ad576040519150601f19603f3d011682016040523d82523d6000602084013e6137b2565b606091505b5080516138275760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca3565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506131f2565b506001949350505050565b6001600160a01b0383166138e0576138db81601b80546000838152601a60205260408120829055600182018355919091527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc10155565b613903565b816001600160a01b0316836001600160a01b0316146139035761390383826139fc565b6001600160a01b03821661391a5761110781613b0a565b826001600160a01b0316826001600160a01b031614611107576001600160a01b03919091166000908152601860208181526040808420805486865260198452918520829055928252600181018355918352909120015550565b61397d8383613bca565b61398a60008484846136ba565b6111075760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca3565b6001600160a01b038216600090815260186020526040812054613a2090600161357c565b600083815260196020526040902054909150808214613ac7576001600160a01b0384166000908152601860205260408120805484908110613a6357613a6361416e565b906000526020600020015490508060186000876001600160a01b03166001600160a01b031681526020019081526020016000208381548110613aa757613aa761416e565b600091825260208083209091019290925591825260199052604090208190555b6001600160a01b0384166000908152601860205260409020805480613aee57613aee6143ae565b6001900381819060005260206000200160009055905550505050565b601b54600090613b1b90600161357c565b6000838152601a6020526040812054601b8054939450909284908110613b4357613b4361416e565b9060005260206000200154905080601b8381548110613b6457613b6461416e565b6000918252602080832090910192909255828152601a90915260409020829055601b805480613b9557613b956143ae565b600190038181906000526020600020016000905590556000601a60008681526020019081526020016000208190555050505050565b6001600160a01b038216613c205760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ca3565b6000818152601460205260409020546001600160a01b031615613c855760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ca3565b613c9160008383613885565b6001600160a01b0382166000908152601560205260408120805460019290613cba90849061423b565b909155505060008181526014602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114612e4957600080fd5b600060208284031215613d7057600080fd5b81356114fd81613d30565b6001600160a01b0381168114612e4957600080fd5b600060208284031215613da257600080fd5b81356114fd81613d7b565b600060208284031215613dbf57600080fd5b5035919050565b60005b83811015613de1578181015183820152602001613dc9565b838111156127335750506000910152565b60008151808452613e0a816020860160208601613dc6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006114fd6020830184613df2565b60008060408385031215613e6257600080fd5b8235613e6d81613d7b565b946020939093013593505050565b8015158114612e4957600080fd5b600060208284031215613e9b57600080fd5b81356114fd81613e7b565b600080600060608486031215613ebb57600080fd5b8335613ec681613d7b565b92506020840135613ed681613d7b565b929592945050506040919091013590565b60008060408385031215613efa57600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015613f4157835183529284019291840191600101613f25565b50909695505050505050565b60008060408385031215613f6057600080fd5b8235613f6b81613d7b565b91506020830135613f7b81613e7b565b809150509250929050565b600080600060608486031215613f9b57600080fd5b83359250602084013591506040840135613fb481613d7b565b809150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561400457600080fd5b843561400f81613d7b565b9350602085013561401f81613d7b565b925060408501359150606085013567ffffffffffffffff8082111561404357600080fd5b818701915087601f83011261405757600080fd5b81358181111561406957614069613fbf565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156140af576140af613fbf565b816040528281528a60208487010111156140c857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156140ff57600080fd5b823561410a81613d7b565b91506020830135613f7b81613d7b565b600181811c9082168061412e57607f821691505b60208210811415614168577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156141fe576141fe61419d565b5060010190565b60006020828403121561421757600080fd5b5051919050565b60006020828403121561423057600080fd5b81516114fd81613e7b565b6000821982111561424e5761424e61419d565b500190565b60008351614265818460208801613dc6565b835190830190614279818360208801613dc6565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b6000828210156142bc576142bc61419d565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142f9576142f961419d565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261433c5761433c6142fe565b500490565b600082614350576143506142fe565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526143876080830184613df2565b9695505050505050565b6000602082840312156143a357600080fd5b81516114fd81613d30565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220a9213c09c01e6048b5f9935967dd138c0efe55faf8ebb5ee310d7aea1445fb4564736f6c63430008090033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.