Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Source Code
Overview
Max Total Supply
0 Mystery Egg
Holders
139
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
10 Mystery EggLoading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
NFT
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
interface IToken {
function mint(address to, uint256 amount) external;
function burnFrom(address account, uint256 amount) external;
}
contract NFT is ERC721, ERC2981, IERC721Receiver, Ownable, ReentrancyGuard {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
string public description;
string public imageUrl;
string public ipfsPrefix;
IToken public token;
IERC721 public externalNFT;
uint256 public smallFee; // nft + eth
uint256 public largeFee; // only eth
uint256 public mintLimit = 10;
mapping(address => uint256) public mintCountMap;
bool public mintEnabled = true;
bool public convertEnabled = false;
function setConvertEnabled(bool convertEnabled_) external onlyOwner { convertEnabled = convertEnabled_; }
uint256 public tokensPerRedeemedNFT;
uint256 public tokensRequiredForMint;
bool public isMysteryBox = true;
function setIsMysteryBox(bool isMysteryBox_) external onlyOwner { isMysteryBox = isMysteryBox_; }
uint256 public maxTotalMintCount = 8000;
uint256 public curTotalMintCount = 0;
// uint256 public maxTotalSupply = 10000;
function setMaxTotalMintCount(uint256 maxTotalMintCount_) external onlyOwner { maxTotalMintCount = maxTotalMintCount_; }
// function setMaxTotalSupply(uint256 maxTotalSupply_) external onlyOwner { maxTotalSupply = maxTotalSupply_; }
event MintedWithExternal(address indexed user, uint256 newTokenId);
event MintedWithEth(address indexed user, uint256 newTokenId);
event NFTRedeemedForTokens(address indexed user, uint256 tokenId, uint256 tokenAmount);
event TokensRedeemedForNFT(address indexed user, uint256 newTokenId, uint256 tokenAmount);
constructor(
string memory name_,
string memory symbol_,
string memory ipfsPrefix_,
address tokenAddress_,
address externalNftAddress_,
uint256 smallFee_,
uint256 largeFee_,
uint256 tokensPerRedeemedNFT_,
uint256 tokensRequiredForMint_,
address royaltyReceiver_,
uint96 royaltyFeeNumerator_
) ERC721(name_, symbol_) {
ipfsPrefix = ipfsPrefix_;
token = IToken(tokenAddress_);
externalNFT = IERC721(externalNftAddress_);
smallFee = smallFee_;
largeFee = largeFee_;
tokensPerRedeemedNFT = tokensPerRedeemedNFT_;
tokensRequiredForMint = tokensRequiredForMint_;
_setDefaultRoyalty(royaltyReceiver_, royaltyFeeNumerator_);
}
function updateFee(uint256 smallFee_, uint256 largeFee_) external onlyOwner {
smallFee = smallFee_;
largeFee = largeFee_;
}
function updateMintLimit(uint256 mintLimit_) external onlyOwner {
mintLimit = mintLimit_;
}
function updateMintEnabled(bool mintEnabled_) external onlyOwner {
mintEnabled = mintEnabled_;
}
function _mintTo(address to, bool isExternal) internal returns (uint256) {
_tokenIds.increment();
uint256 newId = _tokenIds.current();
_safeMint(to, newId);
if (isExternal) emit MintedWithExternal(to, newId);
else emit MintedWithEth(to, newId);
return newId;
}
// ---------- NFT -> Token ----------
// or
// ---------- Exteranl NFT -> NFT ----------
function onERC721Received(address, address from, uint256 tokenId, bytes calldata) external override returns (bytes4) {
if(msg.sender == address(externalNFT)){
// external nft -> nft
require(mintEnabled, "NFT: minting is disabled");
require(curTotalMintCount+1<=maxTotalMintCount,"NFT: max total mint count reached");
uint256 mintedCount=mintCountMap[msg.sender];
require(mintedCount < mintLimit,"NFT: can not mint more");
mintCountMap[msg.sender]+=1;
curTotalMintCount+=1;
_mintTo(from, true);
return this.onERC721Received.selector;
}
if(msg.sender != address(this)){
return this.onERC721Received.selector;
}
require(convertEnabled, "NFT: convert NFT to Token is disabled");
// nft -> token
token.mint(from, tokensPerRedeemedNFT);
emit NFTRedeemedForTokens(from, tokenId, tokensPerRedeemedNFT);
_burn(tokenId);
return this.onERC721Received.selector;
}
// ---------- Token -> NFT ----------
function redeemTokensForNFT() external nonReentrant returns (uint256) {
require(convertEnabled, "NFT: convert Token to Nft is disabled");
token.burnFrom(msg.sender, tokensRequiredForMint);
return _mintTo(msg.sender, false);
}
// ---------- Admin ----------
function setToken(address tokenAddress) external onlyOwner { token = IToken(tokenAddress); }
function setFees(uint256 smallFee_, uint256 largeFee_) external onlyOwner { smallFee = smallFee_; largeFee = largeFee_; }
function setTokenRates(uint256 tokensPerRedeemedNFT_, uint256 tokensRequiredForMint_) external onlyOwner {
tokensPerRedeemedNFT = tokensPerRedeemedNFT_;
tokensRequiredForMint = tokensRequiredForMint_;
}
function setMetadata(string memory desc, string memory img, string memory ipfs) external onlyOwner { description = desc; imageUrl = img; ipfsPrefix = ipfs; }
function withdrawETH(address payable to) external onlyOwner { payable(to).transfer(address(this).balance); }
function rescueToken(address token_) external onlyOwner {
uint256 balance = IERC20(token_).balanceOf(address(this));
IERC20(token_).transfer(msg.sender, balance);
}
function rescueExternalNFT(uint256 tokenId, address to) external onlyOwner {
externalNFT.safeTransferFrom(address(this), to, tokenId);
}
function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981) returns (bool) {
return super.supportsInterface(interfaceId);
}
function tokenURI(uint256 tokenId) public view override returns (string memory) {
require(_exists(tokenId), "NFT: not exists");
if(isMysteryBox) return string(abi.encodePacked(ipfsPrefix , "0.json"));
return string(abi.encodePacked(ipfsPrefix , Strings.toString(tokenId),".json"));
// string memory json = string(
// abi.encodePacked(
// '{"name":"', name(), ' #', Strings.toString(tokenId),
// '","description":"', description,
// '","image":"', imageUrl,'"}'
// )
// );
// return string(abi.encodePacked("data:application/json;base64,", Base64.encode(bytes(json))));
}
receive() external payable {
if(largeFee==0 || !mintEnabled){
return;
}
uint256 count = msg.value / largeFee;
uint256 mintedCount=mintCountMap[msg.sender];
if(mintedCount>=mintLimit){
return;
}
uint256 remainingCount=mintLimit-mintedCount;
if(count>remainingCount){
count=remainingCount;
}
require(curTotalMintCount+count<=maxTotalMintCount, "NFT: max total mint count reached");
// can mint {count} nfts
mintCountMap[msg.sender]+=count;
curTotalMintCount+=count;
while (count > 0) {
_mintTo(msg.sender, false);
count--;
}
}
fallback() external payable {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
import "../utils/introspection/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 paid in that same unit of exchange.
*/
function royaltyInfo(
uint256 tokenId,
uint256 salePrice
) external view returns (address receiver, uint256 royaltyAmount);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)
pragma solidity ^0.8.0;
import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
*
* Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
* specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
*
* Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
* fee is specified in basis points by default.
*
* IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
* https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
* voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
*
* _Available since v4.5._
*/
abstract contract ERC2981 is IERC2981, ERC165 {
struct RoyaltyInfo {
address receiver;
uint96 royaltyFraction;
}
RoyaltyInfo private _defaultRoyaltyInfo;
mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @inheritdoc IERC2981
*/
function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) {
RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];
if (royalty.receiver == address(0)) {
royalty = _defaultRoyaltyInfo;
}
uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();
return (royalty.receiver, royaltyAmount);
}
/**
* @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
* fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
* override.
*/
function _feeDenominator() internal pure virtual returns (uint96) {
return 10000;
}
/**
* @dev Sets the royalty information that all ids in this contract will default to.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: invalid receiver");
_defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Removes default royalty information.
*/
function _deleteDefaultRoyalty() internal virtual {
delete _defaultRoyaltyInfo;
}
/**
* @dev Sets the royalty information for a specific token id, overriding the global default.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: Invalid parameters");
_tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Resets royalty information for the token id back to the global default.
*/
function _resetTokenRoyalty(uint256 tokenId) internal virtual {
delete _tokenRoyaltyInfo[tokenId];
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: address zero is not a valid owner");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _ownerOf(tokenId);
require(owner != address(0), "ERC721: invalid token ID");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
_requireMinted(tokenId);
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not token owner or approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
_requireMinted(tokenId);
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(address from, address to, uint256 tokenId) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
*/
function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
return _owners[tokenId];
}
/**
* @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 _ownerOf(tokenId) != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId, 1);
// Check that tokenId was not minted by `_beforeTokenTransfer` hook
require(!_exists(tokenId), "ERC721: token already minted");
unchecked {
// Will not overflow unless all 2**256 token ids are minted to the same owner.
// Given that tokens are minted one by one, it is impossible in practice that
// this ever happens. Might change if we allow batch minting.
// The ERC fails to describe this case.
_balances[to] += 1;
}
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId, 1);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
* This is an internal function that does not check if the sender is authorized to operate on the token.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId, 1);
// Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
owner = ERC721.ownerOf(tokenId);
// Clear approvals
delete _tokenApprovals[tokenId];
unchecked {
// Cannot overflow, as that would require more tokens to be burned/transferred
// out than the owner initially received through minting and transferring in.
_balances[owner] -= 1;
}
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId, 1);
}
/**
* @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, 1);
// Check that tokenId was not transferred by `_beforeTokenTransfer` hook
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
// Clear approvals from the previous owner
delete _tokenApprovals[tokenId];
unchecked {
// `_balances[from]` cannot overflow for the same reason as described in `_burn`:
// `from`'s balance is the number of token held, which is at least one before the current
// transfer.
// `_balances[to]` could overflow in the conditions described in `_mint`. That would require
// all 2**256 token ids to be minted, which in practice is impossible.
_balances[from] -= 1;
_balances[to] += 1;
}
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId, 1);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits an {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits an {ApprovalForAll} event.
*/
function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Reverts if the `tokenId` has not been minted yet.
*/
function _requireMinted(uint256 tokenId) internal view virtual {
require(_exists(tokenId), "ERC721: invalid token ID");
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
/// @solidity memory-safe-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
* used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
* - When `from` is zero, the tokens will be minted for `to`.
* - When `to` is zero, ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
* - `batchSize` is non-zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}
/**
* @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
* used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
* - When `from` is zero, the tokens were minted for `to`.
* - When `to` is zero, ``from``'s tokens were burned.
* - `from` and `to` are never both zero.
* - `batchSize` is non-zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}
/**
* @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
*
* WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
* being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
* that `ownerOf(tokenId)` is `a`.
*/
// solhint-disable-next-line func-name-mixedcase
function __unsafe_increaseBalance(address account, uint256 amount) internal {
_balances[account] += amount;
}
}// 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.9.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or 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 {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.6) (utils/Base64.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides a set of functions to operate with Base64 strings.
*
* _Available since v4.5._
*/
library Base64 {
/**
* @dev Base64 Encoding/Decoding Table
*/
string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/**
* @dev Converts a `bytes` to its Bytes64 `string` representation.
*/
function encode(bytes memory data) internal pure returns (string memory) {
/**
* Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
* https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
*/
if (data.length == 0) return "";
// Loads the table into memory
string memory table = _TABLE;
// Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
// and split into 4 numbers of 6 bits.
// The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
// - `data.length + 2` -> Round up
// - `/ 3` -> Number of 3-bytes chunks
// - `4 *` -> 4 characters for each chunk
string memory result = new string(4 * ((data.length + 2) / 3));
/// @solidity memory-safe-assembly
assembly {
// Prepare the lookup table (skip the first "length" byte)
let tablePtr := add(table, 1)
// Prepare result pointer, jump over length
let resultPtr := add(result, 0x20)
let dataPtr := data
let endPtr := add(data, mload(data))
// In some cases, the last iteration will read bytes after the end of the data. We cache the value, and
// set it to zero to make sure no dirty bytes are read in that section.
let afterPtr := add(endPtr, 0x20)
let afterCache := mload(afterPtr)
mstore(afterPtr, 0x00)
// Run over the input, 3 bytes at a time
for {
} lt(dataPtr, endPtr) {
} {
// Advance 3 bytes
dataPtr := add(dataPtr, 3)
let input := mload(dataPtr)
// To write each character, shift the 3 byte (24 bits) chunk
// 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
// and apply logical AND with 0x3F to bitmask the least significant 6 bits.
// Use this as an index into the lookup table, mload an entire word
// so the desired character is in the least significant byte, and
// mstore8 this least significant byte into the result and continue.
mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
}
// Reset the value that was cached
mstore(afterPtr, afterCache)
// When data `bytes` is not exactly 3 bytes long
// it is padded with `=` characters at the end
switch mod(mload(data), 3)
case 1 {
mstore8(sub(resultPtr, 1), 0x3d)
mstore8(sub(resultPtr, 2), 0x3d)
}
case 2 {
mstore8(sub(resultPtr, 1), 0x3d)
}
}
return result;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// 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 v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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.9.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1, "Math: mulDiv overflow");
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
import "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toString(int256 value) internal pure returns (string memory) {
return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @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] = _SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return keccak256(bytes(a)) == keccak256(bytes(b));
}
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}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":"string","name":"ipfsPrefix_","type":"string"},{"internalType":"address","name":"tokenAddress_","type":"address"},{"internalType":"address","name":"externalNftAddress_","type":"address"},{"internalType":"uint256","name":"smallFee_","type":"uint256"},{"internalType":"uint256","name":"largeFee_","type":"uint256"},{"internalType":"uint256","name":"tokensPerRedeemedNFT_","type":"uint256"},{"internalType":"uint256","name":"tokensRequiredForMint_","type":"uint256"},{"internalType":"address","name":"royaltyReceiver_","type":"address"},{"internalType":"uint96","name":"royaltyFeeNumerator_","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"newTokenId","type":"uint256"}],"name":"MintedWithEth","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"newTokenId","type":"uint256"}],"name":"MintedWithExternal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"NFTRedeemedForTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"newTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"TokensRedeemedForNFT","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"},{"stateMutability":"payable","type":"fallback"},{"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":"convertEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curTotalMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"externalNFT","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ipfsPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMysteryBox","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"largeFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintCountMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemTokensForNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"rescueExternalNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"bool","name":"convertEnabled_","type":"bool"}],"name":"setConvertEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"smallFee_","type":"uint256"},{"internalType":"uint256","name":"largeFee_","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isMysteryBox_","type":"bool"}],"name":"setIsMysteryBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTotalMintCount_","type":"uint256"}],"name":"setMaxTotalMintCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"desc","type":"string"},{"internalType":"string","name":"img","type":"string"},{"internalType":"string","name":"ipfs","type":"string"}],"name":"setMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensPerRedeemedNFT_","type":"uint256"},{"internalType":"uint256","name":"tokensRequiredForMint_","type":"uint256"}],"name":"setTokenRates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"smallFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensPerRedeemedNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensRequiredForMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"smallFee_","type":"uint256"},{"internalType":"uint256","name":"largeFee_","type":"uint256"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"mintEnabled_","type":"bool"}],"name":"updateMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintLimit_","type":"uint256"}],"name":"updateMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
6080604052600a6012556001601460006101000a81548160ff0219169083151502179055506000601460016101000a81548160ff0219169083151502179055506001601760006101000a81548160ff021916908315150217905550611f40601855600060195534801561007157600080fd5b50604051615a94380380615a9483398181016040528101906100939190610669565b8a8a81600090816100a491906109c8565b5080600190816100b491906109c8565b5050506100d36100c86101a960201b60201c565b6101b160201b60201c565b600160098190555088600d90816100ea91906109c8565b5087600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085601081905550846011819055508360158190555082601681905550610199828261027760201b60201c565b5050505050505050505050610ba9565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61028561041260201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156102e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102da90610b1d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034990610b89565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600660008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6104838261043a565b810181811067ffffffffffffffff821117156104a2576104a161044b565b5b80604052505050565b60006104b561041c565b90506104c1828261047a565b919050565b600067ffffffffffffffff8211156104e1576104e061044b565b5b6104ea8261043a565b9050602081019050919050565b60005b838110156105155780820151818401526020810190506104fa565b60008484015250505050565b600061053461052f846104c6565b6104ab565b9050828152602081018484840111156105505761054f610435565b5b61055b8482856104f7565b509392505050565b600082601f83011261057857610577610430565b5b8151610588848260208601610521565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105bc82610591565b9050919050565b6105cc816105b1565b81146105d757600080fd5b50565b6000815190506105e9816105c3565b92915050565b6000819050919050565b610602816105ef565b811461060d57600080fd5b50565b60008151905061061f816105f9565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61064681610625565b811461065157600080fd5b50565b6000815190506106638161063d565b92915050565b60008060008060008060008060008060006101608c8e03121561068f5761068e610426565b5b60008c015167ffffffffffffffff8111156106ad576106ac61042b565b5b6106b98e828f01610563565b9b505060208c015167ffffffffffffffff8111156106da576106d961042b565b5b6106e68e828f01610563565b9a505060408c015167ffffffffffffffff8111156107075761070661042b565b5b6107138e828f01610563565b99505060606107248e828f016105da565b98505060806107358e828f016105da565b97505060a06107468e828f01610610565b96505060c06107578e828f01610610565b95505060e06107688e828f01610610565b94505061010061077a8e828f01610610565b93505061012061078c8e828f016105da565b92505061014061079e8e828f01610654565b9150509295989b509295989b9093969950565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061080357607f821691505b602082108103610816576108156107bc565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261087e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610841565b6108888683610841565b95508019841693508086168417925050509392505050565b6000819050919050565b60006108c56108c06108bb846105ef565b6108a0565b6105ef565b9050919050565b6000819050919050565b6108df836108aa565b6108f36108eb826108cc565b84845461084e565b825550505050565b600090565b6109086108fb565b6109138184846108d6565b505050565b5b818110156109375761092c600082610900565b600181019050610919565b5050565b601f82111561097c5761094d8161081c565b61095684610831565b81016020851015610965578190505b61097961097185610831565b830182610918565b50505b505050565b600082821c905092915050565b600061099f60001984600802610981565b1980831691505092915050565b60006109b8838361098e565b9150826002028217905092915050565b6109d1826107b1565b67ffffffffffffffff8111156109ea576109e961044b565b5b6109f482546107eb565b6109ff82828561093b565b600060209050601f831160018114610a325760008415610a20578287015190505b610a2a85826109ac565b865550610a92565b601f198416610a408661081c565b60005b82811015610a6857848901518255600182019150602085019450602081019050610a43565b86831015610a855784890151610a81601f89168261098e565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000610b07602a83610a9a565b9150610b1282610aab565b604082019050919050565b60006020820190508181036000830152610b3681610afa565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000610b73601983610a9a565b9150610b7e82610b3d565b602082019050919050565b60006020820190508181036000830152610ba281610b66565b9050919050565b614edc80610bb86000396000f3fe6080604052600436106102975760003560e01c806370a082311161015a578063c4b685bd116100c1578063e01d55c51161007a578063e01d55c514610ba1578063e08c289814610bca578063e985e9c514610bf3578063f163b7bc14610c30578063f2fde38b14610c59578063fc0c546a14610c8257610432565b8063c4b685bd14610a91578063c87b56dd14610abc578063c966110f14610af9578063c9ca145714610b22578063cccdb07914610b4d578063d123973014610b7657610432565b806396366be41161011357806396366be414610993578063996517cf146109be578063a22cb465146109e9578063a9f972a114610a12578063aba8315014610a3d578063b88d4fde14610a6857610432565b806370a0823114610893578063715018a6146108d05780637284e416146108e757806380ee31a2146109125780638da5cb5b1461093d57806395d89b411461096857610432565b806323b872dd116101fe5780634460d3cf116101b75780634460d3cf146107735780634fcdfa751461079c5780635bbdaed4146107c557806360e6d8fc146107f05780636352211e1461082d578063690d83201461086a57610432565b806323b872dd146106665780632740c1971461068f578063299153ff146106b85780632a55205a146106e357806338c615ca1461072157806342842e0e1461074a57610432565b80630c657dc2116102505780630c657dc2146105545780630d1d42631461057f5780631061bdbb146105aa578063144fa6d7146105d5578063150b7a02146105fe5780631715589a1461063b57610432565b806301ffc9a71461043457806306fdde0314610471578063081812fc1461049c5780630890d80c146104d9578063095ea7b3146105025780630b78f9c01461052b57610432565b3661043257600060115414806102ba5750601460009054906101000a900460ff16155b610430576000601154346102ce919061334c565b90506000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506012548110610324575050610430565b600081601254610334919061337d565b905080831115610342578092505b6018548360195461035391906133b1565b1115610394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038b90613468565b60405180910390fd5b82601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546103e391906133b1565b9250508190555082601960008282546103fc91906133b1565b925050819055505b600083111561042c57610418336000610cad565b50828061042490613488565b935050610404565b5050505b005b005b34801561044057600080fd5b5061045b6004803603810190610456919061351d565b610d83565b6040516104689190613565565b60405180910390f35b34801561047d57600080fd5b50610486610d95565b60405161049391906135ff565b60405180910390f35b3480156104a857600080fd5b506104c360048036038101906104be919061364d565b610e27565b6040516104d091906136bb565b60405180910390f35b3480156104e557600080fd5b5061050060048036038101906104fb919061380b565b610e6d565b005b34801561050e57600080fd5b50610529600480360381019061052491906138de565b610eaa565b005b34801561053757600080fd5b50610552600480360381019061054d919061391e565b610fc1565b005b34801561056057600080fd5b50610569610fdb565b604051610576919061396d565b60405180910390f35b34801561058b57600080fd5b50610594610fe1565b6040516105a19190613565565b60405180910390f35b3480156105b657600080fd5b506105bf610ff4565b6040516105cc919061396d565b60405180910390f35b3480156105e157600080fd5b506105fc60048036038101906105f79190613988565b6110f6565b005b34801561060a57600080fd5b5061062560048036038101906106209190613a15565b611142565b6040516106329190613aac565b60405180910390f35b34801561064757600080fd5b506106506114e1565b60405161065d919061396d565b60405180910390f35b34801561067257600080fd5b5061068d60048036038101906106889190613ac7565b6114e7565b005b34801561069b57600080fd5b506106b660048036038101906106b1919061391e565b611547565b005b3480156106c457600080fd5b506106cd611561565b6040516106da919061396d565b60405180910390f35b3480156106ef57600080fd5b5061070a6004803603810190610705919061391e565b611567565b604051610718929190613b1a565b60405180910390f35b34801561072d57600080fd5b5061074860048036038101906107439190613b6f565b611751565b005b34801561075657600080fd5b50610771600480360381019061076c9190613ac7565b611776565b005b34801561077f57600080fd5b5061079a60048036038101906107959190613988565b611796565b005b3480156107a857600080fd5b506107c360048036038101906107be9190613b6f565b61189f565b005b3480156107d157600080fd5b506107da6118c4565b6040516107e7919061396d565b60405180910390f35b3480156107fc57600080fd5b5061081760048036038101906108129190613988565b6118ca565b604051610824919061396d565b60405180910390f35b34801561083957600080fd5b50610854600480360381019061084f919061364d565b6118e2565b60405161086191906136bb565b60405180910390f35b34801561087657600080fd5b50610891600480360381019061088c9190613bda565b611968565b005b34801561089f57600080fd5b506108ba60048036038101906108b59190613988565b6119ba565b6040516108c7919061396d565b60405180910390f35b3480156108dc57600080fd5b506108e5611a71565b005b3480156108f357600080fd5b506108fc611a85565b60405161090991906135ff565b60405180910390f35b34801561091e57600080fd5b50610927611b13565b604051610934919061396d565b60405180910390f35b34801561094957600080fd5b50610952611b19565b60405161095f91906136bb565b60405180910390f35b34801561097457600080fd5b5061097d611b43565b60405161098a91906135ff565b60405180910390f35b34801561099f57600080fd5b506109a8611bd5565b6040516109b591906135ff565b60405180910390f35b3480156109ca57600080fd5b506109d3611c63565b6040516109e0919061396d565b60405180910390f35b3480156109f557600080fd5b50610a106004803603810190610a0b9190613c07565b611c69565b005b348015610a1e57600080fd5b50610a27611c7f565b604051610a349190613ca6565b60405180910390f35b348015610a4957600080fd5b50610a52611ca5565b604051610a5f91906135ff565b60405180910390f35b348015610a7457600080fd5b50610a8f6004803603810190610a8a9190613d62565b611d33565b005b348015610a9d57600080fd5b50610aa6611d95565b604051610ab3919061396d565b60405180910390f35b348015610ac857600080fd5b50610ae36004803603810190610ade919061364d565b611d9b565b604051610af091906135ff565b60405180910390f35b348015610b0557600080fd5b50610b206004803603810190610b1b9190613de5565b611e55565b005b348015610b2e57600080fd5b50610b37611ef2565b604051610b449190613565565b60405180910390f35b348015610b5957600080fd5b50610b746004803603810190610b6f919061364d565b611f05565b005b348015610b8257600080fd5b50610b8b611f17565b604051610b989190613565565b60405180910390f35b348015610bad57600080fd5b50610bc86004803603810190610bc3919061364d565b611f2a565b005b348015610bd657600080fd5b50610bf16004803603810190610bec919061391e565b611f3c565b005b348015610bff57600080fd5b50610c1a6004803603810190610c159190613e25565b611f56565b604051610c279190613565565b60405180910390f35b348015610c3c57600080fd5b50610c576004803603810190610c529190613b6f565b611fea565b005b348015610c6557600080fd5b50610c806004803603810190610c7b9190613988565b61200f565b005b348015610c8e57600080fd5b50610c97612092565b604051610ca49190613e86565b60405180910390f35b6000610cb9600a6120b8565b6000610cc5600a6120ce565b9050610cd184826120dc565b8215610d2a578373ffffffffffffffffffffffffffffffffffffffff167f427ef648e64862ad9736cccf5e6ad470479abefcddbd9e5ddc06e0eb052615e982604051610d1d919061396d565b60405180910390a2610d79565b8373ffffffffffffffffffffffffffffffffffffffff167f32046b4ebcfd3e3a32e0c186848f5478d4d507234a75dac45b638560723be7f882604051610d70919061396d565b60405180910390a25b8091505092915050565b6000610d8e826120fa565b9050919050565b606060008054610da490613ed0565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd090613ed0565b8015610e1d5780601f10610df257610100808354040283529160200191610e1d565b820191906000526020600020905b815481529060010190602001808311610e0057829003601f168201915b5050505050905090565b6000610e3282612174565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610e756121bf565b82600b9081610e8491906140a3565b5081600c9081610e9491906140a3565b5080600d9081610ea491906140a3565b50505050565b6000610eb5826118e2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1c906141e7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f4461223d565b73ffffffffffffffffffffffffffffffffffffffff161480610f735750610f7281610f6d61223d565b611f56565b5b610fb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa990614279565b60405180910390fd5b610fbc8383612245565b505050565b610fc96121bf565b81601081905550806011819055505050565b60155481565b601460019054906101000a900460ff1681565b6000610ffe6122fe565b601460019054906101000a900460ff1661104d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110449061430b565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc6790336016546040518363ffffffff1660e01b81526004016110ac929190613b1a565b600060405180830381600087803b1580156110c657600080fd5b505af11580156110da573d6000803e3d6000fd5b505050506110e9336000610cad565b90506110f361234d565b90565b6110fe6121bf565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff160361135057601460009054906101000a900460ff166111e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111df90614377565b60405180910390fd5b60185460016019546111fa91906133b1565b111561123b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123290613468565b60405180910390fd5b6000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060125481106112c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ba906143e3565b60405180910390fd5b6001601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461131391906133b1565b9250508190555060016019600082825461132d91906133b1565b9250508190555061133f866001610cad565b5063150b7a0260e01b9150506114d8565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113925763150b7a0260e01b90506114d8565b601460019054906101000a900460ff166113e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d890614475565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19866015546040518363ffffffff1660e01b8152600401611440929190613b1a565b600060405180830381600087803b15801561145a57600080fd5b505af115801561146e573d6000803e3d6000fd5b505050508473ffffffffffffffffffffffffffffffffffffffff167f424e745edf712b4ca64c3286b417515885146b2990e267ab99837f6e51209a2e856015546040516114bc929190614495565b60405180910390a26114cd84612357565b63150b7a0260e01b90505b95945050505050565b60115481565b6114f86114f261223d565b826124a5565b611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152e90614530565b60405180910390fd5b61154283838361253a565b505050565b61154f6121bf565b81601081905550806011819055505050565b60105481565b6000806000600760008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036116fc5760066040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000611706612833565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866117329190614550565b61173c919061334c565b90508160000151819350935050509250929050565b6117596121bf565b80601460006101000a81548160ff02191690831515021790555050565b61179183838360405180602001604052806000815250611d33565b505050565b61179e6121bf565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117d991906136bb565b602060405180830381865afa1580156117f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181a91906145a7565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611857929190613b1a565b6020604051808303816000875af1158015611876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189a91906145e9565b505050565b6118a76121bf565b80601760006101000a81548160ff02191690831515021790555050565b60165481565b60136020528060005260406000206000915090505481565b6000806118ee8361283d565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361195f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195690614662565b60405180910390fd5b80915050919050565b6119706121bf565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156119b6573d6000803e3d6000fd5b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a21906146f4565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611a796121bf565b611a83600061287a565b565b600b8054611a9290613ed0565b80601f0160208091040260200160405190810160405280929190818152602001828054611abe90613ed0565b8015611b0b5780601f10611ae057610100808354040283529160200191611b0b565b820191906000526020600020905b815481529060010190602001808311611aee57829003601f168201915b505050505081565b60195481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611b5290613ed0565b80601f0160208091040260200160405190810160405280929190818152602001828054611b7e90613ed0565b8015611bcb5780601f10611ba057610100808354040283529160200191611bcb565b820191906000526020600020905b815481529060010190602001808311611bae57829003601f168201915b5050505050905090565b600d8054611be290613ed0565b80601f0160208091040260200160405190810160405280929190818152602001828054611c0e90613ed0565b8015611c5b5780601f10611c3057610100808354040283529160200191611c5b565b820191906000526020600020905b815481529060010190602001808311611c3e57829003601f168201915b505050505081565b60125481565b611c7b611c7461223d565b8383612940565b5050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c8054611cb290613ed0565b80601f0160208091040260200160405190810160405280929190818152602001828054611cde90613ed0565b8015611d2b5780601f10611d0057610100808354040283529160200191611d2b565b820191906000526020600020905b815481529060010190602001808311611d0e57829003601f168201915b505050505081565b611d44611d3e61223d565b836124a5565b611d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7a90614530565b60405180910390fd5b611d8f84848484612aac565b50505050565b60185481565b6060611da682612b08565b611de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddc90614760565b60405180910390fd5b601760009054906101000a900460ff1615611e2257600d604051602001611e0c919061485a565b6040516020818303038152906040529050611e50565b600d611e2d83612b49565b604051602001611e3e9291906148f9565b60405160208183030381529060405290505b919050565b611e5d6121bf565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3083856040518463ffffffff1660e01b8152600401611ebc93929190614928565b600060405180830381600087803b158015611ed657600080fd5b505af1158015611eea573d6000803e3d6000fd5b505050505050565b601760009054906101000a900460ff1681565b611f0d6121bf565b8060188190555050565b601460009054906101000a900460ff1681565b611f326121bf565b8060128190555050565b611f446121bf565b81601581905550806016819055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ff26121bf565b80601460016101000a81548160ff02191690831515021790555050565b6120176121bf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207d906149d1565b60405180910390fd5b61208f8161287a565b50565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001816000016000828254019250508190555050565b600081600001549050919050565b6120f6828260405180602001604052806000815250612c17565b5050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061216d575061216c82612c72565b5b9050919050565b61217d81612b08565b6121bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b390614662565b60405180910390fd5b50565b6121c761223d565b73ffffffffffffffffffffffffffffffffffffffff166121e5611b19565b73ffffffffffffffffffffffffffffffffffffffff161461223b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223290614a3d565b60405180910390fd5b565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166122b8836118e2565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600260095403612343576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233a90614aa9565b60405180910390fd5b6002600981905550565b6001600981905550565b6000612362826118e2565b9050612372816000846001612d54565b61237b826118e2565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124a1816000846001612d5a565b5050565b6000806124b1836118e2565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806124f357506124f28185611f56565b5b8061253157508373ffffffffffffffffffffffffffffffffffffffff1661251984610e27565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661255a826118e2565b73ffffffffffffffffffffffffffffffffffffffff16146125b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a790614b3b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361261f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261690614bcd565b60405180910390fd5b61262c8383836001612d54565b8273ffffffffffffffffffffffffffffffffffffffff1661264c826118e2565b73ffffffffffffffffffffffffffffffffffffffff16146126a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269990614b3b565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461282e8383836001612d5a565b505050565b6000612710905090565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a590614c39565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a9f9190613565565b60405180910390a3505050565b612ab784848461253a565b612ac384848484612d60565b612b02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af990614ccb565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff16612b2a8361283d565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b606060006001612b5884612ee7565b01905060008167ffffffffffffffff811115612b7757612b766136e0565b5b6040519080825280601f01601f191660200182016040528015612ba95781602001600182028036833780820191505090505b509050600082602001820190505b600115612c0c578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612c0057612bff6132ee565b5b04945060008503612bb7575b819350505050919050565b612c21838361303a565b612c2e6000848484612d60565b612c6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6490614ccb565b60405180910390fd5b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d3d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d4d5750612d4c82613257565b5b9050919050565b50505050565b50505050565b6000612d818473ffffffffffffffffffffffffffffffffffffffff166132c1565b15612eda578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612daa61223d565b8786866040518563ffffffff1660e01b8152600401612dcc9493929190614d40565b6020604051808303816000875af1925050508015612e0857506040513d601f19601f82011682018060405250810190612e059190614da1565b60015b612e8a573d8060008114612e38576040519150601f19603f3d011682016040523d82523d6000602084013e612e3d565b606091505b506000815103612e82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7990614ccb565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612edf565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612f45577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612f3b57612f3a6132ee565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612f82576d04ee2d6d415b85acef81000000008381612f7857612f776132ee565b5b0492506020810190505b662386f26fc100008310612fb157662386f26fc100008381612fa757612fa66132ee565b5b0492506010810190505b6305f5e1008310612fda576305f5e1008381612fd057612fcf6132ee565b5b0492506008810190505b6127108310612fff576127108381612ff557612ff46132ee565b5b0492506004810190505b606483106130225760648381613018576130176132ee565b5b0492506002810190505b600a8310613031576001810190505b80915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a090614e1a565b60405180910390fd5b6130b281612b08565b156130f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e990614e86565b60405180910390fd5b613100600083836001612d54565b61310981612b08565b15613149576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314090614e86565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613253600083836001612d5a565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613357826132e4565b9150613362836132e4565b925082613372576133716132ee565b5b828204905092915050565b6000613388826132e4565b9150613393836132e4565b92508282039050818111156133ab576133aa61331d565b5b92915050565b60006133bc826132e4565b91506133c7836132e4565b92508282019050808211156133df576133de61331d565b5b92915050565b600082825260208201905092915050565b7f4e46543a206d617820746f74616c206d696e7420636f756e742072656163686560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b60006134526021836133e5565b915061345d826133f6565b604082019050919050565b6000602082019050818103600083015261348181613445565b9050919050565b6000613493826132e4565b9150600082036134a6576134a561331d565b5b600182039050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6134fa816134c5565b811461350557600080fd5b50565b600081359050613517816134f1565b92915050565b600060208284031215613533576135326134bb565b5b600061354184828501613508565b91505092915050565b60008115159050919050565b61355f8161354a565b82525050565b600060208201905061357a6000830184613556565b92915050565b600081519050919050565b60005b838110156135a957808201518184015260208101905061358e565b60008484015250505050565b6000601f19601f8301169050919050565b60006135d182613580565b6135db81856133e5565b93506135eb81856020860161358b565b6135f4816135b5565b840191505092915050565b6000602082019050818103600083015261361981846135c6565b905092915050565b61362a816132e4565b811461363557600080fd5b50565b60008135905061364781613621565b92915050565b600060208284031215613663576136626134bb565b5b600061367184828501613638565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006136a58261367a565b9050919050565b6136b58161369a565b82525050565b60006020820190506136d060008301846136ac565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613718826135b5565b810181811067ffffffffffffffff82111715613737576137366136e0565b5b80604052505050565b600061374a6134b1565b9050613756828261370f565b919050565b600067ffffffffffffffff821115613776576137756136e0565b5b61377f826135b5565b9050602081019050919050565b82818337600083830152505050565b60006137ae6137a98461375b565b613740565b9050828152602081018484840111156137ca576137c96136db565b5b6137d584828561378c565b509392505050565b600082601f8301126137f2576137f16136d6565b5b813561380284826020860161379b565b91505092915050565b600080600060608486031215613824576138236134bb565b5b600084013567ffffffffffffffff811115613842576138416134c0565b5b61384e868287016137dd565b935050602084013567ffffffffffffffff81111561386f5761386e6134c0565b5b61387b868287016137dd565b925050604084013567ffffffffffffffff81111561389c5761389b6134c0565b5b6138a8868287016137dd565b9150509250925092565b6138bb8161369a565b81146138c657600080fd5b50565b6000813590506138d8816138b2565b92915050565b600080604083850312156138f5576138f46134bb565b5b6000613903858286016138c9565b925050602061391485828601613638565b9150509250929050565b60008060408385031215613935576139346134bb565b5b600061394385828601613638565b925050602061395485828601613638565b9150509250929050565b613967816132e4565b82525050565b6000602082019050613982600083018461395e565b92915050565b60006020828403121561399e5761399d6134bb565b5b60006139ac848285016138c9565b91505092915050565b600080fd5b600080fd5b60008083601f8401126139d5576139d46136d6565b5b8235905067ffffffffffffffff8111156139f2576139f16139b5565b5b602083019150836001820283011115613a0e57613a0d6139ba565b5b9250929050565b600080600080600060808688031215613a3157613a306134bb565b5b6000613a3f888289016138c9565b9550506020613a50888289016138c9565b9450506040613a6188828901613638565b935050606086013567ffffffffffffffff811115613a8257613a816134c0565b5b613a8e888289016139bf565b92509250509295509295909350565b613aa6816134c5565b82525050565b6000602082019050613ac16000830184613a9d565b92915050565b600080600060608486031215613ae057613adf6134bb565b5b6000613aee868287016138c9565b9350506020613aff868287016138c9565b9250506040613b1086828701613638565b9150509250925092565b6000604082019050613b2f60008301856136ac565b613b3c602083018461395e565b9392505050565b613b4c8161354a565b8114613b5757600080fd5b50565b600081359050613b6981613b43565b92915050565b600060208284031215613b8557613b846134bb565b5b6000613b9384828501613b5a565b91505092915050565b6000613ba78261367a565b9050919050565b613bb781613b9c565b8114613bc257600080fd5b50565b600081359050613bd481613bae565b92915050565b600060208284031215613bf057613bef6134bb565b5b6000613bfe84828501613bc5565b91505092915050565b60008060408385031215613c1e57613c1d6134bb565b5b6000613c2c858286016138c9565b9250506020613c3d85828601613b5a565b9150509250929050565b6000819050919050565b6000613c6c613c67613c628461367a565b613c47565b61367a565b9050919050565b6000613c7e82613c51565b9050919050565b6000613c9082613c73565b9050919050565b613ca081613c85565b82525050565b6000602082019050613cbb6000830184613c97565b92915050565b600067ffffffffffffffff821115613cdc57613cdb6136e0565b5b613ce5826135b5565b9050602081019050919050565b6000613d05613d0084613cc1565b613740565b905082815260208101848484011115613d2157613d206136db565b5b613d2c84828561378c565b509392505050565b600082601f830112613d4957613d486136d6565b5b8135613d59848260208601613cf2565b91505092915050565b60008060008060808587031215613d7c57613d7b6134bb565b5b6000613d8a878288016138c9565b9450506020613d9b878288016138c9565b9350506040613dac87828801613638565b925050606085013567ffffffffffffffff811115613dcd57613dcc6134c0565b5b613dd987828801613d34565b91505092959194509250565b60008060408385031215613dfc57613dfb6134bb565b5b6000613e0a85828601613638565b9250506020613e1b858286016138c9565b9150509250929050565b60008060408385031215613e3c57613e3b6134bb565b5b6000613e4a858286016138c9565b9250506020613e5b858286016138c9565b9150509250929050565b6000613e7082613c73565b9050919050565b613e8081613e65565b82525050565b6000602082019050613e9b6000830184613e77565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ee857607f821691505b602082108103613efb57613efa613ea1565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613f637fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613f26565b613f6d8683613f26565b95508019841693508086168417925050509392505050565b6000613fa0613f9b613f96846132e4565b613c47565b6132e4565b9050919050565b6000819050919050565b613fba83613f85565b613fce613fc682613fa7565b848454613f33565b825550505050565b600090565b613fe3613fd6565b613fee818484613fb1565b505050565b5b8181101561401257614007600082613fdb565b600181019050613ff4565b5050565b601f8211156140575761402881613f01565b61403184613f16565b81016020851015614040578190505b61405461404c85613f16565b830182613ff3565b50505b505050565b600082821c905092915050565b600061407a6000198460080261405c565b1980831691505092915050565b60006140938383614069565b9150826002028217905092915050565b6140ac82613580565b67ffffffffffffffff8111156140c5576140c46136e0565b5b6140cf8254613ed0565b6140da828285614016565b600060209050601f83116001811461410d57600084156140fb578287015190505b6141058582614087565b86555061416d565b601f19841661411b86613f01565b60005b828110156141435784890151825560018201915060208501945060208101905061411e565b86831015614160578489015161415c601f891682614069565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006141d16021836133e5565b91506141dc82614175565b604082019050919050565b60006020820190508181036000830152614200816141c4565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000614263603d836133e5565b915061426e82614207565b604082019050919050565b6000602082019050818103600083015261429281614256565b9050919050565b7f4e46543a20636f6e7665727420546f6b656e20746f204e66742069732064697360008201527f61626c6564000000000000000000000000000000000000000000000000000000602082015250565b60006142f56025836133e5565b915061430082614299565b604082019050919050565b60006020820190508181036000830152614324816142e8565b9050919050565b7f4e46543a206d696e74696e672069732064697361626c65640000000000000000600082015250565b60006143616018836133e5565b915061436c8261432b565b602082019050919050565b6000602082019050818103600083015261439081614354565b9050919050565b7f4e46543a2063616e206e6f74206d696e74206d6f726500000000000000000000600082015250565b60006143cd6016836133e5565b91506143d882614397565b602082019050919050565b600060208201905081810360008301526143fc816143c0565b9050919050565b7f4e46543a20636f6e76657274204e465420746f20546f6b656e2069732064697360008201527f61626c6564000000000000000000000000000000000000000000000000000000602082015250565b600061445f6025836133e5565b915061446a82614403565b604082019050919050565b6000602082019050818103600083015261448e81614452565b9050919050565b60006040820190506144aa600083018561395e565b6144b7602083018461395e565b9392505050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061451a602d836133e5565b9150614525826144be565b604082019050919050565b600060208201905081810360008301526145498161450d565b9050919050565b600061455b826132e4565b9150614566836132e4565b9250828202614574816132e4565b9150828204841483151761458b5761458a61331d565b5b5092915050565b6000815190506145a181613621565b92915050565b6000602082840312156145bd576145bc6134bb565b5b60006145cb84828501614592565b91505092915050565b6000815190506145e381613b43565b92915050565b6000602082840312156145ff576145fe6134bb565b5b600061460d848285016145d4565b91505092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061464c6018836133e5565b915061465782614616565b602082019050919050565b6000602082019050818103600083015261467b8161463f565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006146de6029836133e5565b91506146e982614682565b604082019050919050565b6000602082019050818103600083015261470d816146d1565b9050919050565b7f4e46543a206e6f74206578697374730000000000000000000000000000000000600082015250565b600061474a600f836133e5565b915061475582614714565b602082019050919050565b600060208201905081810360008301526147798161473d565b9050919050565b600081905092915050565b6000815461479881613ed0565b6147a28186614780565b945060018216600081146147bd57600181146147d257614805565b60ff1983168652811515820286019350614805565b6147db85613f01565b60005b838110156147fd578154818901526001820191506020810190506147de565b838801955050505b50505092915050565b7f302e6a736f6e0000000000000000000000000000000000000000000000000000600082015250565b6000614844600683614780565b915061484f8261480e565b600682019050919050565b6000614866828461478b565b915061487182614837565b915081905092915050565b600061488782613580565b6148918185614780565b93506148a181856020860161358b565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006148e3600583614780565b91506148ee826148ad565b600582019050919050565b6000614905828561478b565b9150614911828461487c565b915061491c826148d6565b91508190509392505050565b600060608201905061493d60008301866136ac565b61494a60208301856136ac565b614957604083018461395e565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149bb6026836133e5565b91506149c68261495f565b604082019050919050565b600060208201905081810360008301526149ea816149ae565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a276020836133e5565b9150614a32826149f1565b602082019050919050565b60006020820190508181036000830152614a5681614a1a565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614a93601f836133e5565b9150614a9e82614a5d565b602082019050919050565b60006020820190508181036000830152614ac281614a86565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614b256025836133e5565b9150614b3082614ac9565b604082019050919050565b60006020820190508181036000830152614b5481614b18565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614bb76024836133e5565b9150614bc282614b5b565b604082019050919050565b60006020820190508181036000830152614be681614baa565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614c236019836133e5565b9150614c2e82614bed565b602082019050919050565b60006020820190508181036000830152614c5281614c16565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614cb56032836133e5565b9150614cc082614c59565b604082019050919050565b60006020820190508181036000830152614ce481614ca8565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614d1282614ceb565b614d1c8185614cf6565b9350614d2c81856020860161358b565b614d35816135b5565b840191505092915050565b6000608082019050614d5560008301876136ac565b614d6260208301866136ac565b614d6f604083018561395e565b8181036060830152614d818184614d07565b905095945050505050565b600081519050614d9b816134f1565b92915050565b600060208284031215614db757614db66134bb565b5b6000614dc584828501614d8c565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614e046020836133e5565b9150614e0f82614dce565b602082019050919050565b60006020820190508181036000830152614e3381614df7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614e70601c836133e5565b9150614e7b82614e3a565b602082019050919050565b60006020820190508181036000830152614e9f81614e63565b905091905056fea2646970667358221220b91629fcff254e6fe0c497aada59d86a89e99dc8ae8f96dcdaa8cf3fedf19b8664736f6c634300081c0033000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000003c697f62162b5d355fd352c16eac37e437d4b5900000000000000000000000026d85a13212433fe6a8381969c2b0db390a0b0ae00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002d79883d2000000000000000000000000000000000000000000000000021e19e0c9bab240000000000000000000000000000000000000000000000000021e19e0c9bab24000000000000000000000000000005ee4690186919d50c5ff897f59bd08ccac649049000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000000b4d79737465727920456767000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4d79737465727920456767000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005e68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f6261667962656967376e70376f6c7235777773326b3468357264356d336b647465676a6c7261347732687165357275616266786e6368346c7661692f0000
Deployed Bytecode
0x6080604052600436106102975760003560e01c806370a082311161015a578063c4b685bd116100c1578063e01d55c51161007a578063e01d55c514610ba1578063e08c289814610bca578063e985e9c514610bf3578063f163b7bc14610c30578063f2fde38b14610c59578063fc0c546a14610c8257610432565b8063c4b685bd14610a91578063c87b56dd14610abc578063c966110f14610af9578063c9ca145714610b22578063cccdb07914610b4d578063d123973014610b7657610432565b806396366be41161011357806396366be414610993578063996517cf146109be578063a22cb465146109e9578063a9f972a114610a12578063aba8315014610a3d578063b88d4fde14610a6857610432565b806370a0823114610893578063715018a6146108d05780637284e416146108e757806380ee31a2146109125780638da5cb5b1461093d57806395d89b411461096857610432565b806323b872dd116101fe5780634460d3cf116101b75780634460d3cf146107735780634fcdfa751461079c5780635bbdaed4146107c557806360e6d8fc146107f05780636352211e1461082d578063690d83201461086a57610432565b806323b872dd146106665780632740c1971461068f578063299153ff146106b85780632a55205a146106e357806338c615ca1461072157806342842e0e1461074a57610432565b80630c657dc2116102505780630c657dc2146105545780630d1d42631461057f5780631061bdbb146105aa578063144fa6d7146105d5578063150b7a02146105fe5780631715589a1461063b57610432565b806301ffc9a71461043457806306fdde0314610471578063081812fc1461049c5780630890d80c146104d9578063095ea7b3146105025780630b78f9c01461052b57610432565b3661043257600060115414806102ba5750601460009054906101000a900460ff16155b610430576000601154346102ce919061334c565b90506000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506012548110610324575050610430565b600081601254610334919061337d565b905080831115610342578092505b6018548360195461035391906133b1565b1115610394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038b90613468565b60405180910390fd5b82601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546103e391906133b1565b9250508190555082601960008282546103fc91906133b1565b925050819055505b600083111561042c57610418336000610cad565b50828061042490613488565b935050610404565b5050505b005b005b34801561044057600080fd5b5061045b6004803603810190610456919061351d565b610d83565b6040516104689190613565565b60405180910390f35b34801561047d57600080fd5b50610486610d95565b60405161049391906135ff565b60405180910390f35b3480156104a857600080fd5b506104c360048036038101906104be919061364d565b610e27565b6040516104d091906136bb565b60405180910390f35b3480156104e557600080fd5b5061050060048036038101906104fb919061380b565b610e6d565b005b34801561050e57600080fd5b50610529600480360381019061052491906138de565b610eaa565b005b34801561053757600080fd5b50610552600480360381019061054d919061391e565b610fc1565b005b34801561056057600080fd5b50610569610fdb565b604051610576919061396d565b60405180910390f35b34801561058b57600080fd5b50610594610fe1565b6040516105a19190613565565b60405180910390f35b3480156105b657600080fd5b506105bf610ff4565b6040516105cc919061396d565b60405180910390f35b3480156105e157600080fd5b506105fc60048036038101906105f79190613988565b6110f6565b005b34801561060a57600080fd5b5061062560048036038101906106209190613a15565b611142565b6040516106329190613aac565b60405180910390f35b34801561064757600080fd5b506106506114e1565b60405161065d919061396d565b60405180910390f35b34801561067257600080fd5b5061068d60048036038101906106889190613ac7565b6114e7565b005b34801561069b57600080fd5b506106b660048036038101906106b1919061391e565b611547565b005b3480156106c457600080fd5b506106cd611561565b6040516106da919061396d565b60405180910390f35b3480156106ef57600080fd5b5061070a6004803603810190610705919061391e565b611567565b604051610718929190613b1a565b60405180910390f35b34801561072d57600080fd5b5061074860048036038101906107439190613b6f565b611751565b005b34801561075657600080fd5b50610771600480360381019061076c9190613ac7565b611776565b005b34801561077f57600080fd5b5061079a60048036038101906107959190613988565b611796565b005b3480156107a857600080fd5b506107c360048036038101906107be9190613b6f565b61189f565b005b3480156107d157600080fd5b506107da6118c4565b6040516107e7919061396d565b60405180910390f35b3480156107fc57600080fd5b5061081760048036038101906108129190613988565b6118ca565b604051610824919061396d565b60405180910390f35b34801561083957600080fd5b50610854600480360381019061084f919061364d565b6118e2565b60405161086191906136bb565b60405180910390f35b34801561087657600080fd5b50610891600480360381019061088c9190613bda565b611968565b005b34801561089f57600080fd5b506108ba60048036038101906108b59190613988565b6119ba565b6040516108c7919061396d565b60405180910390f35b3480156108dc57600080fd5b506108e5611a71565b005b3480156108f357600080fd5b506108fc611a85565b60405161090991906135ff565b60405180910390f35b34801561091e57600080fd5b50610927611b13565b604051610934919061396d565b60405180910390f35b34801561094957600080fd5b50610952611b19565b60405161095f91906136bb565b60405180910390f35b34801561097457600080fd5b5061097d611b43565b60405161098a91906135ff565b60405180910390f35b34801561099f57600080fd5b506109a8611bd5565b6040516109b591906135ff565b60405180910390f35b3480156109ca57600080fd5b506109d3611c63565b6040516109e0919061396d565b60405180910390f35b3480156109f557600080fd5b50610a106004803603810190610a0b9190613c07565b611c69565b005b348015610a1e57600080fd5b50610a27611c7f565b604051610a349190613ca6565b60405180910390f35b348015610a4957600080fd5b50610a52611ca5565b604051610a5f91906135ff565b60405180910390f35b348015610a7457600080fd5b50610a8f6004803603810190610a8a9190613d62565b611d33565b005b348015610a9d57600080fd5b50610aa6611d95565b604051610ab3919061396d565b60405180910390f35b348015610ac857600080fd5b50610ae36004803603810190610ade919061364d565b611d9b565b604051610af091906135ff565b60405180910390f35b348015610b0557600080fd5b50610b206004803603810190610b1b9190613de5565b611e55565b005b348015610b2e57600080fd5b50610b37611ef2565b604051610b449190613565565b60405180910390f35b348015610b5957600080fd5b50610b746004803603810190610b6f919061364d565b611f05565b005b348015610b8257600080fd5b50610b8b611f17565b604051610b989190613565565b60405180910390f35b348015610bad57600080fd5b50610bc86004803603810190610bc3919061364d565b611f2a565b005b348015610bd657600080fd5b50610bf16004803603810190610bec919061391e565b611f3c565b005b348015610bff57600080fd5b50610c1a6004803603810190610c159190613e25565b611f56565b604051610c279190613565565b60405180910390f35b348015610c3c57600080fd5b50610c576004803603810190610c529190613b6f565b611fea565b005b348015610c6557600080fd5b50610c806004803603810190610c7b9190613988565b61200f565b005b348015610c8e57600080fd5b50610c97612092565b604051610ca49190613e86565b60405180910390f35b6000610cb9600a6120b8565b6000610cc5600a6120ce565b9050610cd184826120dc565b8215610d2a578373ffffffffffffffffffffffffffffffffffffffff167f427ef648e64862ad9736cccf5e6ad470479abefcddbd9e5ddc06e0eb052615e982604051610d1d919061396d565b60405180910390a2610d79565b8373ffffffffffffffffffffffffffffffffffffffff167f32046b4ebcfd3e3a32e0c186848f5478d4d507234a75dac45b638560723be7f882604051610d70919061396d565b60405180910390a25b8091505092915050565b6000610d8e826120fa565b9050919050565b606060008054610da490613ed0565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd090613ed0565b8015610e1d5780601f10610df257610100808354040283529160200191610e1d565b820191906000526020600020905b815481529060010190602001808311610e0057829003601f168201915b5050505050905090565b6000610e3282612174565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610e756121bf565b82600b9081610e8491906140a3565b5081600c9081610e9491906140a3565b5080600d9081610ea491906140a3565b50505050565b6000610eb5826118e2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1c906141e7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f4461223d565b73ffffffffffffffffffffffffffffffffffffffff161480610f735750610f7281610f6d61223d565b611f56565b5b610fb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa990614279565b60405180910390fd5b610fbc8383612245565b505050565b610fc96121bf565b81601081905550806011819055505050565b60155481565b601460019054906101000a900460ff1681565b6000610ffe6122fe565b601460019054906101000a900460ff1661104d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110449061430b565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc6790336016546040518363ffffffff1660e01b81526004016110ac929190613b1a565b600060405180830381600087803b1580156110c657600080fd5b505af11580156110da573d6000803e3d6000fd5b505050506110e9336000610cad565b90506110f361234d565b90565b6110fe6121bf565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff160361135057601460009054906101000a900460ff166111e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111df90614377565b60405180910390fd5b60185460016019546111fa91906133b1565b111561123b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123290613468565b60405180910390fd5b6000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060125481106112c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ba906143e3565b60405180910390fd5b6001601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461131391906133b1565b9250508190555060016019600082825461132d91906133b1565b9250508190555061133f866001610cad565b5063150b7a0260e01b9150506114d8565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113925763150b7a0260e01b90506114d8565b601460019054906101000a900460ff166113e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d890614475565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19866015546040518363ffffffff1660e01b8152600401611440929190613b1a565b600060405180830381600087803b15801561145a57600080fd5b505af115801561146e573d6000803e3d6000fd5b505050508473ffffffffffffffffffffffffffffffffffffffff167f424e745edf712b4ca64c3286b417515885146b2990e267ab99837f6e51209a2e856015546040516114bc929190614495565b60405180910390a26114cd84612357565b63150b7a0260e01b90505b95945050505050565b60115481565b6114f86114f261223d565b826124a5565b611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152e90614530565b60405180910390fd5b61154283838361253a565b505050565b61154f6121bf565b81601081905550806011819055505050565b60105481565b6000806000600760008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036116fc5760066040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000611706612833565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866117329190614550565b61173c919061334c565b90508160000151819350935050509250929050565b6117596121bf565b80601460006101000a81548160ff02191690831515021790555050565b61179183838360405180602001604052806000815250611d33565b505050565b61179e6121bf565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117d991906136bb565b602060405180830381865afa1580156117f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181a91906145a7565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611857929190613b1a565b6020604051808303816000875af1158015611876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189a91906145e9565b505050565b6118a76121bf565b80601760006101000a81548160ff02191690831515021790555050565b60165481565b60136020528060005260406000206000915090505481565b6000806118ee8361283d565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361195f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195690614662565b60405180910390fd5b80915050919050565b6119706121bf565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156119b6573d6000803e3d6000fd5b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a21906146f4565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611a796121bf565b611a83600061287a565b565b600b8054611a9290613ed0565b80601f0160208091040260200160405190810160405280929190818152602001828054611abe90613ed0565b8015611b0b5780601f10611ae057610100808354040283529160200191611b0b565b820191906000526020600020905b815481529060010190602001808311611aee57829003601f168201915b505050505081565b60195481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611b5290613ed0565b80601f0160208091040260200160405190810160405280929190818152602001828054611b7e90613ed0565b8015611bcb5780601f10611ba057610100808354040283529160200191611bcb565b820191906000526020600020905b815481529060010190602001808311611bae57829003601f168201915b5050505050905090565b600d8054611be290613ed0565b80601f0160208091040260200160405190810160405280929190818152602001828054611c0e90613ed0565b8015611c5b5780601f10611c3057610100808354040283529160200191611c5b565b820191906000526020600020905b815481529060010190602001808311611c3e57829003601f168201915b505050505081565b60125481565b611c7b611c7461223d565b8383612940565b5050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c8054611cb290613ed0565b80601f0160208091040260200160405190810160405280929190818152602001828054611cde90613ed0565b8015611d2b5780601f10611d0057610100808354040283529160200191611d2b565b820191906000526020600020905b815481529060010190602001808311611d0e57829003601f168201915b505050505081565b611d44611d3e61223d565b836124a5565b611d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7a90614530565b60405180910390fd5b611d8f84848484612aac565b50505050565b60185481565b6060611da682612b08565b611de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddc90614760565b60405180910390fd5b601760009054906101000a900460ff1615611e2257600d604051602001611e0c919061485a565b6040516020818303038152906040529050611e50565b600d611e2d83612b49565b604051602001611e3e9291906148f9565b60405160208183030381529060405290505b919050565b611e5d6121bf565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3083856040518463ffffffff1660e01b8152600401611ebc93929190614928565b600060405180830381600087803b158015611ed657600080fd5b505af1158015611eea573d6000803e3d6000fd5b505050505050565b601760009054906101000a900460ff1681565b611f0d6121bf565b8060188190555050565b601460009054906101000a900460ff1681565b611f326121bf565b8060128190555050565b611f446121bf565b81601581905550806016819055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ff26121bf565b80601460016101000a81548160ff02191690831515021790555050565b6120176121bf565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207d906149d1565b60405180910390fd5b61208f8161287a565b50565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001816000016000828254019250508190555050565b600081600001549050919050565b6120f6828260405180602001604052806000815250612c17565b5050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061216d575061216c82612c72565b5b9050919050565b61217d81612b08565b6121bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b390614662565b60405180910390fd5b50565b6121c761223d565b73ffffffffffffffffffffffffffffffffffffffff166121e5611b19565b73ffffffffffffffffffffffffffffffffffffffff161461223b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223290614a3d565b60405180910390fd5b565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166122b8836118e2565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600260095403612343576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233a90614aa9565b60405180910390fd5b6002600981905550565b6001600981905550565b6000612362826118e2565b9050612372816000846001612d54565b61237b826118e2565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124a1816000846001612d5a565b5050565b6000806124b1836118e2565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806124f357506124f28185611f56565b5b8061253157508373ffffffffffffffffffffffffffffffffffffffff1661251984610e27565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661255a826118e2565b73ffffffffffffffffffffffffffffffffffffffff16146125b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a790614b3b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361261f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261690614bcd565b60405180910390fd5b61262c8383836001612d54565b8273ffffffffffffffffffffffffffffffffffffffff1661264c826118e2565b73ffffffffffffffffffffffffffffffffffffffff16146126a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269990614b3b565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461282e8383836001612d5a565b505050565b6000612710905090565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a590614c39565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a9f9190613565565b60405180910390a3505050565b612ab784848461253a565b612ac384848484612d60565b612b02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af990614ccb565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff16612b2a8361283d565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b606060006001612b5884612ee7565b01905060008167ffffffffffffffff811115612b7757612b766136e0565b5b6040519080825280601f01601f191660200182016040528015612ba95781602001600182028036833780820191505090505b509050600082602001820190505b600115612c0c578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612c0057612bff6132ee565b5b04945060008503612bb7575b819350505050919050565b612c21838361303a565b612c2e6000848484612d60565b612c6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6490614ccb565b60405180910390fd5b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d3d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d4d5750612d4c82613257565b5b9050919050565b50505050565b50505050565b6000612d818473ffffffffffffffffffffffffffffffffffffffff166132c1565b15612eda578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612daa61223d565b8786866040518563ffffffff1660e01b8152600401612dcc9493929190614d40565b6020604051808303816000875af1925050508015612e0857506040513d601f19601f82011682018060405250810190612e059190614da1565b60015b612e8a573d8060008114612e38576040519150601f19603f3d011682016040523d82523d6000602084013e612e3d565b606091505b506000815103612e82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7990614ccb565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612edf565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612f45577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612f3b57612f3a6132ee565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612f82576d04ee2d6d415b85acef81000000008381612f7857612f776132ee565b5b0492506020810190505b662386f26fc100008310612fb157662386f26fc100008381612fa757612fa66132ee565b5b0492506010810190505b6305f5e1008310612fda576305f5e1008381612fd057612fcf6132ee565b5b0492506008810190505b6127108310612fff576127108381612ff557612ff46132ee565b5b0492506004810190505b606483106130225760648381613018576130176132ee565b5b0492506002810190505b600a8310613031576001810190505b80915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a090614e1a565b60405180910390fd5b6130b281612b08565b156130f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e990614e86565b60405180910390fd5b613100600083836001612d54565b61310981612b08565b15613149576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314090614e86565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613253600083836001612d5a565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613357826132e4565b9150613362836132e4565b925082613372576133716132ee565b5b828204905092915050565b6000613388826132e4565b9150613393836132e4565b92508282039050818111156133ab576133aa61331d565b5b92915050565b60006133bc826132e4565b91506133c7836132e4565b92508282019050808211156133df576133de61331d565b5b92915050565b600082825260208201905092915050565b7f4e46543a206d617820746f74616c206d696e7420636f756e742072656163686560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b60006134526021836133e5565b915061345d826133f6565b604082019050919050565b6000602082019050818103600083015261348181613445565b9050919050565b6000613493826132e4565b9150600082036134a6576134a561331d565b5b600182039050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6134fa816134c5565b811461350557600080fd5b50565b600081359050613517816134f1565b92915050565b600060208284031215613533576135326134bb565b5b600061354184828501613508565b91505092915050565b60008115159050919050565b61355f8161354a565b82525050565b600060208201905061357a6000830184613556565b92915050565b600081519050919050565b60005b838110156135a957808201518184015260208101905061358e565b60008484015250505050565b6000601f19601f8301169050919050565b60006135d182613580565b6135db81856133e5565b93506135eb81856020860161358b565b6135f4816135b5565b840191505092915050565b6000602082019050818103600083015261361981846135c6565b905092915050565b61362a816132e4565b811461363557600080fd5b50565b60008135905061364781613621565b92915050565b600060208284031215613663576136626134bb565b5b600061367184828501613638565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006136a58261367a565b9050919050565b6136b58161369a565b82525050565b60006020820190506136d060008301846136ac565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613718826135b5565b810181811067ffffffffffffffff82111715613737576137366136e0565b5b80604052505050565b600061374a6134b1565b9050613756828261370f565b919050565b600067ffffffffffffffff821115613776576137756136e0565b5b61377f826135b5565b9050602081019050919050565b82818337600083830152505050565b60006137ae6137a98461375b565b613740565b9050828152602081018484840111156137ca576137c96136db565b5b6137d584828561378c565b509392505050565b600082601f8301126137f2576137f16136d6565b5b813561380284826020860161379b565b91505092915050565b600080600060608486031215613824576138236134bb565b5b600084013567ffffffffffffffff811115613842576138416134c0565b5b61384e868287016137dd565b935050602084013567ffffffffffffffff81111561386f5761386e6134c0565b5b61387b868287016137dd565b925050604084013567ffffffffffffffff81111561389c5761389b6134c0565b5b6138a8868287016137dd565b9150509250925092565b6138bb8161369a565b81146138c657600080fd5b50565b6000813590506138d8816138b2565b92915050565b600080604083850312156138f5576138f46134bb565b5b6000613903858286016138c9565b925050602061391485828601613638565b9150509250929050565b60008060408385031215613935576139346134bb565b5b600061394385828601613638565b925050602061395485828601613638565b9150509250929050565b613967816132e4565b82525050565b6000602082019050613982600083018461395e565b92915050565b60006020828403121561399e5761399d6134bb565b5b60006139ac848285016138c9565b91505092915050565b600080fd5b600080fd5b60008083601f8401126139d5576139d46136d6565b5b8235905067ffffffffffffffff8111156139f2576139f16139b5565b5b602083019150836001820283011115613a0e57613a0d6139ba565b5b9250929050565b600080600080600060808688031215613a3157613a306134bb565b5b6000613a3f888289016138c9565b9550506020613a50888289016138c9565b9450506040613a6188828901613638565b935050606086013567ffffffffffffffff811115613a8257613a816134c0565b5b613a8e888289016139bf565b92509250509295509295909350565b613aa6816134c5565b82525050565b6000602082019050613ac16000830184613a9d565b92915050565b600080600060608486031215613ae057613adf6134bb565b5b6000613aee868287016138c9565b9350506020613aff868287016138c9565b9250506040613b1086828701613638565b9150509250925092565b6000604082019050613b2f60008301856136ac565b613b3c602083018461395e565b9392505050565b613b4c8161354a565b8114613b5757600080fd5b50565b600081359050613b6981613b43565b92915050565b600060208284031215613b8557613b846134bb565b5b6000613b9384828501613b5a565b91505092915050565b6000613ba78261367a565b9050919050565b613bb781613b9c565b8114613bc257600080fd5b50565b600081359050613bd481613bae565b92915050565b600060208284031215613bf057613bef6134bb565b5b6000613bfe84828501613bc5565b91505092915050565b60008060408385031215613c1e57613c1d6134bb565b5b6000613c2c858286016138c9565b9250506020613c3d85828601613b5a565b9150509250929050565b6000819050919050565b6000613c6c613c67613c628461367a565b613c47565b61367a565b9050919050565b6000613c7e82613c51565b9050919050565b6000613c9082613c73565b9050919050565b613ca081613c85565b82525050565b6000602082019050613cbb6000830184613c97565b92915050565b600067ffffffffffffffff821115613cdc57613cdb6136e0565b5b613ce5826135b5565b9050602081019050919050565b6000613d05613d0084613cc1565b613740565b905082815260208101848484011115613d2157613d206136db565b5b613d2c84828561378c565b509392505050565b600082601f830112613d4957613d486136d6565b5b8135613d59848260208601613cf2565b91505092915050565b60008060008060808587031215613d7c57613d7b6134bb565b5b6000613d8a878288016138c9565b9450506020613d9b878288016138c9565b9350506040613dac87828801613638565b925050606085013567ffffffffffffffff811115613dcd57613dcc6134c0565b5b613dd987828801613d34565b91505092959194509250565b60008060408385031215613dfc57613dfb6134bb565b5b6000613e0a85828601613638565b9250506020613e1b858286016138c9565b9150509250929050565b60008060408385031215613e3c57613e3b6134bb565b5b6000613e4a858286016138c9565b9250506020613e5b858286016138c9565b9150509250929050565b6000613e7082613c73565b9050919050565b613e8081613e65565b82525050565b6000602082019050613e9b6000830184613e77565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ee857607f821691505b602082108103613efb57613efa613ea1565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613f637fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613f26565b613f6d8683613f26565b95508019841693508086168417925050509392505050565b6000613fa0613f9b613f96846132e4565b613c47565b6132e4565b9050919050565b6000819050919050565b613fba83613f85565b613fce613fc682613fa7565b848454613f33565b825550505050565b600090565b613fe3613fd6565b613fee818484613fb1565b505050565b5b8181101561401257614007600082613fdb565b600181019050613ff4565b5050565b601f8211156140575761402881613f01565b61403184613f16565b81016020851015614040578190505b61405461404c85613f16565b830182613ff3565b50505b505050565b600082821c905092915050565b600061407a6000198460080261405c565b1980831691505092915050565b60006140938383614069565b9150826002028217905092915050565b6140ac82613580565b67ffffffffffffffff8111156140c5576140c46136e0565b5b6140cf8254613ed0565b6140da828285614016565b600060209050601f83116001811461410d57600084156140fb578287015190505b6141058582614087565b86555061416d565b601f19841661411b86613f01565b60005b828110156141435784890151825560018201915060208501945060208101905061411e565b86831015614160578489015161415c601f891682614069565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006141d16021836133e5565b91506141dc82614175565b604082019050919050565b60006020820190508181036000830152614200816141c4565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000614263603d836133e5565b915061426e82614207565b604082019050919050565b6000602082019050818103600083015261429281614256565b9050919050565b7f4e46543a20636f6e7665727420546f6b656e20746f204e66742069732064697360008201527f61626c6564000000000000000000000000000000000000000000000000000000602082015250565b60006142f56025836133e5565b915061430082614299565b604082019050919050565b60006020820190508181036000830152614324816142e8565b9050919050565b7f4e46543a206d696e74696e672069732064697361626c65640000000000000000600082015250565b60006143616018836133e5565b915061436c8261432b565b602082019050919050565b6000602082019050818103600083015261439081614354565b9050919050565b7f4e46543a2063616e206e6f74206d696e74206d6f726500000000000000000000600082015250565b60006143cd6016836133e5565b91506143d882614397565b602082019050919050565b600060208201905081810360008301526143fc816143c0565b9050919050565b7f4e46543a20636f6e76657274204e465420746f20546f6b656e2069732064697360008201527f61626c6564000000000000000000000000000000000000000000000000000000602082015250565b600061445f6025836133e5565b915061446a82614403565b604082019050919050565b6000602082019050818103600083015261448e81614452565b9050919050565b60006040820190506144aa600083018561395e565b6144b7602083018461395e565b9392505050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061451a602d836133e5565b9150614525826144be565b604082019050919050565b600060208201905081810360008301526145498161450d565b9050919050565b600061455b826132e4565b9150614566836132e4565b9250828202614574816132e4565b9150828204841483151761458b5761458a61331d565b5b5092915050565b6000815190506145a181613621565b92915050565b6000602082840312156145bd576145bc6134bb565b5b60006145cb84828501614592565b91505092915050565b6000815190506145e381613b43565b92915050565b6000602082840312156145ff576145fe6134bb565b5b600061460d848285016145d4565b91505092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061464c6018836133e5565b915061465782614616565b602082019050919050565b6000602082019050818103600083015261467b8161463f565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006146de6029836133e5565b91506146e982614682565b604082019050919050565b6000602082019050818103600083015261470d816146d1565b9050919050565b7f4e46543a206e6f74206578697374730000000000000000000000000000000000600082015250565b600061474a600f836133e5565b915061475582614714565b602082019050919050565b600060208201905081810360008301526147798161473d565b9050919050565b600081905092915050565b6000815461479881613ed0565b6147a28186614780565b945060018216600081146147bd57600181146147d257614805565b60ff1983168652811515820286019350614805565b6147db85613f01565b60005b838110156147fd578154818901526001820191506020810190506147de565b838801955050505b50505092915050565b7f302e6a736f6e0000000000000000000000000000000000000000000000000000600082015250565b6000614844600683614780565b915061484f8261480e565b600682019050919050565b6000614866828461478b565b915061487182614837565b915081905092915050565b600061488782613580565b6148918185614780565b93506148a181856020860161358b565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006148e3600583614780565b91506148ee826148ad565b600582019050919050565b6000614905828561478b565b9150614911828461487c565b915061491c826148d6565b91508190509392505050565b600060608201905061493d60008301866136ac565b61494a60208301856136ac565b614957604083018461395e565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149bb6026836133e5565b91506149c68261495f565b604082019050919050565b600060208201905081810360008301526149ea816149ae565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a276020836133e5565b9150614a32826149f1565b602082019050919050565b60006020820190508181036000830152614a5681614a1a565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614a93601f836133e5565b9150614a9e82614a5d565b602082019050919050565b60006020820190508181036000830152614ac281614a86565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614b256025836133e5565b9150614b3082614ac9565b604082019050919050565b60006020820190508181036000830152614b5481614b18565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614bb76024836133e5565b9150614bc282614b5b565b604082019050919050565b60006020820190508181036000830152614be681614baa565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614c236019836133e5565b9150614c2e82614bed565b602082019050919050565b60006020820190508181036000830152614c5281614c16565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614cb56032836133e5565b9150614cc082614c59565b604082019050919050565b60006020820190508181036000830152614ce481614ca8565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614d1282614ceb565b614d1c8185614cf6565b9350614d2c81856020860161358b565b614d35816135b5565b840191505092915050565b6000608082019050614d5560008301876136ac565b614d6260208301866136ac565b614d6f604083018561395e565b8181036060830152614d818184614d07565b905095945050505050565b600081519050614d9b816134f1565b92915050565b600060208284031215614db757614db66134bb565b5b6000614dc584828501614d8c565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614e046020836133e5565b9150614e0f82614dce565b602082019050919050565b60006020820190508181036000830152614e3381614df7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614e70601c836133e5565b9150614e7b82614e3a565b602082019050919050565b60006020820190508181036000830152614e9f81614e63565b905091905056fea2646970667358221220b91629fcff254e6fe0c497aada59d86a89e99dc8ae8f96dcdaa8cf3fedf19b8664736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000003c697f62162b5d355fd352c16eac37e437d4b5900000000000000000000000026d85a13212433fe6a8381969c2b0db390a0b0ae00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002d79883d2000000000000000000000000000000000000000000000000021e19e0c9bab240000000000000000000000000000000000000000000000000021e19e0c9bab24000000000000000000000000000005ee4690186919d50c5ff897f59bd08ccac649049000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000000b4d79737465727920456767000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4d79737465727920456767000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005e68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f6261667962656967376e70376f6c7235777773326b3468357264356d336b647465676a6c7261347732687165357275616266786e6368346c7661692f0000
-----Decoded View---------------
Arg [0] : name_ (string): Mystery Egg
Arg [1] : symbol_ (string): Mystery Egg
Arg [2] : ipfsPrefix_ (string): https://gateway.pinata.cloud/ipfs/bafybeig7np7olr5wws2k4h5rd5m3kdtegjlra4w2hqe5ruabfxnch4lvai/
Arg [3] : tokenAddress_ (address): 0x03C697F62162B5D355fd352C16eaC37E437D4b59
Arg [4] : externalNftAddress_ (address): 0x26D85A13212433Fe6A8381969c2B0dB390a0B0ae
Arg [5] : smallFee_ (uint256): 0
Arg [6] : largeFee_ (uint256): 800000000000000
Arg [7] : tokensPerRedeemedNFT_ (uint256): 10000000000000000000000
Arg [8] : tokensRequiredForMint_ (uint256): 10000000000000000000000
Arg [9] : royaltyReceiver_ (address): 0x5EE4690186919D50c5Ff897f59BD08CCAC649049
Arg [10] : royaltyFeeNumerator_ (uint96): 300
-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [3] : 00000000000000000000000003c697f62162b5d355fd352c16eac37e437d4b59
Arg [4] : 00000000000000000000000026d85a13212433fe6a8381969c2b0db390a0b0ae
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000002d79883d20000
Arg [7] : 00000000000000000000000000000000000000000000021e19e0c9bab2400000
Arg [8] : 00000000000000000000000000000000000000000000021e19e0c9bab2400000
Arg [9] : 0000000000000000000000005ee4690186919d50c5ff897f59bd08ccac649049
Arg [10] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [11] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [12] : 4d79737465727920456767000000000000000000000000000000000000000000
Arg [13] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [14] : 4d79737465727920456767000000000000000000000000000000000000000000
Arg [15] : 000000000000000000000000000000000000000000000000000000000000005e
Arg [16] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [17] : 732f6261667962656967376e70376f6c7235777773326b3468357264356d336b
Arg [18] : 647465676a6c7261347732687165357275616266786e6368346c7661692f0000
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.