ERC-721
Source Code
Overview
Max Total Supply
191 FEEVMC
Holders
100
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FEEVMCLoading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
FeevieNFT
Compiler Version
v0.8.2+commit.661d1103
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "./FEEVMembershipNFT.sol";
contract FeevieNFT is AccessControl, ERC721, ERC721Enumerable, IERC2981 {
using Counters for Counters.Counter;
Counters.Counter private _tokenIdCounter;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
string public baseURI;
address public owner;
address public membershipNFT;
uint256 private royaltyBPS;
address private royaltyReceiver;
constructor(
string memory _name,
string memory _symbol,
address _owner,
address _royaltyReceiver,
string memory _initialURI
) ERC721(_name, _symbol) {
_tokenIdCounter.increment();
_grantRole(DEFAULT_ADMIN_ROLE, _owner);
baseURI = _initialURI;
royaltyBPS = 800;
royaltyReceiver = _royaltyReceiver;
owner = _owner;
}
/// @dev Function to mint new NFT tokens
/// @param to Address of new NFTs' owner
/// @param tokensAmount Amount of NFTs to mint
/// @notice It can be called only by address with minter role
function safeMint(address to, uint256 tokensAmount) public onlyRole(MINTER_ROLE) {
for (uint256 i = 0; i < tokensAmount; i++) {
uint256 tokenId = _tokenIdCounter.current();
_tokenIdCounter.increment();
_safeMint(to, tokenId);
}
}
/// @dev Change owner address
/// @param newOwner Address of new owner
function changeOwner(address newOwner) external onlyRole(DEFAULT_ADMIN_ROLE) {
owner = newOwner;
_grantRole(DEFAULT_ADMIN_ROLE, newOwner);
_revokeRole(DEFAULT_ADMIN_ROLE, msg.sender);
}
/// @dev Change baseURI
/// @param newURI New uri to new folder with metadata
/// @notice It can be called only by owner
function setBaseURI(string memory newURI) public onlyRole(DEFAULT_ADMIN_ROLE) {
baseURI = newURI;
}
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
/// @dev Function to set new royalties for each NFT token in the collection
/// @param _royaltyBPS Royalty amount in BPS (0 - 0%, 100% - 10000)
/// @param _royaltyReceiver Address of royalty receiver
/// @notice It can be called only by administrator
function setRoyalties(uint256 _royaltyBPS, address _royaltyReceiver)
public
onlyRole(DEFAULT_ADMIN_ROLE)
{
royaltyBPS = _royaltyBPS;
royaltyReceiver = _royaltyReceiver;
}
/// @dev Getter for info about royalty
/// @param tokenId Id of NFT token
/// @param salePrice Price to calculate royalty
/// @return receiver Address of royalty receiver
/// @return royaltyAmount Amount of calculated royalty
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
override
returns (address receiver, uint256 royaltyAmount)
{
uint256 price = (salePrice * royaltyBPS) / 10000;
return (royaltyReceiver, price);
}
/// @dev Function to set connected FEEV MC NFT contract
/// @param _membershipNFT Address of FEEV MC NFT contract
/// @notice Address can be set once
function setMembershipNFT(address _membershipNFT) external {
require(membershipNFT == address(0), "MembershipNFT is already set");
_grantRole(MINTER_ROLE, _membershipNFT);
membershipNFT = _membershipNFT;
}
function isApprovedForAll(address _owner, address _operator)
public
view
override
returns (bool isOperator)
{
if (_operator == membershipNFT) {
return true;
}
return super.isApprovedForAll(_owner, _operator);
}
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
super.transferFrom(from, to, tokenId);
FEEVMembershipNFT(membershipNFT).onFeevieTransfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
super.safeTransferFrom(from, to, tokenId, "");
FEEVMembershipNFT(membershipNFT).onFeevieTransfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
super.safeTransferFrom(from, to, tokenId, _data);
FEEVMembershipNFT(membershipNFT).onFeevieTransfer(from, to, tokenId);
}
/// @dev Hook which is called on FEEV MC contract after MC token transfer
function onMembershipNFTTransfer(
address from,
address to,
uint256 tokenId
) external {
require(msg.sender == membershipNFT, "Only for membership NFT contract");
super._transfer(from, to, tokenId);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal override(ERC721, ERC721Enumerable) {
super._beforeTokenTransfer(from, to, tokenId);
}
function tokenURI(uint256 tokenId)
public
view
override
returns (string memory)
{
require(_exists(tokenId), "ERC721: nonexistent token");
return super.tokenURI(tokenId);
}
function supportsInterface(bytes4 interfaceId)
public
view
override(ERC721, ERC721Enumerable, IERC165, AccessControl)
returns (bool)
{
if (interfaceId == type(IERC2981).interfaceId) {
return true;
}
return super.supportsInterface(interfaceId);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)
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
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)
pragma solidity ^0.8.0;
import "../ERC721.sol";
/**
* @dev ERC721 token with storage based token URI management.
*/
abstract contract ERC721URIStorage is ERC721 {
using Strings for uint256;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
string memory base = _baseURI();
// If there is no base URI, return the token URI.
if (bytes(base).length == 0) {
return _tokenURI;
}
// If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
if (bytes(_tokenURI).length > 0) {
return string(abi.encodePacked(base, _tokenURI));
}
return super.tokenURI(tokenId);
}
/**
* @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual override {
super._burn(tokenId);
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev 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 {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address => bool) members;
bytes32 adminRole;
}
mapping(bytes32 => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with a standardized message including the required role.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*
* _Available since v4.1._
*/
modifier onlyRole(bytes32 role) {
_checkRole(role, _msgSender());
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
return _roles[role].members[account];
}
/**
* @dev Revert with a standard message if `account` is missing `role`.
*
* The format of the revert reason is given by the following regular expression:
*
* /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert(
string(
abi.encodePacked(
"AccessControl: account ",
Strings.toHexString(uint160(account), 20),
" is missing role ",
Strings.toHexString(uint256(role), 32)
)
)
);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) public virtual override {
require(account == _msgSender(), "AccessControl: can only renounce roles for self");
_revokeRole(role, account);
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event. Note that unlike {grantRole}, this function doesn't perform any
* checks on the calling account.
*
* [WARNING]
* ====
* This function should only be called from the constructor when setting
* up the initial roles for the system.
*
* Using this function in any other way is effectively circumventing the admin
* system imposed by {AccessControl}.
* ====
*
* NOTE: This function is deprecated in favor of {_grantRole}.
*/
function _setupRole(bytes32 role, address account) internal virtual {
_grantRole(role, account);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Grants `role` to `account`.
*
* Internal function without access restriction.
*/
function _grantRole(bytes32 role, address account) internal virtual {
if (!hasRole(role, account)) {
_roles[role].members[account] = true;
emit RoleGranted(role, account, _msgSender());
}
}
/**
* @dev Revokes `role` from `account`.
*
* Internal function without access restriction.
*/
function _revokeRole(bytes32 role, address account) internal virtual {
if (hasRole(role, account)) {
_roles[role].members[account] = false;
emit RoleRevoked(role, account, _msgSender());
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Interface for the NFT Royalty Standard.
*
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
* support for royalty payments across all NFT marketplaces and ecosystem participants.
*
* _Available since v4.5._
*/
interface IERC2981 is IERC165 {
/**
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
* exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
*/
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
returns (address receiver, uint256 royaltyAmount);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "./FeevieNFT.sol";
contract FEEVMembershipNFT is AccessControl, ERC721, ERC721Enumerable, IERC2981 {
using Counters for Counters.Counter;
Counters.Counter private _tokenIdCounter;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
uint256 private constant INITIAL_MINT_LIMIT = 130;
string public baseURI;
uint256 public maxSupply;
uint256[] public priceRanges;
uint256[] public prices;
address public feevieNFT;
address private royaltyReceiver;
uint256 private royaltyBPS;
address private initialMintRecipient;
uint256 private amountOfInitiallyMintedTokens;
address public owner;
constructor(
string memory _name,
string memory _symbol,
address _owner,
address _minter,
address _initialMintRecipient,
uint256 _maxSupply,
address _royaltyReceiver,
string memory _initialURI,
address _feevieNFT,
uint256[] memory _priceRanges,
uint256[] memory _prices
) ERC721(_name, _symbol) {
maxSupply = _maxSupply;
_tokenIdCounter.increment();
_grantRole(DEFAULT_ADMIN_ROLE, _owner);
_grantRole(MINTER_ROLE, _owner);
_grantRole(MINTER_ROLE, _minter);
baseURI = _initialURI;
royaltyBPS = 800;
royaltyReceiver = _royaltyReceiver;
priceRanges = _priceRanges;
prices = _prices;
feevieNFT = _feevieNFT;
initialMintRecipient = _initialMintRecipient;
owner = _owner;
FeevieNFT(feevieNFT).setMembershipNFT(address(this));
}
/// @dev Function to mint initial amount of tokens to the feev.eth
/// @param amount Amount of tokens to mint
/// @notice It is possible to mint only 130 tokens
function initialMint(uint256 amount) external {
require(amountOfInitiallyMintedTokens + amount <= INITIAL_MINT_LIMIT, "Reached limit for minting");
for (uint256 i = 0; i < amount; i++) {
uint256 tokenId = _tokenIdCounter.current();
_tokenIdCounter.increment();
_safeMint(initialMintRecipient, tokenId);
}
FeevieNFT(feevieNFT).safeMint(initialMintRecipient, amount);
amountOfInitiallyMintedTokens += amount;
}
/// @dev Function to mint new NFT tokens
/// @param to Address of new NFTs' owner
/// @param tokensAmount Amount of NFTs to mint
/// @notice It can be called only by address with minter role
function safeMint(address to, uint256 tokensAmount) public onlyRole(MINTER_ROLE) {
require(_tokenIdCounter.current() + tokensAmount <= maxSupply, "Reached limit for minting");
for (uint256 i = 0; i < tokensAmount; i++) {
uint256 tokenId = _tokenIdCounter.current();
_tokenIdCounter.increment();
_safeMint(to, tokenId);
}
FeevieNFT(feevieNFT).safeMint(to, tokensAmount);
}
/// @dev Change owner address
/// @param newOwner Address of new owner
function changeOwner(address newOwner) external onlyRole(DEFAULT_ADMIN_ROLE) {
owner = newOwner;
_grantRole(DEFAULT_ADMIN_ROLE, newOwner);
_revokeRole(DEFAULT_ADMIN_ROLE, msg.sender);
}
/// @dev Change baseURI
/// @param newURI New uri to new folder with metadata
/// @notice It can be called only by owner
function setBaseURI(string memory newURI) public onlyRole(DEFAULT_ADMIN_ROLE) {
baseURI = newURI;
}
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
/// @dev Function to set new royalties for each NFT token in the collection
/// @param _royaltyBPS Royalty amount in BPS (0 - 0%, 100% - 10000)
/// @param _royaltyReceiver Address of royalty receiver
/// @notice It can be called only by administrator
function setRoyalties(uint256 _royaltyBPS, address _royaltyReceiver)
public
onlyRole(DEFAULT_ADMIN_ROLE)
{
royaltyBPS = _royaltyBPS;
royaltyReceiver = _royaltyReceiver;
}
/// @dev Getter for info about royalty
/// @param tokenId Id of NFT token
/// @param salePrice Price to calculate royalty
/// @return receiver Address of royalty receiver
/// @return royaltyAmount Amount of calculated royalty
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
override
returns (address receiver, uint256 royaltyAmount)
{
uint256 price = (salePrice * royaltyBPS) / 10000;
return (royaltyReceiver, price);
}
/// @dev Getter for price of minting
/// @param tokensAmount Amount of NFT tokens to mint
/// @return uint256 calculated price of minting
function getPrice(uint256 tokensAmount) external view returns (uint256) {
uint256 currentSupply = totalSupply();
uint256 price = 0;
for (
uint256 tokenNumber = currentSupply + 1;
tokenNumber <= currentSupply + tokensAmount;
tokenNumber++
) {
for (uint256 rangeIndex = 0; rangeIndex < priceRanges.length; rangeIndex++) {
if (tokenNumber > priceRanges[rangeIndex]) {
continue;
} else {
price += prices[rangeIndex];
break;
}
}
}
return price;
}
function isApprovedForAll(address _owner, address _operator)
public
view
override
returns (bool isOperator)
{
if (_operator == feevieNFT) {
return true;
}
return super.isApprovedForAll(_owner, _operator);
}
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
super.transferFrom(from, to, tokenId);
FeevieNFT(feevieNFT).onMembershipNFTTransfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
super.safeTransferFrom(from, to, tokenId, "");
FeevieNFT(feevieNFT).onMembershipNFTTransfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
super.safeTransferFrom(from, to, tokenId, _data);
FeevieNFT(feevieNFT).onMembershipNFTTransfer(from, to, tokenId);
}
/// @dev Hook which is called on Feevie contract after Feevie token transfer
function onFeevieTransfer(
address from,
address to,
uint256 tokenId
) external {
require(msg.sender == feevieNFT, "Only for feevie contract");
super._transfer(from, to, tokenId);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal override(ERC721, ERC721Enumerable) {
super._beforeTokenTransfer(from, to, tokenId);
}
function tokenURI(uint256 tokenId)
public
view
override
returns (string memory)
{
require(_exists(tokenId), "ERC721: nonexistent token");
return super.tokenURI(tokenId);
}
function supportsInterface(bytes4 interfaceId)
public
view
override(ERC721, ERC721Enumerable, IERC165, AccessControl)
returns (bool)
{
if (interfaceId == type(IERC2981).interfaceId) {
return true;
}
return super.supportsInterface(interfaceId);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, 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
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
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);
/**
* @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
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*
* _Available since v3.1._
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `account`.
*/
function renounceRole(bytes32 role, address account) external;
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_royaltyReceiver","type":"address"},{"internalType":"string","name":"_initialURI","type":"string"}],"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"membershipNFT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"onMembershipNFTTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokensAmount","type":"uint256"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_membershipNFT","type":"address"}],"name":"setMembershipNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royaltyBPS","type":"uint256"},{"internalType":"address","name":"_royaltyReceiver","type":"address"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162004ef238038062004ef28339818101604052810190620000379190620003fa565b8484816001908051906020019062000051929190620002c1565b5080600290805190602001906200006a929190620002c1565b50505062000084600b6200014860201b6200152b1760201c565b620000996000801b846200015e60201b60201c565b80600c9080519060200190620000b1929190620002c1565b50610320600f8190555081601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505062000685565b6001816000016000828254019250508190555050565b6200017082826200024f60201b60201c565b6200024b57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001f0620002b960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b828054620002cf9062000590565b90600052602060002090601f016020900481019282620002f357600085556200033f565b82601f106200030e57805160ff19168380011785556200033f565b828001600101855582156200033f579182015b828111156200033e57825182559160200191906001019062000321565b5b5090506200034e919062000352565b5090565b5b808211156200036d57600081600090555060010162000353565b5090565b6000620003886200038284620004f0565b620004c7565b905082815260208101848484011115620003a157600080fd5b620003ae8482856200055a565b509392505050565b600081519050620003c7816200066b565b92915050565b600082601f830112620003df57600080fd5b8151620003f184826020860162000371565b91505092915050565b600080600080600060a086880312156200041357600080fd5b600086015167ffffffffffffffff8111156200042e57600080fd5b6200043c88828901620003cd565b955050602086015167ffffffffffffffff8111156200045a57600080fd5b6200046888828901620003cd565b94505060406200047b88828901620003b6565b93505060606200048e88828901620003b6565b925050608086015167ffffffffffffffff811115620004ac57600080fd5b620004ba88828901620003cd565b9150509295509295909350565b6000620004d3620004e6565b9050620004e18282620005c6565b919050565b6000604051905090565b600067ffffffffffffffff8211156200050e576200050d6200062b565b5b62000519826200065a565b9050602081019050919050565b600062000533826200053a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b838110156200057a5780820151818401526020810190506200055d565b838111156200058a576000848401525b50505050565b60006002820490506001821680620005a957607f821691505b60208210811415620005c057620005bf620005fc565b5b50919050565b620005d1826200065a565b810181811067ffffffffffffffff82111715620005f357620005f26200062b565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b620006768162000526565b81146200068257600080fd5b50565b61485d80620006956000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80636c0360eb1161011a578063a217fddf116100ad578063b88d4fde1161007c578063b88d4fde146105d3578063c87b56dd146105ef578063d53913931461061f578063d547741f1461063d578063e985e9c514610659576101fb565b8063a217fddf14610561578063a22cb4651461057f578063a6f9dae11461059b578063aeb75a24146105b7576101fb565b806391d14854116100e957806391d14854146104d957806395d89b4114610509578063985d0b1e14610527578063a144819414610545576101fb565b80636c0360eb1461045157806370a082311461046f57806375f9dcf41461049f5780638da5cb5b146104bb576101fb565b80632f2ff15d116101925780634f6ccce7116101615780634f6ccce7146103b957806355f804b3146103e95780635de42985146104055780636352211e14610421576101fb565b80632f2ff15d146103355780632f745c591461035157806336568abe1461038157806342842e0e1461039d576101fb565b806318160ddd116101ce57806318160ddd1461029a57806323b872dd146102b8578063248a9ca3146102d45780632a55205a14610304576101fb565b806301ffc9a71461020057806306fdde0314610230578063081812fc1461024e578063095ea7b31461027e575b600080fd5b61021a6004803603810190610215919061340e565b610689565b6040516102279190613a6b565b60405180910390f35b61023861070b565b6040516102459190613aa1565b60405180910390f35b610268600480360381019061026391906134a1565b61079d565b60405161027591906139a4565b60405180910390f35b6102986004803603810190610293919061336d565b610822565b005b6102a261093a565b6040516102af9190613d63565b60405180910390f35b6102d260048036038101906102cd9190613267565b610947565b005b6102ee60048036038101906102e991906133a9565b6109e8565b6040516102fb9190613a86565b60405180910390f35b61031e60048036038101906103199190613506565b610a07565b60405161032c929190613a42565b60405180910390f35b61034f600480360381019061034a91906133d2565b610a59565b005b61036b6004803603810190610366919061336d565b610a82565b6040516103789190613d63565b60405180910390f35b61039b600480360381019061039691906133d2565b610b27565b005b6103b760048036038101906103b29190613267565b610baa565b005b6103d360048036038101906103ce91906134a1565b610c5b565b6040516103e09190613d63565b60405180910390f35b61040360048036038101906103fe9190613460565b610cf2565b005b61041f600480360381019061041a91906134ca565b610d22565b005b61043b600480360381019061043691906134a1565b610d84565b60405161044891906139a4565b60405180910390f35b610459610e36565b6040516104669190613aa1565b60405180910390f35b61048960048036038101906104849190613202565b610ec4565b6040516104969190613d63565b60405180910390f35b6104b960048036038101906104b49190613267565b610f7c565b005b6104c361101c565b6040516104d091906139a4565b60405180910390f35b6104f360048036038101906104ee91906133d2565b611042565b6040516105009190613a6b565b60405180910390f35b6105116110ac565b60405161051e9190613aa1565b60405180910390f35b61052f61113e565b60405161053c91906139a4565b60405180910390f35b61055f600480360381019061055a919061336d565b611164565b005b6105696111dd565b6040516105769190613a86565b60405180910390f35b61059960048036038101906105949190613331565b6111e4565b005b6105b560048036038101906105b09190613202565b6111fa565b005b6105d160048036038101906105cc9190613202565b61126e565b005b6105ed60048036038101906105e891906132b6565b61136d565b005b610609600480360381019061060491906134a1565b611410565b6040516106169190613aa1565b60405180910390f35b61062761146a565b6040516106349190613a86565b60405180910390f35b610657600480360381019061065291906133d2565b61148e565b005b610673600480360381019061066e919061322b565b6114b7565b6040516106809190613a6b565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156106fa5760019050610706565b61070382611541565b90505b919050565b60606001805461071a90614047565b80601f016020809104026020016040519081016040528092919081815260200182805461074690614047565b80156107935780601f1061076857610100808354040283529160200191610793565b820191906000526020600020905b81548152906001019060200180831161077657829003601f168201915b5050505050905090565b60006107a8826115bb565b6107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de90613c83565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061082d82610d84565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561089e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089590613ce3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108bd611627565b73ffffffffffffffffffffffffffffffffffffffff1614806108ec57506108eb816108e6611627565b6114b7565b5b61092b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092290613c03565b60405180910390fd5b610935838361162f565b505050565b6000600980549050905090565b6109528383836116e8565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663456467e88484846040518463ffffffff1660e01b81526004016109b1939291906139bf565b600060405180830381600087803b1580156109cb57600080fd5b505af11580156109df573d6000803e3d6000fd5b50505050505050565b6000806000838152602001908152602001600020600101549050919050565b6000806000612710600f5485610a1d9190613ecf565b610a279190613e9e565b9050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b610a62826109e8565b610a7381610a6e611627565b611748565b610a7d83836117e5565b505050565b6000610a8d83610ec4565b8210610ace576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac590613ae3565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610b2f611627565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9390613d43565b60405180910390fd5b610ba682826118c5565b5050565b610bc5838383604051806020016040528060008152506119a6565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663456467e88484846040518463ffffffff1660e01b8152600401610c24939291906139bf565b600060405180830381600087803b158015610c3e57600080fd5b505af1158015610c52573d6000803e3d6000fd5b50505050505050565b6000610c6561093a565b8210610ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9d90613d23565b60405180910390fd5b60098281548110610ce0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000801b610d0781610d02611627565b611748565b81600c9080519060200190610d1d929190613011565b505050565b6000801b610d3781610d32611627565b611748565b82600f8190555081601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2490613c43565b60405180910390fd5b80915050919050565b600c8054610e4390614047565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6f90614047565b8015610ebc5780601f10610e9157610100808354040283529160200191610ebc565b820191906000526020600020905b815481529060010190602001808311610e9f57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2c90613c23565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461100c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100390613b83565b60405180910390fd5b611017838383611a08565b505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600280546110bb90614047565b80601f01602080910402602001604051908101604052809291908181526020018280546110e790614047565b80156111345780601f1061110957610100808354040283529160200191611134565b820191906000526020600020905b81548152906001019060200180831161111757829003601f168201915b5050505050905090565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661119681611191611627565b611748565b60005b828110156111d75760006111ad600b611c6f565b90506111b9600b61152b565b6111c38582611c7d565b5080806111cf906140aa565b915050611199565b50505050565b6000801b81565b6111f66111ef611627565b8383611c9b565b5050565b6000801b61120f8161120a611627565b611748565b81600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061125d6000801b836117e5565b61126a6000801b336118c5565b5050565b600073ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f690613b23565b60405180910390fd5b6113297f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6826117e5565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611379848484846119a6565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663456467e88585856040518463ffffffff1660e01b81526004016113d8939291906139bf565b600060405180830381600087803b1580156113f257600080fd5b505af1158015611406573d6000803e3d6000fd5b5050505050505050565b606061141b826115bb565b61145a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145190613cc3565b60405180910390fd5b61146382611e08565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611497826109e8565b6114a8816114a3611627565b611748565b6114b283836118c5565b505050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115185760019050611525565b6115228383611eaf565b90505b92915050565b6001816000016000828254019250508190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806115b457506115b382611f43565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166116a283610d84565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6116f96116f3611627565b82612025565b611738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172f90613d03565b60405180910390fd5b611743838383611a08565b505050565b6117528282611042565b6117e1576117778173ffffffffffffffffffffffffffffffffffffffff166014612103565b6117858360001c6020612103565b60405160200161179692919061396a565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d89190613aa1565b60405180910390fd5b5050565b6117ef8282611042565b6118c157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611866611627565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6118cf8282611042565b156119a257600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611947611627565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6119b76119b1611627565b83612025565b6119f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ed90613d03565b60405180910390fd5b611a02848484846123fd565b50505050565b8273ffffffffffffffffffffffffffffffffffffffff16611a2882610d84565b73ffffffffffffffffffffffffffffffffffffffff1614611a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7590613b43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae590613ba3565b60405180910390fd5b611af9838383612459565b611b0460008261162f565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b549190613f29565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bab9190613e48565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c6a838383612469565b505050565b600081600001549050919050565b611c9782826040518060200160405280600081525061246e565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611d0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0190613bc3565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611dfb9190613a6b565b60405180910390a3505050565b6060611e13826115bb565b611e52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4990613ca3565b60405180910390fd5b6000611e5c6124c9565b90506000815111611e7c5760405180602001604052806000815250611ea7565b80611e868461255b565b604051602001611e97929190613946565b6040516020818303038152906040525b915050919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061200e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061201e575061201d82612708565b5b9050919050565b6000612030826115bb565b61206f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206690613be3565b60405180910390fd5b600061207a83610d84565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806120e957508373ffffffffffffffffffffffffffffffffffffffff166120d18461079d565b73ffffffffffffffffffffffffffffffffffffffff16145b806120fa57506120f981856114b7565b5b91505092915050565b6060600060028360026121169190613ecf565b6121209190613e48565b67ffffffffffffffff81111561215f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121915781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106121ef577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612279577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026122b99190613ecf565b6122c39190613e48565b90505b60018111156123af577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061232b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612368577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806123a89061401d565b90506122c6565b50600084146123f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ea90613ac3565b60405180910390fd5b8091505092915050565b612408848484611a08565b61241484848484612782565b612453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244a90613b03565b60405180910390fd5b50505050565b612464838383612919565b505050565b505050565b6124788383612a2d565b6124856000848484612782565b6124c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bb90613b03565b60405180910390fd5b505050565b6060600c80546124d890614047565b80601f016020809104026020016040519081016040528092919081815260200182805461250490614047565b80156125515780601f1061252657610100808354040283529160200191612551565b820191906000526020600020905b81548152906001019060200180831161253457829003601f168201915b5050505050905090565b606060008214156125a3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612703565b600082905060005b600082146125d55780806125be906140aa565b915050600a826125ce9190613e9e565b91506125ab565b60008167ffffffffffffffff811115612617577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126495781602001600182028036833780820191505090505b5090505b600085146126fc576001826126629190613f29565b9150600a8561267191906140f3565b603061267d9190613e48565b60f81b8183815181106126b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126f59190613e9e565b945061264d565b8093505050505b919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061277b575061277a82612c07565b5b9050919050565b60006127a38473ffffffffffffffffffffffffffffffffffffffff16612c71565b1561290c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026127cc611627565b8786866040518563ffffffff1660e01b81526004016127ee94939291906139f6565b602060405180830381600087803b15801561280857600080fd5b505af192505050801561283957506040513d601f19601f820116820180604052508101906128369190613437565b60015b6128bc573d8060008114612869576040519150601f19603f3d011682016040523d82523d6000602084013e61286e565b606091505b506000815114156128b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ab90613b03565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612911565b600190505b949350505050565b612924838383612c94565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129675761296281612c99565b6129a6565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146129a5576129a48382612ce2565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129e9576129e481612e4f565b612a28565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612a2757612a268282612f92565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9490613c63565b60405180910390fd5b612aa6816115bb565b15612ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612add90613b63565b60405180910390fd5b612af260008383612459565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b429190613e48565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c0360008383612469565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612cef84610ec4565b612cf99190613f29565b9050600060086000848152602001908152602001600020549050818114612dde576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050612e639190613f29565b90506000600a6000848152602001908152602001600020549050600060098381548110612eb9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060098381548110612f01577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480612f76577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612f9d83610ec4565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b82805461301d90614047565b90600052602060002090601f01602090048101928261303f5760008555613086565b82601f1061305857805160ff1916838001178555613086565b82800160010185558215613086579182015b8281111561308557825182559160200191906001019061306a565b5b5090506130939190613097565b5090565b5b808211156130b0576000816000905550600101613098565b5090565b60006130c76130c284613da3565b613d7e565b9050828152602081018484840111156130df57600080fd5b6130ea848285613fdb565b509392505050565b600061310561310084613dd4565b613d7e565b90508281526020810184848401111561311d57600080fd5b613128848285613fdb565b509392505050565b60008135905061313f816147b4565b92915050565b600081359050613154816147cb565b92915050565b600081359050613169816147e2565b92915050565b60008135905061317e816147f9565b92915050565b600081519050613193816147f9565b92915050565b600082601f8301126131aa57600080fd5b81356131ba8482602086016130b4565b91505092915050565b600082601f8301126131d457600080fd5b81356131e48482602086016130f2565b91505092915050565b6000813590506131fc81614810565b92915050565b60006020828403121561321457600080fd5b600061322284828501613130565b91505092915050565b6000806040838503121561323e57600080fd5b600061324c85828601613130565b925050602061325d85828601613130565b9150509250929050565b60008060006060848603121561327c57600080fd5b600061328a86828701613130565b935050602061329b86828701613130565b92505060406132ac868287016131ed565b9150509250925092565b600080600080608085870312156132cc57600080fd5b60006132da87828801613130565b94505060206132eb87828801613130565b93505060406132fc878288016131ed565b925050606085013567ffffffffffffffff81111561331957600080fd5b61332587828801613199565b91505092959194509250565b6000806040838503121561334457600080fd5b600061335285828601613130565b925050602061336385828601613145565b9150509250929050565b6000806040838503121561338057600080fd5b600061338e85828601613130565b925050602061339f858286016131ed565b9150509250929050565b6000602082840312156133bb57600080fd5b60006133c98482850161315a565b91505092915050565b600080604083850312156133e557600080fd5b60006133f38582860161315a565b925050602061340485828601613130565b9150509250929050565b60006020828403121561342057600080fd5b600061342e8482850161316f565b91505092915050565b60006020828403121561344957600080fd5b600061345784828501613184565b91505092915050565b60006020828403121561347257600080fd5b600082013567ffffffffffffffff81111561348c57600080fd5b613498848285016131c3565b91505092915050565b6000602082840312156134b357600080fd5b60006134c1848285016131ed565b91505092915050565b600080604083850312156134dd57600080fd5b60006134eb858286016131ed565b92505060206134fc85828601613130565b9150509250929050565b6000806040838503121561351957600080fd5b6000613527858286016131ed565b9250506020613538858286016131ed565b9150509250929050565b61354b81613f5d565b82525050565b61355a81613f6f565b82525050565b61356981613f7b565b82525050565b600061357a82613e05565b6135848185613e1b565b9350613594818560208601613fea565b61359d816141e0565b840191505092915050565b60006135b382613e10565b6135bd8185613e2c565b93506135cd818560208601613fea565b6135d6816141e0565b840191505092915050565b60006135ec82613e10565b6135f68185613e3d565b9350613606818560208601613fea565b80840191505092915050565b600061361f602083613e2c565b915061362a826141f1565b602082019050919050565b6000613642602b83613e2c565b915061364d8261421a565b604082019050919050565b6000613665603283613e2c565b915061367082614269565b604082019050919050565b6000613688601c83613e2c565b9150613693826142b8565b602082019050919050565b60006136ab602583613e2c565b91506136b6826142e1565b604082019050919050565b60006136ce601c83613e2c565b91506136d982614330565b602082019050919050565b60006136f1602083613e2c565b91506136fc82614359565b602082019050919050565b6000613714602483613e2c565b915061371f82614382565b604082019050919050565b6000613737601983613e2c565b9150613742826143d1565b602082019050919050565b600061375a602c83613e2c565b9150613765826143fa565b604082019050919050565b600061377d603883613e2c565b915061378882614449565b604082019050919050565b60006137a0602a83613e2c565b91506137ab82614498565b604082019050919050565b60006137c3602983613e2c565b91506137ce826144e7565b604082019050919050565b60006137e6602083613e2c565b91506137f182614536565b602082019050919050565b6000613809602c83613e2c565b91506138148261455f565b604082019050919050565b600061382c602f83613e2c565b9150613837826145ae565b604082019050919050565b600061384f601983613e2c565b915061385a826145fd565b602082019050919050565b6000613872602183613e2c565b915061387d82614626565b604082019050919050565b6000613895603183613e2c565b91506138a082614675565b604082019050919050565b60006138b8602c83613e2c565b91506138c3826146c4565b604082019050919050565b60006138db601783613e3d565b91506138e682614713565b601782019050919050565b60006138fe601183613e3d565b91506139098261473c565b601182019050919050565b6000613921602f83613e2c565b915061392c82614765565b604082019050919050565b61394081613fd1565b82525050565b600061395282856135e1565b915061395e82846135e1565b91508190509392505050565b6000613975826138ce565b915061398182856135e1565b915061398c826138f1565b915061399882846135e1565b91508190509392505050565b60006020820190506139b96000830184613542565b92915050565b60006060820190506139d46000830186613542565b6139e16020830185613542565b6139ee6040830184613937565b949350505050565b6000608082019050613a0b6000830187613542565b613a186020830186613542565b613a256040830185613937565b8181036060830152613a37818461356f565b905095945050505050565b6000604082019050613a576000830185613542565b613a646020830184613937565b9392505050565b6000602082019050613a806000830184613551565b92915050565b6000602082019050613a9b6000830184613560565b92915050565b60006020820190508181036000830152613abb81846135a8565b905092915050565b60006020820190508181036000830152613adc81613612565b9050919050565b60006020820190508181036000830152613afc81613635565b9050919050565b60006020820190508181036000830152613b1c81613658565b9050919050565b60006020820190508181036000830152613b3c8161367b565b9050919050565b60006020820190508181036000830152613b5c8161369e565b9050919050565b60006020820190508181036000830152613b7c816136c1565b9050919050565b60006020820190508181036000830152613b9c816136e4565b9050919050565b60006020820190508181036000830152613bbc81613707565b9050919050565b60006020820190508181036000830152613bdc8161372a565b9050919050565b60006020820190508181036000830152613bfc8161374d565b9050919050565b60006020820190508181036000830152613c1c81613770565b9050919050565b60006020820190508181036000830152613c3c81613793565b9050919050565b60006020820190508181036000830152613c5c816137b6565b9050919050565b60006020820190508181036000830152613c7c816137d9565b9050919050565b60006020820190508181036000830152613c9c816137fc565b9050919050565b60006020820190508181036000830152613cbc8161381f565b9050919050565b60006020820190508181036000830152613cdc81613842565b9050919050565b60006020820190508181036000830152613cfc81613865565b9050919050565b60006020820190508181036000830152613d1c81613888565b9050919050565b60006020820190508181036000830152613d3c816138ab565b9050919050565b60006020820190508181036000830152613d5c81613914565b9050919050565b6000602082019050613d786000830184613937565b92915050565b6000613d88613d99565b9050613d948282614079565b919050565b6000604051905090565b600067ffffffffffffffff821115613dbe57613dbd6141b1565b5b613dc7826141e0565b9050602081019050919050565b600067ffffffffffffffff821115613def57613dee6141b1565b5b613df8826141e0565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613e5382613fd1565b9150613e5e83613fd1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613e9357613e92614124565b5b828201905092915050565b6000613ea982613fd1565b9150613eb483613fd1565b925082613ec457613ec3614153565b5b828204905092915050565b6000613eda82613fd1565b9150613ee583613fd1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f1e57613f1d614124565b5b828202905092915050565b6000613f3482613fd1565b9150613f3f83613fd1565b925082821015613f5257613f51614124565b5b828203905092915050565b6000613f6882613fb1565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614008578082015181840152602081019050613fed565b83811115614017576000848401525b50505050565b600061402882613fd1565b9150600082141561403c5761403b614124565b5b600182039050919050565b6000600282049050600182168061405f57607f821691505b6020821081141561407357614072614182565b5b50919050565b614082826141e0565b810181811067ffffffffffffffff821117156140a1576140a06141b1565b5b80604052505050565b60006140b582613fd1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140e8576140e7614124565b5b600182019050919050565b60006140fe82613fd1565b915061410983613fd1565b92508261411957614118614153565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4d656d626572736869704e465420697320616c72656164792073657400000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4f6e6c7920666f72206d656d62657273686970204e465420636f6e7472616374600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a206e6f6e6578697374656e7420746f6b656e00000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6147bd81613f5d565b81146147c857600080fd5b50565b6147d481613f6f565b81146147df57600080fd5b50565b6147eb81613f7b565b81146147f657600080fd5b50565b61480281613f85565b811461480d57600080fd5b50565b61481981613fd1565b811461482457600080fd5b5056fea26469706673582212200c808705c31201c6a3f6c6eaf4e82944aa2d748f6cab3073a9e83f4cff37832464736f6c6343000802003300000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000023426f7265642041706520466565766965202d204645455620506c6174696e756d204d4300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006464545564d430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f6d696e742e666565762e6d632f6170692f697066732f6d657461646174612f6665657669655f706c6174696e756d2f000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c80636c0360eb1161011a578063a217fddf116100ad578063b88d4fde1161007c578063b88d4fde146105d3578063c87b56dd146105ef578063d53913931461061f578063d547741f1461063d578063e985e9c514610659576101fb565b8063a217fddf14610561578063a22cb4651461057f578063a6f9dae11461059b578063aeb75a24146105b7576101fb565b806391d14854116100e957806391d14854146104d957806395d89b4114610509578063985d0b1e14610527578063a144819414610545576101fb565b80636c0360eb1461045157806370a082311461046f57806375f9dcf41461049f5780638da5cb5b146104bb576101fb565b80632f2ff15d116101925780634f6ccce7116101615780634f6ccce7146103b957806355f804b3146103e95780635de42985146104055780636352211e14610421576101fb565b80632f2ff15d146103355780632f745c591461035157806336568abe1461038157806342842e0e1461039d576101fb565b806318160ddd116101ce57806318160ddd1461029a57806323b872dd146102b8578063248a9ca3146102d45780632a55205a14610304576101fb565b806301ffc9a71461020057806306fdde0314610230578063081812fc1461024e578063095ea7b31461027e575b600080fd5b61021a6004803603810190610215919061340e565b610689565b6040516102279190613a6b565b60405180910390f35b61023861070b565b6040516102459190613aa1565b60405180910390f35b610268600480360381019061026391906134a1565b61079d565b60405161027591906139a4565b60405180910390f35b6102986004803603810190610293919061336d565b610822565b005b6102a261093a565b6040516102af9190613d63565b60405180910390f35b6102d260048036038101906102cd9190613267565b610947565b005b6102ee60048036038101906102e991906133a9565b6109e8565b6040516102fb9190613a86565b60405180910390f35b61031e60048036038101906103199190613506565b610a07565b60405161032c929190613a42565b60405180910390f35b61034f600480360381019061034a91906133d2565b610a59565b005b61036b6004803603810190610366919061336d565b610a82565b6040516103789190613d63565b60405180910390f35b61039b600480360381019061039691906133d2565b610b27565b005b6103b760048036038101906103b29190613267565b610baa565b005b6103d360048036038101906103ce91906134a1565b610c5b565b6040516103e09190613d63565b60405180910390f35b61040360048036038101906103fe9190613460565b610cf2565b005b61041f600480360381019061041a91906134ca565b610d22565b005b61043b600480360381019061043691906134a1565b610d84565b60405161044891906139a4565b60405180910390f35b610459610e36565b6040516104669190613aa1565b60405180910390f35b61048960048036038101906104849190613202565b610ec4565b6040516104969190613d63565b60405180910390f35b6104b960048036038101906104b49190613267565b610f7c565b005b6104c361101c565b6040516104d091906139a4565b60405180910390f35b6104f360048036038101906104ee91906133d2565b611042565b6040516105009190613a6b565b60405180910390f35b6105116110ac565b60405161051e9190613aa1565b60405180910390f35b61052f61113e565b60405161053c91906139a4565b60405180910390f35b61055f600480360381019061055a919061336d565b611164565b005b6105696111dd565b6040516105769190613a86565b60405180910390f35b61059960048036038101906105949190613331565b6111e4565b005b6105b560048036038101906105b09190613202565b6111fa565b005b6105d160048036038101906105cc9190613202565b61126e565b005b6105ed60048036038101906105e891906132b6565b61136d565b005b610609600480360381019061060491906134a1565b611410565b6040516106169190613aa1565b60405180910390f35b61062761146a565b6040516106349190613a86565b60405180910390f35b610657600480360381019061065291906133d2565b61148e565b005b610673600480360381019061066e919061322b565b6114b7565b6040516106809190613a6b565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156106fa5760019050610706565b61070382611541565b90505b919050565b60606001805461071a90614047565b80601f016020809104026020016040519081016040528092919081815260200182805461074690614047565b80156107935780601f1061076857610100808354040283529160200191610793565b820191906000526020600020905b81548152906001019060200180831161077657829003601f168201915b5050505050905090565b60006107a8826115bb565b6107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de90613c83565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061082d82610d84565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561089e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089590613ce3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108bd611627565b73ffffffffffffffffffffffffffffffffffffffff1614806108ec57506108eb816108e6611627565b6114b7565b5b61092b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092290613c03565b60405180910390fd5b610935838361162f565b505050565b6000600980549050905090565b6109528383836116e8565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663456467e88484846040518463ffffffff1660e01b81526004016109b1939291906139bf565b600060405180830381600087803b1580156109cb57600080fd5b505af11580156109df573d6000803e3d6000fd5b50505050505050565b6000806000838152602001908152602001600020600101549050919050565b6000806000612710600f5485610a1d9190613ecf565b610a279190613e9e565b9050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b610a62826109e8565b610a7381610a6e611627565b611748565b610a7d83836117e5565b505050565b6000610a8d83610ec4565b8210610ace576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac590613ae3565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610b2f611627565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9390613d43565b60405180910390fd5b610ba682826118c5565b5050565b610bc5838383604051806020016040528060008152506119a6565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663456467e88484846040518463ffffffff1660e01b8152600401610c24939291906139bf565b600060405180830381600087803b158015610c3e57600080fd5b505af1158015610c52573d6000803e3d6000fd5b50505050505050565b6000610c6561093a565b8210610ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9d90613d23565b60405180910390fd5b60098281548110610ce0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000801b610d0781610d02611627565b611748565b81600c9080519060200190610d1d929190613011565b505050565b6000801b610d3781610d32611627565b611748565b82600f8190555081601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2490613c43565b60405180910390fd5b80915050919050565b600c8054610e4390614047565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6f90614047565b8015610ebc5780601f10610e9157610100808354040283529160200191610ebc565b820191906000526020600020905b815481529060010190602001808311610e9f57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2c90613c23565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461100c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100390613b83565b60405180910390fd5b611017838383611a08565b505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600280546110bb90614047565b80601f01602080910402602001604051908101604052809291908181526020018280546110e790614047565b80156111345780601f1061110957610100808354040283529160200191611134565b820191906000526020600020905b81548152906001019060200180831161111757829003601f168201915b5050505050905090565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661119681611191611627565b611748565b60005b828110156111d75760006111ad600b611c6f565b90506111b9600b61152b565b6111c38582611c7d565b5080806111cf906140aa565b915050611199565b50505050565b6000801b81565b6111f66111ef611627565b8383611c9b565b5050565b6000801b61120f8161120a611627565b611748565b81600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061125d6000801b836117e5565b61126a6000801b336118c5565b5050565b600073ffffffffffffffffffffffffffffffffffffffff16600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f690613b23565b60405180910390fd5b6113297f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6826117e5565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611379848484846119a6565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663456467e88585856040518463ffffffff1660e01b81526004016113d8939291906139bf565b600060405180830381600087803b1580156113f257600080fd5b505af1158015611406573d6000803e3d6000fd5b5050505050505050565b606061141b826115bb565b61145a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145190613cc3565b60405180910390fd5b61146382611e08565b9050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b611497826109e8565b6114a8816114a3611627565b611748565b6114b283836118c5565b505050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115185760019050611525565b6115228383611eaf565b90505b92915050565b6001816000016000828254019250508190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806115b457506115b382611f43565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166116a283610d84565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6116f96116f3611627565b82612025565b611738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172f90613d03565b60405180910390fd5b611743838383611a08565b505050565b6117528282611042565b6117e1576117778173ffffffffffffffffffffffffffffffffffffffff166014612103565b6117858360001c6020612103565b60405160200161179692919061396a565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d89190613aa1565b60405180910390fd5b5050565b6117ef8282611042565b6118c157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611866611627565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6118cf8282611042565b156119a257600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611947611627565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6119b76119b1611627565b83612025565b6119f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ed90613d03565b60405180910390fd5b611a02848484846123fd565b50505050565b8273ffffffffffffffffffffffffffffffffffffffff16611a2882610d84565b73ffffffffffffffffffffffffffffffffffffffff1614611a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7590613b43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae590613ba3565b60405180910390fd5b611af9838383612459565b611b0460008261162f565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b549190613f29565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bab9190613e48565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c6a838383612469565b505050565b600081600001549050919050565b611c9782826040518060200160405280600081525061246e565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611d0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0190613bc3565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611dfb9190613a6b565b60405180910390a3505050565b6060611e13826115bb565b611e52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4990613ca3565b60405180910390fd5b6000611e5c6124c9565b90506000815111611e7c5760405180602001604052806000815250611ea7565b80611e868461255b565b604051602001611e97929190613946565b6040516020818303038152906040525b915050919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061200e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061201e575061201d82612708565b5b9050919050565b6000612030826115bb565b61206f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206690613be3565b60405180910390fd5b600061207a83610d84565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806120e957508373ffffffffffffffffffffffffffffffffffffffff166120d18461079d565b73ffffffffffffffffffffffffffffffffffffffff16145b806120fa57506120f981856114b7565b5b91505092915050565b6060600060028360026121169190613ecf565b6121209190613e48565b67ffffffffffffffff81111561215f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121915781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106121ef577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612279577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026122b99190613ecf565b6122c39190613e48565b90505b60018111156123af577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061232b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612368577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806123a89061401d565b90506122c6565b50600084146123f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ea90613ac3565b60405180910390fd5b8091505092915050565b612408848484611a08565b61241484848484612782565b612453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244a90613b03565b60405180910390fd5b50505050565b612464838383612919565b505050565b505050565b6124788383612a2d565b6124856000848484612782565b6124c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bb90613b03565b60405180910390fd5b505050565b6060600c80546124d890614047565b80601f016020809104026020016040519081016040528092919081815260200182805461250490614047565b80156125515780601f1061252657610100808354040283529160200191612551565b820191906000526020600020905b81548152906001019060200180831161253457829003601f168201915b5050505050905090565b606060008214156125a3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612703565b600082905060005b600082146125d55780806125be906140aa565b915050600a826125ce9190613e9e565b91506125ab565b60008167ffffffffffffffff811115612617577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126495781602001600182028036833780820191505090505b5090505b600085146126fc576001826126629190613f29565b9150600a8561267191906140f3565b603061267d9190613e48565b60f81b8183815181106126b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126f59190613e9e565b945061264d565b8093505050505b919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061277b575061277a82612c07565b5b9050919050565b60006127a38473ffffffffffffffffffffffffffffffffffffffff16612c71565b1561290c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026127cc611627565b8786866040518563ffffffff1660e01b81526004016127ee94939291906139f6565b602060405180830381600087803b15801561280857600080fd5b505af192505050801561283957506040513d601f19601f820116820180604052508101906128369190613437565b60015b6128bc573d8060008114612869576040519150601f19603f3d011682016040523d82523d6000602084013e61286e565b606091505b506000815114156128b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ab90613b03565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612911565b600190505b949350505050565b612924838383612c94565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129675761296281612c99565b6129a6565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146129a5576129a48382612ce2565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129e9576129e481612e4f565b612a28565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612a2757612a268282612f92565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9490613c63565b60405180910390fd5b612aa6816115bb565b15612ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612add90613b63565b60405180910390fd5b612af260008383612459565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b429190613e48565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c0360008383612469565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612cef84610ec4565b612cf99190613f29565b9050600060086000848152602001908152602001600020549050818114612dde576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050612e639190613f29565b90506000600a6000848152602001908152602001600020549050600060098381548110612eb9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060098381548110612f01577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480612f76577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612f9d83610ec4565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b82805461301d90614047565b90600052602060002090601f01602090048101928261303f5760008555613086565b82601f1061305857805160ff1916838001178555613086565b82800160010185558215613086579182015b8281111561308557825182559160200191906001019061306a565b5b5090506130939190613097565b5090565b5b808211156130b0576000816000905550600101613098565b5090565b60006130c76130c284613da3565b613d7e565b9050828152602081018484840111156130df57600080fd5b6130ea848285613fdb565b509392505050565b600061310561310084613dd4565b613d7e565b90508281526020810184848401111561311d57600080fd5b613128848285613fdb565b509392505050565b60008135905061313f816147b4565b92915050565b600081359050613154816147cb565b92915050565b600081359050613169816147e2565b92915050565b60008135905061317e816147f9565b92915050565b600081519050613193816147f9565b92915050565b600082601f8301126131aa57600080fd5b81356131ba8482602086016130b4565b91505092915050565b600082601f8301126131d457600080fd5b81356131e48482602086016130f2565b91505092915050565b6000813590506131fc81614810565b92915050565b60006020828403121561321457600080fd5b600061322284828501613130565b91505092915050565b6000806040838503121561323e57600080fd5b600061324c85828601613130565b925050602061325d85828601613130565b9150509250929050565b60008060006060848603121561327c57600080fd5b600061328a86828701613130565b935050602061329b86828701613130565b92505060406132ac868287016131ed565b9150509250925092565b600080600080608085870312156132cc57600080fd5b60006132da87828801613130565b94505060206132eb87828801613130565b93505060406132fc878288016131ed565b925050606085013567ffffffffffffffff81111561331957600080fd5b61332587828801613199565b91505092959194509250565b6000806040838503121561334457600080fd5b600061335285828601613130565b925050602061336385828601613145565b9150509250929050565b6000806040838503121561338057600080fd5b600061338e85828601613130565b925050602061339f858286016131ed565b9150509250929050565b6000602082840312156133bb57600080fd5b60006133c98482850161315a565b91505092915050565b600080604083850312156133e557600080fd5b60006133f38582860161315a565b925050602061340485828601613130565b9150509250929050565b60006020828403121561342057600080fd5b600061342e8482850161316f565b91505092915050565b60006020828403121561344957600080fd5b600061345784828501613184565b91505092915050565b60006020828403121561347257600080fd5b600082013567ffffffffffffffff81111561348c57600080fd5b613498848285016131c3565b91505092915050565b6000602082840312156134b357600080fd5b60006134c1848285016131ed565b91505092915050565b600080604083850312156134dd57600080fd5b60006134eb858286016131ed565b92505060206134fc85828601613130565b9150509250929050565b6000806040838503121561351957600080fd5b6000613527858286016131ed565b9250506020613538858286016131ed565b9150509250929050565b61354b81613f5d565b82525050565b61355a81613f6f565b82525050565b61356981613f7b565b82525050565b600061357a82613e05565b6135848185613e1b565b9350613594818560208601613fea565b61359d816141e0565b840191505092915050565b60006135b382613e10565b6135bd8185613e2c565b93506135cd818560208601613fea565b6135d6816141e0565b840191505092915050565b60006135ec82613e10565b6135f68185613e3d565b9350613606818560208601613fea565b80840191505092915050565b600061361f602083613e2c565b915061362a826141f1565b602082019050919050565b6000613642602b83613e2c565b915061364d8261421a565b604082019050919050565b6000613665603283613e2c565b915061367082614269565b604082019050919050565b6000613688601c83613e2c565b9150613693826142b8565b602082019050919050565b60006136ab602583613e2c565b91506136b6826142e1565b604082019050919050565b60006136ce601c83613e2c565b91506136d982614330565b602082019050919050565b60006136f1602083613e2c565b91506136fc82614359565b602082019050919050565b6000613714602483613e2c565b915061371f82614382565b604082019050919050565b6000613737601983613e2c565b9150613742826143d1565b602082019050919050565b600061375a602c83613e2c565b9150613765826143fa565b604082019050919050565b600061377d603883613e2c565b915061378882614449565b604082019050919050565b60006137a0602a83613e2c565b91506137ab82614498565b604082019050919050565b60006137c3602983613e2c565b91506137ce826144e7565b604082019050919050565b60006137e6602083613e2c565b91506137f182614536565b602082019050919050565b6000613809602c83613e2c565b91506138148261455f565b604082019050919050565b600061382c602f83613e2c565b9150613837826145ae565b604082019050919050565b600061384f601983613e2c565b915061385a826145fd565b602082019050919050565b6000613872602183613e2c565b915061387d82614626565b604082019050919050565b6000613895603183613e2c565b91506138a082614675565b604082019050919050565b60006138b8602c83613e2c565b91506138c3826146c4565b604082019050919050565b60006138db601783613e3d565b91506138e682614713565b601782019050919050565b60006138fe601183613e3d565b91506139098261473c565b601182019050919050565b6000613921602f83613e2c565b915061392c82614765565b604082019050919050565b61394081613fd1565b82525050565b600061395282856135e1565b915061395e82846135e1565b91508190509392505050565b6000613975826138ce565b915061398182856135e1565b915061398c826138f1565b915061399882846135e1565b91508190509392505050565b60006020820190506139b96000830184613542565b92915050565b60006060820190506139d46000830186613542565b6139e16020830185613542565b6139ee6040830184613937565b949350505050565b6000608082019050613a0b6000830187613542565b613a186020830186613542565b613a256040830185613937565b8181036060830152613a37818461356f565b905095945050505050565b6000604082019050613a576000830185613542565b613a646020830184613937565b9392505050565b6000602082019050613a806000830184613551565b92915050565b6000602082019050613a9b6000830184613560565b92915050565b60006020820190508181036000830152613abb81846135a8565b905092915050565b60006020820190508181036000830152613adc81613612565b9050919050565b60006020820190508181036000830152613afc81613635565b9050919050565b60006020820190508181036000830152613b1c81613658565b9050919050565b60006020820190508181036000830152613b3c8161367b565b9050919050565b60006020820190508181036000830152613b5c8161369e565b9050919050565b60006020820190508181036000830152613b7c816136c1565b9050919050565b60006020820190508181036000830152613b9c816136e4565b9050919050565b60006020820190508181036000830152613bbc81613707565b9050919050565b60006020820190508181036000830152613bdc8161372a565b9050919050565b60006020820190508181036000830152613bfc8161374d565b9050919050565b60006020820190508181036000830152613c1c81613770565b9050919050565b60006020820190508181036000830152613c3c81613793565b9050919050565b60006020820190508181036000830152613c5c816137b6565b9050919050565b60006020820190508181036000830152613c7c816137d9565b9050919050565b60006020820190508181036000830152613c9c816137fc565b9050919050565b60006020820190508181036000830152613cbc8161381f565b9050919050565b60006020820190508181036000830152613cdc81613842565b9050919050565b60006020820190508181036000830152613cfc81613865565b9050919050565b60006020820190508181036000830152613d1c81613888565b9050919050565b60006020820190508181036000830152613d3c816138ab565b9050919050565b60006020820190508181036000830152613d5c81613914565b9050919050565b6000602082019050613d786000830184613937565b92915050565b6000613d88613d99565b9050613d948282614079565b919050565b6000604051905090565b600067ffffffffffffffff821115613dbe57613dbd6141b1565b5b613dc7826141e0565b9050602081019050919050565b600067ffffffffffffffff821115613def57613dee6141b1565b5b613df8826141e0565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613e5382613fd1565b9150613e5e83613fd1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613e9357613e92614124565b5b828201905092915050565b6000613ea982613fd1565b9150613eb483613fd1565b925082613ec457613ec3614153565b5b828204905092915050565b6000613eda82613fd1565b9150613ee583613fd1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f1e57613f1d614124565b5b828202905092915050565b6000613f3482613fd1565b9150613f3f83613fd1565b925082821015613f5257613f51614124565b5b828203905092915050565b6000613f6882613fb1565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614008578082015181840152602081019050613fed565b83811115614017576000848401525b50505050565b600061402882613fd1565b9150600082141561403c5761403b614124565b5b600182039050919050565b6000600282049050600182168061405f57607f821691505b6020821081141561407357614072614182565b5b50919050565b614082826141e0565b810181811067ffffffffffffffff821117156140a1576140a06141b1565b5b80604052505050565b60006140b582613fd1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140e8576140e7614124565b5b600182019050919050565b60006140fe82613fd1565b915061410983613fd1565b92508261411957614118614153565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4d656d626572736869704e465420697320616c72656164792073657400000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4f6e6c7920666f72206d656d62657273686970204e465420636f6e7472616374600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a206e6f6e6578697374656e7420746f6b656e00000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6147bd81613f5d565b81146147c857600080fd5b50565b6147d481613f6f565b81146147df57600080fd5b50565b6147eb81613f7b565b81146147f657600080fd5b50565b61480281613f85565b811461480d57600080fd5b50565b61481981613fd1565b811461482457600080fd5b5056fea26469706673582212200c808705c31201c6a3f6c6eaf4e82944aa2d748f6cab3073a9e83f4cff37832464736f6c63430008020033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000023426f7265642041706520466565766965202d204645455620506c6174696e756d204d4300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006464545564d430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f6d696e742e666565762e6d632f6170692f697066732f6d657461646174612f6665657669655f706c6174696e756d2f000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Bored Ape Feevie - FEEV Platinum MC
Arg [1] : _symbol (string): FEEVMC
Arg [2] : _owner (address): 0xe97548Ead4b96c03a37B8FdaDEE5b51ecd08025e
Arg [3] : _royaltyReceiver (address): 0xe97548Ead4b96c03a37B8FdaDEE5b51ecd08025e
Arg [4] : _initialURI (string): https://mint.feev.mc/api/ipfs/metadata/feevie_platinum/
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e
Arg [3] : 000000000000000000000000e97548ead4b96c03a37b8fdadee5b51ecd08025e
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [6] : 426f7265642041706520466565766965202d204645455620506c6174696e756d
Arg [7] : 204d430000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [9] : 464545564d430000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [11] : 68747470733a2f2f6d696e742e666565762e6d632f6170692f697066732f6d65
Arg [12] : 7461646174612f6665657669655f706c6174696e756d2f000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.