Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
2,958 FWAGMI
Holders
1,992
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 FWAGMILoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WagmiFlyer
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Base58.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; contract OwnableDelegateProxy {} /** * Used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users */ contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } abstract contract Target721 { function ownerOf(uint256 tokenId) public view virtual returns (address); function balanceOf(address owner) public view virtual returns (uint256); function getApproved(uint256 tokenId) public view virtual returns (address); function isApprovedForAll(address owner, address operator) public view virtual returns (bool); } struct TargetContract { Target721 target; uint256 start; uint256 end; bytes32 ipfs; } contract WagmiFlyer is Context, ERC165, IERC721, IERC721Metadata, Ownable, ERC2981 { event Conversion(address indexed from, uint256 indexed tokenId); using Address for address; using Strings for uint256; string private _name; string private _symbol; string internal _baseTokenURI; string internal _contractURI; uint256 internal _totalSupply; uint256 internal MAX_TOKEN_ID; bool internal burnAirdrop = false; TargetContract[] _targetList; address mainContractAddress; mapping(uint256 => address) private _owners; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; mapping(uint256 => bool) private cancelAirdropMap; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; mint(address(0), msg.sender, 0); _setDefaultRoyalty(_msgSender(), 1000); } /** ERC721 Information */ function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function totalSupply() public view returns (uint256) { return _totalSupply; } function contractURI() external view returns (string memory) { return _contractURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); for(uint idx = 0; idx < _targetList.length; idx++) { if(tokenId <= _targetList[idx].end && tokenId >= _targetList[idx].start) { if(_targetList[idx].ipfs > 0) { return string(abi.encodePacked("ipfs://", Base58.toBase58(abi.encodePacked(hex"1220", _targetList[idx].ipfs)))); } } } return _baseTokenURI; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165, ERC2981) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function balanceOf(address owner) external view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); uint256 balance = 0; for(uint256 i = 0; i <= MAX_TOKEN_ID; i++) { if(_ownerOf(i) == owner) { balance++; } } return balance; } function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } function _ownerOf(uint256 tokenId) internal view virtual returns (address) { address owner = _owners[tokenId]; if(owner == address(0) && !burnAirdrop && !cancelAirdropMap[tokenId]) { unchecked { for(uint idx = 0; idx < _targetList.length; idx++) { if(tokenId <= _targetList[idx].end) { uint256 newVal = tokenId + 1 - _targetList[idx].start; try _targetList[idx].target.ownerOf(newVal) returns (address result) { owner = result; } catch { owner = address(0); } return owner; } } } } return owner; } function setMax(uint256 _max) public onlyOwner { MAX_TOKEN_ID = _max; } function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** ERC721 APPROVE */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { if(_operatorApprovals[owner][operator]) { return true; } // Whitelist OpenSea proxy contract for easy trading. address proxy = proxyFor(owner); return proxy != address(0) && proxy == operator; } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } 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); } /** ERC721 transfer */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } function transferFrom( address from, address[] calldata to, uint256[] calldata tokenId ) public onlyOwner { require(to.length == tokenId.length, "list length mismatch"); unchecked { for (uint256 index = 0; index < to.length; index++) { emit Transfer(from, to[index], tokenId[index]); } _totalSupply += to.length; } } function batchMint( address[] calldata to, uint256[] calldata tokenId ) public onlyOwner { require(to.length == tokenId.length, "list length mismatch"); unchecked { for (uint256 index = 0; index < to.length; index++) { emit Transfer(address(0), to[index], tokenId[index]); } _totalSupply += to.length; } } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); unchecked { _owners[tokenId] = to; } emit Transfer(from, to, tokenId); } function _beforeTokenTransfer( address, address, uint256 tokenId ) internal virtual { // @note if transferred, flyer should not belong to airdrop target. if(!cancelAirdropMap[tokenId]) { cancelAirdropMap[tokenId] = true; } } 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"); } function transfer(address to, uint256 tokenId) internal virtual { emit Transfer(address(0), to, tokenId); } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @notice If owner do not want flyer, can cancel airdrop. */ function cancelAirdrop(uint256 tokenId) external { address raw = ownerOf(tokenId); require(!cancelAirdropMap[tokenId], "airdrop has been canceled"); require(raw == _msgSender() || owner() == _msgSender(), "Must own token."); unchecked { cancelAirdropMap[tokenId] = true; _owners[tokenId] = owner(); emit Transfer(raw, owner(), tokenId); } } /** * @dev owner can convert flyer to main contract's NFT */ function flyerConversion(address owner, uint256 tokenId) external { require(_msgSender() == mainContractAddress, "Only main contract can do this."); require(owner == ownerOf(tokenId), "Target must own token."); _burn(tokenId); emit Conversion(owner, tokenId); } function burn(uint256 tokenId) external { address raw = ownerOf(tokenId); require(raw == _msgSender() || owner() == _msgSender(), "Must own token to burn."); _burn(tokenId); } function setURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function setContractURI(string calldata _uri) external onlyOwner { _contractURI = _uri; } function setBurnAirdrop(bool setBurn) external onlyOwner { burnAirdrop = setBurn; } function _burn(uint256 tokenId) internal virtual { address own = _owners[tokenId]; _beforeTokenTransfer(own, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); unchecked { _totalSupply -= 1; } delete _owners[tokenId]; emit Transfer(own, address(0), tokenId); } function setTargetContract(address[] calldata adr, uint256[] calldata start, uint256[] calldata end, bytes32[] calldata b) external onlyOwner { delete _targetList; for(uint256 i = 0;i < adr.length;i++) { _targetList.push(TargetContract( Target721(adr[i]), start[i], end[i], b[i] )); } } /** @notice Returns the OpenSea proxy address for the owner. */ function proxyFor(address owner) internal view returns (address) { address registry; uint256 chainId; assembly { chainId := chainid() switch chainId // Production networks are placed higher to minimise the number of // checks performed and therefore reduce gas. By the same rationale, // mainnet comes before Polygon as it's more expensive. case 1 { // mainnet registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1 } case 137 { // polygon registry := 0x58807baD0B376efc12F5AD86aAc70E78ed67deaE } case 4 { // rinkeby registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317 } case 80001 { // mumbai registry := 0xff7Ca10aF37178BdD056628eF42fD7F799fAc77c } case 1337 { // The geth SimulatedBackend iff used with the ethier // openseatest package. This is mocked as a Wyvern proxy as it's // more complex than the 0x ones. registry := 0xE1a2bbc877b29ADBC56D2659DBcb0ae14ee62071 } } // Unlike Wyvern, the registry itself is the proxy for all owners on 0x // chains. if (registry == address(0) || chainId == 137 || chainId == 80001) { return registry; } return address(ProxyRegistry(registry).proxies(owner)); } function mint(address from, address adr, uint256 id) public onlyOwner payable { cancelAirdropMap[id] = true; _owners[id] = adr; emit Transfer(from, adr, id); _totalSupply += 1; } function setMainContract(address _adr) public onlyOwner { mainContractAddress = _adr; } function withdraw() external onlyOwner { (bool success, ) = payable(_msgSender()).call{ value: address(this).balance }(""); require(success, "failed"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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: * * - `tokenId` must be already minted. * - `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 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.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.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; library Base58 { // Internal variables bytes internal constant _ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; // Source: verifyIPFS (https://github.com/MrChico/verifyIPFS/blob/master/contracts/verifyIPFS.sol) // @author Martin Lundfall ([email protected]) // @dev Converts hex string to base 58 function toBase58(bytes memory source) internal pure returns (string memory) { if (source.length == 0) return new string(0); uint8[] memory digits = new uint8[](46); digits[0] = 0; uint8 digitlength = 1; for (uint256 i = 0; i < source.length; ++i) { uint256 carry = uint8(source[i]); for (uint256 j = 0; j < digitlength; ++j) { carry += uint256(digits[j]) * 256; digits[j] = uint8(carry % 58); carry = carry / 58; } while (carry > 0) { digits[digitlength] = uint8(carry % 58); digitlength++; carry = carry / 58; } } return string(_toAlphabet(_reverse(_truncate(digits, digitlength)))); } function _truncate(uint8[] memory array, uint8 length) internal pure returns (uint8[] memory) { uint8[] memory output = new uint8[](length); for (uint256 i = 0; i < length; i++) { output[i] = array[i]; } return output; } function _reverse(uint8[] memory input) internal pure returns (uint8[] memory) { uint8[] memory output = new uint8[](input.length); for (uint256 i = 0; i < input.length; i++) { output[i] = input[input.length - 1 - i]; } return output; } function _toAlphabet(uint8[] memory indices) internal pure returns (bytes memory) { bytes memory output = new bytes(indices.length); for (uint256 i = 0; i < indices.length; i++) { output[i] = _ALPHABET[indices[i]]; } return output; } }
// 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.6.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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Conversion","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"tokenId","type":"uint256[]"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"cancelAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"flyerConversion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"adr","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"setBurn","type":"bool"}],"name":"setBurnAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adr","type":"address"}],"name":"setMainContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"adr","type":"address[]"},{"internalType":"uint256[]","name":"start","type":"uint256[]"},{"internalType":"uint256[]","name":"end","type":"uint256[]"},{"internalType":"bytes32[]","name":"b","type":"bytes32[]"}],"name":"setTargetContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"tokenId","type":"uint256[]"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526009805460ff191690553480156200001b57600080fd5b5060405162003261380380620032618339810160408190526200003e9162000449565b620000493362000099565b81516200005e906003906020850190620002d6565b50805162000074906004906020840190620002d6565b506200008360003381620000e9565b62000091336103e8620001d5565b505062000516565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620001495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6000818152600f60209081526040808320805460ff19166001179055600c90915280822080546001600160a01b038087166001600160a01b0319909216821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4600160076000828254620001cb9190620004b3565b9091555050505050565b6127106001600160601b0382161115620002455760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000140565b6001600160a01b0382166200029d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000140565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600155565b828054620002e490620004da565b90600052602060002090601f01602090048101928262000308576000855562000353565b82601f106200032357805160ff191683800117855562000353565b8280016001018555821562000353579182015b828111156200035357825182559160200191906001019062000336565b506200036192915062000365565b5090565b5b8082111562000361576000815560010162000366565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620003a457600080fd5b81516001600160401b0380821115620003c157620003c16200037c565b604051601f8301601f19908116603f01168101908282118183101715620003ec57620003ec6200037c565b816040528381526020925086838588010111156200040957600080fd5b600091505b838210156200042d57858201830151818301840152908201906200040e565b838211156200043f5760008385830101525b9695505050505050565b600080604083850312156200045d57600080fd5b82516001600160401b03808211156200047557600080fd5b620004838683870162000392565b935060208501519150808211156200049a57600080fd5b50620004a98582860162000392565b9150509250929050565b60008219821115620004d557634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620004ef57607f821691505b6020821081036200051057634e487b7160e01b600052602260045260246000fd5b50919050565b612d3b80620005266000396000f3fe6080604052600436106101e35760003560e01c80636352211e11610102578063b88d4fde11610095578063e8a3d48511610064578063e8a3d48514610587578063e985e9c51461059c578063f2fde38b146105bc578063fe58f2d7146105dc57600080fd5b8063b88d4fde14610514578063c60c253d14610534578063c6c3bbe614610554578063c87b56dd1461056757600080fd5b80638da5cb5b116100d15780638da5cb5b146104a1578063938e3d7b146104bf57806395d89b41146104df578063a22cb465146104f457600080fd5b80636352211e1461042c578063685731071461044c57806370a082311461046c578063715018a61461048c57600080fd5b806323b872dd1161017a5780633ded33bc116101495780633ded33bc146103ac57806342842e0e146103cc57806342966c68146103ec578063460914991461040c57600080fd5b806323b872dd146103185780632a55205a146103385780633945dac0146103775780633ccfd60b1461039757600080fd5b8063095ea7b3116101b6578063095ea7b31461029957806317495dde146102b957806318160ddd146102d95780631fe9eabc146102f857600080fd5b806301ffc9a7146101e857806302fe53051461021d57806306fdde031461023f578063081812fc14610261575b600080fd5b3480156101f457600080fd5b5061020861020336600461249c565b6105fc565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023d6102383660046124c0565b610642565b005b34801561024b57600080fd5b50610254610686565b604051610214919061258a565b34801561026d57600080fd5b5061028161027c36600461259d565b610718565b6040516001600160a01b039091168152602001610214565b3480156102a557600080fd5b5061023d6102b43660046125cb565b6107a0565b3480156102c557600080fd5b5061023d6102d436600461260c565b6108b0565b3480156102e557600080fd5b506007545b604051908152602001610214565b34801561030457600080fd5b5061023d61031336600461259d565b6108ed565b34801561032457600080fd5b5061023d610333366004612627565b61091c565b34801561034457600080fd5b50610358610353366004612668565b61094d565b604080516001600160a01b039093168352602083019190915201610214565b34801561038357600080fd5b5061023d6103923660046126cf565b6109fb565b3480156103a357600080fd5b5061023d610b4d565b3480156103b857600080fd5b5061023d6103c7366004612793565b610bfb565b3480156103d857600080fd5b5061023d6103e7366004612627565b610c47565b3480156103f857600080fd5b5061023d61040736600461259d565b610c62565b34801561041857600080fd5b5061023d6104273660046127b0565b610ce9565b34801561043857600080fd5b5061028161044736600461259d565b610dea565b34801561045857600080fd5b5061023d610467366004612833565b610e60565b34801561047857600080fd5b506102ea610487366004612793565b610f61565b34801561049857600080fd5b5061023d611021565b3480156104ad57600080fd5b506000546001600160a01b0316610281565b3480156104cb57600080fd5b5061023d6104da3660046124c0565b611057565b3480156104eb57600080fd5b5061025461108d565b34801561050057600080fd5b5061023d61050f36600461289f565b61109c565b34801561052057600080fd5b5061023d61052f3660046128ea565b6110a7565b34801561054057600080fd5b5061023d61054f3660046125cb565b6110df565b61023d610562366004612627565b6111e7565b34801561057357600080fd5b5061025461058236600461259d565b611289565b34801561059357600080fd5b506102546114b9565b3480156105a857600080fd5b506102086105b73660046129ca565b6114c8565b3480156105c857600080fd5b5061023d6105d7366004612793565b61153e565b3480156105e857600080fd5b5061023d6105f736600461259d565b6115d6565b60006001600160e01b031982166380ac58cd60e01b148061062d57506001600160e01b03198216635b5e139f60e01b145b8061063c575061063c8261172a565b92915050565b6000546001600160a01b031633146106755760405162461bcd60e51b815260040161066c90612a03565b60405180910390fd5b61068160058383612398565b505050565b60606003805461069590612a38565b80601f01602080910402602001604051908101604052809291908181526020018280546106c190612a38565b801561070e5780601f106106e35761010080835404028352916020019161070e565b820191906000526020600020905b8154815290600101906020018083116106f157829003601f168201915b5050505050905090565b60006107238261175f565b6107845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161066c565b506000908152600d60205260409020546001600160a01b031690565b60006107ab82610dea565b9050806001600160a01b0316836001600160a01b0316036108185760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161066c565b336001600160a01b0382161480610834575061083481336114c8565b6108a65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161066c565b610681838361177c565b6000546001600160a01b031633146108da5760405162461bcd60e51b815260040161066c90612a03565b6009805460ff1916911515919091179055565b6000546001600160a01b031633146109175760405162461bcd60e51b815260040161066c90612a03565b600855565b61092633826117ea565b6109425760405162461bcd60e51b815260040161066c90612a72565b6106818383836118ac565b60008281526002602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109c25750604080518082019091526001546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906109e1906001600160601b031687612ad9565b6109eb9190612b0e565b91519350909150505b9250929050565b6000546001600160a01b03163314610a255760405162461bcd60e51b815260040161066c90612a03565b610a31600a600061241c565b60005b87811015610b4257600a60405180608001604052808b8b85818110610a5b57610a5b612b22565b9050602002016020810190610a709190612793565b6001600160a01b03168152602001898985818110610a9057610a90612b22565b905060200201358152602001878785818110610aae57610aae612b22565b905060200201358152602001858585818110610acc57610acc612b22565b60209081029290920135909252835460018082018655600095865294829020845160049092020180546001600160a01b0319166001600160a01b03909216919091178155908301519381019390935550604081015160028301556060015160039091015580610b3a81612b38565b915050610a34565b505050505050505050565b6000546001600160a01b03163314610b775760405162461bcd60e51b815260040161066c90612a03565b604051600090339047908381818185875af1925050503d8060008114610bb9576040519150601f19603f3d011682016040523d82523d6000602084013e610bbe565b606091505b5050905080610bf85760405162461bcd60e51b815260206004820152600660248201526519985a5b195960d21b604482015260640161066c565b50565b6000546001600160a01b03163314610c255760405162461bcd60e51b815260040161066c90612a03565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610681838383604051806020016040528060008152506110a7565b6000610c6d82610dea565b90506001600160a01b038116331480610c9057506000546001600160a01b031633145b610cdc5760405162461bcd60e51b815260206004820152601760248201527f4d757374206f776e20746f6b656e20746f206275726e2e000000000000000000604482015260640161066c565b610ce5826119e9565b5050565b6000546001600160a01b03163314610d135760405162461bcd60e51b815260040161066c90612a03565b828114610d595760405162461bcd60e51b81526020600482015260146024820152730d8d2e6e840d8cadccee8d040dad2e6dac2e8c6d60631b604482015260640161066c565b60005b83811015610dd957828282818110610d7657610d76612b22565b90506020020135858583818110610d8f57610d8f612b22565b9050602002016020810190610da49190612793565b6001600160a01b0316876001600160a01b0316600080516020612cac83398151915260405160405180910390a4600101610d5c565b505060078054909201909155505050565b600080610df683611a66565b90506001600160a01b03811661063c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161066c565b6000546001600160a01b03163314610e8a5760405162461bcd60e51b815260040161066c90612a03565b828114610ed05760405162461bcd60e51b81526020600482015260146024820152730d8d2e6e840d8cadccee8d040dad2e6dac2e8c6d60631b604482015260640161066c565b60005b83811015610f5157828282818110610eed57610eed612b22565b90506020020135858583818110610f0657610f06612b22565b9050602002016020810190610f1b9190612793565b6001600160a01b031660006001600160a01b0316600080516020612cac83398151915260405160405180910390a4600101610ed3565b5050600780549092019091555050565b60006001600160a01b038216610fcc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161066c565b6000805b600854811161101a57836001600160a01b0316610fec82611a66565b6001600160a01b031603611008578161100481612b38565b9250505b8061101281612b38565b915050610fd0565b5092915050565b6000546001600160a01b0316331461104b5760405162461bcd60e51b815260040161066c90612a03565b6110556000611bb9565b565b6000546001600160a01b031633146110815760405162461bcd60e51b815260040161066c90612a03565b61068160068383612398565b60606004805461069590612a38565b610ce5338383611c09565b6110b133836117ea565b6110cd5760405162461bcd60e51b815260040161066c90612a72565b6110d984848484611cd7565b50505050565b600b546001600160a01b0316336001600160a01b0316146111425760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c79206d61696e20636f6e74726163742063616e20646f20746869732e00604482015260640161066c565b61114b81610dea565b6001600160a01b0316826001600160a01b0316146111a45760405162461bcd60e51b81526020600482015260166024820152752a30b933b2ba1036bab9ba1037bbb7103a37b5b2b71760511b604482015260640161066c565b6111ad816119e9565b60405181906001600160a01b038416907fe5d1592e1e0ee72599c1c12b6a43fd7b90d83670f8d0b378212d6ac42be43fb890600090a35050565b6000546001600160a01b031633146112115760405162461bcd60e51b815260040161066c90612a03565b6000818152600f60209081526040808320805460ff19166001179055600c90915280822080546001600160a01b038087166001600160a01b031990921682179092559151849391871691600080516020612cac83398151915291a460016007600082825461127f9190612b51565b9091555050505050565b60606112948261175f565b6112f85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161066c565b60005b600a5481101561142657600a818154811061131857611318612b22565b906000526020600020906004020160020154831115801561135d5750600a818154811061134757611347612b22565b9060005260206000209060040201600101548310155b15611414576000801b600a828154811061137957611379612b22565b9060005260206000209060040201600301541115611414576113ed600a82815481106113a7576113a7612b22565b9060005260206000209060040201600301546040516020016113d99190609160f51b8152600281019190915260220190565b604051602081830303815290604052611d0a565b6040516020016113fd9190612b69565b604051602081830303815290604052915050919050565b8061141e81612b38565b9150506112fb565b506005805461143490612a38565b80601f016020809104026020016040519081016040528092919081815260200182805461146090612a38565b80156114ad5780601f10611482576101008083540402835291602001916114ad565b820191906000526020600020905b81548152906001019060200180831161149057829003601f168201915b50505050509050919050565b60606006805461069590612a38565b6001600160a01b038083166000908152600e6020908152604080832093851683529290529081205460ff16156115005750600161063c565b600061150b84611eb9565b90506001600160a01b038116158015906115365750826001600160a01b0316816001600160a01b0316145b949350505050565b6000546001600160a01b031633146115685760405162461bcd60e51b815260040161066c90612a03565b6001600160a01b0381166115cd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161066c565b610bf881611bb9565b60006115e182610dea565b6000838152600f602052604090205490915060ff16156116435760405162461bcd60e51b815260206004820152601960248201527f61697264726f7020686173206265656e2063616e63656c656400000000000000604482015260640161066c565b6001600160a01b03811633148061166457506000546001600160a01b031633145b6116a25760405162461bcd60e51b815260206004820152600f60248201526e26bab9ba1037bbb7103a37b5b2b71760891b604482015260640161066c565b6000828152600f60205260409020805460ff191660011790556116cd6000546001600160a01b031690565b6000838152600c6020526040812080546001600160a01b0319166001600160a01b03938416179055548391166001600160a01b0316826001600160a01b0316600080516020612cac83398151915260405160405180910390a45050565b60006001600160e01b0319821663152a902d60e11b148061063c57506301ffc9a760e01b6001600160e01b031983161461063c565b60008061176b83611a66565b6001600160a01b0316141592915050565b6000818152600d6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117b182610dea565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006117f58261175f565b6118565760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161066c565b600061186183610dea565b9050806001600160a01b0316846001600160a01b0316148061189c5750836001600160a01b031661189184610718565b6001600160a01b0316145b80611536575061153681856114c8565b826001600160a01b03166118bf82610dea565b6001600160a01b0316146119275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161066c565b6001600160a01b0382166119895760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161066c565b611994838383612010565b61199f60008261177c565b6000818152600c602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020612cac83398151915291a4505050565b6000818152600c60205260408120546001600160a01b031690611a0e90829084612010565b611a1960008361177c565b600780546000190190556000828152600c602052604080822080546001600160a01b0319169055518391906001600160a01b03841690600080516020612cac833981519152908390a45050565b6000818152600c60205260408120546001600160a01b031680158015611a8f575060095460ff16155b8015611aaa57506000838152600f602052604090205460ff16155b1561063c5760005b600a5481101561101a57600a8181548110611acf57611acf612b22565b9060005260206000209060040201600201548411611bb1576000600a8281548110611afc57611afc612b22565b90600052602060002090600402016001015485600101039050600a8281548110611b2857611b28612b22565b60009182526020909120600491820201546040516331a9108f60e11b81529182018390526001600160a01b031690636352211e90602401602060405180830381865afa925050508015611b98575060408051601f3d908101601f19168201909252611b9591810190612b98565b60015b611ba55760009250611ba8565b92505b50909392505050565b600101611ab2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031603611c6a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161066c565b6001600160a01b038381166000818152600e6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ce28484846118ac565b611cee84848484612044565b6110d95760405162461bcd60e51b815260040161066c90612bb5565b60608151600003611d2b57604080516000808252602082019092529061101a565b60408051602e8082526105e08201909252600091602082016105c080368337019050509050600081600081518110611d6557611d65612b22565b60ff90921660209283029190910190910152600160005b8451811015611e9e576000858281518110611d9957611d99612b22565b016020015160f81c905060005b8360ff16811015611e3357848181518110611dc357611dc3612b22565b602002602001015160ff16610100611ddb9190612ad9565b611de59083612b51565b9150611df2603a83612c07565b858281518110611e0457611e04612b22565b60ff90921660209283029190910190910152611e21603a83612b0e565b9150611e2c81612b38565b9050611da6565b505b8015611e8d57611e46603a82612c07565b848460ff1681518110611e5b57611e5b612b22565b60ff9092166020928302919091019091015282611e7781612c1b565b9350611e869050603a82612b0e565b9050611e35565b50611e9781612b38565b9050611d7c565b50611536611eb4611eaf8484612145565b6121f7565b6122b5565b600080468060018114611eee5760898114611f0a5760048114611f2657620138818114611f42576105398114611f5e57611f76565b73a5409ec958c83c3f309868babaca7c86dcb077c19250611f76565b7358807bad0b376efc12f5ad86aac70e78ed67deae9250611f76565b73f57b2c51ded3a29e6891aba85459d600256cf3179250611f76565b73ff7ca10af37178bdd056628ef42fd7f799fac77c9250611f76565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b0382161580611f8d5750806089145b80611f9a57508062013881145b15611fa6575092915050565b60405163c455279160e01b81526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa158015611fec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115369190612b98565b6000818152600f602052604090205460ff16610681576000818152600f60205260409020805460ff19166001179055505050565b60006001600160a01b0384163b1561213a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612088903390899088908890600401612c3a565b6020604051808303816000875af19250505080156120c3575060408051601f3d908101601f191682019092526120c091810190612c77565b60015b612120573d8080156120f1576040519150601f19603f3d011682016040523d82523d6000602084013e6120f6565b606091505b5080516000036121185760405162461bcd60e51b815260040161066c90612bb5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611536565b506001949350505050565b606060008260ff1667ffffffffffffffff811115612165576121656128d4565b60405190808252806020026020018201604052801561218e578160200160208202803683370190505b50905060005b8360ff168110156121ef578481815181106121b1576121b1612b22565b60200260200101518282815181106121cb576121cb612b22565b60ff90921660209283029190910190910152806121e781612b38565b915050612194565b509392505050565b60606000825167ffffffffffffffff811115612215576122156128d4565b60405190808252806020026020018201604052801561223e578160200160208202803683370190505b50905060005b835181101561101a5783816001865161225d9190612c94565b6122679190612c94565b8151811061227757612277612b22565b602002602001015182828151811061229157612291612b22565b60ff90921660209283029190910190910152806122ad81612b38565b915050612244565b60606000825167ffffffffffffffff8111156122d3576122d36128d4565b6040519080825280601f01601f1916602001820160405280156122fd576020820181803683370190505b50905060005b835181101561101a576040518060600160405280603a8152602001612ccc603a913984828151811061233757612337612b22565b602002602001015160ff168151811061235257612352612b22565b602001015160f81c60f81b82828151811061236f5761236f612b22565b60200101906001600160f81b031916908160001a9053508061239081612b38565b915050612303565b8280546123a490612a38565b90600052602060002090601f0160209004810192826123c6576000855561240c565b82601f106123df5782800160ff1982351617855561240c565b8280016001018555821561240c579182015b8281111561240c5782358255916020019190600101906123f1565b5061241892915061243d565b5090565b5080546000825560040290600052602060002090810190610bf89190612452565b5b80821115612418576000815560010161243e565b5b808211156124185780546001600160a01b0319168155600060018201819055600282018190556003820155600401612453565b6001600160e01b031981168114610bf857600080fd5b6000602082840312156124ae57600080fd5b81356124b981612486565b9392505050565b600080602083850312156124d357600080fd5b823567ffffffffffffffff808211156124eb57600080fd5b818501915085601f8301126124ff57600080fd5b81358181111561250e57600080fd5b86602082850101111561252057600080fd5b60209290920196919550909350505050565b60005b8381101561254d578181015183820152602001612535565b838111156110d95750506000910152565b60008151808452612576816020860160208601612532565b601f01601f19169290920160200192915050565b6020815260006124b9602083018461255e565b6000602082840312156125af57600080fd5b5035919050565b6001600160a01b0381168114610bf857600080fd5b600080604083850312156125de57600080fd5b82356125e9816125b6565b946020939093013593505050565b8035801515811461260757600080fd5b919050565b60006020828403121561261e57600080fd5b6124b9826125f7565b60008060006060848603121561263c57600080fd5b8335612647816125b6565b92506020840135612657816125b6565b929592945050506040919091013590565b6000806040838503121561267b57600080fd5b50508035926020909101359150565b60008083601f84011261269c57600080fd5b50813567ffffffffffffffff8111156126b457600080fd5b6020830191508360208260051b85010111156109f457600080fd5b6000806000806000806000806080898b0312156126eb57600080fd5b883567ffffffffffffffff8082111561270357600080fd5b61270f8c838d0161268a565b909a50985060208b013591508082111561272857600080fd5b6127348c838d0161268a565b909850965060408b013591508082111561274d57600080fd5b6127598c838d0161268a565b909650945060608b013591508082111561277257600080fd5b5061277f8b828c0161268a565b999c989b5096995094979396929594505050565b6000602082840312156127a557600080fd5b81356124b9816125b6565b6000806000806000606086880312156127c857600080fd5b85356127d3816125b6565b9450602086013567ffffffffffffffff808211156127f057600080fd5b6127fc89838a0161268a565b9096509450604088013591508082111561281557600080fd5b506128228882890161268a565b969995985093965092949392505050565b6000806000806040858703121561284957600080fd5b843567ffffffffffffffff8082111561286157600080fd5b61286d8883890161268a565b9096509450602087013591508082111561288657600080fd5b506128938782880161268a565b95989497509550505050565b600080604083850312156128b257600080fd5b82356128bd816125b6565b91506128cb602084016125f7565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561290057600080fd5b843561290b816125b6565b9350602085013561291b816125b6565b925060408501359150606085013567ffffffffffffffff8082111561293f57600080fd5b818701915087601f83011261295357600080fd5b813581811115612965576129656128d4565b604051601f8201601f19908116603f0116810190838211818310171561298d5761298d6128d4565b816040528281528a60208487010111156129a657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156129dd57600080fd5b82356129e8816125b6565b915060208301356129f8816125b6565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612a4c57607f821691505b602082108103612a6c57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612af357612af3612ac3565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612b1d57612b1d612af8565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201612b4a57612b4a612ac3565b5060010190565b60008219821115612b6457612b64612ac3565b500190565b66697066733a2f2f60c81b815260008251612b8b816007850160208701612532565b9190910160070192915050565b600060208284031215612baa57600080fd5b81516124b9816125b6565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612c1657612c16612af8565b500690565b600060ff821660ff8103612c3157612c31612ac3565b60010192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c6d9083018461255e565b9695505050505050565b600060208284031215612c8957600080fd5b81516124b981612486565b600082821015612ca657612ca6612ac3565b50039056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef31323334353637383941424344454647484a4b4c4d4e505152535455565758595a6162636465666768696a6b6d6e6f707172737475767778797aa2646970667358221220b389b304697c02aef25677003720568b4d0271f91ed876f3ac1bb807a8a2e9b164736f6c634300080e003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f5761676d69204e465420466c79657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006465741474d490000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101e35760003560e01c80636352211e11610102578063b88d4fde11610095578063e8a3d48511610064578063e8a3d48514610587578063e985e9c51461059c578063f2fde38b146105bc578063fe58f2d7146105dc57600080fd5b8063b88d4fde14610514578063c60c253d14610534578063c6c3bbe614610554578063c87b56dd1461056757600080fd5b80638da5cb5b116100d15780638da5cb5b146104a1578063938e3d7b146104bf57806395d89b41146104df578063a22cb465146104f457600080fd5b80636352211e1461042c578063685731071461044c57806370a082311461046c578063715018a61461048c57600080fd5b806323b872dd1161017a5780633ded33bc116101495780633ded33bc146103ac57806342842e0e146103cc57806342966c68146103ec578063460914991461040c57600080fd5b806323b872dd146103185780632a55205a146103385780633945dac0146103775780633ccfd60b1461039757600080fd5b8063095ea7b3116101b6578063095ea7b31461029957806317495dde146102b957806318160ddd146102d95780631fe9eabc146102f857600080fd5b806301ffc9a7146101e857806302fe53051461021d57806306fdde031461023f578063081812fc14610261575b600080fd5b3480156101f457600080fd5b5061020861020336600461249c565b6105fc565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023d6102383660046124c0565b610642565b005b34801561024b57600080fd5b50610254610686565b604051610214919061258a565b34801561026d57600080fd5b5061028161027c36600461259d565b610718565b6040516001600160a01b039091168152602001610214565b3480156102a557600080fd5b5061023d6102b43660046125cb565b6107a0565b3480156102c557600080fd5b5061023d6102d436600461260c565b6108b0565b3480156102e557600080fd5b506007545b604051908152602001610214565b34801561030457600080fd5b5061023d61031336600461259d565b6108ed565b34801561032457600080fd5b5061023d610333366004612627565b61091c565b34801561034457600080fd5b50610358610353366004612668565b61094d565b604080516001600160a01b039093168352602083019190915201610214565b34801561038357600080fd5b5061023d6103923660046126cf565b6109fb565b3480156103a357600080fd5b5061023d610b4d565b3480156103b857600080fd5b5061023d6103c7366004612793565b610bfb565b3480156103d857600080fd5b5061023d6103e7366004612627565b610c47565b3480156103f857600080fd5b5061023d61040736600461259d565b610c62565b34801561041857600080fd5b5061023d6104273660046127b0565b610ce9565b34801561043857600080fd5b5061028161044736600461259d565b610dea565b34801561045857600080fd5b5061023d610467366004612833565b610e60565b34801561047857600080fd5b506102ea610487366004612793565b610f61565b34801561049857600080fd5b5061023d611021565b3480156104ad57600080fd5b506000546001600160a01b0316610281565b3480156104cb57600080fd5b5061023d6104da3660046124c0565b611057565b3480156104eb57600080fd5b5061025461108d565b34801561050057600080fd5b5061023d61050f36600461289f565b61109c565b34801561052057600080fd5b5061023d61052f3660046128ea565b6110a7565b34801561054057600080fd5b5061023d61054f3660046125cb565b6110df565b61023d610562366004612627565b6111e7565b34801561057357600080fd5b5061025461058236600461259d565b611289565b34801561059357600080fd5b506102546114b9565b3480156105a857600080fd5b506102086105b73660046129ca565b6114c8565b3480156105c857600080fd5b5061023d6105d7366004612793565b61153e565b3480156105e857600080fd5b5061023d6105f736600461259d565b6115d6565b60006001600160e01b031982166380ac58cd60e01b148061062d57506001600160e01b03198216635b5e139f60e01b145b8061063c575061063c8261172a565b92915050565b6000546001600160a01b031633146106755760405162461bcd60e51b815260040161066c90612a03565b60405180910390fd5b61068160058383612398565b505050565b60606003805461069590612a38565b80601f01602080910402602001604051908101604052809291908181526020018280546106c190612a38565b801561070e5780601f106106e35761010080835404028352916020019161070e565b820191906000526020600020905b8154815290600101906020018083116106f157829003601f168201915b5050505050905090565b60006107238261175f565b6107845760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161066c565b506000908152600d60205260409020546001600160a01b031690565b60006107ab82610dea565b9050806001600160a01b0316836001600160a01b0316036108185760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161066c565b336001600160a01b0382161480610834575061083481336114c8565b6108a65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161066c565b610681838361177c565b6000546001600160a01b031633146108da5760405162461bcd60e51b815260040161066c90612a03565b6009805460ff1916911515919091179055565b6000546001600160a01b031633146109175760405162461bcd60e51b815260040161066c90612a03565b600855565b61092633826117ea565b6109425760405162461bcd60e51b815260040161066c90612a72565b6106818383836118ac565b60008281526002602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109c25750604080518082019091526001546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906109e1906001600160601b031687612ad9565b6109eb9190612b0e565b91519350909150505b9250929050565b6000546001600160a01b03163314610a255760405162461bcd60e51b815260040161066c90612a03565b610a31600a600061241c565b60005b87811015610b4257600a60405180608001604052808b8b85818110610a5b57610a5b612b22565b9050602002016020810190610a709190612793565b6001600160a01b03168152602001898985818110610a9057610a90612b22565b905060200201358152602001878785818110610aae57610aae612b22565b905060200201358152602001858585818110610acc57610acc612b22565b60209081029290920135909252835460018082018655600095865294829020845160049092020180546001600160a01b0319166001600160a01b03909216919091178155908301519381019390935550604081015160028301556060015160039091015580610b3a81612b38565b915050610a34565b505050505050505050565b6000546001600160a01b03163314610b775760405162461bcd60e51b815260040161066c90612a03565b604051600090339047908381818185875af1925050503d8060008114610bb9576040519150601f19603f3d011682016040523d82523d6000602084013e610bbe565b606091505b5050905080610bf85760405162461bcd60e51b815260206004820152600660248201526519985a5b195960d21b604482015260640161066c565b50565b6000546001600160a01b03163314610c255760405162461bcd60e51b815260040161066c90612a03565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610681838383604051806020016040528060008152506110a7565b6000610c6d82610dea565b90506001600160a01b038116331480610c9057506000546001600160a01b031633145b610cdc5760405162461bcd60e51b815260206004820152601760248201527f4d757374206f776e20746f6b656e20746f206275726e2e000000000000000000604482015260640161066c565b610ce5826119e9565b5050565b6000546001600160a01b03163314610d135760405162461bcd60e51b815260040161066c90612a03565b828114610d595760405162461bcd60e51b81526020600482015260146024820152730d8d2e6e840d8cadccee8d040dad2e6dac2e8c6d60631b604482015260640161066c565b60005b83811015610dd957828282818110610d7657610d76612b22565b90506020020135858583818110610d8f57610d8f612b22565b9050602002016020810190610da49190612793565b6001600160a01b0316876001600160a01b0316600080516020612cac83398151915260405160405180910390a4600101610d5c565b505060078054909201909155505050565b600080610df683611a66565b90506001600160a01b03811661063c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161066c565b6000546001600160a01b03163314610e8a5760405162461bcd60e51b815260040161066c90612a03565b828114610ed05760405162461bcd60e51b81526020600482015260146024820152730d8d2e6e840d8cadccee8d040dad2e6dac2e8c6d60631b604482015260640161066c565b60005b83811015610f5157828282818110610eed57610eed612b22565b90506020020135858583818110610f0657610f06612b22565b9050602002016020810190610f1b9190612793565b6001600160a01b031660006001600160a01b0316600080516020612cac83398151915260405160405180910390a4600101610ed3565b5050600780549092019091555050565b60006001600160a01b038216610fcc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161066c565b6000805b600854811161101a57836001600160a01b0316610fec82611a66565b6001600160a01b031603611008578161100481612b38565b9250505b8061101281612b38565b915050610fd0565b5092915050565b6000546001600160a01b0316331461104b5760405162461bcd60e51b815260040161066c90612a03565b6110556000611bb9565b565b6000546001600160a01b031633146110815760405162461bcd60e51b815260040161066c90612a03565b61068160068383612398565b60606004805461069590612a38565b610ce5338383611c09565b6110b133836117ea565b6110cd5760405162461bcd60e51b815260040161066c90612a72565b6110d984848484611cd7565b50505050565b600b546001600160a01b0316336001600160a01b0316146111425760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c79206d61696e20636f6e74726163742063616e20646f20746869732e00604482015260640161066c565b61114b81610dea565b6001600160a01b0316826001600160a01b0316146111a45760405162461bcd60e51b81526020600482015260166024820152752a30b933b2ba1036bab9ba1037bbb7103a37b5b2b71760511b604482015260640161066c565b6111ad816119e9565b60405181906001600160a01b038416907fe5d1592e1e0ee72599c1c12b6a43fd7b90d83670f8d0b378212d6ac42be43fb890600090a35050565b6000546001600160a01b031633146112115760405162461bcd60e51b815260040161066c90612a03565b6000818152600f60209081526040808320805460ff19166001179055600c90915280822080546001600160a01b038087166001600160a01b031990921682179092559151849391871691600080516020612cac83398151915291a460016007600082825461127f9190612b51565b9091555050505050565b60606112948261175f565b6112f85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161066c565b60005b600a5481101561142657600a818154811061131857611318612b22565b906000526020600020906004020160020154831115801561135d5750600a818154811061134757611347612b22565b9060005260206000209060040201600101548310155b15611414576000801b600a828154811061137957611379612b22565b9060005260206000209060040201600301541115611414576113ed600a82815481106113a7576113a7612b22565b9060005260206000209060040201600301546040516020016113d99190609160f51b8152600281019190915260220190565b604051602081830303815290604052611d0a565b6040516020016113fd9190612b69565b604051602081830303815290604052915050919050565b8061141e81612b38565b9150506112fb565b506005805461143490612a38565b80601f016020809104026020016040519081016040528092919081815260200182805461146090612a38565b80156114ad5780601f10611482576101008083540402835291602001916114ad565b820191906000526020600020905b81548152906001019060200180831161149057829003601f168201915b50505050509050919050565b60606006805461069590612a38565b6001600160a01b038083166000908152600e6020908152604080832093851683529290529081205460ff16156115005750600161063c565b600061150b84611eb9565b90506001600160a01b038116158015906115365750826001600160a01b0316816001600160a01b0316145b949350505050565b6000546001600160a01b031633146115685760405162461bcd60e51b815260040161066c90612a03565b6001600160a01b0381166115cd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161066c565b610bf881611bb9565b60006115e182610dea565b6000838152600f602052604090205490915060ff16156116435760405162461bcd60e51b815260206004820152601960248201527f61697264726f7020686173206265656e2063616e63656c656400000000000000604482015260640161066c565b6001600160a01b03811633148061166457506000546001600160a01b031633145b6116a25760405162461bcd60e51b815260206004820152600f60248201526e26bab9ba1037bbb7103a37b5b2b71760891b604482015260640161066c565b6000828152600f60205260409020805460ff191660011790556116cd6000546001600160a01b031690565b6000838152600c6020526040812080546001600160a01b0319166001600160a01b03938416179055548391166001600160a01b0316826001600160a01b0316600080516020612cac83398151915260405160405180910390a45050565b60006001600160e01b0319821663152a902d60e11b148061063c57506301ffc9a760e01b6001600160e01b031983161461063c565b60008061176b83611a66565b6001600160a01b0316141592915050565b6000818152600d6020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117b182610dea565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006117f58261175f565b6118565760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161066c565b600061186183610dea565b9050806001600160a01b0316846001600160a01b0316148061189c5750836001600160a01b031661189184610718565b6001600160a01b0316145b80611536575061153681856114c8565b826001600160a01b03166118bf82610dea565b6001600160a01b0316146119275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161066c565b6001600160a01b0382166119895760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161066c565b611994838383612010565b61199f60008261177c565b6000818152600c602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020612cac83398151915291a4505050565b6000818152600c60205260408120546001600160a01b031690611a0e90829084612010565b611a1960008361177c565b600780546000190190556000828152600c602052604080822080546001600160a01b0319169055518391906001600160a01b03841690600080516020612cac833981519152908390a45050565b6000818152600c60205260408120546001600160a01b031680158015611a8f575060095460ff16155b8015611aaa57506000838152600f602052604090205460ff16155b1561063c5760005b600a5481101561101a57600a8181548110611acf57611acf612b22565b9060005260206000209060040201600201548411611bb1576000600a8281548110611afc57611afc612b22565b90600052602060002090600402016001015485600101039050600a8281548110611b2857611b28612b22565b60009182526020909120600491820201546040516331a9108f60e11b81529182018390526001600160a01b031690636352211e90602401602060405180830381865afa925050508015611b98575060408051601f3d908101601f19168201909252611b9591810190612b98565b60015b611ba55760009250611ba8565b92505b50909392505050565b600101611ab2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031603611c6a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161066c565b6001600160a01b038381166000818152600e6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ce28484846118ac565b611cee84848484612044565b6110d95760405162461bcd60e51b815260040161066c90612bb5565b60608151600003611d2b57604080516000808252602082019092529061101a565b60408051602e8082526105e08201909252600091602082016105c080368337019050509050600081600081518110611d6557611d65612b22565b60ff90921660209283029190910190910152600160005b8451811015611e9e576000858281518110611d9957611d99612b22565b016020015160f81c905060005b8360ff16811015611e3357848181518110611dc357611dc3612b22565b602002602001015160ff16610100611ddb9190612ad9565b611de59083612b51565b9150611df2603a83612c07565b858281518110611e0457611e04612b22565b60ff90921660209283029190910190910152611e21603a83612b0e565b9150611e2c81612b38565b9050611da6565b505b8015611e8d57611e46603a82612c07565b848460ff1681518110611e5b57611e5b612b22565b60ff9092166020928302919091019091015282611e7781612c1b565b9350611e869050603a82612b0e565b9050611e35565b50611e9781612b38565b9050611d7c565b50611536611eb4611eaf8484612145565b6121f7565b6122b5565b600080468060018114611eee5760898114611f0a5760048114611f2657620138818114611f42576105398114611f5e57611f76565b73a5409ec958c83c3f309868babaca7c86dcb077c19250611f76565b7358807bad0b376efc12f5ad86aac70e78ed67deae9250611f76565b73f57b2c51ded3a29e6891aba85459d600256cf3179250611f76565b73ff7ca10af37178bdd056628ef42fd7f799fac77c9250611f76565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b0382161580611f8d5750806089145b80611f9a57508062013881145b15611fa6575092915050565b60405163c455279160e01b81526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa158015611fec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115369190612b98565b6000818152600f602052604090205460ff16610681576000818152600f60205260409020805460ff19166001179055505050565b60006001600160a01b0384163b1561213a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612088903390899088908890600401612c3a565b6020604051808303816000875af19250505080156120c3575060408051601f3d908101601f191682019092526120c091810190612c77565b60015b612120573d8080156120f1576040519150601f19603f3d011682016040523d82523d6000602084013e6120f6565b606091505b5080516000036121185760405162461bcd60e51b815260040161066c90612bb5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611536565b506001949350505050565b606060008260ff1667ffffffffffffffff811115612165576121656128d4565b60405190808252806020026020018201604052801561218e578160200160208202803683370190505b50905060005b8360ff168110156121ef578481815181106121b1576121b1612b22565b60200260200101518282815181106121cb576121cb612b22565b60ff90921660209283029190910190910152806121e781612b38565b915050612194565b509392505050565b60606000825167ffffffffffffffff811115612215576122156128d4565b60405190808252806020026020018201604052801561223e578160200160208202803683370190505b50905060005b835181101561101a5783816001865161225d9190612c94565b6122679190612c94565b8151811061227757612277612b22565b602002602001015182828151811061229157612291612b22565b60ff90921660209283029190910190910152806122ad81612b38565b915050612244565b60606000825167ffffffffffffffff8111156122d3576122d36128d4565b6040519080825280601f01601f1916602001820160405280156122fd576020820181803683370190505b50905060005b835181101561101a576040518060600160405280603a8152602001612ccc603a913984828151811061233757612337612b22565b602002602001015160ff168151811061235257612352612b22565b602001015160f81c60f81b82828151811061236f5761236f612b22565b60200101906001600160f81b031916908160001a9053508061239081612b38565b915050612303565b8280546123a490612a38565b90600052602060002090601f0160209004810192826123c6576000855561240c565b82601f106123df5782800160ff1982351617855561240c565b8280016001018555821561240c579182015b8281111561240c5782358255916020019190600101906123f1565b5061241892915061243d565b5090565b5080546000825560040290600052602060002090810190610bf89190612452565b5b80821115612418576000815560010161243e565b5b808211156124185780546001600160a01b0319168155600060018201819055600282018190556003820155600401612453565b6001600160e01b031981168114610bf857600080fd5b6000602082840312156124ae57600080fd5b81356124b981612486565b9392505050565b600080602083850312156124d357600080fd5b823567ffffffffffffffff808211156124eb57600080fd5b818501915085601f8301126124ff57600080fd5b81358181111561250e57600080fd5b86602082850101111561252057600080fd5b60209290920196919550909350505050565b60005b8381101561254d578181015183820152602001612535565b838111156110d95750506000910152565b60008151808452612576816020860160208601612532565b601f01601f19169290920160200192915050565b6020815260006124b9602083018461255e565b6000602082840312156125af57600080fd5b5035919050565b6001600160a01b0381168114610bf857600080fd5b600080604083850312156125de57600080fd5b82356125e9816125b6565b946020939093013593505050565b8035801515811461260757600080fd5b919050565b60006020828403121561261e57600080fd5b6124b9826125f7565b60008060006060848603121561263c57600080fd5b8335612647816125b6565b92506020840135612657816125b6565b929592945050506040919091013590565b6000806040838503121561267b57600080fd5b50508035926020909101359150565b60008083601f84011261269c57600080fd5b50813567ffffffffffffffff8111156126b457600080fd5b6020830191508360208260051b85010111156109f457600080fd5b6000806000806000806000806080898b0312156126eb57600080fd5b883567ffffffffffffffff8082111561270357600080fd5b61270f8c838d0161268a565b909a50985060208b013591508082111561272857600080fd5b6127348c838d0161268a565b909850965060408b013591508082111561274d57600080fd5b6127598c838d0161268a565b909650945060608b013591508082111561277257600080fd5b5061277f8b828c0161268a565b999c989b5096995094979396929594505050565b6000602082840312156127a557600080fd5b81356124b9816125b6565b6000806000806000606086880312156127c857600080fd5b85356127d3816125b6565b9450602086013567ffffffffffffffff808211156127f057600080fd5b6127fc89838a0161268a565b9096509450604088013591508082111561281557600080fd5b506128228882890161268a565b969995985093965092949392505050565b6000806000806040858703121561284957600080fd5b843567ffffffffffffffff8082111561286157600080fd5b61286d8883890161268a565b9096509450602087013591508082111561288657600080fd5b506128938782880161268a565b95989497509550505050565b600080604083850312156128b257600080fd5b82356128bd816125b6565b91506128cb602084016125f7565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561290057600080fd5b843561290b816125b6565b9350602085013561291b816125b6565b925060408501359150606085013567ffffffffffffffff8082111561293f57600080fd5b818701915087601f83011261295357600080fd5b813581811115612965576129656128d4565b604051601f8201601f19908116603f0116810190838211818310171561298d5761298d6128d4565b816040528281528a60208487010111156129a657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156129dd57600080fd5b82356129e8816125b6565b915060208301356129f8816125b6565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612a4c57607f821691505b602082108103612a6c57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612af357612af3612ac3565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612b1d57612b1d612af8565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201612b4a57612b4a612ac3565b5060010190565b60008219821115612b6457612b64612ac3565b500190565b66697066733a2f2f60c81b815260008251612b8b816007850160208701612532565b9190910160070192915050565b600060208284031215612baa57600080fd5b81516124b9816125b6565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612c1657612c16612af8565b500690565b600060ff821660ff8103612c3157612c31612ac3565b60010192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c6d9083018461255e565b9695505050505050565b600060208284031215612c8957600080fd5b81516124b981612486565b600082821015612ca657612ca6612ac3565b50039056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef31323334353637383941424344454647484a4b4c4d4e505152535455565758595a6162636465666768696a6b6d6e6f707172737475767778797aa2646970667358221220b389b304697c02aef25677003720568b4d0271f91ed876f3ac1bb807a8a2e9b164736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f5761676d69204e465420466c79657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006465741474d490000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Wagmi NFT Flyer
Arg [1] : symbol_ (string): FWAGMI
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [3] : 5761676d69204e465420466c7965720000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 465741474d490000000000000000000000000000000000000000000000000000
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.