Overview
TokenID
7148
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BunnyBatsV2
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "./interfaces/ILayerZeroEndpoint.sol"; import "./interfaces/ILayerZeroReceiver.sol"; import "./NonblockingReceiver.sol"; /*** * * This contract includes the following features * - Omnichain traversability via LZ * - Updatable LZ endpoint and gas estimate in case of omnichain protocol upgrades (e.g. solana support?) * - The whole project starts at ID #1, ends at ID #11111. Maximum 11111. * - The possibility to mint different tokenID ranges on other chains. * * - V2 of this contract enables Free Mint and One-mint-per-wallet * * NOTE: * - When ready, call lock() to freeze the metadata forever. ***/ contract BunnyBatsV2 is Ownable, ERC721, NonblockingReceiver { bool public saleActive = false; // minting can't work until this is true bool public oneMintPerWallet = false; // when this is true, only one mint per wallet is allowed // Store the list of all addresses that have minted on this contract mapping(address => bool) public hasMinted; // These two set the range of IDs which are mintable on this chain. uint16 public nextId = 1; // next tokenID to be minted on this chain uint16 public mintLimit = 11111; // when it mints to this point, pause the sale uint16 public MAX = 11111; // the hard limit, maximum tokens to be ever be minted uint256 public price = 50 ether; // or whatever the network token is. bool public locked = false; // lock the metadata forever string public baseUri = ""; // IPFS baseURI // LZ uint256 public gasForDestinationLzReceive = 350000; address public endpointAddress; constructor(address _new_owner) ERC721("BunnyBats", "BUNNYBATS") { transferOwnership(_new_owner); } // Run this after deploy to initialize function setupContract(address _endpointAddress, uint16 _firstId, uint16 _lastId) external onlyOwner { require(_lastId <= MAX, "Exceeds Maximum"); require(_firstId <= MAX, "Exceeds Maximum"); endpointAddress = _endpointAddress; endpoint = ILayerZeroEndpoint(_endpointAddress); nextId = _firstId; mintLimit = _lastId; } // set the ipfs link function setBaseUri(string memory newBaseUri) external onlyOwner { require(locked == false, "URI locked"); baseUri = newBaseUri; } // lock the metadata forever function lock() external onlyOwner{ locked = true; } // set the limit which is currently for sale function setMintLimit(uint16 _newLimit) external onlyOwner{ require(_newLimit <= MAX, "Exceeds Maximum"); require(_newLimit >= nextId, "Below nextId"); mintLimit = _newLimit; } // set the price in wei function setPrice(uint256 _newPrice) external onlyOwner{ price = _newPrice; } // turn minting on (or off) function setSaleActive(bool _active) external onlyOwner { saleActive = _active; } // set minting mode for one mint per wallet function setOneMintPerWallet(bool _oneMintPerWallet) external onlyOwner { oneMintPerWallet = _oneMintPerWallet; } // Mint! function mintMultiple(uint16 quantity) external payable { require(nextId <= MAX, "Sold out"); require(saleActive, "Sale is not active"); require(nextId - 1 + quantity <= MAX, "Exceeds supply"); require(nextId - 1 + quantity <= mintLimit, "Exceeds mint limit"); require(quantity >= 1 && quantity <= 10, "Please mint between 1 and 10"); require(msg.value == quantity * price, "Payment amount is incorrect"); require(!(oneMintPerWallet && hasMinted[msg.sender]), "Wallet has already minted"); require(!(oneMintPerWallet && quantity != 1), "Please mint only 1 per wallet"); for(uint16 i=0; i<quantity; i++){ _safeMint(msg.sender, nextId); nextId += 1; hasMinted[msg.sender] = true; } // halt the sale if MAX is reached if(nextId>MAX){ saleActive=false; } if(nextId>mintLimit){ saleActive=false; } } // Misc function donate() external payable { // thank you } function withdraw(uint256 amt) external onlyOwner { (bool sent, ) = payable(owner()).call{value: amt}(""); require(sent, "Failed to withdraw"); } ////////////// // LZ functions // just in case this fixed variable limits us from future integrations function setGasForDestinationLzReceive(uint256 newVal) external onlyOwner { gasForDestinationLzReceive = newVal; } // just this limits us from future integrations function setLzEndpointAddress(address _endpointAddress) external onlyOwner { endpointAddress = _endpointAddress; endpoint = ILayerZeroEndpoint(_endpointAddress); } // This function transfers the nft from your address on the // source chain to the same address on the destination chain function traverseChains(uint16 _chainId, uint256 tokenId) public payable { require(msg.sender == ownerOf(tokenId), "You must own the token to traverse"); require(trustedRemoteLookup[_chainId].length > 0, "This chain is currently unavailable for travel"); // burn NFT, eliminating it from circulation on src chain _burn(tokenId); // abi.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 (uint256 messageFee, ) = endpoint.estimateFees( _chainId, address(this), payload, false, adapterParams ); require( msg.value >= messageFee, "msg.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, // abi.encoded()'ed bytes payable(msg.sender), // refund address address(0x0), // 'zroPaymentAddress' unused for this adapterParams // txParameters ); } // ------------------ // Internal Functions // ------------------ function _LzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) override internal { // decode (address toAddr, uint tokenId) = abi.decode(_payload, (address, uint)); // mint the tokens back into existence on destination chain _safeMint(toAddr, tokenId); } function _baseURI() override internal view returns (string memory) { return baseUri; } }
// 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 (last updated v4.6.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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _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: 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 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: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/ILayerZeroEndpoint.sol"; import "./interfaces/ILayerZeroReceiver.sol"; abstract contract NonblockingReceiver is Ownable, ILayerZeroReceiver { ILayerZeroEndpoint internal 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; } function removeTrustedRemote(uint16 _chainId) external onlyOwner { delete trustedRemoteLookup[_chainId]; } }
// 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.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: 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": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_new_owner","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":"MAX","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"donate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"endpointAddress","outputs":[{"internalType":"address","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":"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":"","type":"address"}],"name":"hasMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","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":"mintLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"mintMultiple","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"oneMintPerWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"}],"name":"removeTrustedRemote","outputs":[],"stateMutability":"nonpayable","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":"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":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"newBaseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setGasForDestinationLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_endpointAddress","type":"address"}],"name":"setLzEndpointAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newLimit","type":"uint16"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_oneMintPerWallet","type":"bool"}],"name":"setOneMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setSaleActive","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":"address","name":"_endpointAddress","type":"address"},{"internalType":"uint16","name":"_firstId","type":"uint16"},{"internalType":"uint16","name":"_lastId","type":"uint16"}],"name":"setupContract","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":"uint256","name":"amt","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600a805461ffff19169055600c805465ffffffffffff1916652b672b6700011790556802b5e3af16b1880000600d55600e805460ff1916905560a06040819052600060808190526200005491600f9162000259565b50620557306010553480156200006957600080fd5b5060405162003820380380620038208339810160408190526200008c91620002ff565b6040518060400160405280600981526020016842756e6e794261747360b81b8152506040518060400160405280600981526020016842554e4e594241545360b81b815250620000ea620000e46200013060201b60201c565b62000134565b8151620000ff90600190602085019062000259565b5080516200011590600290602084019062000259565b50505062000129816200018460201b60201c565b506200036e565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620001e45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b0381166200024b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620001db565b620002568162000134565b50565b828054620002679062000331565b90600052602060002090601f0160209004810192826200028b5760008555620002d6565b82601f10620002a657805160ff1916838001178555620002d6565b82800160010185558215620002d6579182015b82811115620002d6578251825591602001919060010190620002b9565b50620002e4929150620002e8565b5090565b5b80821115620002e45760008155600101620002e9565b6000602082840312156200031257600080fd5b81516001600160a01b03811681146200032a57600080fd5b9392505050565b600181811c908216806200034657607f821691505b602082108114156200036857634e487b7160e01b600052602260045260246000fd5b50919050565b6134a2806200037e6000396000f3fe6080604052600436106102875760003560e01c80638da5cb5b1161015a578063cf309012116100c1578063e985e9c51161007a578063e985e9c5146107f6578063eb8d72b71461083f578063ed88c68e146102ac578063f2fde38b1461085f578063f3234f401461087f578063f83d08ba1461089557600080fd5b8063cf30901214610754578063cf89fa031461076e578063d0f72dd314610781578063d1deba1f146107a1578063d49d5181146107b4578063d5fe0114146107d657600080fd5b80639abc8320116101135780639abc8320146106a9578063a035b1fe146106be578063a0bcfc7f146106d4578063a22cb465146106f4578063b88d4fde14610714578063c87b56dd1461073457600080fd5b80638da5cb5b146105aa5780638ee74912146105c857806391b7f5ed14610633578063943fb8721461065357806395d89b4114610673578063996517cf1461068857600080fd5b806338e21cce116101fe5780636e6347bf116101b75780636e6347bf146104f457806370a0823114610514578063715018a6146105425780637533d7881461055757806380fe9ef914610577578063841718a61461058a57600080fd5b806338e21cce1461041c57806342842e0e1461044c57806361b8ce8c1461046c5780636352211e1461049a5780636763b13a146104ba57806368428a1b146104da57600080fd5b8063081812fc11610250578063081812fc14610344578063095ea7b31461037c5780631c37a8221461039c57806323b872dd146103bc5780632dbbec08146103dc5780632e1a7d4d146103fc57600080fd5b80621d35671461028c57806301ffc9a7146102ae57806302e2a6af146102e3578063031709051461030357806306fdde0314610322575b600080fd5b34801561029857600080fd5b506102ac6102a7366004612993565b6108aa565b005b3480156102ba57600080fd5b506102ce6102c9366004612a2d565b610aa4565b60405190151581526020015b60405180910390f35b3480156102ef57600080fd5b506102ac6102fe366004612a5a565b610af6565b34801561030f57600080fd5b50600a546102ce90610100900460ff1681565b34801561032e57600080fd5b50610337610b3a565b6040516102da9190612acd565b34801561035057600080fd5b5061036461035f366004612ae0565b610bcc565b6040516001600160a01b0390911681526020016102da565b34801561038857600080fd5b506102ac610397366004612b0e565b610c61565b3480156103a857600080fd5b506102ac6103b7366004612993565b610d77565b3480156103c857600080fd5b506102ac6103d7366004612b3a565b610de6565b3480156103e857600080fd5b506102ac6103f7366004612b7b565b610e17565b34801561040857600080fd5b506102ac610417366004612ae0565b610e60565b34801561042857600080fd5b506102ce610437366004612b96565b600b6020526000908152604090205460ff1681565b34801561045857600080fd5b506102ac610467366004612b3a565b610f26565b34801561047857600080fd5b50600c546104879061ffff1681565b60405161ffff90911681526020016102da565b3480156104a657600080fd5b506103646104b5366004612ae0565b610f41565b3480156104c657600080fd5b506102ac6104d5366004612b96565b610fb8565b3480156104e657600080fd5b50600a546102ce9060ff1681565b34801561050057600080fd5b50601154610364906001600160a01b031681565b34801561052057600080fd5b5061053461052f366004612b96565b61100e565b6040519081526020016102da565b34801561054e57600080fd5b506102ac611095565b34801561056357600080fd5b50610337610572366004612b7b565b6110cb565b6102ac610585366004612b7b565b611165565b34801561059657600080fd5b506102ac6105a5366004612a5a565b611541565b3480156105b657600080fd5b506000546001600160a01b0316610364565b3480156105d457600080fd5b5061061e6105e3366004612bb3565b600860209081526000938452604080852084518086018401805192815290840195840195909520945292905282529020805460019091015482565b604080519283526020830191909152016102da565b34801561063f57600080fd5b506102ac61064e366004612ae0565b61157e565b34801561065f57600080fd5b506102ac61066e366004612ae0565b6115ad565b34801561067f57600080fd5b506103376115dc565b34801561069457600080fd5b50600c546104879062010000900461ffff1681565b3480156106b557600080fd5b506103376115eb565b3480156106ca57600080fd5b50610534600d5481565b3480156106e057600080fd5b506102ac6106ef366004612c09565b6115f8565b34801561070057600080fd5b506102ac61070f366004612c51565b611675565b34801561072057600080fd5b506102ac61072f366004612c86565b611680565b34801561074057600080fd5b5061033761074f366004612ae0565b6116b2565b34801561076057600080fd5b50600e546102ce9060ff1681565b6102ac61077c366004612ce5565b61178d565b34801561078d57600080fd5b506102ac61079c366004612d01565b611a6a565b6102ac6107af366004612d8e565b611b46565b3480156107c057600080fd5b50600c5461048790600160201b900461ffff1681565b3480156107e257600080fd5b506102ac6107f1366004612b7b565b611cd3565b34801561080257600080fd5b506102ce610811366004612e19565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561084b57600080fd5b506102ac61085a366004612e52565b611d97565b34801561086b57600080fd5b506102ac61087a366004612b96565b611ddf565b34801561088b57600080fd5b5061053460105481565b3480156108a157600080fd5b506102ac611e77565b6007546001600160a01b031633146108c157600080fd5b61ffff8416600090815260096020526040902080546108df90612ea4565b9050835114801561091e575061ffff841660009081526009602052604090819020905161090c9190612edf565b60405180910390208380519060200120145b61098c5760405162461bcd60e51b815260206004820152603460248201527f4e6f6e626c6f636b696e6752656365697665723a20696e76616c696420736f756044820152731c98d9481cd95b991a5b99c818dbdb9d1c9858dd60621b60648201526084015b60405180910390fd5b604051630e1bd41160e11b81523090631c37a822906109b5908790879087908790600401612f51565b600060405180830381600087803b1580156109cf57600080fd5b505af19250505080156109e0575060015b610a9e576040518060400160405280825181526020018280519060200120815250600860008661ffff1661ffff16815260200190815260200160002084604051610a2a9190612f9a565b9081526040805191829003602090810183206001600160401b038716600090815290825291909120835181559201516001909201919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90610a95908690869086908690612f51565b60405180910390a15b50505050565b60006001600160e01b031982166380ac58cd60e01b1480610ad557506001600160e01b03198216635b5e139f60e01b145b80610af057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b03163314610b205760405162461bcd60e51b815260040161098390612fb6565b600a80549115156101000261ff0019909216919091179055565b606060018054610b4990612ea4565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7590612ea4565b8015610bc25780601f10610b9757610100808354040283529160200191610bc2565b820191906000526020600020905b815481529060010190602001808311610ba557829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610c455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610983565b506000908152600560205260409020546001600160a01b031690565b6000610c6c82610f41565b9050806001600160a01b0316836001600160a01b03161415610cda5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610983565b336001600160a01b0382161480610cf65750610cf68133610811565b610d685760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610983565b610d728383611eb0565b505050565b333014610dda5760405162461bcd60e51b815260206004820152602b60248201527f4e6f6e626c6f636b696e6752656365697665723a2063616c6c6572206d75737460448201526a10313290213934b233b29760a91b6064820152608401610983565b610a9e84848484611f1e565b610df03382611f4b565b610e0c5760405162461bcd60e51b815260040161098390612feb565b610d72838383612042565b6000546001600160a01b03163314610e415760405162461bcd60e51b815260040161098390612fb6565b61ffff81166000908152600960205260408120610e5d91612773565b50565b6000546001600160a01b03163314610e8a5760405162461bcd60e51b815260040161098390612fb6565b600080546040516001600160a01b039091169083908381818185875af1925050503d8060008114610ed7576040519150601f19603f3d011682016040523d82523d6000602084013e610edc565b606091505b5050905080610f225760405162461bcd60e51b81526020600482015260126024820152714661696c656420746f20776974686472617760701b6044820152606401610983565b5050565b610d7283838360405180602001604052806000815250611680565b6000818152600360205260408120546001600160a01b031680610af05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610983565b6000546001600160a01b03163314610fe25760405162461bcd60e51b815260040161098390612fb6565b601180546001600160a01b039092166001600160a01b0319928316811790915560078054909216179055565b60006001600160a01b0382166110795760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610983565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146110bf5760405162461bcd60e51b815260040161098390612fb6565b6110c960006121de565b565b600960205260009081526040902080546110e490612ea4565b80601f016020809104026020016040519081016040528092919081815260200182805461111090612ea4565b801561115d5780601f106111325761010080835404028352916020019161115d565b820191906000526020600020905b81548152906001019060200180831161114057829003601f168201915b505050505081565b600c5461ffff600160201b82048116911611156111af5760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b6044820152606401610983565b600a5460ff166111f65760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610983565b600c5461ffff600160201b820481169183916112159160019116613052565b61121f9190613075565b61ffff1611156112625760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610983565b600c5461ffff62010000820481169183916112809160019116613052565b61128a9190613075565b61ffff1611156112d15760405162461bcd60e51b8152602060048201526012602482015271115e18d959591cc81b5a5b9d081b1a5b5a5d60721b6044820152606401610983565b60018161ffff16101580156112eb5750600a8161ffff1611155b6113375760405162461bcd60e51b815260206004820152601c60248201527f506c65617365206d696e74206265747765656e203120616e64203130000000006044820152606401610983565b600d546113489061ffff831661309b565b34146113965760405162461bcd60e51b815260206004820152601b60248201527f5061796d656e7420616d6f756e7420697320696e636f727265637400000000006044820152606401610983565b600a54610100900460ff1680156113bc5750336000908152600b602052604090205460ff165b156114095760405162461bcd60e51b815260206004820152601960248201527f57616c6c65742068617320616c7265616479206d696e746564000000000000006044820152606401610983565b600a54610100900460ff16801561142557508061ffff16600114155b156114725760405162461bcd60e51b815260206004820152601d60248201527f506c65617365206d696e74206f6e6c792031207065722077616c6c65740000006044820152606401610983565b60005b8161ffff168161ffff1610156114fb57600c5461149790339061ffff1661222e565b600c8054600191906000906114b190849061ffff16613075565b825461ffff9182166101009390930a928302919092021990911617905550336000908152600b60205260409020805460ff19166001179055806114f3816130ba565b915050611475565b50600c5461ffff600160201b820481169116111561151e57600a805460ff191690555b600c5461ffff620100008204811691161115610e5d57600a805460ff1916905550565b6000546001600160a01b0316331461156b5760405162461bcd60e51b815260040161098390612fb6565b600a805460ff1916911515919091179055565b6000546001600160a01b031633146115a85760405162461bcd60e51b815260040161098390612fb6565b600d55565b6000546001600160a01b031633146115d75760405162461bcd60e51b815260040161098390612fb6565b601055565b606060028054610b4990612ea4565b600f80546110e490612ea4565b6000546001600160a01b031633146116225760405162461bcd60e51b815260040161098390612fb6565b600e5460ff16156116625760405162461bcd60e51b815260206004820152600a602482015269155492481b1bd8dad95960b21b6044820152606401610983565b8051610f2290600f9060208401906127ad565b610f22338383612248565b61168a3383611f4b565b6116a65760405162461bcd60e51b815260040161098390612feb565b610a9e84848484612317565b6000818152600360205260409020546060906001600160a01b03166117315760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610983565b600061173b61234a565b9050600081511161175b5760405180602001604052806000815250611786565b8061176584612359565b6040516020016117769291906130dc565b6040516020818303038152906040525b9392505050565b61179681610f41565b6001600160a01b0316336001600160a01b0316146118015760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206f776e2074686520746f6b656e20746f20747261766572604482015261736560f01b6064820152608401610983565b61ffff82166000908152600960205260408120805461181f90612ea4565b9050116118855760405162461bcd60e51b815260206004820152602e60248201527f5468697320636861696e2069732063757272656e746c7920756e617661696c6160448201526d189b1948199bdc881d1c985d995b60921b6064820152608401610983565b61188e81612456565b60408051336020820152808201839052815180820383018152606082018352601054600160f01b60808401526082808401919091528351808403909101815260a283019384905260075463040a7bb160e41b90945290926001926000916001600160a01b0316906340a7bb1090611911908990309089908790899060a601613102565b604080518083038186803b15801561192857600080fd5b505afa15801561193c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119609190613156565b509050803410156119e55760405162461bcd60e51b815260206004820152604360248201527f6d73672e76616c7565206e6f7420656e6f75676820746f20636f766572206d6560448201527f73736167654665652e2053656e642067617320666f72206d657373616765206660648201526265657360e81b608482015260a401610983565b60075461ffff8716600090815260096020526040808220905162c5803160e81b81526001600160a01b039093169263c5803100923492611a30928c928b913391908b9060040161317a565b6000604051808303818588803b158015611a4957600080fd5b505af1158015611a5d573d6000803e3d6000fd5b5050505050505050505050565b6000546001600160a01b03163314611a945760405162461bcd60e51b815260040161098390612fb6565b600c5461ffff600160201b90910481169082161115611ac55760405162461bcd60e51b81526004016109839061325a565b600c5461ffff600160201b90910481169083161115611af65760405162461bcd60e51b81526004016109839061325a565b601180546001600160a01b039094166001600160a01b031994851681179091556007805490941617909255600c805461ffff938416620100000263ffffffff199091169390921692909217179055565b61ffff85166000908152600860205260408082209051611b67908790612f9a565b90815260408051602092819003830190206001600160401b0387166000908152925290206001810154909150611bee5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e6752656365697665723a206e6f2073746f726564206d60448201526565737361676560d01b6064820152608401610983565b805482148015611c18575080600101548383604051611c0e929190613283565b6040518091039020145b611c645760405162461bcd60e51b815260206004820152601a60248201527f4c617965725a65726f3a20696e76616c6964207061796c6f61640000000000006044820152606401610983565b60008082556001820155604051630e1bd41160e11b81523090631c37a82290611c999089908990899089908990600401613293565b600060405180830381600087803b158015611cb357600080fd5b505af1158015611cc7573d6000803e3d6000fd5b50505050505050505050565b6000546001600160a01b03163314611cfd5760405162461bcd60e51b815260040161098390612fb6565b600c5461ffff600160201b90910481169082161115611d2e5760405162461bcd60e51b81526004016109839061325a565b600c5461ffff9081169082161015611d775760405162461bcd60e51b815260206004820152600c60248201526b10995b1bddc81b995e1d125960a21b6044820152606401610983565b600c805461ffff909216620100000263ffff000019909216919091179055565b6000546001600160a01b03163314611dc15760405162461bcd60e51b815260040161098390612fb6565b61ffff83166000908152600960205260409020610a9e908383612831565b6000546001600160a01b03163314611e095760405162461bcd60e51b815260040161098390612fb6565b6001600160a01b038116611e6e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610983565b610e5d816121de565b6000546001600160a01b03163314611ea15760405162461bcd60e51b815260040161098390612fb6565b600e805460ff19166001179055565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ee582610f41565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008082806020019051810190611f3591906132f4565b91509150611f43828261222e565b505050505050565b6000818152600360205260408120546001600160a01b0316611fc45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610983565b6000611fcf83610f41565b9050806001600160a01b0316846001600160a01b0316148061201657506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b8061203a5750836001600160a01b031661202f84610bcc565b6001600160a01b0316145b949350505050565b826001600160a01b031661205582610f41565b6001600160a01b0316146120b95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610983565b6001600160a01b03821661211b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610983565b612126600082611eb0565b6001600160a01b038316600090815260046020526040812080546001929061214f908490613322565b90915550506001600160a01b038216600090815260046020526040812080546001929061217d908490613339565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610f228282604051806020016040528060008152506124f1565b816001600160a01b0316836001600160a01b031614156122aa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610983565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612322848484612042565b61232e84848484612524565b610a9e5760405162461bcd60e51b815260040161098390613351565b6060600f8054610b4990612ea4565b60608161237d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123a75780612391816133a3565b91506123a09050600a836133d4565b9150612381565b6000816001600160401b038111156123c1576123c16128d1565b6040519080825280601f01601f1916602001820160405280156123eb576020820181803683370190505b5090505b841561203a57612400600183613322565b915061240d600a866133e8565b612418906030613339565b60f81b81838151811061242d5761242d6133fc565b60200101906001600160f81b031916908160001a90535061244f600a866133d4565b94506123ef565b600061246182610f41565b905061246e600083611eb0565b6001600160a01b0381166000908152600460205260408120805460019290612497908490613322565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6124fb8383612631565b6125086000848484612524565b610d725760405162461bcd60e51b815260040161098390613351565b60006001600160a01b0384163b1561262657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612568903390899088908890600401613412565b602060405180830381600087803b15801561258257600080fd5b505af19250505080156125b2575060408051601f3d908101601f191682019092526125af9181019061344f565b60015b61260c573d8080156125e0576040519150601f19603f3d011682016040523d82523d6000602084013e6125e5565b606091505b5080516126045760405162461bcd60e51b815260040161098390613351565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061203a565b506001949350505050565b6001600160a01b0382166126875760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610983565b6000818152600360205260409020546001600160a01b0316156126ec5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610983565b6001600160a01b0382166000908152600460205260408120805460019290612715908490613339565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b50805461277f90612ea4565b6000825580601f1061278f575050565b601f016020900490600052602060002090810190610e5d91906128a5565b8280546127b990612ea4565b90600052602060002090601f0160209004810192826127db5760008555612821565b82601f106127f457805160ff1916838001178555612821565b82800160010185558215612821579182015b82811115612821578251825591602001919060010190612806565b5061282d9291506128a5565b5090565b82805461283d90612ea4565b90600052602060002090601f01602090048101928261285f5760008555612821565b82601f106128785782800160ff19823516178555612821565b82800160010185558215612821579182015b8281111561282157823582559160200191906001019061288a565b5b8082111561282d57600081556001016128a6565b803561ffff811681146128cc57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612901576129016128d1565b604051601f8501601f19908116603f01168101908282118183101715612929576129296128d1565b8160405280935085815286868601111561294257600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261296d57600080fd5b611786838335602085016128e7565b80356001600160401b03811681146128cc57600080fd5b600080600080608085870312156129a957600080fd5b6129b2856128ba565b935060208501356001600160401b03808211156129ce57600080fd5b6129da8883890161295c565b94506129e86040880161297c565b935060608701359150808211156129fe57600080fd5b50612a0b8782880161295c565b91505092959194509250565b6001600160e01b031981168114610e5d57600080fd5b600060208284031215612a3f57600080fd5b813561178681612a17565b803580151581146128cc57600080fd5b600060208284031215612a6c57600080fd5b61178682612a4a565b60005b83811015612a90578181015183820152602001612a78565b83811115610a9e5750506000910152565b60008151808452612ab9816020860160208601612a75565b601f01601f19169290920160200192915050565b6020815260006117866020830184612aa1565b600060208284031215612af257600080fd5b5035919050565b6001600160a01b0381168114610e5d57600080fd5b60008060408385031215612b2157600080fd5b8235612b2c81612af9565b946020939093013593505050565b600080600060608486031215612b4f57600080fd5b8335612b5a81612af9565b92506020840135612b6a81612af9565b929592945050506040919091013590565b600060208284031215612b8d57600080fd5b611786826128ba565b600060208284031215612ba857600080fd5b813561178681612af9565b600080600060608486031215612bc857600080fd5b612bd1846128ba565b925060208401356001600160401b03811115612bec57600080fd5b612bf88682870161295c565b925050604084013590509250925092565b600060208284031215612c1b57600080fd5b81356001600160401b03811115612c3157600080fd5b8201601f81018413612c4257600080fd5b61203a848235602084016128e7565b60008060408385031215612c6457600080fd5b8235612c6f81612af9565b9150612c7d60208401612a4a565b90509250929050565b60008060008060808587031215612c9c57600080fd5b8435612ca781612af9565b93506020850135612cb781612af9565b92506040850135915060608501356001600160401b03811115612cd957600080fd5b612a0b8782880161295c565b60008060408385031215612cf857600080fd5b612b2c836128ba565b600080600060608486031215612d1657600080fd5b8335612d2181612af9565b9250612d2f602085016128ba565b9150612d3d604085016128ba565b90509250925092565b60008083601f840112612d5857600080fd5b5081356001600160401b03811115612d6f57600080fd5b602083019150836020828501011115612d8757600080fd5b9250929050565b600080600080600060808688031215612da657600080fd5b612daf866128ba565b945060208601356001600160401b0380821115612dcb57600080fd5b612dd789838a0161295c565b9550612de56040890161297c565b94506060880135915080821115612dfb57600080fd5b50612e0888828901612d46565b969995985093965092949392505050565b60008060408385031215612e2c57600080fd5b8235612e3781612af9565b91506020830135612e4781612af9565b809150509250929050565b600080600060408486031215612e6757600080fd5b612e70846128ba565b925060208401356001600160401b03811115612e8b57600080fd5b612e9786828701612d46565b9497909650939450505050565b600181811c90821680612eb857607f821691505b60208210811415612ed957634e487b7160e01b600052602260045260246000fd5b50919050565b6000808354612eed81612ea4565b60018281168015612f055760018114612f1657612f45565b60ff19841687528287019450612f45565b8760005260208060002060005b85811015612f3c5781548a820152908401908201612f23565b50505082870194505b50929695505050505050565b61ffff85168152608060208201526000612f6e6080830186612aa1565b6001600160401b03851660408401528281036060840152612f8f8185612aa1565b979650505050505050565b60008251612fac818460208701612a75565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600061ffff8381169083168181101561306d5761306d61303c565b039392505050565b600061ffff8083168185168083038211156130925761309261303c565b01949350505050565b60008160001904831182151516156130b5576130b561303c565b500290565b600061ffff808316818114156130d2576130d261303c565b6001019392505050565b600083516130ee818460208801612a75565b835190830190613092818360208801612a75565b61ffff861681526001600160a01b038516602082015260a06040820181905260009061313090830186612aa1565b8415156060840152828103608084015261314a8185612aa1565b98975050505050505050565b6000806040838503121561316957600080fd5b505080516020909101519092909150565b61ffff871681526000602060c0818401526000885461319881612ea4565b8060c087015260e06001808416600081146131ba57600181146131cf576131fd565b60ff19851689840152610100890195506131fd565b8d6000528660002060005b858110156131f55781548b82018601529083019088016131da565b8a0184019650505b505050505083810360408501526132148189612aa1565b91505061322c60608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a084015261324d8185612aa1565b9998505050505050505050565b6020808252600f908201526e45786365656473204d6178696d756d60881b604082015260600190565b8183823760009101908152919050565b61ffff861681526080602082015260006132b06080830187612aa1565b6001600160401b03861660408401528281036060840152838152838560208301376000602085830101526020601f19601f8601168201019150509695505050505050565b6000806040838503121561330757600080fd5b825161331281612af9565b6020939093015192949293505050565b6000828210156133345761333461303c565b500390565b6000821982111561334c5761334c61303c565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006000198214156133b7576133b761303c565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826133e3576133e36133be565b500490565b6000826133f7576133f76133be565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061344590830184612aa1565b9695505050505050565b60006020828403121561346157600080fd5b815161178681612a1756fea26469706673582212209957307d68aa5fa7791c8903f2d95968c83f0b1e8acee9c2f70d2ec49fb895d564736f6c63430008090033000000000000000000000000bed021cf2c06c0a34389d84e725c7fd4f570ffda
Deployed Bytecode
0x6080604052600436106102875760003560e01c80638da5cb5b1161015a578063cf309012116100c1578063e985e9c51161007a578063e985e9c5146107f6578063eb8d72b71461083f578063ed88c68e146102ac578063f2fde38b1461085f578063f3234f401461087f578063f83d08ba1461089557600080fd5b8063cf30901214610754578063cf89fa031461076e578063d0f72dd314610781578063d1deba1f146107a1578063d49d5181146107b4578063d5fe0114146107d657600080fd5b80639abc8320116101135780639abc8320146106a9578063a035b1fe146106be578063a0bcfc7f146106d4578063a22cb465146106f4578063b88d4fde14610714578063c87b56dd1461073457600080fd5b80638da5cb5b146105aa5780638ee74912146105c857806391b7f5ed14610633578063943fb8721461065357806395d89b4114610673578063996517cf1461068857600080fd5b806338e21cce116101fe5780636e6347bf116101b75780636e6347bf146104f457806370a0823114610514578063715018a6146105425780637533d7881461055757806380fe9ef914610577578063841718a61461058a57600080fd5b806338e21cce1461041c57806342842e0e1461044c57806361b8ce8c1461046c5780636352211e1461049a5780636763b13a146104ba57806368428a1b146104da57600080fd5b8063081812fc11610250578063081812fc14610344578063095ea7b31461037c5780631c37a8221461039c57806323b872dd146103bc5780632dbbec08146103dc5780632e1a7d4d146103fc57600080fd5b80621d35671461028c57806301ffc9a7146102ae57806302e2a6af146102e3578063031709051461030357806306fdde0314610322575b600080fd5b34801561029857600080fd5b506102ac6102a7366004612993565b6108aa565b005b3480156102ba57600080fd5b506102ce6102c9366004612a2d565b610aa4565b60405190151581526020015b60405180910390f35b3480156102ef57600080fd5b506102ac6102fe366004612a5a565b610af6565b34801561030f57600080fd5b50600a546102ce90610100900460ff1681565b34801561032e57600080fd5b50610337610b3a565b6040516102da9190612acd565b34801561035057600080fd5b5061036461035f366004612ae0565b610bcc565b6040516001600160a01b0390911681526020016102da565b34801561038857600080fd5b506102ac610397366004612b0e565b610c61565b3480156103a857600080fd5b506102ac6103b7366004612993565b610d77565b3480156103c857600080fd5b506102ac6103d7366004612b3a565b610de6565b3480156103e857600080fd5b506102ac6103f7366004612b7b565b610e17565b34801561040857600080fd5b506102ac610417366004612ae0565b610e60565b34801561042857600080fd5b506102ce610437366004612b96565b600b6020526000908152604090205460ff1681565b34801561045857600080fd5b506102ac610467366004612b3a565b610f26565b34801561047857600080fd5b50600c546104879061ffff1681565b60405161ffff90911681526020016102da565b3480156104a657600080fd5b506103646104b5366004612ae0565b610f41565b3480156104c657600080fd5b506102ac6104d5366004612b96565b610fb8565b3480156104e657600080fd5b50600a546102ce9060ff1681565b34801561050057600080fd5b50601154610364906001600160a01b031681565b34801561052057600080fd5b5061053461052f366004612b96565b61100e565b6040519081526020016102da565b34801561054e57600080fd5b506102ac611095565b34801561056357600080fd5b50610337610572366004612b7b565b6110cb565b6102ac610585366004612b7b565b611165565b34801561059657600080fd5b506102ac6105a5366004612a5a565b611541565b3480156105b657600080fd5b506000546001600160a01b0316610364565b3480156105d457600080fd5b5061061e6105e3366004612bb3565b600860209081526000938452604080852084518086018401805192815290840195840195909520945292905282529020805460019091015482565b604080519283526020830191909152016102da565b34801561063f57600080fd5b506102ac61064e366004612ae0565b61157e565b34801561065f57600080fd5b506102ac61066e366004612ae0565b6115ad565b34801561067f57600080fd5b506103376115dc565b34801561069457600080fd5b50600c546104879062010000900461ffff1681565b3480156106b557600080fd5b506103376115eb565b3480156106ca57600080fd5b50610534600d5481565b3480156106e057600080fd5b506102ac6106ef366004612c09565b6115f8565b34801561070057600080fd5b506102ac61070f366004612c51565b611675565b34801561072057600080fd5b506102ac61072f366004612c86565b611680565b34801561074057600080fd5b5061033761074f366004612ae0565b6116b2565b34801561076057600080fd5b50600e546102ce9060ff1681565b6102ac61077c366004612ce5565b61178d565b34801561078d57600080fd5b506102ac61079c366004612d01565b611a6a565b6102ac6107af366004612d8e565b611b46565b3480156107c057600080fd5b50600c5461048790600160201b900461ffff1681565b3480156107e257600080fd5b506102ac6107f1366004612b7b565b611cd3565b34801561080257600080fd5b506102ce610811366004612e19565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561084b57600080fd5b506102ac61085a366004612e52565b611d97565b34801561086b57600080fd5b506102ac61087a366004612b96565b611ddf565b34801561088b57600080fd5b5061053460105481565b3480156108a157600080fd5b506102ac611e77565b6007546001600160a01b031633146108c157600080fd5b61ffff8416600090815260096020526040902080546108df90612ea4565b9050835114801561091e575061ffff841660009081526009602052604090819020905161090c9190612edf565b60405180910390208380519060200120145b61098c5760405162461bcd60e51b815260206004820152603460248201527f4e6f6e626c6f636b696e6752656365697665723a20696e76616c696420736f756044820152731c98d9481cd95b991a5b99c818dbdb9d1c9858dd60621b60648201526084015b60405180910390fd5b604051630e1bd41160e11b81523090631c37a822906109b5908790879087908790600401612f51565b600060405180830381600087803b1580156109cf57600080fd5b505af19250505080156109e0575060015b610a9e576040518060400160405280825181526020018280519060200120815250600860008661ffff1661ffff16815260200190815260200160002084604051610a2a9190612f9a565b9081526040805191829003602090810183206001600160401b038716600090815290825291909120835181559201516001909201919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90610a95908690869086908690612f51565b60405180910390a15b50505050565b60006001600160e01b031982166380ac58cd60e01b1480610ad557506001600160e01b03198216635b5e139f60e01b145b80610af057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b03163314610b205760405162461bcd60e51b815260040161098390612fb6565b600a80549115156101000261ff0019909216919091179055565b606060018054610b4990612ea4565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7590612ea4565b8015610bc25780601f10610b9757610100808354040283529160200191610bc2565b820191906000526020600020905b815481529060010190602001808311610ba557829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610c455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610983565b506000908152600560205260409020546001600160a01b031690565b6000610c6c82610f41565b9050806001600160a01b0316836001600160a01b03161415610cda5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610983565b336001600160a01b0382161480610cf65750610cf68133610811565b610d685760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610983565b610d728383611eb0565b505050565b333014610dda5760405162461bcd60e51b815260206004820152602b60248201527f4e6f6e626c6f636b696e6752656365697665723a2063616c6c6572206d75737460448201526a10313290213934b233b29760a91b6064820152608401610983565b610a9e84848484611f1e565b610df03382611f4b565b610e0c5760405162461bcd60e51b815260040161098390612feb565b610d72838383612042565b6000546001600160a01b03163314610e415760405162461bcd60e51b815260040161098390612fb6565b61ffff81166000908152600960205260408120610e5d91612773565b50565b6000546001600160a01b03163314610e8a5760405162461bcd60e51b815260040161098390612fb6565b600080546040516001600160a01b039091169083908381818185875af1925050503d8060008114610ed7576040519150601f19603f3d011682016040523d82523d6000602084013e610edc565b606091505b5050905080610f225760405162461bcd60e51b81526020600482015260126024820152714661696c656420746f20776974686472617760701b6044820152606401610983565b5050565b610d7283838360405180602001604052806000815250611680565b6000818152600360205260408120546001600160a01b031680610af05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610983565b6000546001600160a01b03163314610fe25760405162461bcd60e51b815260040161098390612fb6565b601180546001600160a01b039092166001600160a01b0319928316811790915560078054909216179055565b60006001600160a01b0382166110795760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610983565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146110bf5760405162461bcd60e51b815260040161098390612fb6565b6110c960006121de565b565b600960205260009081526040902080546110e490612ea4565b80601f016020809104026020016040519081016040528092919081815260200182805461111090612ea4565b801561115d5780601f106111325761010080835404028352916020019161115d565b820191906000526020600020905b81548152906001019060200180831161114057829003601f168201915b505050505081565b600c5461ffff600160201b82048116911611156111af5760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b6044820152606401610983565b600a5460ff166111f65760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610983565b600c5461ffff600160201b820481169183916112159160019116613052565b61121f9190613075565b61ffff1611156112625760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b6044820152606401610983565b600c5461ffff62010000820481169183916112809160019116613052565b61128a9190613075565b61ffff1611156112d15760405162461bcd60e51b8152602060048201526012602482015271115e18d959591cc81b5a5b9d081b1a5b5a5d60721b6044820152606401610983565b60018161ffff16101580156112eb5750600a8161ffff1611155b6113375760405162461bcd60e51b815260206004820152601c60248201527f506c65617365206d696e74206265747765656e203120616e64203130000000006044820152606401610983565b600d546113489061ffff831661309b565b34146113965760405162461bcd60e51b815260206004820152601b60248201527f5061796d656e7420616d6f756e7420697320696e636f727265637400000000006044820152606401610983565b600a54610100900460ff1680156113bc5750336000908152600b602052604090205460ff165b156114095760405162461bcd60e51b815260206004820152601960248201527f57616c6c65742068617320616c7265616479206d696e746564000000000000006044820152606401610983565b600a54610100900460ff16801561142557508061ffff16600114155b156114725760405162461bcd60e51b815260206004820152601d60248201527f506c65617365206d696e74206f6e6c792031207065722077616c6c65740000006044820152606401610983565b60005b8161ffff168161ffff1610156114fb57600c5461149790339061ffff1661222e565b600c8054600191906000906114b190849061ffff16613075565b825461ffff9182166101009390930a928302919092021990911617905550336000908152600b60205260409020805460ff19166001179055806114f3816130ba565b915050611475565b50600c5461ffff600160201b820481169116111561151e57600a805460ff191690555b600c5461ffff620100008204811691161115610e5d57600a805460ff1916905550565b6000546001600160a01b0316331461156b5760405162461bcd60e51b815260040161098390612fb6565b600a805460ff1916911515919091179055565b6000546001600160a01b031633146115a85760405162461bcd60e51b815260040161098390612fb6565b600d55565b6000546001600160a01b031633146115d75760405162461bcd60e51b815260040161098390612fb6565b601055565b606060028054610b4990612ea4565b600f80546110e490612ea4565b6000546001600160a01b031633146116225760405162461bcd60e51b815260040161098390612fb6565b600e5460ff16156116625760405162461bcd60e51b815260206004820152600a602482015269155492481b1bd8dad95960b21b6044820152606401610983565b8051610f2290600f9060208401906127ad565b610f22338383612248565b61168a3383611f4b565b6116a65760405162461bcd60e51b815260040161098390612feb565b610a9e84848484612317565b6000818152600360205260409020546060906001600160a01b03166117315760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610983565b600061173b61234a565b9050600081511161175b5760405180602001604052806000815250611786565b8061176584612359565b6040516020016117769291906130dc565b6040516020818303038152906040525b9392505050565b61179681610f41565b6001600160a01b0316336001600160a01b0316146118015760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206f776e2074686520746f6b656e20746f20747261766572604482015261736560f01b6064820152608401610983565b61ffff82166000908152600960205260408120805461181f90612ea4565b9050116118855760405162461bcd60e51b815260206004820152602e60248201527f5468697320636861696e2069732063757272656e746c7920756e617661696c6160448201526d189b1948199bdc881d1c985d995b60921b6064820152608401610983565b61188e81612456565b60408051336020820152808201839052815180820383018152606082018352601054600160f01b60808401526082808401919091528351808403909101815260a283019384905260075463040a7bb160e41b90945290926001926000916001600160a01b0316906340a7bb1090611911908990309089908790899060a601613102565b604080518083038186803b15801561192857600080fd5b505afa15801561193c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119609190613156565b509050803410156119e55760405162461bcd60e51b815260206004820152604360248201527f6d73672e76616c7565206e6f7420656e6f75676820746f20636f766572206d6560448201527f73736167654665652e2053656e642067617320666f72206d657373616765206660648201526265657360e81b608482015260a401610983565b60075461ffff8716600090815260096020526040808220905162c5803160e81b81526001600160a01b039093169263c5803100923492611a30928c928b913391908b9060040161317a565b6000604051808303818588803b158015611a4957600080fd5b505af1158015611a5d573d6000803e3d6000fd5b5050505050505050505050565b6000546001600160a01b03163314611a945760405162461bcd60e51b815260040161098390612fb6565b600c5461ffff600160201b90910481169082161115611ac55760405162461bcd60e51b81526004016109839061325a565b600c5461ffff600160201b90910481169083161115611af65760405162461bcd60e51b81526004016109839061325a565b601180546001600160a01b039094166001600160a01b031994851681179091556007805490941617909255600c805461ffff938416620100000263ffffffff199091169390921692909217179055565b61ffff85166000908152600860205260408082209051611b67908790612f9a565b90815260408051602092819003830190206001600160401b0387166000908152925290206001810154909150611bee5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e6752656365697665723a206e6f2073746f726564206d60448201526565737361676560d01b6064820152608401610983565b805482148015611c18575080600101548383604051611c0e929190613283565b6040518091039020145b611c645760405162461bcd60e51b815260206004820152601a60248201527f4c617965725a65726f3a20696e76616c6964207061796c6f61640000000000006044820152606401610983565b60008082556001820155604051630e1bd41160e11b81523090631c37a82290611c999089908990899089908990600401613293565b600060405180830381600087803b158015611cb357600080fd5b505af1158015611cc7573d6000803e3d6000fd5b50505050505050505050565b6000546001600160a01b03163314611cfd5760405162461bcd60e51b815260040161098390612fb6565b600c5461ffff600160201b90910481169082161115611d2e5760405162461bcd60e51b81526004016109839061325a565b600c5461ffff9081169082161015611d775760405162461bcd60e51b815260206004820152600c60248201526b10995b1bddc81b995e1d125960a21b6044820152606401610983565b600c805461ffff909216620100000263ffff000019909216919091179055565b6000546001600160a01b03163314611dc15760405162461bcd60e51b815260040161098390612fb6565b61ffff83166000908152600960205260409020610a9e908383612831565b6000546001600160a01b03163314611e095760405162461bcd60e51b815260040161098390612fb6565b6001600160a01b038116611e6e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610983565b610e5d816121de565b6000546001600160a01b03163314611ea15760405162461bcd60e51b815260040161098390612fb6565b600e805460ff19166001179055565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ee582610f41565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008082806020019051810190611f3591906132f4565b91509150611f43828261222e565b505050505050565b6000818152600360205260408120546001600160a01b0316611fc45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610983565b6000611fcf83610f41565b9050806001600160a01b0316846001600160a01b0316148061201657506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b8061203a5750836001600160a01b031661202f84610bcc565b6001600160a01b0316145b949350505050565b826001600160a01b031661205582610f41565b6001600160a01b0316146120b95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610983565b6001600160a01b03821661211b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610983565b612126600082611eb0565b6001600160a01b038316600090815260046020526040812080546001929061214f908490613322565b90915550506001600160a01b038216600090815260046020526040812080546001929061217d908490613339565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610f228282604051806020016040528060008152506124f1565b816001600160a01b0316836001600160a01b031614156122aa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610983565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612322848484612042565b61232e84848484612524565b610a9e5760405162461bcd60e51b815260040161098390613351565b6060600f8054610b4990612ea4565b60608161237d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123a75780612391816133a3565b91506123a09050600a836133d4565b9150612381565b6000816001600160401b038111156123c1576123c16128d1565b6040519080825280601f01601f1916602001820160405280156123eb576020820181803683370190505b5090505b841561203a57612400600183613322565b915061240d600a866133e8565b612418906030613339565b60f81b81838151811061242d5761242d6133fc565b60200101906001600160f81b031916908160001a90535061244f600a866133d4565b94506123ef565b600061246182610f41565b905061246e600083611eb0565b6001600160a01b0381166000908152600460205260408120805460019290612497908490613322565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6124fb8383612631565b6125086000848484612524565b610d725760405162461bcd60e51b815260040161098390613351565b60006001600160a01b0384163b1561262657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612568903390899088908890600401613412565b602060405180830381600087803b15801561258257600080fd5b505af19250505080156125b2575060408051601f3d908101601f191682019092526125af9181019061344f565b60015b61260c573d8080156125e0576040519150601f19603f3d011682016040523d82523d6000602084013e6125e5565b606091505b5080516126045760405162461bcd60e51b815260040161098390613351565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061203a565b506001949350505050565b6001600160a01b0382166126875760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610983565b6000818152600360205260409020546001600160a01b0316156126ec5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610983565b6001600160a01b0382166000908152600460205260408120805460019290612715908490613339565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b50805461277f90612ea4565b6000825580601f1061278f575050565b601f016020900490600052602060002090810190610e5d91906128a5565b8280546127b990612ea4565b90600052602060002090601f0160209004810192826127db5760008555612821565b82601f106127f457805160ff1916838001178555612821565b82800160010185558215612821579182015b82811115612821578251825591602001919060010190612806565b5061282d9291506128a5565b5090565b82805461283d90612ea4565b90600052602060002090601f01602090048101928261285f5760008555612821565b82601f106128785782800160ff19823516178555612821565b82800160010185558215612821579182015b8281111561282157823582559160200191906001019061288a565b5b8082111561282d57600081556001016128a6565b803561ffff811681146128cc57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612901576129016128d1565b604051601f8501601f19908116603f01168101908282118183101715612929576129296128d1565b8160405280935085815286868601111561294257600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261296d57600080fd5b611786838335602085016128e7565b80356001600160401b03811681146128cc57600080fd5b600080600080608085870312156129a957600080fd5b6129b2856128ba565b935060208501356001600160401b03808211156129ce57600080fd5b6129da8883890161295c565b94506129e86040880161297c565b935060608701359150808211156129fe57600080fd5b50612a0b8782880161295c565b91505092959194509250565b6001600160e01b031981168114610e5d57600080fd5b600060208284031215612a3f57600080fd5b813561178681612a17565b803580151581146128cc57600080fd5b600060208284031215612a6c57600080fd5b61178682612a4a565b60005b83811015612a90578181015183820152602001612a78565b83811115610a9e5750506000910152565b60008151808452612ab9816020860160208601612a75565b601f01601f19169290920160200192915050565b6020815260006117866020830184612aa1565b600060208284031215612af257600080fd5b5035919050565b6001600160a01b0381168114610e5d57600080fd5b60008060408385031215612b2157600080fd5b8235612b2c81612af9565b946020939093013593505050565b600080600060608486031215612b4f57600080fd5b8335612b5a81612af9565b92506020840135612b6a81612af9565b929592945050506040919091013590565b600060208284031215612b8d57600080fd5b611786826128ba565b600060208284031215612ba857600080fd5b813561178681612af9565b600080600060608486031215612bc857600080fd5b612bd1846128ba565b925060208401356001600160401b03811115612bec57600080fd5b612bf88682870161295c565b925050604084013590509250925092565b600060208284031215612c1b57600080fd5b81356001600160401b03811115612c3157600080fd5b8201601f81018413612c4257600080fd5b61203a848235602084016128e7565b60008060408385031215612c6457600080fd5b8235612c6f81612af9565b9150612c7d60208401612a4a565b90509250929050565b60008060008060808587031215612c9c57600080fd5b8435612ca781612af9565b93506020850135612cb781612af9565b92506040850135915060608501356001600160401b03811115612cd957600080fd5b612a0b8782880161295c565b60008060408385031215612cf857600080fd5b612b2c836128ba565b600080600060608486031215612d1657600080fd5b8335612d2181612af9565b9250612d2f602085016128ba565b9150612d3d604085016128ba565b90509250925092565b60008083601f840112612d5857600080fd5b5081356001600160401b03811115612d6f57600080fd5b602083019150836020828501011115612d8757600080fd5b9250929050565b600080600080600060808688031215612da657600080fd5b612daf866128ba565b945060208601356001600160401b0380821115612dcb57600080fd5b612dd789838a0161295c565b9550612de56040890161297c565b94506060880135915080821115612dfb57600080fd5b50612e0888828901612d46565b969995985093965092949392505050565b60008060408385031215612e2c57600080fd5b8235612e3781612af9565b91506020830135612e4781612af9565b809150509250929050565b600080600060408486031215612e6757600080fd5b612e70846128ba565b925060208401356001600160401b03811115612e8b57600080fd5b612e9786828701612d46565b9497909650939450505050565b600181811c90821680612eb857607f821691505b60208210811415612ed957634e487b7160e01b600052602260045260246000fd5b50919050565b6000808354612eed81612ea4565b60018281168015612f055760018114612f1657612f45565b60ff19841687528287019450612f45565b8760005260208060002060005b85811015612f3c5781548a820152908401908201612f23565b50505082870194505b50929695505050505050565b61ffff85168152608060208201526000612f6e6080830186612aa1565b6001600160401b03851660408401528281036060840152612f8f8185612aa1565b979650505050505050565b60008251612fac818460208701612a75565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600061ffff8381169083168181101561306d5761306d61303c565b039392505050565b600061ffff8083168185168083038211156130925761309261303c565b01949350505050565b60008160001904831182151516156130b5576130b561303c565b500290565b600061ffff808316818114156130d2576130d261303c565b6001019392505050565b600083516130ee818460208801612a75565b835190830190613092818360208801612a75565b61ffff861681526001600160a01b038516602082015260a06040820181905260009061313090830186612aa1565b8415156060840152828103608084015261314a8185612aa1565b98975050505050505050565b6000806040838503121561316957600080fd5b505080516020909101519092909150565b61ffff871681526000602060c0818401526000885461319881612ea4565b8060c087015260e06001808416600081146131ba57600181146131cf576131fd565b60ff19851689840152610100890195506131fd565b8d6000528660002060005b858110156131f55781548b82018601529083019088016131da565b8a0184019650505b505050505083810360408501526132148189612aa1565b91505061322c60608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a084015261324d8185612aa1565b9998505050505050505050565b6020808252600f908201526e45786365656473204d6178696d756d60881b604082015260600190565b8183823760009101908152919050565b61ffff861681526080602082015260006132b06080830187612aa1565b6001600160401b03861660408401528281036060840152838152838560208301376000602085830101526020601f19601f8601168201019150509695505050505050565b6000806040838503121561330757600080fd5b825161331281612af9565b6020939093015192949293505050565b6000828210156133345761333461303c565b500390565b6000821982111561334c5761334c61303c565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006000198214156133b7576133b761303c565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826133e3576133e36133be565b500490565b6000826133f7576133f76133be565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061344590830184612aa1565b9695505050505050565b60006020828403121561346157600080fd5b815161178681612a1756fea26469706673582212209957307d68aa5fa7791c8903f2d95968c83f0b1e8acee9c2f70d2ec49fb895d564736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000bed021cf2c06c0a34389d84e725c7fd4f570ffda
-----Decoded View---------------
Arg [0] : _new_owner (address): 0xBEd021cf2C06C0A34389d84e725C7fd4F570FfDA
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000bed021cf2c06c0a34389d84e725c7fd4f570ffda
Loading...
Loading
Loading...
Loading
[ 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.