Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 303 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 23269531 | 175 days ago | IN | 0 ETH | 0.00029333 | ||||
| Set Approval For... | 22438780 | 291 days ago | IN | 0 ETH | 0.00094231 | ||||
| Set Approval For... | 22388015 | 298 days ago | IN | 0 ETH | 0.00004019 | ||||
| Set Approval For... | 22386850 | 298 days ago | IN | 0 ETH | 0.00003839 | ||||
| Set Approval For... | 22386399 | 298 days ago | IN | 0 ETH | 0.00010977 | ||||
| Set Approval For... | 21750630 | 387 days ago | IN | 0 ETH | 0.00007946 | ||||
| Set Approval For... | 21746438 | 388 days ago | IN | 0 ETH | 0.00032528 | ||||
| Safe Transfer Fr... | 21735848 | 389 days ago | IN | 0 ETH | 0.00016977 | ||||
| Set Approval For... | 21727148 | 390 days ago | IN | 0 ETH | 0.00011311 | ||||
| Set Approval For... | 21390905 | 437 days ago | IN | 0 ETH | 0.00059321 | ||||
| Safe Transfer Fr... | 21347064 | 443 days ago | IN | 0 ETH | 0.00162928 | ||||
| Set Approval For... | 19633472 | 683 days ago | IN | 0 ETH | 0.0017553 | ||||
| Set Approval For... | 19370141 | 720 days ago | IN | 0 ETH | 0.00798249 | ||||
| Set Approval For... | 19332080 | 725 days ago | IN | 0 ETH | 0.00262746 | ||||
| Safe Transfer Fr... | 18965147 | 776 days ago | IN | 0 ETH | 0.00195323 | ||||
| Safe Transfer Fr... | 18965139 | 776 days ago | IN | 0 ETH | 0.00219289 | ||||
| Safe Transfer Fr... | 18965136 | 776 days ago | IN | 0 ETH | 0.00219723 | ||||
| Safe Transfer Fr... | 18965133 | 776 days ago | IN | 0 ETH | 0.00220054 | ||||
| Safe Transfer Fr... | 18965111 | 776 days ago | IN | 0 ETH | 0.00220735 | ||||
| Set Approval For... | 17897866 | 926 days ago | IN | 0 ETH | 0.00077045 | ||||
| Safe Transfer Fr... | 17644776 | 961 days ago | IN | 0 ETH | 0.00163587 | ||||
| Safe Transfer Fr... | 17644771 | 961 days ago | IN | 0 ETH | 0.002 | ||||
| Set Approval For... | 17409646 | 995 days ago | IN | 0 ETH | 0.00086439 | ||||
| Transfer From | 17202407 | 1024 days ago | IN | 0 ETH | 0.01170145 | ||||
| Claim Reward | 17202144 | 1024 days ago | IN | 0 ETH | 0.02280158 |
Latest 8 internal transactions
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
To
|
|||
|---|---|---|---|---|---|---|---|
| Transfer | 17201927 | 1024 days ago | 0.03939365 ETH | ||||
| Transfer | 17201862 | 1024 days ago | 0.0392514 ETH | ||||
| - | 14443384 | 1433 days ago | 0.195 ETH | ||||
| - | 14443384 | 1433 days ago | 0.195 ETH | ||||
| - | 13141851 | 1636 days ago | 57.32 ETH | ||||
| - | 13141851 | 1636 days ago | 57.32 ETH | ||||
| - | 13136102 | 1636 days ago | 0.005 ETH | ||||
| - | 13136102 | 1636 days ago | 0.005 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
GigaChad
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
byzantium EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract GigaChad is Ownable, ERC721, ERC721Enumerable {
uint256 constant public LIKE_PRICE = 10000000000000000; // 0.01 ETH
uint256 constant private TOKEN_PRICE = 1000000000000000000; // 1 ETH
uint256[] private DISCOUNTS = [0, 5, 10];
uint256 constant private SALE_START_TIME = 1630515600; // 2021-09-01 17:00:00 UTC
uint256 constant private REWARDS_TIME = 1631293200; // 2021-09-10 17:00:00 UTC
uint256 constant private REWARDS_FOR_TOKENS = 10;
uint256 constant private REWARDS_FOR_VOTERS = 10;
uint256 constant private AUTHOR_SHARE = 50;
uint256 constant private FOUNDATION_SHARE = 50;
address private _collection = address(this);
address payable private _foundationAddress;
address payable private _authorAddress;
address[] private _voterTickets;
uint256[] private _tokenTickets;
address[] private _winners;
mapping(address => uint256) private _winnersRewards;
uint256[] private _tokens = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122];
uint256[] private _rewards = [123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142];
bool private _rewardsAssigned = false;
mapping(uint256 => uint256) private _likes;
constructor(address payable foundationAddress, address payable authorAddress)
ERC721("GigaChad", "GGCHD")
Ownable()
{
_foundationAddress = foundationAddress;
_authorAddress = authorAddress;
}
function _baseURI() internal pure override returns (string memory) {
return "ipfs://bafybeid6xqq23im4sbfa6htmrma34yumwettfzj4hnpmnwveos3lwpz574/";
}
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) {
super._beforeTokenTransfer(from, to, tokenId);
}
function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) {
return super.supportsInterface(interfaceId);
}
function exists(uint256 tokenId) public view returns (bool) {
return _exists(tokenId);
}
function ownersOf(uint256[] memory tokenIds) public view returns (address[] memory) {
address[] memory owners = new address[](tokenIds.length);
for (uint256 i = 0; i < tokenIds.length; i++) {
if (_exists(tokenIds[i])) {
owners[i] = ownerOf(tokenIds[i]);
} else {
owners[i] = address(0);
}
}
return owners;
}
function tokensOfOwner(address owner) public view returns (uint256[] memory) {
uint256 balance = balanceOf(owner);
uint256[] memory tokens = new uint256[](balance);
for (uint256 i = 0; i < balance; i++) {
tokens[i] = tokenOfOwnerByIndex(owner, i);
}
return tokens;
}
function rand(uint256 from, uint256 to, uint256 seed) private view returns (uint256) {
return from + (uint256(keccak256(abi.encodePacked(seed, block.difficulty, blockhash(block.number), block.timestamp))) % (to + 1 - from));
}
function quickSortWith(uint[] memory arr, uint[] memory data, int left, int right) private pure {
int i = left;
int j = right;
if (i == j) return;
uint pivot = arr[uint(left + (right - left) / 2)];
while (i <= j) {
while (arr[uint(i)] < pivot) i++;
while (pivot < arr[uint(j)]) j--;
if (i <= j) {
(arr[uint(i)], arr[uint(j)]) = (arr[uint(j)], arr[uint(i)]);
(data[uint(i)], data[uint(j)]) = (data[uint(j)], data[uint(i)]);
i++;
j--;
}
}
if (left < j)
quickSortWith(arr, data, left, j);
if (i < right)
quickSortWith(arr, data, i, right);
}
function sortWith(uint256[] memory arr, uint256[] memory data) private pure {
quickSortWith(arr, data, int(0), int(arr.length - 1));
}
function init() external onlyOwner {
uint256 currentSupply = totalSupply();
require(currentSupply == 0, "GigaChad: forbidden");
for (uint256 tokenId = 143; tokenId <= 152; tokenId++) {
_mint(_foundationAddress, tokenId);
}
}
function getSaleCountdown() external view returns (uint256) {
if (block.timestamp >= SALE_START_TIME) {
return 0;
} else {
return SALE_START_TIME - block.timestamp;
}
}
function getTokensForSale() external view returns (uint256) {
return _tokens.length;
}
function getPrice(uint256 count) public view returns (uint256) {
require(count <= 3, "GigaChad: nonexistent pack");
require(_tokens.length >= count, "GigaChad: not enough tokens");
uint256 basePrice = TOKEN_PRICE * count;
uint256 discount = basePrice * DISCOUNTS[count - 1] / 100;
return basePrice - discount;
}
function mint(uint256 count) external payable returns (uint256[] memory) {
require(_tokens.length >= count, "GigaChad: not enough tokens");
require(block.timestamp >= SALE_START_TIME, "GigaChad: sale has not started yet");
require(msg.value >= getPrice(count), "GigaChad: value sent is below the price");
uint256[] memory tokenIds = new uint256[](count);
for (uint256 i = 0; i < count; i++) {
uint256 tokenIndex = rand(0, _tokens.length - 1, i);
uint256 tokenId = _tokens[tokenIndex];
_mint(msg.sender, tokenId);
tokenIds[i] = tokenId;
_tokens[tokenIndex] = _tokens[_tokens.length - 1];
delete _tokens[_tokens.length - 1];
_tokens.pop();
}
return tokenIds;
}
function assignRewards() external {
require(!_rewardsAssigned, "GigaChad: forbidden");
require(block.timestamp >= REWARDS_TIME, "GigaChad: forbidden");
uint256 rewardIndex = 0;
for (uint256 i = 0; i < REWARDS_FOR_VOTERS; i++) {
while (_voterTickets.length > 0 && rewardIndex < _rewards.length) {
uint256 ticketIndex = rand(0, _voterTickets.length - 1, i);
address winnerAddress = _voterTickets[ticketIndex];
if (_winnersRewards[winnerAddress] == 0) {
uint256 rewardTokenId = _rewards[rewardIndex];
_winnersRewards[winnerAddress] = rewardTokenId;
_winners.push(winnerAddress);
_voterTickets[ticketIndex] = _voterTickets[_voterTickets.length - 1];
_voterTickets.pop();
rewardIndex++;
break;
} else {
_voterTickets[ticketIndex] = _voterTickets[_voterTickets.length - 1];
_voterTickets.pop();
}
}
}
for (uint256 i = 0; i < REWARDS_FOR_TOKENS; i++) {
while (_tokenTickets.length > 0 && rewardIndex < _rewards.length) {
uint256 ticketIndex = rand(0, _tokenTickets.length - 1, i);
uint256 winnerTokenId = _tokenTickets[ticketIndex];
address winnerAddress = ownerOf(winnerTokenId);
if (_winnersRewards[winnerAddress] == 0) {
uint256 rewardTokenId = _rewards[rewardIndex];
_winnersRewards[winnerAddress] = rewardTokenId;
_winners.push(winnerAddress);
_tokenTickets[ticketIndex] = _tokenTickets[_tokenTickets.length - 1];
_tokenTickets.pop();
rewardIndex++;
break;
} else {
_tokenTickets[ticketIndex] = _tokenTickets[_tokenTickets.length - 1];
_tokenTickets.pop();
}
}
}
if (rewardIndex < _rewards.length) {
while (rewardIndex < _rewards.length) {
uint256 rewardTokenId = _rewards[rewardIndex];
_mint(_foundationAddress, rewardTokenId);
rewardIndex++;
}
}
_rewardsAssigned = true;
}
function getWinners() external view returns (address[] memory) {
return _winners;
}
function getReward(address winner) public view returns (uint256) {
return _winnersRewards[winner];
}
function claimReward() external returns (uint256) {
uint256 tokenId = getReward(msg.sender);
require(tokenId != 0 && !exists(tokenId), "GigaChad: forbidden");
_mint(msg.sender, tokenId);
return tokenId;
}
function like(uint256 tokenId) external payable {
require(_exists(tokenId), "GigaChad: nonexistent token");
require(msg.value >= LIKE_PRICE, "GigaChad: value sent is below the price");
_likes[tokenId] = _likes[tokenId] + 1;
_voterTickets.push(msg.sender);
_tokenTickets.push(tokenId);
}
function getLikes(uint256 tokenId) external view returns (uint256) {
require(_exists(tokenId), "GigaChad: nonexistent token");
return _likes[tokenId];
}
function getTop() public view returns (uint256[] memory tokenIds, uint256[] memory likes) {
uint256 currentSupply = totalSupply();
uint256[] memory allLikes = new uint256[](currentSupply);
uint256[] memory allTokenIds = new uint256[](currentSupply);
uint256 count = 0;
for (uint256 tokenIndex = 0; tokenIndex < currentSupply; tokenIndex++) {
uint256 tokenId = tokenByIndex(tokenIndex);
allLikes[tokenIndex] = _likes[tokenId];
allTokenIds[tokenIndex] = tokenId;
if (_likes[tokenId] > 0) {
count++;
}
}
sortWith(allLikes, allTokenIds);
likes = new uint256[](count);
tokenIds = new uint256[](count);
if (count > 0) {
uint256 index = 0;
for (uint256 i = allLikes.length - 1; i >= allLikes.length - count; i--) {
likes[index] = allLikes[i];
tokenIds[index] = allTokenIds[i];
index++;
}
}
return (tokenIds, likes);
}
function withdraw() external {
require(msg.sender == _foundationAddress || msg.sender == _authorAddress || msg.sender == owner(), "GigaChad: forbidden");
uint256 balance = address(this).balance;
uint256 authorValue = balance * AUTHOR_SHARE / 100;
uint256 foundationValue = balance - authorValue;
_foundationAddress.transfer(foundationValue);
_authorAddress.transfer(authorValue);
}
}// 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 () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), 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 {
emit OwnershipTransferred(_owner, address(0));
_owner = 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");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _owners;
// Mapping owner address to token count
mapping (address => uint256) private _balances;
// Mapping from token ID to approved address
mapping (uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping (address => mapping (address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor (string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return interfaceId == type(IERC721).interfaceId
|| interfaceId == type(IERC721Metadata).interfaceId
|| super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0
? string(abi.encodePacked(baseURI, tokenId.toString()))
: '';
}
/**
* @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
* in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(address from, address to, uint256 tokenId) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
_mint(to, tokenId);
require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(address from, address to, uint256 tokenId) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
private returns (bool)
{
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
// solhint-disable-next-line no-inline-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}// 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;
/**
* @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 "../ERC721.sol";
import "./IERC721Enumerable.sol";
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId
|| super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../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;
/**
* @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;
// solhint-disable-next-line no-inline-assembly
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");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(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");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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
// solhint-disable-next-line no-inline-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;
/*
* @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) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// 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 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);
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "byzantium",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address payable","name":"foundationAddress","type":"address"},{"internalType":"address payable","name":"authorAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"LIKE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"assignRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getLikes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"winner","type":"address"}],"name":"getReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleCountdown","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokensForSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTop","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"likes","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWinners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"init","outputs":[],"stateMutability":"nonpayable","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":"like","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"ownersOf","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60e060405260006080908152600560a052600a60c0526200002590600b9060036200064b565b50600c8054600160a060020a0319163017815560408051610f4081018252600181526002602080830191909152600382840152600460608084019190915260056080840152600660a0840152600760c0840152600860e08401526009610100840152600a610120840152600b610140840152610160830194909452600d610180830152600e6101a0830152600f6101c083015260106101e083015260116102008301526012610220830152601361024083018190526014610260840152601561028084015260166102a084015260176102c084015260186102e08401526019610300840152601a610320840152601b610340840152601c610360840152601d610380840152601e6103a0840152601f6103c08401526103e08301919091526021610400830152602261042083015260236104408301526024610460830152602561048083015260266104a083015260276104c083015260286104e08301526029610500830152602a610520830152602b610540830152602c610560830152602d610580830152602e6105a0830152602f6105c083015260306105e08301526031610600830152603261062083015260336106408301526034610660830152603561068083015260366106a083015260376106c083015260386106e08301526039610700830152603a610720830152603b610740830152603c610760830152603d610780830152603e6107a0830152603f6107c08301526107e08201929092526041610800820152604261082082015260436108408201526044610860820152604561088082015260466108a082015260476108c082015260486108e08201526049610900820152604a610920820152604b610940820152604c610960820152604d610980820152604e6109a0820152604f6109c082015260506109e08201526051610a008201526052610a208201526053610a408201526054610a608201526055610a808201526056610aa08201526057610ac08201526058610ae08201526059610b00820152605a610b20820152605b610b40820152605c610b60820152605d610b80820152605e610ba0820152605f610bc0820152610be08101929092526061610c008301526062610c208301526063610c408301526064610c608301526065610c808301526066610ca08301526067610cc08301526068610ce08301526069610d00830152606a610d20830152606b610d40830152606c610d60830152606d610d80830152606e610da0830152606f610dc08301526070610de08301526071610e008301526072610e208301526073610e408301526074610e608301526075610e808301526076610ea08301526077610ec08301526078610ee08301526079610f00830152607a610f2083018190526200042392906200064b565b506040805161028081018252607b8152607c6020820152607d91810191909152607e6060820152607f60808083019190915260a0820152608160c0820152608260e08201526083610100820152608461012082015260856101408201526086610160820152608761018082015260886101a082015260896101c0820152608a6101e0820152608b610200820152608c610220820152608d610240820152608e610260820152620004d790601490816200064b565b506015805460ff19169055348015620004ef57600080fd5b50604051620043dd380380620043dd833981016040819052620005129162000751565b6040518060400160405280600881526020017f47696761436861640000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f474743484400000000000000000000000000000000000000000000000000000081525060006200059962000647640100000000026401000000009004565b60008054600160a060020a031916600160a060020a0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151620005f8906001906020850190620006a0565b5080516200060e906002906020840190620006a0565b5050600d8054600160a060020a03948516600160a060020a031991821617909155600e80549390941692169190911790915550620007de565b3390565b8280548282559060005260206000209081019282156200068e579160200282015b828111156200068e578251829060ff169055916020019190600101906200066c565b506200069c9291506200071d565b5090565b828054620006ae9062000788565b90600052602060002090601f016020900481019282620006d257600085556200068e565b82601f10620006ed57805160ff19168380011785556200068e565b828001600101855582156200068e579182015b828111156200068e57825182559160200191906001019062000700565b5b808211156200069c57600081556001016200071e565b8051600160a060020a03811681146200074c57600080fd5b919050565b6000806040838503121562000764578182fd5b6200076f8362000734565b91506200077f6020840162000734565b90509250929050565b6002810460018216806200079d57607f821691505b60208210811415620007d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b613bef80620007ee6000396000f3fe60806040526004361061022b576000357c0100000000000000000000000000000000000000000000000000000000900480638462151c11610135578063c87b56dd116100bd578063e75722301161008c578063e7572230146105db578063e82935da146105fb578063e985e9c51461060e578063ee5180d61461062e578063f2fde38b146106435761022b565b8063c87b56dd1461057c578063da056fba1461059c578063df15c37e146105b1578063e1c7392a146105c65761022b565b8063a209081e11610104578063a209081e146104e7578063a22cb46514610507578063b88a802f14610527578063b88d4fde1461053c578063c00007b01461055c5761022b565b80638462151c1461047d5780638da5cb5b146104aa57806395d89b41146104bf578063a0712d68146104d45761022b565b806342842e0e116101b85780635ff2f2e8116101875780635ff2f2e8146103e65780636352211e1461041357806365e4e1c01461043357806370a0823114610448578063715018a6146104685761022b565b806342842e0e146103635780634f558e79146103835780634f6ccce7146103a35780635c2b1119146103c35761022b565b8063095ea7b3116101ff578063095ea7b3146102cc57806318160ddd146102ec57806323b872dd1461030e5780632f745c591461032e5780633ccfd60b1461034e5761022b565b806264010d1461023057806301ffc9a71461024757806306fdde031461027d578063081812fc1461029f575b600080fd5b34801561023c57600080fd5b50610245610663565b005b34801561025357600080fd5b50610267610262366004612f27565b610d00565b6040516102749190613105565b60405180910390f35b34801561028957600080fd5b50610292610d13565b6040516102749190613110565b3480156102ab57600080fd5b506102bf6102ba366004612f5f565b610da6565b6040516102749190613027565b3480156102d857600080fd5b506102456102e7366004612e57565b610dec565b3480156102f857600080fd5b50610301610e8a565b60405161027491906138a7565b34801561031a57600080fd5b50610245610329366004612d2a565b610e90565b34801561033a57600080fd5b50610301610349366004612e57565b610ecb565b34801561035a57600080fd5b50610245610f20565b34801561036f57600080fd5b5061024561037e366004612d2a565b61102a565b34801561038f57600080fd5b5061026761039e366004612f5f565b611045565b3480156103af57600080fd5b506103016103be366004612f5f565b611050565b3480156103cf57600080fd5b506103d86110b1565b6040516102749291906130d7565b3480156103f257600080fd5b50610406610401366004612e80565b6113f6565b6040516102749190613077565b34801561041f57600080fd5b506102bf61042e366004612f5f565b61156f565b34801561043f57600080fd5b506103016115a7565b34801561045457600080fd5b50610301610463366004612cde565b6115ad565b34801561047457600080fd5b506102456115f4565b34801561048957600080fd5b5061049d610498366004612cde565b611680565b60405161027491906130c4565b3480156104b657600080fd5b506102bf611744565b3480156104cb57600080fd5b50610292611753565b61049d6104e2366004612f5f565b611762565b3480156104f357600080fd5b50610301610502366004612f5f565b6119bb565b34801561051357600080fd5b50610245610522366004612e1d565b6119f8565b34801561053357600080fd5b50610301611ac9565b34801561054857600080fd5b50610245610557366004612d65565b611b1a565b34801561056857600080fd5b50610301610577366004612cde565b611b56565b34801561058857600080fd5b50610292610597366004612f5f565b611b71565b3480156105a857600080fd5b50610301611bf7565b3480156105bd57600080fd5b50610406611c21565b3480156105d257600080fd5b50610245611c82565b3480156105e757600080fd5b506103016105f6366004612f5f565b611d28565b610245610609366004612f5f565b611def565b34801561061a57600080fd5b50610267610629366004612cf8565b611edc565b34801561063a57600080fd5b50610301611f0a565b34801561064f57600080fd5b5061024561065e366004612cde565b611f15565b60155460ff16156106925760405160e560020a62461bcd028152600401610689906132a8565b60405180910390fd5b63613b8f104210156106b95760405160e560020a62461bcd028152600401610689906132a8565b6000805b600a8110156109d2575b600f54158015906106d9575060145482105b156109c05760006106fd60006001600f805490506106f79190613a03565b84611fdb565b90506000600f82815481106107255760e060020a634e487b7102600052603260045260246000fd5b6000918252602080832090910154600160a060020a031680835260129091526040909120549091506108d9576000601485815481106107775760e060020a634e487b7102600052603260045260246000fd5b6000918252602080832090910154600160a060020a0385168084526012909252604083208190556011805460018181018355919094527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c689093018054600160a060020a031916909217909155600f8054919350916107f491613a03565b815481106108155760e060020a634e487b7102600052603260045260246000fd5b600091825260209091200154600f8054600160a060020a0390921691859081106108525760e060020a634e487b7102600052603260045260246000fd5b9060005260206000200160006101000a815481600160a060020a030219169083600160a060020a03160217905550600f8054806108a25760e060020a634e487b7102600052603160045260246000fd5b60008281526020902081016000199081018054600160a060020a0319169055019055846108ce81613aea565b9550505050506109c0565b600f80546108e990600190613a03565b8154811061090a5760e060020a634e487b7102600052603260045260246000fd5b600091825260209091200154600f8054600160a060020a0390921691849081106109475760e060020a634e487b7102600052603260045260246000fd5b9060005260206000200160006101000a815481600160a060020a030219169083600160a060020a03160217905550600f8054806109975760e060020a634e487b7102600052603160045260246000fd5b60008281526020902081016000199081018054600160a060020a031916905501905550506106c7565b806109ca81613aea565b9150506106bd565b5060005b600a811015610c7c575b601054158015906109f2575060145482105b15610c6a576000610a10600060016010805490506106f79190613a03565b9050600060108281548110610a385760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015490506000610a508261156f565b600160a060020a038116600090815260126020526040902054909150610bbe57600060148681548110610a965760e060020a634e487b7102600052603260045260246000fd5b6000918252602080832090910154600160a060020a0385168084526012909252604083208190556011805460018181018355919094527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c689093018054600160a060020a0319169092179091556010805491935091610b1391613a03565b81548110610b345760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015460108581548110610b635760e060020a634e487b7102600052603260045260246000fd5b6000918252602090912001556010805480610b915760e060020a634e487b7102600052603160045260246000fd5b600190038181906000526020600020016000905590558580610bb290613aea565b96505050505050610c6a565b60108054610bce90600190613a03565b81548110610bef5760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015460108481548110610c1e5760e060020a634e487b7102600052603260045260246000fd5b6000918252602090912001556010805480610c4c5760e060020a634e487b7102600052603160045260246000fd5b600190038181906000526020600020016000905590555050506109e0565b80610c7481613aea565b9150506109d6565b50601454811015610cf0575b601454811015610cf057600060148281548110610cb85760e060020a634e487b7102600052603260045260246000fd5b600091825260209091200154600d54909150610cdd90600160a060020a031682612037565b81610ce781613aea565b92505050610c88565b506015805460ff19166001179055565b6000610d0b8261211c565b90505b919050565b606060018054610d2290613a73565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4e90613a73565b8015610d9b5780601f10610d7057610100808354040283529160200191610d9b565b820191906000526020600020905b815481529060010190602001808311610d7e57829003601f168201915b505050505090505b90565b6000610db18261215a565b610dd05760405160e560020a62461bcd028152600401610689906135e7565b50600090815260056020526040902054600160a060020a031690565b6000610df78261156f565b905080600160a060020a031683600160a060020a03161415610e2e5760405160e560020a62461bcd02815260040161068990613733565b80600160a060020a0316610e40612177565b600160a060020a03161480610e5c5750610e5c81610629612177565b610e7b5760405160e560020a62461bcd02815260040161068990613407565b610e85838361217b565b505050565b60095490565b610ea1610e9b612177565b826121e9565b610ec05760405160e560020a62461bcd028152600401610689906137ed565b610e85838383612269565b6000610ed6836115ad565b8210610ef75760405160e560020a62461bcd02815260040161068990613123565b50600160a060020a03919091166000908152600760209081526040808320938352929052205490565b600d54600160a060020a0316331480610f435750600e54600160a060020a031633145b80610f665750610f51611744565b600160a060020a031633600160a060020a0316145b610f855760405160e560020a62461bcd028152600401610689906132a8565b303160006064610f9660328461398c565b610fa09190613978565b90506000610fae8284613a03565b600d54604051919250600160a060020a03169082156108fc029083906000818181858888f19350505050158015610fe9573d6000803e3d6000fd5b50600e54604051600160a060020a039091169083156108fc029084906000818181858888f19350505050158015611024573d6000803e3d6000fd5b50505050565b610e8583838360405180602001604052806000815250611b1a565b6000610d0b8261215a565b600061105a610e8a565b821061107b5760405160e560020a62461bcd0281526004016106899061384a565b6009828154811061109f5760e060020a634e487b7102600052603260045260246000fd5b90600052602060002001549050919050565b60608060006110be610e8a565b905060008167ffffffffffffffff8111156110ec5760e060020a634e487b7102600052604160045260246000fd5b604051908082528060200260200182016040528015611115578160200160208202803683370190505b50905060008267ffffffffffffffff8111156111445760e060020a634e487b7102600052604160045260246000fd5b60405190808252806020026020018201604052801561116d578160200160208202803683370190505b5090506000805b8481101561123457600061118782611050565b905060166000828152602001908152602001600020548583815181106111c05760e060020a634e487b7102600052603260045260246000fd5b602002602001018181525050808483815181106111f05760e060020a634e487b7102600052603260045260246000fd5b60209081029190910181019190915260008281526016909152604090205415611221578261121d81613aea565b9350505b508061122c81613aea565b915050611174565b5061123f838361239c565b8067ffffffffffffffff8111156112695760e060020a634e487b7102600052604160045260246000fd5b604051908082528060200260200182016040528015611292578160200160208202803683370190505b5094508067ffffffffffffffff8111156112bf5760e060020a634e487b7102600052604160045260246000fd5b6040519080825280602002602001820160405280156112e8578160200160208202803683370190505b50955080156113ee57600080600185516113029190613a03565b90505b8285516113129190613a03565b81106113eb5784818151811061133b5760e060020a634e487b7102600052603260045260246000fd5b60200260200101518783815181106113665760e060020a634e487b7102600052603260045260246000fd5b6020026020010181815250508381815181106113955760e060020a634e487b7102600052603260045260246000fd5b60200260200101518883815181106113c05760e060020a634e487b7102600052603260045260246000fd5b6020908102919091010152816113d581613aea565b92505080806113e390613a64565b915050611305565b50505b505050509091565b60606000825167ffffffffffffffff8111156114255760e060020a634e487b7102600052604160045260246000fd5b60405190808252806020026020018201604052801561144e578160200160208202803683370190505b50905060005b8351811015611568576114908482815181106114835760e060020a634e487b7102600052603260045260246000fd5b602002602001015161215a565b15611510576114c88482815181106114bb5760e060020a634e487b7102600052603260045260246000fd5b602002602001015161156f565b8282815181106114eb5760e060020a634e487b7102600052603260045260246000fd5b6020026020010190600160a060020a03169081600160a060020a031681525050611556565b60008282815181106115355760e060020a634e487b7102600052603260045260246000fd5b6020026020010190600160a060020a03169081600160a060020a0316815250505b8061156081613aea565b915050611454565b5092915050565b600081815260036020526040812054600160a060020a031680610d0b5760405160e560020a62461bcd028152600401610689906134c1565b60135490565b6000600160a060020a0382166115d85760405160e560020a62461bcd02815260040161068990613464565b50600160a060020a031660009081526004602052604090205490565b6115fc612177565b600160a060020a031661160d611744565b600160a060020a0316146116365760405160e560020a62461bcd02815260040161068990613644565b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360008054600160a060020a0319169055565b6060600061168d836115ad565b905060008167ffffffffffffffff8111156116bb5760e060020a634e487b7102600052604160045260246000fd5b6040519080825280602002602001820160405280156116e4578160200160208202803683370190505b50905060005b8281101561173c576116fc8582610ecb565b82828151811061171f5760e060020a634e487b7102600052603260045260246000fd5b60209081029190910101528061173481613aea565b9150506116ea565b509392505050565b600054600160a060020a031690565b606060028054610d2290613a73565b60135460609082111561178a5760405160e560020a62461bcd0281526004016106899061351e565b63612fb1904210156117b15760405160e560020a62461bcd02815260040161068990613790565b6117ba82611d28565b3410156117dc5760405160e560020a62461bcd0281526004016106899061358a565b60008267ffffffffffffffff8111156118085760e060020a634e487b7102600052604160045260246000fd5b604051908082528060200260200182016040528015611831578160200160208202803683370190505b50905060005b83811015611568576000611858600060016013805490506106f79190613a03565b90506000601382815481106118805760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015490506118973382612037565b808484815181106118bb5760e060020a634e487b7102600052603260045260246000fd5b6020908102919091010152601380546118d690600190613a03565b815481106118f75760e060020a634e487b7102600052603260045260246000fd5b9060005260206000200154601383815481106119265760e060020a634e487b7102600052603260045260246000fd5b6000918252602090912001556013805461194290600190613a03565b815481106119635760e060020a634e487b7102600052603260045260246000fd5b600091825260208220015560138054806119905760e060020a634e487b7102600052603160045260246000fd5b60019003818190600052602060002001600090559055505080806119b390613aea565b915050611837565b60006119c68261215a565b6119e55760405160e560020a62461bcd0281526004016106899061323a565b5060009081526016602052604090205490565b611a00612177565b600160a060020a031682600160a060020a03161415611a345760405160e560020a62461bcd0281526004016106899061333c565b8060066000611a41612177565b600160a060020a03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611a85612177565b600160a060020a03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611abd9190613105565b60405180910390a35050565b600080611ad533611b56565b90508015801590611aec5750611aea81611045565b155b611b0b5760405160e560020a62461bcd028152600401610689906132a8565b611b153382612037565b905090565b611b2b611b25612177565b836121e9565b611b4a5760405160e560020a62461bcd028152600401610689906137ed565b611024848484846123b6565b600160a060020a031660009081526012602052604090205490565b6060611b7c8261215a565b611b9b5760405160e560020a62461bcd028152600401610689906136d6565b6000611ba56123ec565b90506000815111611bc55760405180602001604052806000815250611bf0565b80611bcf8461240c565b604051602001611be0929190612fdd565b6040516020818303038152906040525b9392505050565b600063612fb1904210611c0c57506000610da3565b611c1a4263612fb190613a03565b9050610da3565b60606011805480602002602001604051908101604052809291908181526020018280548015610d9b57602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311611c5b575050505050905090565b611c8a612177565b600160a060020a0316611c9b611744565b600160a060020a031614611cc45760405160e560020a62461bcd02815260040161068990613644565b6000611cce610e8a565b90508015611cf15760405160e560020a62461bcd028152600401610689906132a8565b608f5b60988111611d2457600d54611d1290600160a060020a031682612037565b80611d1c81613aea565b915050611cf4565b5050565b60006003821115611d4e5760405160e560020a62461bcd02815260040161068990613373565b601354821115611d735760405160e560020a62461bcd0281526004016106899061351e565b6000611d8783670de0b6b3a764000061398c565b905060006064600b611d9a600187613a03565b81548110611dbb5760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015483611dd1919061398c565b611ddb9190613978565b9050611de78183613a03565b949350505050565b611df88161215a565b611e175760405160e560020a62461bcd0281526004016106899061323a565b662386f26fc10000341015611e415760405160e560020a62461bcd0281526004016106899061358a565b600081815260166020526040902054611e5b906001613932565b600082815260166020526040812091909155600f805460018181019092557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802018054600160a060020a031916331790556010805491820181559091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720155565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205460ff1690565b662386f26fc1000081565b611f1d612177565b600160a060020a0316611f2e611744565b600160a060020a031614611f575760405160e560020a62461bcd02815260040161068990613644565b600160a060020a038116611f805760405160e560020a62461bcd028152600401610689906131dd565b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b600083611fe9846001613932565b611ff39190613a03565b824443404260405160200161200b949392919061300c565b60408051601f19818403018152919052805160209091012061202d9190613afe565b611de79085613932565b600160a060020a0382166120605760405160e560020a62461bcd02815260040161068990613555565b6120698161215a565b156120895760405160e560020a62461bcd02815260040161068990613271565b61209560008383612580565b600160a060020a03821660009081526004602052604081208054600192906120be908490613932565b90915550506000818152600360205260408082208054600160a060020a031916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600160e060020a031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610d0b5750610d0b8261258b565b600090815260036020526040902054600160a060020a0316151590565b3390565b60008181526005602052604090208054600160a060020a031916600160a060020a03841690811790915581906121b08261156f565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121f48261215a565b6122135760405160e560020a62461bcd028152600401610689906133aa565b600061221e8361156f565b905080600160a060020a031684600160a060020a03161480612259575083600160a060020a031661224e84610da6565b600160a060020a0316145b80611de75750611de78185611edc565b82600160a060020a031661227c8261156f565b600160a060020a0316146122a55760405160e560020a62461bcd02815260040161068990613679565b600160a060020a0382166122ce5760405160e560020a62461bcd028152600401610689906132df565b6122d9838383612580565b6122e460008261217b565b600160a060020a038316600090815260046020526040812080546001929061230d908490613a03565b9091555050600160a060020a038216600090815260046020526040812080546001929061233b908490613932565b90915550506000818152600360205260408082208054600160a060020a031916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611d2482826000600186516123b19190613a03565b6125fd565b6123c1848484612269565b6123cd848484846128ac565b6110245760405160e560020a62461bcd02815260040161068990613180565b6060604051806080016040528060438152602001613b7760439139905090565b60608161244d575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610d0e565b8160005b8115612477578061246181613aea565b91506124709050600a83613978565b9150612451565b60008167ffffffffffffffff8111156124a35760e060020a634e487b7102600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124cd576020820181803683370190505b5090505b8415611de7576124e2600183613a03565b91506124ef600a86613afe565b6124fa906030613932565b7f01000000000000000000000000000000000000000000000000000000000000000281838151811061253f5760e060020a634e487b7102600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612579600a86613978565b94506124d1565b610e858383836129ff565b6000600160e060020a031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806125ee5750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610d0b5750610d0b82612a88565b81818082141561260e575050611024565b600086600261261d87876139ab565b612627919061394a565b61263190876138da565b815181106126525760e060020a634e487b7102600052603260045260246000fd5b602002602001015190505b81831361287b575b808784815181106126895760e060020a634e487b7102600052603260045260246000fd5b602002602001015110156126a957826126a181613ab1565b935050612665565b8682815181106126cc5760e060020a634e487b7102600052603260045260246000fd5b60200260200101518110156126ed57816126e581613a46565b9250506126a9565b818313612876578682815181106127175760e060020a634e487b7102600052603260045260246000fd5b60200260200101518784815181106127425760e060020a634e487b7102600052603260045260246000fd5b602002602001015188858151811061276d5760e060020a634e487b7102600052603260045260246000fd5b602002602001018985815181106127975760e060020a634e487b7102600052603260045260246000fd5b60200260200101828152508281525050508582815181106127cb5760e060020a634e487b7102600052603260045260246000fd5b60200260200101518684815181106127f65760e060020a634e487b7102600052603260045260246000fd5b60200260200101518785815181106128215760e060020a634e487b7102600052603260045260246000fd5b6020026020010188858151811061284b5760e060020a634e487b7102600052603260045260246000fd5b6020908102919091010191909152528261286481613ab1565b935050818061287290613a46565b9250505b61265d565b8185121561288f5761288f878787856125fd565b838312156128a3576128a3878785876125fd565b50505050505050565b60006128c084600160a060020a0316612aba565b156129f45783600160a060020a031663150b7a026128dc612177565b8786866040518563ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040161291a949392919061303b565b602060405180830381600087803b15801561293457600080fd5b505af1925050508015612964575060408051601f3d908101601f1916820190925261296191810190612f43565b60015b6129c1573d808015612992576040519150601f19603f3d011682016040523d82523d6000602084013e612997565b606091505b5080516129b95760405160e560020a62461bcd02815260040161068990613180565b805181602001fd5b600160e060020a0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611de7565b506001949350505050565b612a0a838383610e85565b600160a060020a038316612a2657612a2181612ac0565b612a49565b81600160a060020a031683600160a060020a031614612a4957612a498382612b04565b600160a060020a038216612a6557612a6081612ba1565b610e85565b82600160a060020a031682600160a060020a031614610e8557610e858282612c83565b600160e060020a031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b3b151590565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b60006001612b11846115ad565b612b1b9190613a03565b600083815260086020526040902054909150808214612b6e57600160a060020a03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b506000918252600860209081526040808420849055600160a060020a039094168352600781528383209183525290812055565b600954600090612bb390600190613a03565b6000838152600a602052604081205460098054939450909284908110612bec5760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015490508060098381548110612c1e5760e060020a634e487b7102600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612c675760e060020a634e487b7102600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612c8e836115ad565b600160a060020a039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b8035600160a060020a0381168114610d0e57600080fd5b600060208284031215612cef578081fd5b611bf082612cc7565b60008060408385031215612d0a578081fd5b612d1383612cc7565b9150612d2160208401612cc7565b90509250929050565b600080600060608486031215612d3e578081fd5b612d4784612cc7565b9250612d5560208501612cc7565b9150604084013590509250925092565b60008060008060808587031215612d7a578081fd5b612d8385612cc7565b93506020612d92818701612cc7565b935060408601359250606086013567ffffffffffffffff80821115612db5578384fd5b818801915088601f830112612dc8578384fd5b813581811115612dda57612dda613b44565b612dec601f8201601f191685016138b0565b91508082528984828501011115612e01578485fd5b8084840185840137810190920192909252939692955090935050565b60008060408385031215612e2f578182fd5b612e3883612cc7565b915060208301358015158114612e4c578182fd5b809150509250929050565b60008060408385031215612e69578182fd5b612e7283612cc7565b946020939093013593505050565b60006020808385031215612e92578182fd5b823567ffffffffffffffff80821115612ea9578384fd5b818501915085601f830112612ebc578384fd5b813581811115612ece57612ece613b44565b8381029150612ede8483016138b0565b8181528481019084860184860187018a1015612ef8578788fd5b8795505b83861015612f1a578035835260019590950194918601918601612efc565b5098975050505050505050565b600060208284031215612f38578081fd5b8135611bf081613b5d565b600060208284031215612f54578081fd5b8151611bf081613b5d565b600060208284031215612f70578081fd5b5035919050565b6000815180845260208085019450808401835b83811015612fa657815187529582019590820190600101612f8a565b509495945050505050565b60008151808452612fc9816020860160208601613a1a565b601f01601f19169290920160200192915050565b60008351612fef818460208801613a1a565b835190830190613003818360208801613a1a565b01949350505050565b93845260208401929092526040830152606082015260800190565b600160a060020a0391909116815260200190565b6000600160a060020a0380871683528086166020840152508360408301526080606083015261306d6080830184612fb1565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156130b8578351600160a060020a031683529284019291840191600101613093565b50909695505050505050565b600060208252611bf06020830184612f77565b6000604082526130ea6040830185612f77565b82810360208401526130fc8185612f77565b95945050505050565b901515815260200190565b600060208252611bf06020830184612fb1565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f47696761436861643a206e6f6e6578697374656e7420746f6b656e0000000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526013908201527f47696761436861643a20666f7262696464656e00000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601a908201527f47696761436861643a206e6f6e6578697374656e74207061636b000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f47696761436861643a206e6f7420656e6f75676820746f6b656e730000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526027908201527f47696761436861643a2076616c75652073656e742069732062656c6f7720746860408201527f6520707269636500000000000000000000000000000000000000000000000000606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f47696761436861643a2073616c6520686173206e6f742073746172746564207960408201527f6574000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b90815260200190565b60405181810167ffffffffffffffff811182821017156138d2576138d2613b44565b604052919050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0384138115161561391457613914613b12565b8260ff60020a03841281161561392c5761392c613b12565b50500190565b6000821982111561394557613945613b12565b500190565b60008261395957613959613b2b565b60ff60020a82146000198414161561397357613973613b12565b500590565b60008261398757613987613b2b565b500490565b60008160001904831182151516156139a6576139a6613b12565b500290565b60008083128360ff60020a018312811516156139c9576139c9613b12565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156139fd576139fd613b12565b50500390565b600082821015613a1557613a15613b12565b500390565b60005b83811015613a35578181015183820152602001613a1d565b838111156110245750506000910152565b600060ff60020a821415613a5c57613a5c613b12565b506000190190565b600081613a5c57613a5c613b12565b600281046001821680613a8757607f821691505b60208210811415613aab5760e060020a634e487b7102600052602260045260246000fd5b50919050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ae357613ae3613b12565b5060010190565b6000600019821415613ae357613ae3613b12565b600082613b0d57613b0d613b2b565b500690565b60e060020a634e487b7102600052601160045260246000fd5b60e060020a634e487b7102600052601260045260246000fd5b60e060020a634e487b7102600052604160045260246000fd5b600160e060020a031981168114613b7357600080fd5b5056fe697066733a2f2f6261667962656964367871713233696d34736266613668746d726d61333479756d77657474667a6a34686e706d6e7776656f73336c77707a3537342fa2646970667358221220f3917e014f940123cc3649a70aada44016277bec4facf673f8c96ec2f03f891b64736f6c63430008000033000000000000000000000000ac8deda9de9509f9ffb09a23f6faa1502572d1c100000000000000000000000049ea043ead04744705862e1c87357a6a789d377b
Deployed Bytecode
0x60806040526004361061022b576000357c0100000000000000000000000000000000000000000000000000000000900480638462151c11610135578063c87b56dd116100bd578063e75722301161008c578063e7572230146105db578063e82935da146105fb578063e985e9c51461060e578063ee5180d61461062e578063f2fde38b146106435761022b565b8063c87b56dd1461057c578063da056fba1461059c578063df15c37e146105b1578063e1c7392a146105c65761022b565b8063a209081e11610104578063a209081e146104e7578063a22cb46514610507578063b88a802f14610527578063b88d4fde1461053c578063c00007b01461055c5761022b565b80638462151c1461047d5780638da5cb5b146104aa57806395d89b41146104bf578063a0712d68146104d45761022b565b806342842e0e116101b85780635ff2f2e8116101875780635ff2f2e8146103e65780636352211e1461041357806365e4e1c01461043357806370a0823114610448578063715018a6146104685761022b565b806342842e0e146103635780634f558e79146103835780634f6ccce7146103a35780635c2b1119146103c35761022b565b8063095ea7b3116101ff578063095ea7b3146102cc57806318160ddd146102ec57806323b872dd1461030e5780632f745c591461032e5780633ccfd60b1461034e5761022b565b806264010d1461023057806301ffc9a71461024757806306fdde031461027d578063081812fc1461029f575b600080fd5b34801561023c57600080fd5b50610245610663565b005b34801561025357600080fd5b50610267610262366004612f27565b610d00565b6040516102749190613105565b60405180910390f35b34801561028957600080fd5b50610292610d13565b6040516102749190613110565b3480156102ab57600080fd5b506102bf6102ba366004612f5f565b610da6565b6040516102749190613027565b3480156102d857600080fd5b506102456102e7366004612e57565b610dec565b3480156102f857600080fd5b50610301610e8a565b60405161027491906138a7565b34801561031a57600080fd5b50610245610329366004612d2a565b610e90565b34801561033a57600080fd5b50610301610349366004612e57565b610ecb565b34801561035a57600080fd5b50610245610f20565b34801561036f57600080fd5b5061024561037e366004612d2a565b61102a565b34801561038f57600080fd5b5061026761039e366004612f5f565b611045565b3480156103af57600080fd5b506103016103be366004612f5f565b611050565b3480156103cf57600080fd5b506103d86110b1565b6040516102749291906130d7565b3480156103f257600080fd5b50610406610401366004612e80565b6113f6565b6040516102749190613077565b34801561041f57600080fd5b506102bf61042e366004612f5f565b61156f565b34801561043f57600080fd5b506103016115a7565b34801561045457600080fd5b50610301610463366004612cde565b6115ad565b34801561047457600080fd5b506102456115f4565b34801561048957600080fd5b5061049d610498366004612cde565b611680565b60405161027491906130c4565b3480156104b657600080fd5b506102bf611744565b3480156104cb57600080fd5b50610292611753565b61049d6104e2366004612f5f565b611762565b3480156104f357600080fd5b50610301610502366004612f5f565b6119bb565b34801561051357600080fd5b50610245610522366004612e1d565b6119f8565b34801561053357600080fd5b50610301611ac9565b34801561054857600080fd5b50610245610557366004612d65565b611b1a565b34801561056857600080fd5b50610301610577366004612cde565b611b56565b34801561058857600080fd5b50610292610597366004612f5f565b611b71565b3480156105a857600080fd5b50610301611bf7565b3480156105bd57600080fd5b50610406611c21565b3480156105d257600080fd5b50610245611c82565b3480156105e757600080fd5b506103016105f6366004612f5f565b611d28565b610245610609366004612f5f565b611def565b34801561061a57600080fd5b50610267610629366004612cf8565b611edc565b34801561063a57600080fd5b50610301611f0a565b34801561064f57600080fd5b5061024561065e366004612cde565b611f15565b60155460ff16156106925760405160e560020a62461bcd028152600401610689906132a8565b60405180910390fd5b63613b8f104210156106b95760405160e560020a62461bcd028152600401610689906132a8565b6000805b600a8110156109d2575b600f54158015906106d9575060145482105b156109c05760006106fd60006001600f805490506106f79190613a03565b84611fdb565b90506000600f82815481106107255760e060020a634e487b7102600052603260045260246000fd5b6000918252602080832090910154600160a060020a031680835260129091526040909120549091506108d9576000601485815481106107775760e060020a634e487b7102600052603260045260246000fd5b6000918252602080832090910154600160a060020a0385168084526012909252604083208190556011805460018181018355919094527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c689093018054600160a060020a031916909217909155600f8054919350916107f491613a03565b815481106108155760e060020a634e487b7102600052603260045260246000fd5b600091825260209091200154600f8054600160a060020a0390921691859081106108525760e060020a634e487b7102600052603260045260246000fd5b9060005260206000200160006101000a815481600160a060020a030219169083600160a060020a03160217905550600f8054806108a25760e060020a634e487b7102600052603160045260246000fd5b60008281526020902081016000199081018054600160a060020a0319169055019055846108ce81613aea565b9550505050506109c0565b600f80546108e990600190613a03565b8154811061090a5760e060020a634e487b7102600052603260045260246000fd5b600091825260209091200154600f8054600160a060020a0390921691849081106109475760e060020a634e487b7102600052603260045260246000fd5b9060005260206000200160006101000a815481600160a060020a030219169083600160a060020a03160217905550600f8054806109975760e060020a634e487b7102600052603160045260246000fd5b60008281526020902081016000199081018054600160a060020a031916905501905550506106c7565b806109ca81613aea565b9150506106bd565b5060005b600a811015610c7c575b601054158015906109f2575060145482105b15610c6a576000610a10600060016010805490506106f79190613a03565b9050600060108281548110610a385760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015490506000610a508261156f565b600160a060020a038116600090815260126020526040902054909150610bbe57600060148681548110610a965760e060020a634e487b7102600052603260045260246000fd5b6000918252602080832090910154600160a060020a0385168084526012909252604083208190556011805460018181018355919094527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c689093018054600160a060020a0319169092179091556010805491935091610b1391613a03565b81548110610b345760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015460108581548110610b635760e060020a634e487b7102600052603260045260246000fd5b6000918252602090912001556010805480610b915760e060020a634e487b7102600052603160045260246000fd5b600190038181906000526020600020016000905590558580610bb290613aea565b96505050505050610c6a565b60108054610bce90600190613a03565b81548110610bef5760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015460108481548110610c1e5760e060020a634e487b7102600052603260045260246000fd5b6000918252602090912001556010805480610c4c5760e060020a634e487b7102600052603160045260246000fd5b600190038181906000526020600020016000905590555050506109e0565b80610c7481613aea565b9150506109d6565b50601454811015610cf0575b601454811015610cf057600060148281548110610cb85760e060020a634e487b7102600052603260045260246000fd5b600091825260209091200154600d54909150610cdd90600160a060020a031682612037565b81610ce781613aea565b92505050610c88565b506015805460ff19166001179055565b6000610d0b8261211c565b90505b919050565b606060018054610d2290613a73565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4e90613a73565b8015610d9b5780601f10610d7057610100808354040283529160200191610d9b565b820191906000526020600020905b815481529060010190602001808311610d7e57829003601f168201915b505050505090505b90565b6000610db18261215a565b610dd05760405160e560020a62461bcd028152600401610689906135e7565b50600090815260056020526040902054600160a060020a031690565b6000610df78261156f565b905080600160a060020a031683600160a060020a03161415610e2e5760405160e560020a62461bcd02815260040161068990613733565b80600160a060020a0316610e40612177565b600160a060020a03161480610e5c5750610e5c81610629612177565b610e7b5760405160e560020a62461bcd02815260040161068990613407565b610e85838361217b565b505050565b60095490565b610ea1610e9b612177565b826121e9565b610ec05760405160e560020a62461bcd028152600401610689906137ed565b610e85838383612269565b6000610ed6836115ad565b8210610ef75760405160e560020a62461bcd02815260040161068990613123565b50600160a060020a03919091166000908152600760209081526040808320938352929052205490565b600d54600160a060020a0316331480610f435750600e54600160a060020a031633145b80610f665750610f51611744565b600160a060020a031633600160a060020a0316145b610f855760405160e560020a62461bcd028152600401610689906132a8565b303160006064610f9660328461398c565b610fa09190613978565b90506000610fae8284613a03565b600d54604051919250600160a060020a03169082156108fc029083906000818181858888f19350505050158015610fe9573d6000803e3d6000fd5b50600e54604051600160a060020a039091169083156108fc029084906000818181858888f19350505050158015611024573d6000803e3d6000fd5b50505050565b610e8583838360405180602001604052806000815250611b1a565b6000610d0b8261215a565b600061105a610e8a565b821061107b5760405160e560020a62461bcd0281526004016106899061384a565b6009828154811061109f5760e060020a634e487b7102600052603260045260246000fd5b90600052602060002001549050919050565b60608060006110be610e8a565b905060008167ffffffffffffffff8111156110ec5760e060020a634e487b7102600052604160045260246000fd5b604051908082528060200260200182016040528015611115578160200160208202803683370190505b50905060008267ffffffffffffffff8111156111445760e060020a634e487b7102600052604160045260246000fd5b60405190808252806020026020018201604052801561116d578160200160208202803683370190505b5090506000805b8481101561123457600061118782611050565b905060166000828152602001908152602001600020548583815181106111c05760e060020a634e487b7102600052603260045260246000fd5b602002602001018181525050808483815181106111f05760e060020a634e487b7102600052603260045260246000fd5b60209081029190910181019190915260008281526016909152604090205415611221578261121d81613aea565b9350505b508061122c81613aea565b915050611174565b5061123f838361239c565b8067ffffffffffffffff8111156112695760e060020a634e487b7102600052604160045260246000fd5b604051908082528060200260200182016040528015611292578160200160208202803683370190505b5094508067ffffffffffffffff8111156112bf5760e060020a634e487b7102600052604160045260246000fd5b6040519080825280602002602001820160405280156112e8578160200160208202803683370190505b50955080156113ee57600080600185516113029190613a03565b90505b8285516113129190613a03565b81106113eb5784818151811061133b5760e060020a634e487b7102600052603260045260246000fd5b60200260200101518783815181106113665760e060020a634e487b7102600052603260045260246000fd5b6020026020010181815250508381815181106113955760e060020a634e487b7102600052603260045260246000fd5b60200260200101518883815181106113c05760e060020a634e487b7102600052603260045260246000fd5b6020908102919091010152816113d581613aea565b92505080806113e390613a64565b915050611305565b50505b505050509091565b60606000825167ffffffffffffffff8111156114255760e060020a634e487b7102600052604160045260246000fd5b60405190808252806020026020018201604052801561144e578160200160208202803683370190505b50905060005b8351811015611568576114908482815181106114835760e060020a634e487b7102600052603260045260246000fd5b602002602001015161215a565b15611510576114c88482815181106114bb5760e060020a634e487b7102600052603260045260246000fd5b602002602001015161156f565b8282815181106114eb5760e060020a634e487b7102600052603260045260246000fd5b6020026020010190600160a060020a03169081600160a060020a031681525050611556565b60008282815181106115355760e060020a634e487b7102600052603260045260246000fd5b6020026020010190600160a060020a03169081600160a060020a0316815250505b8061156081613aea565b915050611454565b5092915050565b600081815260036020526040812054600160a060020a031680610d0b5760405160e560020a62461bcd028152600401610689906134c1565b60135490565b6000600160a060020a0382166115d85760405160e560020a62461bcd02815260040161068990613464565b50600160a060020a031660009081526004602052604090205490565b6115fc612177565b600160a060020a031661160d611744565b600160a060020a0316146116365760405160e560020a62461bcd02815260040161068990613644565b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360008054600160a060020a0319169055565b6060600061168d836115ad565b905060008167ffffffffffffffff8111156116bb5760e060020a634e487b7102600052604160045260246000fd5b6040519080825280602002602001820160405280156116e4578160200160208202803683370190505b50905060005b8281101561173c576116fc8582610ecb565b82828151811061171f5760e060020a634e487b7102600052603260045260246000fd5b60209081029190910101528061173481613aea565b9150506116ea565b509392505050565b600054600160a060020a031690565b606060028054610d2290613a73565b60135460609082111561178a5760405160e560020a62461bcd0281526004016106899061351e565b63612fb1904210156117b15760405160e560020a62461bcd02815260040161068990613790565b6117ba82611d28565b3410156117dc5760405160e560020a62461bcd0281526004016106899061358a565b60008267ffffffffffffffff8111156118085760e060020a634e487b7102600052604160045260246000fd5b604051908082528060200260200182016040528015611831578160200160208202803683370190505b50905060005b83811015611568576000611858600060016013805490506106f79190613a03565b90506000601382815481106118805760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015490506118973382612037565b808484815181106118bb5760e060020a634e487b7102600052603260045260246000fd5b6020908102919091010152601380546118d690600190613a03565b815481106118f75760e060020a634e487b7102600052603260045260246000fd5b9060005260206000200154601383815481106119265760e060020a634e487b7102600052603260045260246000fd5b6000918252602090912001556013805461194290600190613a03565b815481106119635760e060020a634e487b7102600052603260045260246000fd5b600091825260208220015560138054806119905760e060020a634e487b7102600052603160045260246000fd5b60019003818190600052602060002001600090559055505080806119b390613aea565b915050611837565b60006119c68261215a565b6119e55760405160e560020a62461bcd0281526004016106899061323a565b5060009081526016602052604090205490565b611a00612177565b600160a060020a031682600160a060020a03161415611a345760405160e560020a62461bcd0281526004016106899061333c565b8060066000611a41612177565b600160a060020a03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611a85612177565b600160a060020a03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611abd9190613105565b60405180910390a35050565b600080611ad533611b56565b90508015801590611aec5750611aea81611045565b155b611b0b5760405160e560020a62461bcd028152600401610689906132a8565b611b153382612037565b905090565b611b2b611b25612177565b836121e9565b611b4a5760405160e560020a62461bcd028152600401610689906137ed565b611024848484846123b6565b600160a060020a031660009081526012602052604090205490565b6060611b7c8261215a565b611b9b5760405160e560020a62461bcd028152600401610689906136d6565b6000611ba56123ec565b90506000815111611bc55760405180602001604052806000815250611bf0565b80611bcf8461240c565b604051602001611be0929190612fdd565b6040516020818303038152906040525b9392505050565b600063612fb1904210611c0c57506000610da3565b611c1a4263612fb190613a03565b9050610da3565b60606011805480602002602001604051908101604052809291908181526020018280548015610d9b57602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311611c5b575050505050905090565b611c8a612177565b600160a060020a0316611c9b611744565b600160a060020a031614611cc45760405160e560020a62461bcd02815260040161068990613644565b6000611cce610e8a565b90508015611cf15760405160e560020a62461bcd028152600401610689906132a8565b608f5b60988111611d2457600d54611d1290600160a060020a031682612037565b80611d1c81613aea565b915050611cf4565b5050565b60006003821115611d4e5760405160e560020a62461bcd02815260040161068990613373565b601354821115611d735760405160e560020a62461bcd0281526004016106899061351e565b6000611d8783670de0b6b3a764000061398c565b905060006064600b611d9a600187613a03565b81548110611dbb5760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015483611dd1919061398c565b611ddb9190613978565b9050611de78183613a03565b949350505050565b611df88161215a565b611e175760405160e560020a62461bcd0281526004016106899061323a565b662386f26fc10000341015611e415760405160e560020a62461bcd0281526004016106899061358a565b600081815260166020526040902054611e5b906001613932565b600082815260166020526040812091909155600f805460018181019092557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802018054600160a060020a031916331790556010805491820181559091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720155565b600160a060020a03918216600090815260066020908152604080832093909416825291909152205460ff1690565b662386f26fc1000081565b611f1d612177565b600160a060020a0316611f2e611744565b600160a060020a031614611f575760405160e560020a62461bcd02815260040161068990613644565b600160a060020a038116611f805760405160e560020a62461bcd028152600401610689906131dd565b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a360008054600160a060020a031916600160a060020a0392909216919091179055565b600083611fe9846001613932565b611ff39190613a03565b824443404260405160200161200b949392919061300c565b60408051601f19818403018152919052805160209091012061202d9190613afe565b611de79085613932565b600160a060020a0382166120605760405160e560020a62461bcd02815260040161068990613555565b6120698161215a565b156120895760405160e560020a62461bcd02815260040161068990613271565b61209560008383612580565b600160a060020a03821660009081526004602052604081208054600192906120be908490613932565b90915550506000818152600360205260408082208054600160a060020a031916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600160e060020a031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610d0b5750610d0b8261258b565b600090815260036020526040902054600160a060020a0316151590565b3390565b60008181526005602052604090208054600160a060020a031916600160a060020a03841690811790915581906121b08261156f565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121f48261215a565b6122135760405160e560020a62461bcd028152600401610689906133aa565b600061221e8361156f565b905080600160a060020a031684600160a060020a03161480612259575083600160a060020a031661224e84610da6565b600160a060020a0316145b80611de75750611de78185611edc565b82600160a060020a031661227c8261156f565b600160a060020a0316146122a55760405160e560020a62461bcd02815260040161068990613679565b600160a060020a0382166122ce5760405160e560020a62461bcd028152600401610689906132df565b6122d9838383612580565b6122e460008261217b565b600160a060020a038316600090815260046020526040812080546001929061230d908490613a03565b9091555050600160a060020a038216600090815260046020526040812080546001929061233b908490613932565b90915550506000818152600360205260408082208054600160a060020a031916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611d2482826000600186516123b19190613a03565b6125fd565b6123c1848484612269565b6123cd848484846128ac565b6110245760405160e560020a62461bcd02815260040161068990613180565b6060604051806080016040528060438152602001613b7760439139905090565b60608161244d575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610d0e565b8160005b8115612477578061246181613aea565b91506124709050600a83613978565b9150612451565b60008167ffffffffffffffff8111156124a35760e060020a634e487b7102600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124cd576020820181803683370190505b5090505b8415611de7576124e2600183613a03565b91506124ef600a86613afe565b6124fa906030613932565b7f01000000000000000000000000000000000000000000000000000000000000000281838151811061253f5760e060020a634e487b7102600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612579600a86613978565b94506124d1565b610e858383836129ff565b6000600160e060020a031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806125ee5750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610d0b5750610d0b82612a88565b81818082141561260e575050611024565b600086600261261d87876139ab565b612627919061394a565b61263190876138da565b815181106126525760e060020a634e487b7102600052603260045260246000fd5b602002602001015190505b81831361287b575b808784815181106126895760e060020a634e487b7102600052603260045260246000fd5b602002602001015110156126a957826126a181613ab1565b935050612665565b8682815181106126cc5760e060020a634e487b7102600052603260045260246000fd5b60200260200101518110156126ed57816126e581613a46565b9250506126a9565b818313612876578682815181106127175760e060020a634e487b7102600052603260045260246000fd5b60200260200101518784815181106127425760e060020a634e487b7102600052603260045260246000fd5b602002602001015188858151811061276d5760e060020a634e487b7102600052603260045260246000fd5b602002602001018985815181106127975760e060020a634e487b7102600052603260045260246000fd5b60200260200101828152508281525050508582815181106127cb5760e060020a634e487b7102600052603260045260246000fd5b60200260200101518684815181106127f65760e060020a634e487b7102600052603260045260246000fd5b60200260200101518785815181106128215760e060020a634e487b7102600052603260045260246000fd5b6020026020010188858151811061284b5760e060020a634e487b7102600052603260045260246000fd5b6020908102919091010191909152528261286481613ab1565b935050818061287290613a46565b9250505b61265d565b8185121561288f5761288f878787856125fd565b838312156128a3576128a3878785876125fd565b50505050505050565b60006128c084600160a060020a0316612aba565b156129f45783600160a060020a031663150b7a026128dc612177565b8786866040518563ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040161291a949392919061303b565b602060405180830381600087803b15801561293457600080fd5b505af1925050508015612964575060408051601f3d908101601f1916820190925261296191810190612f43565b60015b6129c1573d808015612992576040519150601f19603f3d011682016040523d82523d6000602084013e612997565b606091505b5080516129b95760405160e560020a62461bcd02815260040161068990613180565b805181602001fd5b600160e060020a0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611de7565b506001949350505050565b612a0a838383610e85565b600160a060020a038316612a2657612a2181612ac0565b612a49565b81600160a060020a031683600160a060020a031614612a4957612a498382612b04565b600160a060020a038216612a6557612a6081612ba1565b610e85565b82600160a060020a031682600160a060020a031614610e8557610e858282612c83565b600160e060020a031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b3b151590565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b60006001612b11846115ad565b612b1b9190613a03565b600083815260086020526040902054909150808214612b6e57600160a060020a03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b506000918252600860209081526040808420849055600160a060020a039094168352600781528383209183525290812055565b600954600090612bb390600190613a03565b6000838152600a602052604081205460098054939450909284908110612bec5760e060020a634e487b7102600052603260045260246000fd5b906000526020600020015490508060098381548110612c1e5760e060020a634e487b7102600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612c675760e060020a634e487b7102600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612c8e836115ad565b600160a060020a039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b8035600160a060020a0381168114610d0e57600080fd5b600060208284031215612cef578081fd5b611bf082612cc7565b60008060408385031215612d0a578081fd5b612d1383612cc7565b9150612d2160208401612cc7565b90509250929050565b600080600060608486031215612d3e578081fd5b612d4784612cc7565b9250612d5560208501612cc7565b9150604084013590509250925092565b60008060008060808587031215612d7a578081fd5b612d8385612cc7565b93506020612d92818701612cc7565b935060408601359250606086013567ffffffffffffffff80821115612db5578384fd5b818801915088601f830112612dc8578384fd5b813581811115612dda57612dda613b44565b612dec601f8201601f191685016138b0565b91508082528984828501011115612e01578485fd5b8084840185840137810190920192909252939692955090935050565b60008060408385031215612e2f578182fd5b612e3883612cc7565b915060208301358015158114612e4c578182fd5b809150509250929050565b60008060408385031215612e69578182fd5b612e7283612cc7565b946020939093013593505050565b60006020808385031215612e92578182fd5b823567ffffffffffffffff80821115612ea9578384fd5b818501915085601f830112612ebc578384fd5b813581811115612ece57612ece613b44565b8381029150612ede8483016138b0565b8181528481019084860184860187018a1015612ef8578788fd5b8795505b83861015612f1a578035835260019590950194918601918601612efc565b5098975050505050505050565b600060208284031215612f38578081fd5b8135611bf081613b5d565b600060208284031215612f54578081fd5b8151611bf081613b5d565b600060208284031215612f70578081fd5b5035919050565b6000815180845260208085019450808401835b83811015612fa657815187529582019590820190600101612f8a565b509495945050505050565b60008151808452612fc9816020860160208601613a1a565b601f01601f19169290920160200192915050565b60008351612fef818460208801613a1a565b835190830190613003818360208801613a1a565b01949350505050565b93845260208401929092526040830152606082015260800190565b600160a060020a0391909116815260200190565b6000600160a060020a0380871683528086166020840152508360408301526080606083015261306d6080830184612fb1565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156130b8578351600160a060020a031683529284019291840191600101613093565b50909695505050505050565b600060208252611bf06020830184612f77565b6000604082526130ea6040830185612f77565b82810360208401526130fc8185612f77565b95945050505050565b901515815260200190565b600060208252611bf06020830184612fb1565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f47696761436861643a206e6f6e6578697374656e7420746f6b656e0000000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526013908201527f47696761436861643a20666f7262696464656e00000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601a908201527f47696761436861643a206e6f6e6578697374656e74207061636b000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f47696761436861643a206e6f7420656e6f75676820746f6b656e730000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526027908201527f47696761436861643a2076616c75652073656e742069732062656c6f7720746860408201527f6520707269636500000000000000000000000000000000000000000000000000606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f47696761436861643a2073616c6520686173206e6f742073746172746564207960408201527f6574000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b90815260200190565b60405181810167ffffffffffffffff811182821017156138d2576138d2613b44565b604052919050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0384138115161561391457613914613b12565b8260ff60020a03841281161561392c5761392c613b12565b50500190565b6000821982111561394557613945613b12565b500190565b60008261395957613959613b2b565b60ff60020a82146000198414161561397357613973613b12565b500590565b60008261398757613987613b2b565b500490565b60008160001904831182151516156139a6576139a6613b12565b500290565b60008083128360ff60020a018312811516156139c9576139c9613b12565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156139fd576139fd613b12565b50500390565b600082821015613a1557613a15613b12565b500390565b60005b83811015613a35578181015183820152602001613a1d565b838111156110245750506000910152565b600060ff60020a821415613a5c57613a5c613b12565b506000190190565b600081613a5c57613a5c613b12565b600281046001821680613a8757607f821691505b60208210811415613aab5760e060020a634e487b7102600052602260045260246000fd5b50919050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ae357613ae3613b12565b5060010190565b6000600019821415613ae357613ae3613b12565b600082613b0d57613b0d613b2b565b500690565b60e060020a634e487b7102600052601160045260246000fd5b60e060020a634e487b7102600052601260045260246000fd5b60e060020a634e487b7102600052604160045260246000fd5b600160e060020a031981168114613b7357600080fd5b5056fe697066733a2f2f6261667962656964367871713233696d34736266613668746d726d61333479756d77657474667a6a34686e706d6e7776656f73336c77707a3537342fa2646970667358221220f3917e014f940123cc3649a70aada44016277bec4facf673f8c96ec2f03f891b64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ac8deda9de9509f9ffb09a23f6faa1502572d1c100000000000000000000000049ea043ead04744705862e1c87357a6a789d377b
-----Decoded View---------------
Arg [0] : foundationAddress (address): 0xAc8DEdA9DE9509F9ffb09A23F6FAA1502572d1c1
Arg [1] : authorAddress (address): 0x49Ea043EAd04744705862e1C87357A6a789d377B
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ac8deda9de9509f9ffb09a23f6faa1502572d1c1
Arg [1] : 00000000000000000000000049ea043ead04744705862e1c87357a6a789d377b
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.