Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 DFR
Holders
588
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 DFRLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DeadFreaks
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC721.sol"; import "@openzeppelin/contracts/interfaces/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./NonblockingReceiver.sol"; /* .*- .-: @@# .@@# @@@%. %%%* #@*@%. *@:@+ +@:*@@- +@--@- -@= #@@- =@* *@: :@# %@@- -@@ %@. .@@ .@@@. .@@- .@@. @@:- =@@% #@# +@@. Dead Freaks Resurrection @@+% #@@= -@@: %@@. @@*@ .@@% @@# @@@. @@*@ *@@: =@@: @@@. .@@*% :@@# @@% @@@- += .. .+- -@### %@@: =@@= @@@= .%@@ #@: *@# =@@@: +@+@= +@@* %@@ @#@% %@+@: %@#% *@*@ *@*:@# #@=@: .@@% .@@* *#@@ +@--@+ .%@=:@= +@+.@+ *@# %@+ @@=@ @@@ *@@= .@#@- :@* :@* .%@* #@..@@ #@.:@@ -@@..@%** #@@ %@@: %#@% .@@ @% %@% -@+*@* -@##@+ %@#+@+%. *@@. @@@: :=@@:%@= *@-+@@. @@@@. %@@@. .@@@@.- +@@- @@@. +@@@# :@%@@+ *@@* .*%- :@@= :@@= :@@@: *@# +@@* +* #@+ -@*@= :: :@+ .+ *= #= Contract by loltapes.eth */ contract DeadFreaks is ERC721, ERC2981, Ownable, ReentrancyGuard, NonblockingReceiver { using Strings for uint256; // @dev Provenance hash for provably fair reveal. See our website for more info string public constant PROVENANCE_HASH = "e494bf6bedaf8ae78c09e94c414e115d5b73843ec253771bef8e461b738a12c8"; // @dev Generated by contract at RANDOMIZER_ADDRESS_BSC and manually set uint256 public OFFSET_VALUE; // @notice Address of the randomizer contract on Binance Smart Chain for offset and legendaries // @dev Using BSC for cheap VRF from Chainlink string public constant RANDOMIZER_ADDRESS_BSC = "0xccaD0A7929AdB6987f84275FfCe3ED151A54Df7C"; string public baseUri; string public placeholderUri; uint256 public immutable CHAIN_SUPPLY; uint256 public immutable CHAIN_OFFSET; uint256 currentTokenId; uint256 public gasForDestinationLzReceive = 350000; uint256 public mintActiveFrom; uint256 public remainingTeamSupply; mapping(address => bool) public walletMinted; /* @dev Allow to freeze metadata, disallowing any further updates for the base uri */ bool public metadataFrozen; bool public isRevealing; bool public revealed; modifier whenMetadataNotFrozen { require(!metadataFrozen, "Metadata is frozen"); _; } modifier whenNotContract { require(msg.sender == tx.origin, "No-No to Mojo Jojo's mojo"); _; } constructor( uint256 supply, uint256 offset, uint256 teamSupply, string memory _placeholderUri, address _layerZeroEndpoint, address royaltyReceiver ) ERC721("Dead Freaks Resurrection", "DFR") { CHAIN_SUPPLY = supply; CHAIN_OFFSET = offset; currentTokenId = CHAIN_OFFSET; remainingTeamSupply = teamSupply; placeholderUri = _placeholderUri; // default royalties _setDefaultRoyalty(royaltyReceiver, 1000); // multichain via NonblockingReceiver.sol endpoint = ILayerZeroEndpoint(_layerZeroEndpoint); } function _baseURI() internal view virtual override returns (string memory) { return baseUri; } function tokenURI(uint256 tokenId) public view override returns (string memory) { // one uri for all placeholders before reveal if (!revealed) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return placeholderUri; } else { return super.tokenURI(tokenId); } } function mintActive() external view returns (bool) { return mintActiveFrom > 0 && block.timestamp >= mintActiveFrom; } /* * @notice Mint. While minting is free we do accept donations :) */ function mint(uint256 amount) external payable whenNotContract nonReentrant { require(mintActiveFrom > 0 && block.timestamp >= mintActiveFrom, "Mint inactive"); require(amount > 0, "Mint at least 1"); require(amount < 4, "Max 3 per tx"); require(!walletMinted[msg.sender], "Max 1 mint per wallet"); require(currentTokenId + amount <= CHAIN_OFFSET + CHAIN_SUPPLY, "Over supply on this chain"); for (uint i = 0; i < amount; i++) { _safeMint(msg.sender, ++currentTokenId); } walletMinted[msg.sender] = true; } function mintTeam(uint256 amount) external onlyOwner { require(amount > 0, "Mint at least 1"); require(amount <= remainingTeamSupply, "Over team supply"); require(currentTokenId + amount <= CHAIN_OFFSET + CHAIN_SUPPLY, "Over supply on this chain"); for (uint i = 0; i < amount; i++) { _safeMint(msg.sender, ++currentTokenId); } remainingTeamSupply -= amount; } function setMintActiveFrom(uint256 startTimestamp) external onlyOwner { mintActiveFrom = startTimestamp; } // @dev Separate from `reveal` to lock contracts on all chains before leaking the metadata uri function prepareReveal() external onlyOwner { // require(nextTokenId == CHAIN_OFFSET + CHAIN_SUPPLY, "Can only reveal after mint is complete"); require(!isRevealing && !revealed, "Already revealed"); isRevealing = true; } // @dev Avoid rare snipes while metadata is up but marketplaces have not indexed everything. // Checked in _beforeTokenTransfer and traverseChains function reveal(string calldata uri, uint256 offset) external whenMetadataNotFrozen onlyOwner { require(isRevealing, "Call prepareReveal first"); require(bytes(uri).length > 0, "Reveal needs to set base uri"); require(offset > 0, "Reveal needs to set non zero offset"); require(!revealed, "Already revealed"); baseUri = uri; OFFSET_VALUE = offset; } // @dev Separated from `reveal` to reveal on each chain and unlock after marketplaces are updated function finishReveal() external onlyOwner { require(!revealed, "Already revealed"); require(isRevealing, "Call prepareReveal first"); isRevealing = false; revealed = true; } function freezeMetadata() external whenMetadataNotFrozen onlyOwner { require(bytes(baseUri).length > 0, "Need something to freeze"); require(revealed, "Must be revealed before the freeze"); metadataFrozen = true; } // @dev Emergency for metadata fixes function setBaseUri(string calldata uri) external whenMetadataNotFrozen onlyOwner { baseUri = uri; } // @dev Emergency for metadata fixes function setPlaceholderUri(string calldata uri) external whenMetadataNotFrozen onlyOwner { placeholderUri = uri; } function withdraw() external onlyOwner { require(payable(owner()).send(address(this).balance)); } // @notice Set token royalties // @param value points (using 2 decimals - 10_000 = 100%, 100 = 1%) function setRoyalties(address receiver, uint96 value) external onlyOwner { _setDefaultRoyalty(receiver, value); } // @dev allow to retrieve ERC20 tokens (wrongfully) sent to the contract function withdrawERC20(IERC20 token, address toAddress, uint256 amount) external onlyOwner { token.transfer(toAddress, amount); } // @dev allow to retrieve ERC721 tokens (wrongfully) sent to the contract function withdrawERC721(IERC721 token, address toAddress, uint256 tokenId) external onlyOwner { token.transferFrom(address(this), toAddress, tokenId); } // @dev allow to retrieve ERC1155 tokens (wrongfully) sent to the contract function withdrawERC1155(IERC1155 token, address toAddress, uint256 tokenId) external onlyOwner { token.safeTransferFrom(address(this), toAddress, tokenId, token.balanceOf(address(this), tokenId), ""); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override { require(!isRevealing, "Transfers paused during reveal"); } // OMNI // @notice Transfers the nft from your address on the source chain to the same address on the destination chain function traverseChains(uint16 _chainId, uint tokenId) public payable { // Avoid rare snipes while metadata is up but marketplaces have not indexed everything require(!isRevealing, "Traversals paused during reveal"); require(msg.sender == ownerOf(tokenId), "You must own the token"); require(trustedRemoteLookup[_chainId].length > 0, "This chain is unavailable"); // burn NFT, eliminating it from circulation on src chain _burn(tokenId); // encode the payload with the values to send bytes memory payload = abi.encode(msg.sender, tokenId); // encode adapterParams to specify more gas for the destination uint16 version = 1; bytes memory adapterParams = abi.encodePacked(version, gasForDestinationLzReceive); // get the fees we need to pay to LayerZero + Relayer to cover message delivery // you will be refunded for extra gas paid (uint messageFee,) = endpoint.estimateFees(_chainId, address(this), payload, false, adapterParams); require(msg.value >= messageFee, "send value not enough to cover messageFee. Send gas for message fees"); endpoint.send{value : msg.value}( _chainId, // destination chainId trustedRemoteLookup[_chainId], // destination address of nft contract payload, // encoded payload payable(msg.sender), // refund address address(0x0), // 'zroPaymentAddress'; unused adapterParams // txParameters ); } // @dev Called when receiving a token from a trusted contract. See NonblockingReceiver.sol function _LzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal override { (address toAddr, uint tokenId) = abi.decode(_payload, (address, uint)); // mint the tokens back into existence _safeMint(toAddr, tokenId); } // just in case this fixed variable limits us from future integrations function setGasForDestinationLzReceive(uint256 gas) external onlyOwner { gasForDestinationLzReceive = gas; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC1155.sol) pragma solidity ^0.8.0; import "../token/ERC1155/IERC1155.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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) external 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 (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); } }
pragma solidity ^0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "./layerzerolabs/contracts/interfaces/ILayerZeroReceiver.sol"; import "./layerzerolabs/contracts/interfaces/ILayerZeroEndpoint.sol"; abstract contract NonblockingReceiver is Ownable, ILayerZeroReceiver { ILayerZeroEndpoint public endpoint; struct FailedMessages { uint payloadLength; bytes32 payloadHash; } mapping(uint16 => mapping(bytes => mapping(uint => FailedMessages))) public failedMessages; mapping(uint16 => bytes) public trustedRemoteLookup; event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload); function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) external override { require(msg.sender == address(endpoint)); // boilerplate! lzReceive must be called by the endpoint for security require(_srcAddress.length == trustedRemoteLookup[_srcChainId].length && keccak256(_srcAddress) == keccak256(trustedRemoteLookup[_srcChainId]), "NonblockingReceiver: invalid source sending contract"); // try-catch all errors/exceptions // having failed messages does not block messages passing try this.onLzReceive(_srcChainId, _srcAddress, _nonce, _payload) { // do nothing } catch { // error / exception failedMessages[_srcChainId][_srcAddress][_nonce] = FailedMessages(_payload.length, keccak256(_payload)); emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload); } } function onLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public { // only internal transaction require(msg.sender == address(this), "NonblockingReceiver: caller must be Bridge."); // handle incoming message _LzReceive( _srcChainId, _srcAddress, _nonce, _payload); } // abstract function function _LzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) virtual internal; function _lzSend(uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _txParam) internal { endpoint.send{value: msg.value}(_dstChainId, trustedRemoteLookup[_dstChainId], _payload, _refundAddress, _zroPaymentAddress, _txParam); } function retryMessage(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes calldata _payload) external payable { // assert there is message to retry FailedMessages storage failedMsg = failedMessages[_srcChainId][_srcAddress][_nonce]; require(failedMsg.payloadHash != bytes32(0), "NonblockingReceiver: no stored message"); require(_payload.length == failedMsg.payloadLength && keccak256(_payload) == failedMsg.payloadHash, "LayerZero: invalid payload"); // clear the stored message failedMsg.payloadLength = 0; failedMsg.payloadHash = bytes32(0); // execute the message. revert if it fails again this.onLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } function setTrustedRemote(uint16 _chainId, bytes calldata _trustedRemote) external onlyOwner { trustedRemoteLookup[_chainId] = _trustedRemote; } }
// 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) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; interface ILayerZeroReceiver { // @notice LayerZero endpoint will invoke this function to deliver the message on the destination // @param _srcChainId - the source endpoint identifier // @param _srcAddress - the source sending contract address from the source chain // @param _nonce - the ordered message nonce // @param _payload - the signed payload is the UA bytes has encoded to be sent function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external; }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; import "./ILayerZeroUserApplicationConfig.sol"; interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig { // @notice send a LayerZero message to the specified address at a LayerZero endpoint. // @param _dstChainId - the destination chain identifier // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains // @param _payload - a custom bytes payload to send to the destination contract // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable; // @notice used by the messaging library to publish verified payload // @param _srcChainId - the source chain identifier // @param _srcAddress - the source contract (as bytes) at the source chain // @param _dstAddress - the address on destination chain // @param _nonce - the unbound message ordering nonce // @param _gasLimit - the gas limit for external contract execution // @param _payload - verified payload to send to the destination contract function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external; // @notice get the inboundNonce of a receiver from a source chain which could be EVM or non-EVM chain // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64); // @notice get the outboundNonce from this source chain which, consequently, is always an EVM // @param _srcAddress - the source chain contract address function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64); // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery // @param _dstChainId - the destination chain identifier // @param _userApplication - the user app address on this EVM chain // @param _payload - the custom message to send over LayerZero // @param _payInZRO - if false, user app pays the protocol fee in native token // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee); // @notice get this Endpoint's immutable source identifier function getChainId() external view returns (uint16); // @notice the interface to retry failed message on this Endpoint destination // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address // @param _payload - the payload to be retried function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external; // @notice query if any STORED payload (message blocking) at the endpoint. // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool); // @notice query if the _libraryAddress is valid for sending msgs. // @param _userApplication - the user app address on this EVM chain function getSendLibraryAddress(address _userApplication) external view returns (address); // @notice query if the _libraryAddress is valid for receiving msgs. // @param _userApplication - the user app address on this EVM chain function getReceiveLibraryAddress(address _userApplication) external view returns (address); // @notice query if the non-reentrancy guard for send() is on // @return true if the guard is on. false otherwise function isSendingPayload() external view returns (bool); // @notice query if the non-reentrancy guard for receive() is on // @return true if the guard is on. false otherwise function isReceivingPayload() external view returns (bool); // @notice get the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _userApplication - the contract address of the user application // @param _configType - type of configuration. every messaging library has its own convention. function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory); // @notice get the send() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getSendVersion(address _userApplication) external view returns (uint16); // @notice get the lzReceive() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getReceiveVersion(address _userApplication) external view returns (uint16); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; interface ILayerZeroUserApplicationConfig { // @notice set the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _configType - type of configuration. every messaging library has its own convention. // @param _config - configuration in the bytes. can encode arbitrary content. function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external; // @notice set the send() LayerZero messaging library version to _version // @param _version - new messaging library version function setSendVersion(uint16 _version) external; // @notice set the lzReceive() LayerZero messaging library version to _version // @param _version - new messaging library version function setReceiveVersion(uint16 _version) external; // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload // @param _srcChainId - the chainId of the source chain // @param _srcAddress - the contract address of the source contract at the source chain function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"teamSupply","type":"uint256"},{"internalType":"string","name":"_placeholderUri","type":"string"},{"internalType":"address","name":"_layerZeroEndpoint","type":"address"},{"internalType":"address","name":"royaltyReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CHAIN_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CHAIN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OFFSET_VALUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RANDOMIZER_ADDRESS_BSC","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"failedMessages","outputs":[{"internalType":"uint256","name":"payloadLength","type":"uint256"},{"internalType":"bytes32","name":"payloadHash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finishReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gasForDestinationLzReceive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintActiveFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"onLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"placeholderUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepareReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remainingTeamSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint256","name":"offset","type":"uint256"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"string","name":"uri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"setGasForDestinationLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTimestamp","type":"uint256"}],"name":"setMintActiveFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setPlaceholderUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"bytes","name":"_trustedRemote","type":"bytes"}],"name":"setTrustedRemote","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"traverseChains","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"token","type":"address"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"token","type":"address"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052620557306011553480156200001857600080fd5b506040516200496e3803806200496e8339810160408190526200003b916200036b565b604080518082018252601881527f4465616420467265616b7320526573757272656374696f6e000000000000000060208083019182528351808501909452600384526222232960e91b9084015281519192916200009b9160009162000292565b508051620000b190600190602084019062000292565b505050620000ce620000c86200013760201b60201c565b6200013b565b6001600955608086905260a0859052601085905560138490558251620000fc90600f90602086019062000292565b506200010b816103e86200018d565b50600a80546001600160a01b0319166001600160a01b039290921691909117905550620004ca92505050565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620002015760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002595760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001f8565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b828054620002a0906200048d565b90600052602060002090601f016020900481019282620002c457600085556200030f565b82601f10620002df57805160ff19168380011785556200030f565b828001600101855582156200030f579182015b828111156200030f578251825591602001919060010190620002f2565b506200031d92915062000321565b5090565b5b808211156200031d576000815560010162000322565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200036657600080fd5b919050565b60008060008060008060c087890312156200038557600080fd5b865160208089015160408a015160608b01519399509097509550906001600160401b0380821115620003b657600080fd5b818a0191508a601f830112620003cb57600080fd5b815181811115620003e057620003e062000338565b604051601f8201601f19908116603f011681019083821181831017156200040b576200040b62000338565b816040528281528d868487010111156200042457600080fd5b600093505b8284101562000448578484018601518185018701529285019262000429565b828411156200045a5760008684830101525b80985050505050505062000471608088016200034e565b91506200048160a088016200034e565b90509295509295509295565b600181811c90821680620004a257607f821691505b60208210811415620004c457634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516144626200050c600039600081816104de015281816112d80152611e38015260008181610447015281816112b70152611e1701526144626000f3fe60806040526004361061035f5760003560e01c80637533d788116101c6578063cf89fa03116100f7578063f041a6fe11610095578063f9a907c51161006f578063f9a907c514610a1a578063fb3cc6c214610a39578063fc66939514610a53578063ff1b655614610a6857600080fd5b8063f041a6fe146109cf578063f2fde38b146109e4578063f3234f4014610a0457600080fd5b8063d3738fc8116100d1578063d3738fc814610916578063e532d44814610946578063e985e9c514610966578063eb8d72b7146109af57600080fd5b8063cf89fa03146108db578063d111515d146108ee578063d1deba1f1461090357600080fd5b8063a0712d6811610164578063b88d4fde1161013e578063b88d4fde14610865578063c21b471b14610885578063c5f0063d146108a5578063c87b56dd146108bb57600080fd5b8063a0712d6814610812578063a0bcfc7f14610825578063a22cb4651461084557600080fd5b80638ee74912116101a05780638ee749121461075d578063943fb872146107c857806395d89b41146107e85780639abc8320146107fd57600080fd5b80637533d788146106ff5780637b439f361461071f5780638da5cb5b1461073f57600080fd5b80633ccfd60b116102a05780635d87a48e1161023e5780636afd4ba2116102185780636afd4ba21461068a578063708b4730146106aa57806370a08231146106ca578063715018a6146106ea57600080fd5b80635d87a48e146106355780635e280f111461064a5780636352211e1461066a57600080fd5b806344004cc11161027a57806344004cc1146105c957806350f5732f146105e957806351830227146105ff57806356df7acf1461061f57600080fd5b80633ccfd60b146105745780634025feb21461058957806342842e0e146105a957600080fd5b80631c37a8221161030d5780632447469f116102e75780632447469f146104cc57806325fd90f3146105005780632a55205a14610515578063342f48aa1461055457600080fd5b80631c37a8221461047757806323b872dd14610497578063244376b1146104b757600080fd5b8063081812fc1161033e578063081812fc146103dd578063095ea7b3146104155780630defe3581461043557600080fd5b80621d35671461036457806301ffc9a71461038657806306fdde03146103bb575b600080fd5b34801561037057600080fd5b5061038461037f3660046139ba565b610a7d565b005b34801561039257600080fd5b506103a66103a1366004613a55565b610c81565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610c92565b6040516103b29190613aca565b3480156103e957600080fd5b506103fd6103f8366004613add565b610d24565b6040516001600160a01b0390911681526020016103b2565b34801561042157600080fd5b50610384610430366004613b0b565b610db9565b34801561044157600080fd5b506104697f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016103b2565b34801561048357600080fd5b506103846104923660046139ba565b610eeb565b3480156104a357600080fd5b506103846104b2366004613b37565b610f6c565b3480156104c357600080fd5b50610384610ff3565b3480156104d857600080fd5b506104697f000000000000000000000000000000000000000000000000000000000000000081565b34801561050c57600080fd5b506103a66110f1565b34801561052157600080fd5b50610535610530366004613b78565b61110b565b604080516001600160a01b0390931683526020830191909152016103b2565b34801561056057600080fd5b5061038461056f366004613add565b6111c8565b34801561058057600080fd5b506103846113ad565b34801561059557600080fd5b506103846105a4366004613b37565b611428565b3480156105b557600080fd5b506103846105c4366004613b37565b6114f7565b3480156105d557600080fd5b506103846105e4366004613b37565b611512565b3480156105f557600080fd5b5061046960125481565b34801561060b57600080fd5b506015546103a69062010000900460ff1681565b34801561062b57600080fd5b50610469600d5481565b34801561064157600080fd5b506103846115e6565b34801561065657600080fd5b50600a546103fd906001600160a01b031681565b34801561067657600080fd5b506103fd610685366004613add565b61169f565b34801561069657600080fd5b506103846106a5366004613bdc565b61172a565b3480156106b657600080fd5b506103846106c5366004613c1e565b6117c6565b3480156106d657600080fd5b506104696106e5366004613c6a565b6119d0565b3480156106f657600080fd5b50610384611a6a565b34801561070b57600080fd5b506103d061071a366004613c87565b611abc565b34801561072b57600080fd5b5061038461073a366004613add565b611b56565b34801561074b57600080fd5b506008546001600160a01b03166103fd565b34801561076957600080fd5b506107b3610778366004613ca2565b600b60209081526000938452604080852084518086018401805192815290840195840195909520945292905282529020805460019091015482565b604080519283526020830191909152016103b2565b3480156107d457600080fd5b506103846107e3366004613add565b611ba3565b3480156107f457600080fd5b506103d0611bf0565b34801561080957600080fd5b506103d0611bff565b610384610820366004613add565b611c0c565b34801561083157600080fd5b50610384610840366004613bdc565b611f0c565b34801561085157600080fd5b50610384610860366004613d07565b611fa8565b34801561087157600080fd5b50610384610880366004613d40565b611fb7565b34801561089157600080fd5b506103846108a0366004613da0565b61203f565b3480156108b157600080fd5b5061046960135481565b3480156108c757600080fd5b506103d06108d6366004613add565b612091565b6103846108e9366004613ddf565b6121ce565b3480156108fa57600080fd5b5061038461253b565b610384610911366004613dfb565b6126b6565b34801561092257600080fd5b506103a6610931366004613c6a565b60146020526000908152604090205460ff1681565b34801561095257600080fd5b50610384610961366004613b37565b61285b565b34801561097257600080fd5b506103a6610981366004613e87565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109bb57600080fd5b506103846109ca366004613eb5565b612985565b3480156109db57600080fd5b506103d06129eb565b3480156109f057600080fd5b506103846109ff366004613c6a565b612a07565b348015610a1057600080fd5b5061046960115481565b348015610a2657600080fd5b506015546103a690610100900460ff1681565b348015610a4557600080fd5b506015546103a69060ff1681565b348015610a5f57600080fd5b506103d0612ad7565b348015610a7457600080fd5b506103d0612ae4565b600a546001600160a01b03163314610a9457600080fd5b61ffff84166000908152600c602052604090208054610ab290613f08565b90508351148015610af1575061ffff84166000908152600c6020526040908190209051610adf9190613f43565b60405180910390208380519060200120145b610b685760405162461bcd60e51b815260206004820152603460248201527f4e6f6e626c6f636b696e6752656365697665723a20696e76616c696420736f7560448201527f7263652073656e64696e6720636f6e747261637400000000000000000000000060648201526084015b60405180910390fd5b604051630e1bd41160e11b81523090631c37a82290610b91908790879087908790600401613fb5565b600060405180830381600087803b158015610bab57600080fd5b505af1925050508015610bbc575060015b610c7b576040518060400160405280825181526020018280519060200120815250600b60008661ffff1661ffff16815260200190815260200160002084604051610c069190613fff565b90815260408051918290036020908101832067ffffffffffffffff8716600090815290825291909120835181559201516001909201919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90610c72908690869086908690613fb5565b60405180910390a15b50505050565b6000610c8c82612b00565b92915050565b606060008054610ca190613f08565b80601f0160208091040260200160405190810160405280929190818152602001828054610ccd90613f08565b8015610d1a5780601f10610cef57610100808354040283529160200191610d1a565b820191906000526020600020905b815481529060010190602001808311610cfd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610d9d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b5f565b506000908152600460205260409020546001600160a01b031690565b6000610dc48261169f565b9050806001600160a01b0316836001600160a01b03161415610e4e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b5f565b336001600160a01b0382161480610e6a5750610e6a8133610981565b610edc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b5f565b610ee68383612b3e565b505050565b333014610f605760405162461bcd60e51b815260206004820152602b60248201527f4e6f6e626c6f636b696e6752656365697665723a2063616c6c6572206d75737460448201527f206265204272696467652e0000000000000000000000000000000000000000006064820152608401610b5f565b610c7b84848484612bac565b610f763382612bd9565b610fe85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b5f565b610ee6838383612cd0565b6008546001600160a01b0316331461103b5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b60155462010000900460ff16156110875760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995d99585b195960821b6044820152606401610b5f565b601554610100900460ff166110de5760405162461bcd60e51b815260206004820152601860248201527f43616c6c207072657061726552657665616c20666972737400000000000000006044820152606401610b5f565b6015805462ffff00191662010000179055565b60008060125411801561110657506012544210155b905090565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff1692820192909252829161118a5750604080518082019091526006546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b6020810151600090612710906111ae906bffffffffffffffffffffffff1687614031565b6111b89190614066565b91519350909150505b9250929050565b6008546001600160a01b031633146112105760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b600081116112605760405162461bcd60e51b815260206004820152600f60248201527f4d696e74206174206c65617374203100000000000000000000000000000000006044820152606401610b5f565b6013548111156112b25760405162461bcd60e51b815260206004820152601060248201527f4f766572207465616d20737570706c79000000000000000000000000000000006044820152606401610b5f565b6112fc7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061407a565b8160105461130a919061407a565b11156113585760405162461bcd60e51b815260206004820152601960248201527f4f76657220737570706c79206f6e207468697320636861696e000000000000006044820152606401610b5f565b60005b81811015611392576113803360106000815461137690614092565b9182905550612ea8565b8061138a81614092565b91505061135b565b5080601360008282546113a591906140ad565b909155505050565b6008546001600160a01b031633146113f55760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505061142657600080fd5b565b6008546001600160a01b031633146114705760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038381166024830152604482018390528416906323b872dd906064015b600060405180830381600087803b1580156114da57600080fd5b505af11580156114ee573d6000803e3d6000fd5b50505050505050565b610ee683838360405180602001604052806000815250611fb7565b6008546001600160a01b0316331461155a5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af11580156115c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7b91906140c4565b6008546001600160a01b0316331461162e5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b601554610100900460ff1615801561164f575060155462010000900460ff16155b61168e5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995d99585b195960821b6044820152606401610b5f565b6015805461ff001916610100179055565b6000818152600260205260408120546001600160a01b031680610c8c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b5f565b60155460ff16156117725760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b6044820152606401610b5f565b6008546001600160a01b031633146117ba5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b610ee6600f8383613854565b60155460ff161561180e5760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b6044820152606401610b5f565b6008546001600160a01b031633146118565760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b601554610100900460ff166118ad5760405162461bcd60e51b815260206004820152601860248201527f43616c6c207072657061726552657665616c20666972737400000000000000006044820152606401610b5f565b816118fa5760405162461bcd60e51b815260206004820152601c60248201527f52657665616c206e6565647320746f20736574206261736520757269000000006044820152606401610b5f565b600081116119705760405162461bcd60e51b815260206004820152602360248201527f52657665616c206e6565647320746f20736574206e6f6e207a65726f206f666660448201527f73657400000000000000000000000000000000000000000000000000000000006064820152608401610b5f565b60155462010000900460ff16156119bc5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995d99585b195960821b6044820152606401610b5f565b6119c8600e8484613854565b50600d555050565b60006001600160a01b038216611a4e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b5f565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b03163314611ab25760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6114266000612ec2565b600c6020526000908152604090208054611ad590613f08565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0190613f08565b8015611b4e5780601f10611b2357610100808354040283529160200191611b4e565b820191906000526020600020905b815481529060010190602001808311611b3157829003601f168201915b505050505081565b6008546001600160a01b03163314611b9e5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b601255565b6008546001600160a01b03163314611beb5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b601155565b606060018054610ca190613f08565b600e8054611ad590613f08565b333214611c5b5760405162461bcd60e51b815260206004820152601960248201527f4e6f2d4e6f20746f204d6f6a6f204a6f6a6f2773206d6f6a6f000000000000006044820152606401610b5f565b60026009541415611cae5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b5f565b600260095560125415801590611cc657506012544210155b611d125760405162461bcd60e51b815260206004820152600d60248201527f4d696e7420696e616374697665000000000000000000000000000000000000006044820152606401610b5f565b60008111611d625760405162461bcd60e51b815260206004820152600f60248201527f4d696e74206174206c65617374203100000000000000000000000000000000006044820152606401610b5f565b60048110611db25760405162461bcd60e51b815260206004820152600c60248201527f4d617820332070657220747800000000000000000000000000000000000000006044820152606401610b5f565b3360009081526014602052604090205460ff1615611e125760405162461bcd60e51b815260206004820152601560248201527f4d61782031206d696e74207065722077616c6c657400000000000000000000006044820152606401610b5f565b611e5c7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061407a565b81601054611e6a919061407a565b1115611eb85760405162461bcd60e51b815260206004820152601960248201527f4f76657220737570706c79206f6e207468697320636861696e000000000000006044820152606401610b5f565b60005b81811015611ee857611ed63360106000815461137690614092565b80611ee081614092565b915050611ebb565b5050336000908152601460205260409020805460ff19166001908117909155600955565b60155460ff1615611f545760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b6044820152606401610b5f565b6008546001600160a01b03163314611f9c5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b610ee6600e8383613854565b611fb3338383612f14565b5050565b611fc13383612bd9565b6120335760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b5f565b610c7b84848484612fe3565b6008546001600160a01b031633146120875760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b611fb38282613061565b60155460609062010000900460ff166121c0576000828152600260205260409020546001600160a01b031661212e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b5f565b600f805461213b90613f08565b80601f016020809104026020016040519081016040528092919081815260200182805461216790613f08565b80156121b45780601f10612189576101008083540402835291602001916121b4565b820191906000526020600020905b81548152906001019060200180831161219757829003601f168201915b50505050509050919050565b610c8c8261317b565b919050565b601554610100900460ff16156122265760405162461bcd60e51b815260206004820152601f60248201527f54726176657273616c732070617573656420647572696e672072657665616c006044820152606401610b5f565b61222f8161169f565b6001600160a01b0316336001600160a01b03161461228f5760405162461bcd60e51b815260206004820152601660248201527f596f75206d757374206f776e2074686520746f6b656e000000000000000000006044820152606401610b5f565b61ffff82166000908152600c6020526040812080546122ad90613f08565b9050116122fc5760405162461bcd60e51b815260206004820152601960248201527f5468697320636861696e20697320756e617661696c61626c65000000000000006044820152606401610b5f565b61230581613264565b604080513360208201528082018390528151808203830181526060820183526011547e0100000000000000000000000000000000000000000000000000000000000060808401526082808401919091528351808403909101815260a2830193849052600a547f40a7bb100000000000000000000000000000000000000000000000000000000090945290926001926000916001600160a01b0316906340a7bb10906123bc908990309089908790899060a6016140e1565b6040805180830381865afa1580156123d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123fc9190614133565b5090508034101561249c5760405162461bcd60e51b8152602060048201526044602482018190527f73656e642076616c7565206e6f7420656e6f75676820746f20636f766572206d908201527f6573736167654665652e2053656e642067617320666f72206d6573736167652060648201527f6665657300000000000000000000000000000000000000000000000000000000608482015260a401610b5f565b600a5461ffff87166000908152600c602052604080822090517fc58031000000000000000000000000000000000000000000000000000000000081526001600160a01b039093169263c5803100923492612501928c928b913391908b90600401614157565b6000604051808303818588803b15801561251a57600080fd5b505af115801561252e573d6000803e3d6000fd5b5050505050505050505050565b60155460ff16156125835760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b6044820152606401610b5f565b6008546001600160a01b031633146125cb5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6000600e80546125da90613f08565b9050116126295760405162461bcd60e51b815260206004820152601860248201527f4e65656420736f6d657468696e6720746f20667265657a6500000000000000006044820152606401610b5f565b60155462010000900460ff166126a75760405162461bcd60e51b815260206004820152602260248201527f4d7573742062652072657665616c6564206265666f726520746865206672656560448201527f7a650000000000000000000000000000000000000000000000000000000000006064820152608401610b5f565b6015805460ff19166001179055565b61ffff85166000908152600b602052604080822090516126d7908790613fff565b908152604080516020928190038301902067ffffffffffffffff871660009081529252902060018101549091506127765760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e6752656365697665723a206e6f2073746f726564206d60448201527f65737361676500000000000000000000000000000000000000000000000000006064820152608401610b5f565b8054821480156127a0575080600101548383604051612796929190614237565b6040518091039020145b6127ec5760405162461bcd60e51b815260206004820152601a60248201527f4c617965725a65726f3a20696e76616c6964207061796c6f61640000000000006044820152606401610b5f565b60008082556001820155604051630e1bd41160e11b81523090631c37a822906128219089908990899089908990600401614247565b600060405180830381600087803b15801561283b57600080fd5b505af115801561284f573d6000803e3d6000fd5b50505050505050505050565b6008546001600160a01b031633146128a35760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6040517efdd58e0000000000000000000000000000000000000000000000000000000081523060048201819052602482018390526001600160a01b0385169163f242432a919085908590859062fdd58e90604401602060405180830381865afa158015612914573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061293891906142a9565b6040516001600160e01b031960e087901b1681526001600160a01b0394851660048201529390921660248401526044830152606482015260a06084820152600060a482015260c4016114c0565b6008546001600160a01b031633146129cd5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b61ffff83166000908152600c60205260409020610c7b908383613854565b6040518060600160405280602a81526020016143e3602a913981565b6008546001600160a01b03163314612a4f5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6001600160a01b038116612acb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b5f565b612ad481612ec2565b50565b600f8054611ad590613f08565b6040518060600160405280604081526020016143a36040913981565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610c8c5750610c8c8261330b565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b738261169f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008082806020019051810190612bc391906142c2565b91509150612bd18282612ea8565b505050505050565b6000818152600260205260408120546001600160a01b0316612c525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b5f565b6000612c5d8361169f565b9050806001600160a01b0316846001600160a01b03161480612c985750836001600160a01b0316612c8d84610d24565b6001600160a01b0316145b80612cc857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612ce38261169f565b6001600160a01b031614612d5f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b5f565b6001600160a01b038216612dda5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b5f565b612de58383836133a6565b612df0600082612b3e565b6001600160a01b0383166000908152600360205260408120805460019290612e199084906140ad565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e4790849061407a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611fb38282604051806020016040528060008152506133fe565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612f765760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b5f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612fee848484612cd0565b612ffa8484848461347c565b610c7b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b5f565b6127106bffffffffffffffffffffffff821611156130e75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610b5f565b6001600160a01b03821661313d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b5f565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600655565b6000818152600260205260409020546060906001600160a01b03166132085760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b5f565b60006132126135c5565b90506000815111613232576040518060200160405280600081525061325d565b8061323c846135d4565b60405160200161324d9291906142f0565b6040516020818303038152906040525b9392505050565b600061326f8261169f565b905061327d816000846133a6565b613288600083612b3e565b6001600160a01b03811660009081526003602052604081208054600192906132b19084906140ad565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061336e57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c8c57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610c8c565b601554610100900460ff1615610ee65760405162461bcd60e51b815260206004820152601e60248201527f5472616e73666572732070617573656420647572696e672072657665616c00006044820152606401610b5f565b6134088383613706565b613415600084848461347c565b610ee65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b5f565b60006001600160a01b0384163b156135ba57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906134c090339089908890889060040161431f565b6020604051808303816000875af19250505080156134fb575060408051601f3d908101601f191682019092526134f89181019061435b565b60015b6135a0573d808015613529576040519150601f19603f3d011682016040523d82523d6000602084013e61352e565b606091505b5080516135985760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b5f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612cc8565b506001949350505050565b6060600e8054610ca190613f08565b60608161361457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561363e578061362881614092565b91506136379050600a83614066565b9150613618565b60008167ffffffffffffffff811115613659576136596138ff565b6040519080825280601f01601f191660200182016040528015613683576020820181803683370190505b5090505b8415612cc8576136986001836140ad565b91506136a5600a86614378565b6136b090603061407a565b60f81b8183815181106136c5576136c561438c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506136ff600a86614066565b9450613687565b6001600160a01b03821661375c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b5f565b6000818152600260205260409020546001600160a01b0316156137c15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b5f565b6137cd600083836133a6565b6001600160a01b03821660009081526003602052604081208054600192906137f690849061407a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461386090613f08565b90600052602060002090601f01602090048101928261388257600085556138c8565b82601f1061389b5782800160ff198235161785556138c8565b828001600101855582156138c8579182015b828111156138c85782358255916020019190600101906138ad565b506138d49291506138d8565b5090565b5b808211156138d457600081556001016138d9565b803561ffff811681146121c957600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f83011261392657600080fd5b813567ffffffffffffffff80821115613941576139416138ff565b604051601f8301601f19908116603f01168101908282118183101715613969576139696138ff565b8160405283815286602085880101111561398257600080fd5b836020870160208301376000602085830101528094505050505092915050565b803567ffffffffffffffff811681146121c957600080fd5b600080600080608085870312156139d057600080fd5b6139d9856138ed565b9350602085013567ffffffffffffffff808211156139f657600080fd5b613a0288838901613915565b9450613a10604088016139a2565b93506060870135915080821115613a2657600080fd5b50613a3387828801613915565b91505092959194509250565b6001600160e01b031981168114612ad457600080fd5b600060208284031215613a6757600080fd5b813561325d81613a3f565b60005b83811015613a8d578181015183820152602001613a75565b83811115610c7b5750506000910152565b60008151808452613ab6816020860160208601613a72565b601f01601f19169290920160200192915050565b60208152600061325d6020830184613a9e565b600060208284031215613aef57600080fd5b5035919050565b6001600160a01b0381168114612ad457600080fd5b60008060408385031215613b1e57600080fd5b8235613b2981613af6565b946020939093013593505050565b600080600060608486031215613b4c57600080fd5b8335613b5781613af6565b92506020840135613b6781613af6565b929592945050506040919091013590565b60008060408385031215613b8b57600080fd5b50508035926020909101359150565b60008083601f840112613bac57600080fd5b50813567ffffffffffffffff811115613bc457600080fd5b6020830191508360208285010111156111c157600080fd5b60008060208385031215613bef57600080fd5b823567ffffffffffffffff811115613c0657600080fd5b613c1285828601613b9a565b90969095509350505050565b600080600060408486031215613c3357600080fd5b833567ffffffffffffffff811115613c4a57600080fd5b613c5686828701613b9a565b909790965060209590950135949350505050565b600060208284031215613c7c57600080fd5b813561325d81613af6565b600060208284031215613c9957600080fd5b61325d826138ed565b600080600060608486031215613cb757600080fd5b613cc0846138ed565b9250602084013567ffffffffffffffff811115613cdc57600080fd5b613ce886828701613915565b925050604084013590509250925092565b8015158114612ad457600080fd5b60008060408385031215613d1a57600080fd5b8235613d2581613af6565b91506020830135613d3581613cf9565b809150509250929050565b60008060008060808587031215613d5657600080fd5b8435613d6181613af6565b93506020850135613d7181613af6565b925060408501359150606085013567ffffffffffffffff811115613d9457600080fd5b613a3387828801613915565b60008060408385031215613db357600080fd5b8235613dbe81613af6565b915060208301356bffffffffffffffffffffffff81168114613d3557600080fd5b60008060408385031215613df257600080fd5b613b29836138ed565b600080600080600060808688031215613e1357600080fd5b613e1c866138ed565b9450602086013567ffffffffffffffff80821115613e3957600080fd5b613e4589838a01613915565b9550613e53604089016139a2565b94506060880135915080821115613e6957600080fd5b50613e7688828901613b9a565b969995985093965092949392505050565b60008060408385031215613e9a57600080fd5b8235613ea581613af6565b91506020830135613d3581613af6565b600080600060408486031215613eca57600080fd5b613ed3846138ed565b9250602084013567ffffffffffffffff811115613eef57600080fd5b613efb86828701613b9a565b9497909650939450505050565b600181811c90821680613f1c57607f821691505b60208210811415613f3d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000808354613f5181613f08565b60018281168015613f695760018114613f7a57613fa9565b60ff19841687528287019450613fa9565b8760005260208060002060005b85811015613fa05781548a820152908401908201613f87565b50505082870194505b50929695505050505050565b61ffff85168152608060208201526000613fd26080830186613a9e565b67ffffffffffffffff851660408401528281036060840152613ff48185613a9e565b979650505050505050565b60008251614011818460208701613a72565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561404b5761404b61401b565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261407557614075614050565b500490565b6000821982111561408d5761408d61401b565b500190565b60006000198214156140a6576140a661401b565b5060010190565b6000828210156140bf576140bf61401b565b500390565b6000602082840312156140d657600080fd5b815161325d81613cf9565b61ffff861681526001600160a01b038516602082015260a06040820152600061410d60a0830186613a9e565b841515606084015282810360808401526141278185613a9e565b98975050505050505050565b6000806040838503121561414657600080fd5b505080516020909101519092909150565b61ffff871681526000602060c0818401526000885461417581613f08565b8060c087015260e060018084166000811461419757600181146141ac576141da565b60ff19851689840152610100890195506141da565b8d6000528660002060005b858110156141d25781548b82018601529083019088016141b7565b8a0184019650505b505050505083810360408501526141f18189613a9e565b91505061420960608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a084015261422a8185613a9e565b9998505050505050505050565b8183823760009101908152919050565b61ffff861681526080602082015260006142646080830187613a9e565b67ffffffffffffffff861660408401528281036060840152838152838560208301376000602085830101526020601f19601f8601168201019150509695505050505050565b6000602082840312156142bb57600080fd5b5051919050565b600080604083850312156142d557600080fd5b82516142e081613af6565b6020939093015192949293505050565b60008351614302818460208801613a72565b835190830190614316818360208801613a72565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526143516080830184613a9e565b9695505050505050565b60006020828403121561436d57600080fd5b815161325d81613a3f565b60008261438757614387614050565b500690565b634e487b7160e01b600052603260045260246000fdfe653439346266366265646166386165373863303965393463343134653131356435623733383433656332353337373162656638653436316237333861313263383078636361443041373932394164423639383766383432373546664365334544313531413534446637434f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ad563fef5d1c7a9d463684b3c4797ee0fc246488224293243b632a9d4cac0c8c64736f6c634300080b003300000000000000000000000000000000000000000000000000000000000005dc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000c000000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67500000000000000000000000061672fb1ac210237b1e4aac0b571989d0fe3df96000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d565a6d63526b517964594d46317051376d57447a373850713377564252364c65414839764c46344e74783471000000000000
Deployed Bytecode
0x60806040526004361061035f5760003560e01c80637533d788116101c6578063cf89fa03116100f7578063f041a6fe11610095578063f9a907c51161006f578063f9a907c514610a1a578063fb3cc6c214610a39578063fc66939514610a53578063ff1b655614610a6857600080fd5b8063f041a6fe146109cf578063f2fde38b146109e4578063f3234f4014610a0457600080fd5b8063d3738fc8116100d1578063d3738fc814610916578063e532d44814610946578063e985e9c514610966578063eb8d72b7146109af57600080fd5b8063cf89fa03146108db578063d111515d146108ee578063d1deba1f1461090357600080fd5b8063a0712d6811610164578063b88d4fde1161013e578063b88d4fde14610865578063c21b471b14610885578063c5f0063d146108a5578063c87b56dd146108bb57600080fd5b8063a0712d6814610812578063a0bcfc7f14610825578063a22cb4651461084557600080fd5b80638ee74912116101a05780638ee749121461075d578063943fb872146107c857806395d89b41146107e85780639abc8320146107fd57600080fd5b80637533d788146106ff5780637b439f361461071f5780638da5cb5b1461073f57600080fd5b80633ccfd60b116102a05780635d87a48e1161023e5780636afd4ba2116102185780636afd4ba21461068a578063708b4730146106aa57806370a08231146106ca578063715018a6146106ea57600080fd5b80635d87a48e146106355780635e280f111461064a5780636352211e1461066a57600080fd5b806344004cc11161027a57806344004cc1146105c957806350f5732f146105e957806351830227146105ff57806356df7acf1461061f57600080fd5b80633ccfd60b146105745780634025feb21461058957806342842e0e146105a957600080fd5b80631c37a8221161030d5780632447469f116102e75780632447469f146104cc57806325fd90f3146105005780632a55205a14610515578063342f48aa1461055457600080fd5b80631c37a8221461047757806323b872dd14610497578063244376b1146104b757600080fd5b8063081812fc1161033e578063081812fc146103dd578063095ea7b3146104155780630defe3581461043557600080fd5b80621d35671461036457806301ffc9a71461038657806306fdde03146103bb575b600080fd5b34801561037057600080fd5b5061038461037f3660046139ba565b610a7d565b005b34801561039257600080fd5b506103a66103a1366004613a55565b610c81565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610c92565b6040516103b29190613aca565b3480156103e957600080fd5b506103fd6103f8366004613add565b610d24565b6040516001600160a01b0390911681526020016103b2565b34801561042157600080fd5b50610384610430366004613b0b565b610db9565b34801561044157600080fd5b506104697f00000000000000000000000000000000000000000000000000000000000005dc81565b6040519081526020016103b2565b34801561048357600080fd5b506103846104923660046139ba565b610eeb565b3480156104a357600080fd5b506103846104b2366004613b37565b610f6c565b3480156104c357600080fd5b50610384610ff3565b3480156104d857600080fd5b506104697f000000000000000000000000000000000000000000000000000000000000000081565b34801561050c57600080fd5b506103a66110f1565b34801561052157600080fd5b50610535610530366004613b78565b61110b565b604080516001600160a01b0390931683526020830191909152016103b2565b34801561056057600080fd5b5061038461056f366004613add565b6111c8565b34801561058057600080fd5b506103846113ad565b34801561059557600080fd5b506103846105a4366004613b37565b611428565b3480156105b557600080fd5b506103846105c4366004613b37565b6114f7565b3480156105d557600080fd5b506103846105e4366004613b37565b611512565b3480156105f557600080fd5b5061046960125481565b34801561060b57600080fd5b506015546103a69062010000900460ff1681565b34801561062b57600080fd5b50610469600d5481565b34801561064157600080fd5b506103846115e6565b34801561065657600080fd5b50600a546103fd906001600160a01b031681565b34801561067657600080fd5b506103fd610685366004613add565b61169f565b34801561069657600080fd5b506103846106a5366004613bdc565b61172a565b3480156106b657600080fd5b506103846106c5366004613c1e565b6117c6565b3480156106d657600080fd5b506104696106e5366004613c6a565b6119d0565b3480156106f657600080fd5b50610384611a6a565b34801561070b57600080fd5b506103d061071a366004613c87565b611abc565b34801561072b57600080fd5b5061038461073a366004613add565b611b56565b34801561074b57600080fd5b506008546001600160a01b03166103fd565b34801561076957600080fd5b506107b3610778366004613ca2565b600b60209081526000938452604080852084518086018401805192815290840195840195909520945292905282529020805460019091015482565b604080519283526020830191909152016103b2565b3480156107d457600080fd5b506103846107e3366004613add565b611ba3565b3480156107f457600080fd5b506103d0611bf0565b34801561080957600080fd5b506103d0611bff565b610384610820366004613add565b611c0c565b34801561083157600080fd5b50610384610840366004613bdc565b611f0c565b34801561085157600080fd5b50610384610860366004613d07565b611fa8565b34801561087157600080fd5b50610384610880366004613d40565b611fb7565b34801561089157600080fd5b506103846108a0366004613da0565b61203f565b3480156108b157600080fd5b5061046960135481565b3480156108c757600080fd5b506103d06108d6366004613add565b612091565b6103846108e9366004613ddf565b6121ce565b3480156108fa57600080fd5b5061038461253b565b610384610911366004613dfb565b6126b6565b34801561092257600080fd5b506103a6610931366004613c6a565b60146020526000908152604090205460ff1681565b34801561095257600080fd5b50610384610961366004613b37565b61285b565b34801561097257600080fd5b506103a6610981366004613e87565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109bb57600080fd5b506103846109ca366004613eb5565b612985565b3480156109db57600080fd5b506103d06129eb565b3480156109f057600080fd5b506103846109ff366004613c6a565b612a07565b348015610a1057600080fd5b5061046960115481565b348015610a2657600080fd5b506015546103a690610100900460ff1681565b348015610a4557600080fd5b506015546103a69060ff1681565b348015610a5f57600080fd5b506103d0612ad7565b348015610a7457600080fd5b506103d0612ae4565b600a546001600160a01b03163314610a9457600080fd5b61ffff84166000908152600c602052604090208054610ab290613f08565b90508351148015610af1575061ffff84166000908152600c6020526040908190209051610adf9190613f43565b60405180910390208380519060200120145b610b685760405162461bcd60e51b815260206004820152603460248201527f4e6f6e626c6f636b696e6752656365697665723a20696e76616c696420736f7560448201527f7263652073656e64696e6720636f6e747261637400000000000000000000000060648201526084015b60405180910390fd5b604051630e1bd41160e11b81523090631c37a82290610b91908790879087908790600401613fb5565b600060405180830381600087803b158015610bab57600080fd5b505af1925050508015610bbc575060015b610c7b576040518060400160405280825181526020018280519060200120815250600b60008661ffff1661ffff16815260200190815260200160002084604051610c069190613fff565b90815260408051918290036020908101832067ffffffffffffffff8716600090815290825291909120835181559201516001909201919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90610c72908690869086908690613fb5565b60405180910390a15b50505050565b6000610c8c82612b00565b92915050565b606060008054610ca190613f08565b80601f0160208091040260200160405190810160405280929190818152602001828054610ccd90613f08565b8015610d1a5780601f10610cef57610100808354040283529160200191610d1a565b820191906000526020600020905b815481529060010190602001808311610cfd57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610d9d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b5f565b506000908152600460205260409020546001600160a01b031690565b6000610dc48261169f565b9050806001600160a01b0316836001600160a01b03161415610e4e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b5f565b336001600160a01b0382161480610e6a5750610e6a8133610981565b610edc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b5f565b610ee68383612b3e565b505050565b333014610f605760405162461bcd60e51b815260206004820152602b60248201527f4e6f6e626c6f636b696e6752656365697665723a2063616c6c6572206d75737460448201527f206265204272696467652e0000000000000000000000000000000000000000006064820152608401610b5f565b610c7b84848484612bac565b610f763382612bd9565b610fe85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b5f565b610ee6838383612cd0565b6008546001600160a01b0316331461103b5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b60155462010000900460ff16156110875760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995d99585b195960821b6044820152606401610b5f565b601554610100900460ff166110de5760405162461bcd60e51b815260206004820152601860248201527f43616c6c207072657061726552657665616c20666972737400000000000000006044820152606401610b5f565b6015805462ffff00191662010000179055565b60008060125411801561110657506012544210155b905090565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff1692820192909252829161118a5750604080518082019091526006546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b6020810151600090612710906111ae906bffffffffffffffffffffffff1687614031565b6111b89190614066565b91519350909150505b9250929050565b6008546001600160a01b031633146112105760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b600081116112605760405162461bcd60e51b815260206004820152600f60248201527f4d696e74206174206c65617374203100000000000000000000000000000000006044820152606401610b5f565b6013548111156112b25760405162461bcd60e51b815260206004820152601060248201527f4f766572207465616d20737570706c79000000000000000000000000000000006044820152606401610b5f565b6112fc7f00000000000000000000000000000000000000000000000000000000000005dc7f000000000000000000000000000000000000000000000000000000000000000061407a565b8160105461130a919061407a565b11156113585760405162461bcd60e51b815260206004820152601960248201527f4f76657220737570706c79206f6e207468697320636861696e000000000000006044820152606401610b5f565b60005b81811015611392576113803360106000815461137690614092565b9182905550612ea8565b8061138a81614092565b91505061135b565b5080601360008282546113a591906140ad565b909155505050565b6008546001600160a01b031633146113f55760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505061142657600080fd5b565b6008546001600160a01b031633146114705760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038381166024830152604482018390528416906323b872dd906064015b600060405180830381600087803b1580156114da57600080fd5b505af11580156114ee573d6000803e3d6000fd5b50505050505050565b610ee683838360405180602001604052806000815250611fb7565b6008546001600160a01b0316331461155a5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af11580156115c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7b91906140c4565b6008546001600160a01b0316331461162e5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b601554610100900460ff1615801561164f575060155462010000900460ff16155b61168e5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995d99585b195960821b6044820152606401610b5f565b6015805461ff001916610100179055565b6000818152600260205260408120546001600160a01b031680610c8c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b5f565b60155460ff16156117725760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b6044820152606401610b5f565b6008546001600160a01b031633146117ba5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b610ee6600f8383613854565b60155460ff161561180e5760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b6044820152606401610b5f565b6008546001600160a01b031633146118565760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b601554610100900460ff166118ad5760405162461bcd60e51b815260206004820152601860248201527f43616c6c207072657061726552657665616c20666972737400000000000000006044820152606401610b5f565b816118fa5760405162461bcd60e51b815260206004820152601c60248201527f52657665616c206e6565647320746f20736574206261736520757269000000006044820152606401610b5f565b600081116119705760405162461bcd60e51b815260206004820152602360248201527f52657665616c206e6565647320746f20736574206e6f6e207a65726f206f666660448201527f73657400000000000000000000000000000000000000000000000000000000006064820152608401610b5f565b60155462010000900460ff16156119bc5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995d99585b195960821b6044820152606401610b5f565b6119c8600e8484613854565b50600d555050565b60006001600160a01b038216611a4e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b5f565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b03163314611ab25760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6114266000612ec2565b600c6020526000908152604090208054611ad590613f08565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0190613f08565b8015611b4e5780601f10611b2357610100808354040283529160200191611b4e565b820191906000526020600020905b815481529060010190602001808311611b3157829003601f168201915b505050505081565b6008546001600160a01b03163314611b9e5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b601255565b6008546001600160a01b03163314611beb5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b601155565b606060018054610ca190613f08565b600e8054611ad590613f08565b333214611c5b5760405162461bcd60e51b815260206004820152601960248201527f4e6f2d4e6f20746f204d6f6a6f204a6f6a6f2773206d6f6a6f000000000000006044820152606401610b5f565b60026009541415611cae5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b5f565b600260095560125415801590611cc657506012544210155b611d125760405162461bcd60e51b815260206004820152600d60248201527f4d696e7420696e616374697665000000000000000000000000000000000000006044820152606401610b5f565b60008111611d625760405162461bcd60e51b815260206004820152600f60248201527f4d696e74206174206c65617374203100000000000000000000000000000000006044820152606401610b5f565b60048110611db25760405162461bcd60e51b815260206004820152600c60248201527f4d617820332070657220747800000000000000000000000000000000000000006044820152606401610b5f565b3360009081526014602052604090205460ff1615611e125760405162461bcd60e51b815260206004820152601560248201527f4d61782031206d696e74207065722077616c6c657400000000000000000000006044820152606401610b5f565b611e5c7f00000000000000000000000000000000000000000000000000000000000005dc7f000000000000000000000000000000000000000000000000000000000000000061407a565b81601054611e6a919061407a565b1115611eb85760405162461bcd60e51b815260206004820152601960248201527f4f76657220737570706c79206f6e207468697320636861696e000000000000006044820152606401610b5f565b60005b81811015611ee857611ed63360106000815461137690614092565b80611ee081614092565b915050611ebb565b5050336000908152601460205260409020805460ff19166001908117909155600955565b60155460ff1615611f545760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b6044820152606401610b5f565b6008546001600160a01b03163314611f9c5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b610ee6600e8383613854565b611fb3338383612f14565b5050565b611fc13383612bd9565b6120335760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b5f565b610c7b84848484612fe3565b6008546001600160a01b031633146120875760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b611fb38282613061565b60155460609062010000900460ff166121c0576000828152600260205260409020546001600160a01b031661212e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b5f565b600f805461213b90613f08565b80601f016020809104026020016040519081016040528092919081815260200182805461216790613f08565b80156121b45780601f10612189576101008083540402835291602001916121b4565b820191906000526020600020905b81548152906001019060200180831161219757829003601f168201915b50505050509050919050565b610c8c8261317b565b919050565b601554610100900460ff16156122265760405162461bcd60e51b815260206004820152601f60248201527f54726176657273616c732070617573656420647572696e672072657665616c006044820152606401610b5f565b61222f8161169f565b6001600160a01b0316336001600160a01b03161461228f5760405162461bcd60e51b815260206004820152601660248201527f596f75206d757374206f776e2074686520746f6b656e000000000000000000006044820152606401610b5f565b61ffff82166000908152600c6020526040812080546122ad90613f08565b9050116122fc5760405162461bcd60e51b815260206004820152601960248201527f5468697320636861696e20697320756e617661696c61626c65000000000000006044820152606401610b5f565b61230581613264565b604080513360208201528082018390528151808203830181526060820183526011547e0100000000000000000000000000000000000000000000000000000000000060808401526082808401919091528351808403909101815260a2830193849052600a547f40a7bb100000000000000000000000000000000000000000000000000000000090945290926001926000916001600160a01b0316906340a7bb10906123bc908990309089908790899060a6016140e1565b6040805180830381865afa1580156123d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123fc9190614133565b5090508034101561249c5760405162461bcd60e51b8152602060048201526044602482018190527f73656e642076616c7565206e6f7420656e6f75676820746f20636f766572206d908201527f6573736167654665652e2053656e642067617320666f72206d6573736167652060648201527f6665657300000000000000000000000000000000000000000000000000000000608482015260a401610b5f565b600a5461ffff87166000908152600c602052604080822090517fc58031000000000000000000000000000000000000000000000000000000000081526001600160a01b039093169263c5803100923492612501928c928b913391908b90600401614157565b6000604051808303818588803b15801561251a57600080fd5b505af115801561252e573d6000803e3d6000fd5b5050505050505050505050565b60155460ff16156125835760405162461bcd60e51b815260206004820152601260248201527126b2ba30b230ba309034b990333937bd32b760711b6044820152606401610b5f565b6008546001600160a01b031633146125cb5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6000600e80546125da90613f08565b9050116126295760405162461bcd60e51b815260206004820152601860248201527f4e65656420736f6d657468696e6720746f20667265657a6500000000000000006044820152606401610b5f565b60155462010000900460ff166126a75760405162461bcd60e51b815260206004820152602260248201527f4d7573742062652072657665616c6564206265666f726520746865206672656560448201527f7a650000000000000000000000000000000000000000000000000000000000006064820152608401610b5f565b6015805460ff19166001179055565b61ffff85166000908152600b602052604080822090516126d7908790613fff565b908152604080516020928190038301902067ffffffffffffffff871660009081529252902060018101549091506127765760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e6752656365697665723a206e6f2073746f726564206d60448201527f65737361676500000000000000000000000000000000000000000000000000006064820152608401610b5f565b8054821480156127a0575080600101548383604051612796929190614237565b6040518091039020145b6127ec5760405162461bcd60e51b815260206004820152601a60248201527f4c617965725a65726f3a20696e76616c6964207061796c6f61640000000000006044820152606401610b5f565b60008082556001820155604051630e1bd41160e11b81523090631c37a822906128219089908990899089908990600401614247565b600060405180830381600087803b15801561283b57600080fd5b505af115801561284f573d6000803e3d6000fd5b50505050505050505050565b6008546001600160a01b031633146128a35760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6040517efdd58e0000000000000000000000000000000000000000000000000000000081523060048201819052602482018390526001600160a01b0385169163f242432a919085908590859062fdd58e90604401602060405180830381865afa158015612914573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061293891906142a9565b6040516001600160e01b031960e087901b1681526001600160a01b0394851660048201529390921660248401526044830152606482015260a06084820152600060a482015260c4016114c0565b6008546001600160a01b031633146129cd5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b61ffff83166000908152600c60205260409020610c7b908383613854565b6040518060600160405280602a81526020016143e3602a913981565b6008546001600160a01b03163314612a4f5760405162461bcd60e51b8152602060048201819052602482015260008051602061440d8339815191526044820152606401610b5f565b6001600160a01b038116612acb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b5f565b612ad481612ec2565b50565b600f8054611ad590613f08565b6040518060600160405280604081526020016143a36040913981565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610c8c5750610c8c8261330b565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b738261169f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008082806020019051810190612bc391906142c2565b91509150612bd18282612ea8565b505050505050565b6000818152600260205260408120546001600160a01b0316612c525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b5f565b6000612c5d8361169f565b9050806001600160a01b0316846001600160a01b03161480612c985750836001600160a01b0316612c8d84610d24565b6001600160a01b0316145b80612cc857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612ce38261169f565b6001600160a01b031614612d5f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b5f565b6001600160a01b038216612dda5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b5f565b612de58383836133a6565b612df0600082612b3e565b6001600160a01b0383166000908152600360205260408120805460019290612e199084906140ad565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e4790849061407a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611fb38282604051806020016040528060008152506133fe565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612f765760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b5f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612fee848484612cd0565b612ffa8484848461347c565b610c7b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b5f565b6127106bffffffffffffffffffffffff821611156130e75760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610b5f565b6001600160a01b03821661313d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b5f565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600655565b6000818152600260205260409020546060906001600160a01b03166132085760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b5f565b60006132126135c5565b90506000815111613232576040518060200160405280600081525061325d565b8061323c846135d4565b60405160200161324d9291906142f0565b6040516020818303038152906040525b9392505050565b600061326f8261169f565b905061327d816000846133a6565b613288600083612b3e565b6001600160a01b03811660009081526003602052604081208054600192906132b19084906140ad565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061336e57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c8c57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610c8c565b601554610100900460ff1615610ee65760405162461bcd60e51b815260206004820152601e60248201527f5472616e73666572732070617573656420647572696e672072657665616c00006044820152606401610b5f565b6134088383613706565b613415600084848461347c565b610ee65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b5f565b60006001600160a01b0384163b156135ba57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906134c090339089908890889060040161431f565b6020604051808303816000875af19250505080156134fb575060408051601f3d908101601f191682019092526134f89181019061435b565b60015b6135a0573d808015613529576040519150601f19603f3d011682016040523d82523d6000602084013e61352e565b606091505b5080516135985760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610b5f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612cc8565b506001949350505050565b6060600e8054610ca190613f08565b60608161361457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561363e578061362881614092565b91506136379050600a83614066565b9150613618565b60008167ffffffffffffffff811115613659576136596138ff565b6040519080825280601f01601f191660200182016040528015613683576020820181803683370190505b5090505b8415612cc8576136986001836140ad565b91506136a5600a86614378565b6136b090603061407a565b60f81b8183815181106136c5576136c561438c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506136ff600a86614066565b9450613687565b6001600160a01b03821661375c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b5f565b6000818152600260205260409020546001600160a01b0316156137c15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b5f565b6137cd600083836133a6565b6001600160a01b03821660009081526003602052604081208054600192906137f690849061407a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461386090613f08565b90600052602060002090601f01602090048101928261388257600085556138c8565b82601f1061389b5782800160ff198235161785556138c8565b828001600101855582156138c8579182015b828111156138c85782358255916020019190600101906138ad565b506138d49291506138d8565b5090565b5b808211156138d457600081556001016138d9565b803561ffff811681146121c957600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f83011261392657600080fd5b813567ffffffffffffffff80821115613941576139416138ff565b604051601f8301601f19908116603f01168101908282118183101715613969576139696138ff565b8160405283815286602085880101111561398257600080fd5b836020870160208301376000602085830101528094505050505092915050565b803567ffffffffffffffff811681146121c957600080fd5b600080600080608085870312156139d057600080fd5b6139d9856138ed565b9350602085013567ffffffffffffffff808211156139f657600080fd5b613a0288838901613915565b9450613a10604088016139a2565b93506060870135915080821115613a2657600080fd5b50613a3387828801613915565b91505092959194509250565b6001600160e01b031981168114612ad457600080fd5b600060208284031215613a6757600080fd5b813561325d81613a3f565b60005b83811015613a8d578181015183820152602001613a75565b83811115610c7b5750506000910152565b60008151808452613ab6816020860160208601613a72565b601f01601f19169290920160200192915050565b60208152600061325d6020830184613a9e565b600060208284031215613aef57600080fd5b5035919050565b6001600160a01b0381168114612ad457600080fd5b60008060408385031215613b1e57600080fd5b8235613b2981613af6565b946020939093013593505050565b600080600060608486031215613b4c57600080fd5b8335613b5781613af6565b92506020840135613b6781613af6565b929592945050506040919091013590565b60008060408385031215613b8b57600080fd5b50508035926020909101359150565b60008083601f840112613bac57600080fd5b50813567ffffffffffffffff811115613bc457600080fd5b6020830191508360208285010111156111c157600080fd5b60008060208385031215613bef57600080fd5b823567ffffffffffffffff811115613c0657600080fd5b613c1285828601613b9a565b90969095509350505050565b600080600060408486031215613c3357600080fd5b833567ffffffffffffffff811115613c4a57600080fd5b613c5686828701613b9a565b909790965060209590950135949350505050565b600060208284031215613c7c57600080fd5b813561325d81613af6565b600060208284031215613c9957600080fd5b61325d826138ed565b600080600060608486031215613cb757600080fd5b613cc0846138ed565b9250602084013567ffffffffffffffff811115613cdc57600080fd5b613ce886828701613915565b925050604084013590509250925092565b8015158114612ad457600080fd5b60008060408385031215613d1a57600080fd5b8235613d2581613af6565b91506020830135613d3581613cf9565b809150509250929050565b60008060008060808587031215613d5657600080fd5b8435613d6181613af6565b93506020850135613d7181613af6565b925060408501359150606085013567ffffffffffffffff811115613d9457600080fd5b613a3387828801613915565b60008060408385031215613db357600080fd5b8235613dbe81613af6565b915060208301356bffffffffffffffffffffffff81168114613d3557600080fd5b60008060408385031215613df257600080fd5b613b29836138ed565b600080600080600060808688031215613e1357600080fd5b613e1c866138ed565b9450602086013567ffffffffffffffff80821115613e3957600080fd5b613e4589838a01613915565b9550613e53604089016139a2565b94506060880135915080821115613e6957600080fd5b50613e7688828901613b9a565b969995985093965092949392505050565b60008060408385031215613e9a57600080fd5b8235613ea581613af6565b91506020830135613d3581613af6565b600080600060408486031215613eca57600080fd5b613ed3846138ed565b9250602084013567ffffffffffffffff811115613eef57600080fd5b613efb86828701613b9a565b9497909650939450505050565b600181811c90821680613f1c57607f821691505b60208210811415613f3d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000808354613f5181613f08565b60018281168015613f695760018114613f7a57613fa9565b60ff19841687528287019450613fa9565b8760005260208060002060005b85811015613fa05781548a820152908401908201613f87565b50505082870194505b50929695505050505050565b61ffff85168152608060208201526000613fd26080830186613a9e565b67ffffffffffffffff851660408401528281036060840152613ff48185613a9e565b979650505050505050565b60008251614011818460208701613a72565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561404b5761404b61401b565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261407557614075614050565b500490565b6000821982111561408d5761408d61401b565b500190565b60006000198214156140a6576140a661401b565b5060010190565b6000828210156140bf576140bf61401b565b500390565b6000602082840312156140d657600080fd5b815161325d81613cf9565b61ffff861681526001600160a01b038516602082015260a06040820152600061410d60a0830186613a9e565b841515606084015282810360808401526141278185613a9e565b98975050505050505050565b6000806040838503121561414657600080fd5b505080516020909101519092909150565b61ffff871681526000602060c0818401526000885461417581613f08565b8060c087015260e060018084166000811461419757600181146141ac576141da565b60ff19851689840152610100890195506141da565b8d6000528660002060005b858110156141d25781548b82018601529083019088016141b7565b8a0184019650505b505050505083810360408501526141f18189613a9e565b91505061420960608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a084015261422a8185613a9e565b9998505050505050505050565b8183823760009101908152919050565b61ffff861681526080602082015260006142646080830187613a9e565b67ffffffffffffffff861660408401528281036060840152838152838560208301376000602085830101526020601f19601f8601168201019150509695505050505050565b6000602082840312156142bb57600080fd5b5051919050565b600080604083850312156142d557600080fd5b82516142e081613af6565b6020939093015192949293505050565b60008351614302818460208801613a72565b835190830190614316818360208801613a72565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526143516080830184613a9e565b9695505050505050565b60006020828403121561436d57600080fd5b815161325d81613a3f565b60008261438757614387614050565b500690565b634e487b7160e01b600052603260045260246000fdfe653439346266366265646166386165373863303965393463343134653131356435623733383433656332353337373162656638653436316237333861313263383078636361443041373932394164423639383766383432373546664365334544313531413534446637434f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ad563fef5d1c7a9d463684b3c4797ee0fc246488224293243b632a9d4cac0c8c64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000005dc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000c000000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67500000000000000000000000061672fb1ac210237b1e4aac0b571989d0fe3df96000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d565a6d63526b517964594d46317051376d57447a373850713377564252364c65414839764c46344e74783471000000000000
-----Decoded View---------------
Arg [0] : supply (uint256): 1500
Arg [1] : offset (uint256): 0
Arg [2] : teamSupply (uint256): 20
Arg [3] : _placeholderUri (string): ipfs://ipfs/QmVZmcRkQydYMF1pQ7mWDz78Pq3wVBR6LeAH9vLF4Ntx4q
Arg [4] : _layerZeroEndpoint (address): 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675
Arg [5] : royaltyReceiver (address): 0x61672Fb1AC210237B1E4AaC0b571989D0fe3DF96
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675
Arg [5] : 00000000000000000000000061672fb1ac210237b1e4aac0b571989d0fe3df96
Arg [6] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [7] : 697066733a2f2f697066732f516d565a6d63526b517964594d46317051376d57
Arg [8] : 447a373850713377564252364c65414839764c46344e74783471000000000000
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.