ERC-721
Overview
Max Total Supply
1,583 WHC
Holders
136
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 WHCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WomenHackersClub
Compiler Version
v0.8.13+commit.abaa5c0e
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.13; import "./layerzero/ONFT721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract WomenHackersClub is Ownable, ONFT721 { using Counters for Counters.Counter; Counters.Counter private nextMintId; string public baseTokenURI; uint256 public maxMintId; uint256 price = 82000000000000000; // 0.082 ether uint256 mintpassprice = 64000000000000000; // 0.064 ether uint256 allowlistprice = 76000000000000000; // 0.076 ether uint256 public walletLimit = 100; uint256 public perTxLimit = 3; bool public saleIsActive = false; bool public PresaleIsActive = true; mapping(address => uint256) public addressMintedBalance; address private a1 = 0xd6B20f7AB159Faf338093d51e1Eb78DEdB2a00B2; address public signingAddress = 0x1048Ded3a542e064C82161Ab8840152393E0477E; constructor(address _layerZeroEndpoint, uint startMintId, uint endMintId) ONFT721("Women Hackers Club", "WHC", _layerZeroEndpoint) { nextMintId = Counters.Counter(startMintId); maxMintId = endMintId; } function allowlistMint(uint256 mintCount,uint8 v, bytes32 r,bytes32 s,uint256 mint_allowed,uint256 free) external payable { require(PresaleIsActive, "Presale not active"); require(msg.value >= allowlistprice * mintCount, "Not enought eth"); require(verifySignature(v,r,s,mint_allowed,free), "Invalid signature"); uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require(ownerMintedCount + mintCount <= mint_allowed, "Individual mint limit exceeded!"); mint(msg.sender,mintCount); } function mintpassMint(uint256 mintCount,uint8 v, bytes32 r,bytes32 s,uint256 mint_allowed,uint256 free) external payable { require(PresaleIsActive, "Presale not active"); require(msg.value >= mintpassprice * mintCount, "Not enought eth"); require(verifySignature(v,r,s,mint_allowed,free), "Invalid signature"); require(free == 2, "No mintpass"); uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require(ownerMintedCount + mintCount <= mint_allowed, "Exceeds Individual mint limit!"); mint(msg.sender,mintCount); } function claim(uint256 mintCount,uint8 v, bytes32 r,bytes32 s,uint256 mint_allowed,uint256 free) external payable { require(PresaleIsActive, "Presale not active"); require(verifySignature(v,r,s,mint_allowed,free), "Invalid signature"); require(free == 1, "Not allowed to claim"); uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require(ownerMintedCount + mintCount <= mint_allowed, "Exceeds allowed free claims"); mint(msg.sender,mintCount); } function publicMint(uint256 mintCount) external payable { require(saleIsActive, "Sale not active"); require(msg.value >= price * mintCount, "not enought eth"); require(mintCount <= perTxLimit, "tx_limit exceeded"); uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require(ownerMintedCount + mintCount <= walletLimit, "wallet_limit exceeded"); mint(msg.sender,mintCount); } function mintOwner(address addr, uint256 mintCount) external onlyOwner { mint(addr,mintCount); } function mint(address addr, uint256 mintCount) private { require((nextMintId.current() + mintCount) < maxMintId, "Sold out! No more WHCs are available"); for(uint i = 0;i<mintCount;i++) { _safeMint(addr, nextMintId.current()); nextMintId.increment(); addressMintedBalance[msg.sender]++; } } function setMaxMintId(uint256 _maxMintId) external onlyOwner { maxMintId = _maxMintId; } function setPrice(uint256 _price) external onlyOwner { price = _price; } function setMintpassPrice(uint256 _mintpassprice) external onlyOwner { mintpassprice = _mintpassprice; } function setAllowlistPrice(uint256 _allowlistprice) external onlyOwner { allowlistprice = _allowlistprice; } function setPerTxLimit(uint256 _perTxLimit) external onlyOwner { perTxLimit = _perTxLimit; } function setWalletLimit(uint256 _perWalletLimit) external onlyOwner { walletLimit = _perWalletLimit; } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseURI(string memory baseURI) public onlyOwner { baseTokenURI = baseURI; } function totalSupply() external view returns (uint256) { return maxMintId; } function getCurrentId() external view returns (uint256) { return nextMintId.current(); } function toggleSale() public onlyOwner { saleIsActive = !saleIsActive; } function togglePresale() public onlyOwner { PresaleIsActive = !PresaleIsActive; } function setSigningAddress(address _signingAddress) external onlyOwner { signingAddress = _signingAddress; } function withdraw() external onlyOwner { payable(a1).transfer(address(this).balance); } /** * toEthSignedMessageHash * @dev prefix a bytes32 value with "\x19Ethereum Signed Message:" * and hash the result */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { return keccak256( abi.encodePacked("\x19Ethereum Signed Message:\n32", hash) ); } function verifySignature(uint8 v, bytes32 r,bytes32 s,uint256 amountAllowed,uint256 free) public view returns (bool) { bytes32 messageHashed = keccak256(abi.encodePacked( msg.sender, amountAllowed,free)); bytes32 hash = toEthSignedMessageHash(messageHashed); address signer = ecrecover(hash, v, r, s); require(signer != address(0), "invalid signature"); if(signer == signingAddress){ return true; } else{ return false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 pragma solidity ^0.8.0; import "./IONFT721.sol"; import "./ONFT721Core.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; // NOTE: this ONFT contract has no public minting logic. // must implement your own minting logic in child classes contract ONFT721 is ONFT721Core, ERC721, IONFT721 { constructor(string memory _name, string memory _symbol, address _lzEndpoint) ERC721(_name, _symbol) ONFT721Core(_lzEndpoint) {} function supportsInterface(bytes4 interfaceId) public view virtual override(ONFT721Core, ERC721, IERC165) returns (bool) { return interfaceId == type(IONFT721).interfaceId || super.supportsInterface(interfaceId); } function _debitFrom(address _from, uint16, bytes memory, uint _tokenId) internal virtual override { require(_isApprovedOrOwner(_msgSender(), _tokenId), "ONFT721: send caller is not owner nor approved"); require(ERC721.ownerOf(_tokenId) == _from, "ONFT721: send from incorrect owner"); _burn(_tokenId); } function _creditTo(uint16, address _toAddress, uint _tokenId) internal virtual override { _safeMint(_toAddress, _tokenId); } }
// 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: MIT pragma solidity ^0.8.0; import "./IONFT721Core.sol"; import "./NonblockingLzApp.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; abstract contract ONFT721Core is NonblockingLzApp, ERC165, IONFT721Core { constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) {} function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IONFT721Core).interfaceId || super.supportsInterface(interfaceId); } function estimateSendFee(uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, bool _useZro, bytes memory _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) { // mock the payload for send() bytes memory payload = abi.encode(_toAddress, _tokenId); return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams); } function sendFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) public payable virtual override { _send(_from, _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParams); } function _send(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual { _debitFrom(_from, _dstChainId, _toAddress, _tokenId); bytes memory payload = abi.encode(_toAddress, _tokenId); _lzSend(_dstChainId, payload, _refundAddress, _zroPaymentAddress, _adapterParams); uint64 nonce = lzEndpoint.getOutboundNonce(_dstChainId, address(this)); emit SendToChain(_from, _dstChainId, _toAddress, _tokenId, nonce); } function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override { // decode and load the toAddress (bytes memory toAddressBytes, uint tokenId) = abi.decode(_payload, (bytes, uint)); address toAddress; assembly { toAddress := mload(add(toAddressBytes, 20)) } _creditTo(_srcChainId, toAddress, tokenId); emit ReceiveFromChain(_srcChainId, _srcAddress, toAddress, tokenId, _nonce); } function _debitFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId) internal virtual; function _creditTo(uint16 _srcChainId, address _toAddress, uint _tokenId) internal virtual; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IONFT721Core.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; /** * @dev Interface of the ONFT standard */ interface IONFT721 is IONFT721Core, IERC721 { }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 pragma solidity ^0.8.0; import "./LzApp.sol"; /* * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress) */ abstract contract NonblockingLzApp is LzApp { constructor(address _endpoint) LzApp(_endpoint) {} mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) public failedMessages; event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload); // overriding the virtual function in LzReceiver function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override { // try-catch all errors/exceptions try this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload) { // do nothing } catch { // error / exception failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload); emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload); } } function nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public virtual { // only internal transaction require(_msgSender() == address(this), "NonblockingLzApp: caller must be LzApp"); _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } //@notice override this function function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual; function retryMessage(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public payable virtual { // assert there is message to retry bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce]; require(payloadHash != bytes32(0), "NonblockingLzApp: no stored message"); require(keccak256(_payload) == payloadHash, "NonblockingLzApp: invalid payload"); // clear the stored message failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0); // execute the message. revert if it fails again _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface of the ONFT Core standard */ interface IONFT721Core is IERC165 { /** * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`) * _dstChainId - L0 defined chain id to send tokens too * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain * _tokenId - token Id to transfer * _useZro - indicates to use zro to pay L0 fees * _adapterParams - flexible bytes array to indicate messaging adapter services in L0 */ function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee); /** * @dev send token `_tokenId` to (`_dstChainId`, `_toAddress`) from `_from` * `_toAddress` can be any size depending on the `dstChainId`. * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token) * `_adapterParams` is a flexible bytes array to indicate messaging adapter services */ function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable; /** * @dev Emitted when `_tokenId` are moved from the `_sender` to (`_dstChainId`, `_toAddress`) * `_nonce` is the outbound nonce from */ event SendToChain(address indexed _sender, uint16 indexed _dstChainId, bytes indexed _toAddress, uint _tokenId, uint64 _nonce); /** * @dev Emitted when `_tokenId` are sent from `_srcChainId` to the `_toAddress` at this chain. `_nonce` is the inbound nonce. */ event ReceiveFromChain(uint16 indexed _srcChainId, bytes indexed _srcAddress, address indexed _toAddress, uint _tokenId, uint64 _nonce); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 (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 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/ILayerZeroReceiver.sol"; import "./interfaces/ILayerZeroUserApplicationConfig.sol"; import "./interfaces/ILayerZeroEndpoint.sol"; /* * a generic LzReceiver implementation */ abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig { ILayerZeroEndpoint public immutable lzEndpoint; mapping(uint16 => bytes) public trustedRemoteLookup; event SetTrustedRemote(uint16 _srcChainId, bytes _srcAddress); constructor(address _endpoint) { lzEndpoint = ILayerZeroEndpoint(_endpoint); } function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public virtual override { // lzReceive must be called by the endpoint for security require(_msgSender() == address(lzEndpoint)); bytes memory trustedRemote = trustedRemoteLookup[_srcChainId]; // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote. require(_srcAddress.length == trustedRemote.length && keccak256(_srcAddress) == keccak256(trustedRemote), "LzApp: invalid source sending contract"); _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual; function _lzSend(uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual { bytes memory trustedRemote = trustedRemoteLookup[_dstChainId]; require(trustedRemote.length != 0, "LzApp: destination chain is not a trusted source"); lzEndpoint.send{value: msg.value}(_dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams); } //---------------------------UserApplication config---------------------------------------- function getConfig(uint16 _version, uint16 _chainId, address, uint _configType) external view returns (bytes memory) { return lzEndpoint.getConfig(_version, _chainId, address(this), _configType); } // generic config for LayerZero user Application function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external override onlyOwner { lzEndpoint.setConfig(_version, _chainId, _configType, _config); } function setSendVersion(uint16 _version) external override onlyOwner { lzEndpoint.setSendVersion(_version); } function setReceiveVersion(uint16 _version) external override onlyOwner { lzEndpoint.setReceiveVersion(_version); } function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner { lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress); } // allow owner to set it multiple times. function setTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external onlyOwner { trustedRemoteLookup[_srcChainId] = _srcAddress; emit SetTrustedRemote(_srcChainId, _srcAddress); } //--------------------------- VIEW FUNCTION ---------------------------------------- function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) { bytes memory trustedSource = trustedRemoteLookup[_srcChainId]; return keccak256(trustedSource) == keccak256(_srcAddress); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT 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 lzApp 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: MIT 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; }
// SPDX-License-Identifier: MIT 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; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_layerZeroEndpoint","type":"address"},{"internalType":"uint256","name":"startMintId","type":"uint256"},{"internalType":"uint256","name":"endMintId","type":"uint256"}],"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":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":true,"internalType":"address","name":"_toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_toAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"SetTrustedRemote","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":"PresaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintCount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"mint_allowed","type":"uint256"},{"internalType":"uint256","name":"free","type":"uint256"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintCount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"mint_allowed","type":"uint256"},{"internalType":"uint256","name":"free","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lzEndpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"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":"maxMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"mintCount","type":"uint256"}],"name":"mintOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintCount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"mint_allowed","type":"uint256"},{"internalType":"uint256","name":"free","type":"uint256"}],"name":"mintpassMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"nonblockingLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"perTxLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintCount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","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":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allowlistprice","type":"uint256"}],"name":"setAllowlistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintId","type":"uint256"}],"name":"setMaxMintId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintpassprice","type":"uint256"}],"name":"setMintpassPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_perTxLimit","type":"uint256"}],"name":"setPerTxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signingAddress","type":"address"}],"name":"setSigningAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_perWalletLimit","type":"uint256"}],"name":"setWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signingAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"amountAllowed","type":"uint256"},{"internalType":"uint256","name":"free","type":"uint256"}],"name":"verifySignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"walletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526701235290c7950000600c5566e35fa931a00000600d5567010e0198eaee0000600e556064600f5560036010556011805461ffff1916610100179055601380546001600160a01b031990811673d6b20f7ab159faf338093d51e1eb78dedb2a00b21790915560148054909116731048ded3a542e064c82161ab8840152393e0477e1790553480156200009557600080fd5b506040516200437938038062004379833981016040819052620000b89162000277565b604051806040016040528060128152602001712bb7b6b2b7102430b1b5b2b9399021b63ab160711b8152506040518060400160405280600381526020016257484360e81b8152508482828280806200011f620001196200017d60201b60201c565b62000181565b6001600160a01b03166080525050815162000142906003906020850190620001d1565b50805162000158906004906020840190620001d1565b50506040805160208101909152869052505050600992909255600b5550620002f89050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001df90620002bc565b90600052602060002090601f0160209004810192826200020357600085556200024e565b82601f106200021e57805160ff19168380011785556200024e565b828001600101855582156200024e579182015b828111156200024e57825182559160200191906001019062000231565b506200025c92915062000260565b5090565b5b808211156200025c576000815560010162000261565b6000806000606084860312156200028d57600080fd5b83516001600160a01b0381168114620002a557600080fd5b602085015160409095015190969495509392505050565b600181811c90821680620002d157607f821691505b602082108103620002f257634e487b7160e01b600052602260045260246000fd5b50919050565b60805161402662000353600039600081816108c801528181610ac401528181610d1d01528181610f6b01528181611042015281816115f501528181611e74015281816121f9015281816127db0152612e1301526140266000f3fe6080604052600436106103805760003560e01c806366ad5c8a116101d1578063b3e82dc911610102578063e1d4c870116100a0578063f1d5f5171161006f578063f1d5f51714610a41578063f2fde38b14610a61578063f48a2e0314610a81578063f5ecbdbc14610aa157600080fd5b8063e1d4c870146109a8578063e985e9c5146109be578063eb8d244414610a07578063eb8d72b714610a2157600080fd5b8063cbed8b9c116100dc578063cbed8b9c1461094a578063d1deba1f1461096a578063d547cfb71461097d578063df7729411461099257600080fd5b8063b3e82dc9146108ea578063b88d4fde1461090a578063c87b56dd1461092a57600080fd5b80638433a3ce1161016f57806391b7f5ed1161014957806391b7f5ed1461086157806395d89b4114610881578063a22cb46514610896578063b353aaa7146108b657600080fd5b80638433a3ce1461081157806386ed1a54146108245780638da5cb5b1461084357600080fd5b8063715018a6116101ab578063715018a6146107a75780637533d788146107bc5780637683a75c146107dc5780637d8966e4146107fc57600080fd5b806366ad5c8a146107525780636c1438621461077257806370a082311461078757600080fd5b806331beb605116102b657806342842e0e1161025457806355f804b31161022357806355f804b3146106a35780635b8c41e6146106c3578063631c3771146107125780636352211e1461073257600080fd5b806342842e0e1461063d57806342d65a8d1461065d5780634410d32f1461067d578063519056361461069057600080fd5b80633ccfd60b116102905780633ccfd60b146105c85780633d8b38f6146105dd578063408cbf94146105fd578063426ecfb01461061d57600080fd5b806331beb6051461057d578063343937431461059d5780633c8463a1146105b257600080fd5b8063149db7701161032357806323b872dd116102fd57806323b872dd146105025780632a205e3d146105225780632db11544146105575780632e531d6f1461056a57600080fd5b8063149db7701461049657806318160ddd146104b657806318cae269146104d557600080fd5b806307e0db171161035f57806307e0db17146103fe578063081812fc1461041e578063095ea7b31461045657806310ddb1371461047657600080fd5b80621d35671461038557806301ffc9a7146103a757806306fdde03146103dc575b600080fd5b34801561039157600080fd5b506103a56103a03660046133aa565b610ac1565b005b3480156103b357600080fd5b506103c76103c2366004613448565b610c25565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610c48565b6040516103d391906134bd565b34801561040a57600080fd5b506103a56104193660046134d0565b610cda565b34801561042a57600080fd5b5061043e6104393660046134eb565b610d7e565b6040516001600160a01b0390911681526020016103d3565b34801561046257600080fd5b506103a5610471366004613519565b610e13565b34801561048257600080fd5b506103a56104913660046134d0565b610f28565b3480156104a257600080fd5b506103a56104b13660046134eb565b610fa2565b3480156104c257600080fd5b50600b545b6040519081526020016103d3565b3480156104e157600080fd5b506104c76104f0366004613545565b60126020526000908152604090205481565b34801561050e57600080fd5b506103a561051d366004613562565b610fd1565b34801561052e57600080fd5b5061054261053d3660046135b3565b611003565b604080519283526020830191909152016103d3565b6103a56105653660046134eb565b6110ce565b6103a5610578366004613652565b611218565b34801561058957600080fd5b506103a5610598366004613545565b611371565b3480156105a957600080fd5b506103a56113bd565b3480156105be57600080fd5b506104c7600f5481565b3480156105d457600080fd5b506103a5611404565b3480156105e957600080fd5b506103c76105f83660046136e8565b61146a565b34801561060957600080fd5b506103a5610618366004613519565b611536565b34801561062957600080fd5b506103a56106383660046134eb565b61156a565b34801561064957600080fd5b506103a5610658366004613562565b611599565b34801561066957600080fd5b506103a56106783660046136e8565b6115b4565b6103a561068b366004613652565b61165c565b6103a561069e36600461373a565b611764565b3480156106af57600080fd5b506103a56106be3660046137f3565b611773565b3480156106cf57600080fd5b506104c76106de36600461383b565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b34801561071e57600080fd5b506103a561072d3660046134eb565b6117b0565b34801561073e57600080fd5b5061043e61074d3660046134eb565b6117df565b34801561075e57600080fd5b506103a561076d3660046133aa565b611856565b34801561077e57600080fd5b506104c76118c6565b34801561079357600080fd5b506104c76107a2366004613545565b6118d6565b3480156107b357600080fd5b506103a561195d565b3480156107c857600080fd5b506103f16107d73660046134d0565b611993565b3480156107e857600080fd5b506103c76107f736600461389c565b611a2d565b34801561080857600080fd5b506103a5611b9f565b6103a561081f366004613652565b611bdd565b34801561083057600080fd5b506011546103c790610100900460ff1681565b34801561084f57600080fd5b506000546001600160a01b031661043e565b34801561086d57600080fd5b506103a561087c3660046134eb565b611cdd565b34801561088d57600080fd5b506103f1611d0c565b3480156108a257600080fd5b506103a56108b13660046138de565b611d1b565b3480156108c257600080fd5b5061043e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156108f657600080fd5b5060145461043e906001600160a01b031681565b34801561091657600080fd5b506103a5610925366004613913565b611d26565b34801561093657600080fd5b506103f16109453660046134eb565b611d58565b34801561095657600080fd5b506103a5610965366004613972565b611e33565b6103a56109783660046133aa565b611eea565b34801561098957600080fd5b506103f161203c565b34801561099e57600080fd5b506104c760105481565b3480156109b457600080fd5b506104c7600b5481565b3480156109ca57600080fd5b506103c76109d93660046139e0565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610a1357600080fd5b506011546103c79060ff1681565b348015610a2d57600080fd5b506103a5610a3c3660046136e8565b612049565b348015610a4d57600080fd5b506103a5610a5c3660046134eb565b6120d2565b348015610a6d57600080fd5b506103a5610a7c366004613545565b612101565b348015610a8d57600080fd5b506103a5610a9c3660046134eb565b612199565b348015610aad57600080fd5b506103f1610abc366004613a19565b6121c8565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610af657600080fd5b61ffff841660009081526001602052604081208054610b1490613a66565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4090613a66565b8015610b8d5780601f10610b6257610100808354040283529160200191610b8d565b820191906000526020600020905b815481529060010190602001808311610b7057829003601f168201915b5050505050905080518451148015610bb2575080805190602001208480519060200120145b610c125760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b610c1e8585858561227b565b5050505050565b60006001600160e01b031982161580610c425750610c428261236c565b92915050565b606060038054610c5790613a66565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8390613a66565b8015610cd05780601f10610ca557610100808354040283529160200191610cd0565b820191906000526020600020905b815481529060010190602001808311610cb357829003601f168201915b5050505050905090565b6000546001600160a01b03163314610d045760405162461bcd60e51b8152600401610c0990613aa0565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b600060405180830381600087803b158015610d6a57600080fd5b505af1158015610c1e573d6000803e3d6000fd5b6000818152600560205260408120546001600160a01b0316610df75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c09565b506000908152600760205260409020546001600160a01b031690565b6000610e1e826117df565b9050806001600160a01b0316836001600160a01b031603610e8b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c09565b336001600160a01b0382161480610ea75750610ea781336109d9565b610f195760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c09565b610f2383836123ac565b505050565b6000546001600160a01b03163314610f525760405162461bcd60e51b8152600401610c0990613aa0565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb13790602401610d50565b6000546001600160a01b03163314610fcc5760405162461bcd60e51b8152600401610c0990613aa0565b600b55565b610fdc335b8261241a565b610ff85760405162461bcd60e51b8152600401610c0990613ad5565b610f23838383612510565b6000806000868660405160200161101b929190613b26565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb109061107f908b90309086908b908b90600401613b48565b6040805180830381865afa15801561109b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bf9190613b9c565b92509250509550959350505050565b60115460ff166111125760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610c09565b80600c546111209190613bd6565b3410156111615760405162461bcd60e51b815260206004820152600f60248201526e0dcdee840cadcdeeaced0e840cae8d608b1b6044820152606401610c09565b6010548111156111a75760405162461bcd60e51b81526020600482015260116024820152701d1e17db1a5b5a5d08195e18d959591959607a1b6044820152606401610c09565b33600090815260126020526040902054600f546111c48383613bf5565b111561120a5760405162461bcd60e51b81526020600482015260156024820152741dd85b1b195d17db1a5b5a5d08195e18d959591959605a1b6044820152606401610c09565b61121433836126ac565b5050565b601154610100900460ff1661123f5760405162461bcd60e51b8152600401610c0990613c0d565b85600d5461124d9190613bd6565b34101561128e5760405162461bcd60e51b815260206004820152600f60248201526e09cdee840cadcdeeaced0e840cae8d608b1b6044820152606401610c09565b61129b8585858585611a2d565b6112b75760405162461bcd60e51b8152600401610c0990613c39565b806002146112f55760405162461bcd60e51b815260206004820152600b60248201526a4e6f206d696e747061737360a81b6044820152606401610c09565b33600090815260126020526040902054826113108883613bf5565b111561135e5760405162461bcd60e51b815260206004820152601e60248201527f4578636565647320496e646976696475616c206d696e74206c696d69742100006044820152606401610c09565b61136833886126ac565b50505050505050565b6000546001600160a01b0316331461139b5760405162461bcd60e51b8152600401610c0990613aa0565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113e75760405162461bcd60e51b8152600401610c0990613aa0565b6011805461ff001981166101009182900460ff1615909102179055565b6000546001600160a01b0316331461142e5760405162461bcd60e51b8152600401610c0990613aa0565b6013546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611467573d6000803e3d6000fd5b50565b61ffff83166000908152600160205260408120805482919061148b90613a66565b80601f01602080910402602001604051908101604052809291908181526020018280546114b790613a66565b80156115045780601f106114d957610100808354040283529160200191611504565b820191906000526020600020905b8154815290600101906020018083116114e757829003601f168201915b50505050509050838360405161151b929190613c64565b60405180910390208180519060200120149150509392505050565b6000546001600160a01b031633146115605760405162461bcd60e51b8152600401610c0990613aa0565b61121482826126ac565b6000546001600160a01b031633146115945760405162461bcd60e51b8152600401610c0990613aa0565b601055565b610f2383838360405180602001604052806000815250611d26565b6000546001600160a01b031633146115de5760405162461bcd60e51b8152600401610c0990613aa0565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d9061162e90869086908690600401613c9d565b600060405180830381600087803b15801561164857600080fd5b505af1158015611368573d6000803e3d6000fd5b601154610100900460ff166116835760405162461bcd60e51b8152600401610c0990613c0d565b85600e546116919190613bd6565b3410156116d25760405162461bcd60e51b815260206004820152600f60248201526e09cdee840cadcdeeaced0e840cae8d608b1b6044820152606401610c09565b6116df8585858585611a2d565b6116fb5760405162461bcd60e51b8152600401610c0990613c39565b33600090815260126020526040902054826117168883613bf5565b111561135e5760405162461bcd60e51b815260206004820152601f60248201527f496e646976696475616c206d696e74206c696d697420657863656564656421006044820152606401610c09565b6113688787878787878761277a565b6000546001600160a01b0316331461179d5760405162461bcd60e51b8152600401610c0990613aa0565b805161121490600a9060208401906131a6565b6000546001600160a01b031633146117da5760405162461bcd60e51b8152600401610c0990613aa0565b600d55565b6000818152600560205260408120546001600160a01b031680610c425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c09565b3330146118b45760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610c09565b6118c0848484846128c2565b50505050565b60006118d160095490565b905090565b60006001600160a01b0382166119415760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c09565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146119875760405162461bcd60e51b8152600401610c0990613aa0565b611991600061295d565b565b600160205260009081526040902080546119ac90613a66565b80601f01602080910402602001604051908101604052809291908181526020018280546119d890613a66565b8015611a255780601f106119fa57610100808354040283529160200191611a25565b820191906000526020600020905b815481529060010190602001808311611a0857829003601f168201915b505050505081565b604080513360601b6bffffffffffffffffffffffff1916602080830191909152603482018590526054808301859052835180840390910181526074830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000609484015260b08084018290528451808503909101815260d090930190935281519101206000919082906040805160008082526020820180845284905260ff8c1692820192909252606081018a9052608081018990529192509060019060a0016020604051602081039080840390855afa158015611b15573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611b6c5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610c09565b6014546001600160a01b0390811690821603611b8e5760019350505050611b96565b600093505050505b95945050505050565b6000546001600160a01b03163314611bc95760405162461bcd60e51b8152600401610c0990613aa0565b6011805460ff19811660ff90911615179055565b601154610100900460ff16611c045760405162461bcd60e51b8152600401610c0990613c0d565b611c118585858585611a2d565b611c2d5760405162461bcd60e51b8152600401610c0990613c39565b80600114611c745760405162461bcd60e51b81526020600482015260146024820152734e6f7420616c6c6f77656420746f20636c61696d60601b6044820152606401610c09565b3360009081526012602052604090205482611c8f8883613bf5565b111561135e5760405162461bcd60e51b815260206004820152601b60248201527f4578636565647320616c6c6f776564206672656520636c61696d7300000000006044820152606401610c09565b6000546001600160a01b03163314611d075760405162461bcd60e51b8152600401610c0990613aa0565b600c55565b606060048054610c5790613a66565b6112143383836129ad565b611d30338361241a565b611d4c5760405162461bcd60e51b8152600401610c0990613ad5565b6118c084848484612a7b565b6000818152600560205260409020546060906001600160a01b0316611dd75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c09565b6000611de1612aae565b90506000815111611e015760405180602001604052806000815250611e2c565b80611e0b84612abd565b604051602001611e1c929190613cbb565b6040516020818303038152906040525b9392505050565b6000546001600160a01b03163314611e5d5760405162461bcd60e51b8152600401610c0990613aa0565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c90611eb19088908890889088908890600401613cea565b600060405180830381600087803b158015611ecb57600080fd5b505af1158015611edf573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051611f0b908690613d23565b90815260408051602092819003830190206001600160401b03861660009081529252902054905080611f8b5760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610c09565b815160208301208114611fea5760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610c09565b61ffff8516600090815260026020526040808220905161200b908790613d23565b90815260408051602092819003830190206001600160401b03871660009081529252902055610c1e858585856128c2565b600a80546119ac90613a66565b6000546001600160a01b031633146120735760405162461bcd60e51b8152600401610c0990613aa0565b61ffff8316600090815260016020526040902061209190838361322a565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab8383836040516120c593929190613c9d565b60405180910390a1505050565b6000546001600160a01b031633146120fc5760405162461bcd60e51b8152600401610c0990613aa0565b600f55565b6000546001600160a01b0316331461212b5760405162461bcd60e51b8152600401610c0990613aa0565b6001600160a01b0381166121905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c09565b6114678161295d565b6000546001600160a01b031633146121c35760405162461bcd60e51b8152600401610c0990613aa0565b600e55565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc90608401600060405180830381865afa158015612248573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122709190810190613d84565b90505b949350505050565b604051633356ae4560e11b815230906366ad5c8a906122a4908790879087908790600401613db8565b600060405180830381600087803b1580156122be57600080fd5b505af19250505080156122cf575060015b6118c0578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516123049190613d23565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d9061235f908690869086908690613db8565b60405180910390a16118c0565b60006001600160e01b031982166380ac58cd60e01b148061239d57506001600160e01b03198216635b5e139f60e01b145b80610c425750610c4282612bbd565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123e1826117df565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166124935760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c09565b600061249e836117df565b9050806001600160a01b0316846001600160a01b031614806124e557506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b806122735750836001600160a01b03166124fe84610d7e565b6001600160a01b031614949350505050565b826001600160a01b0316612523826117df565b6001600160a01b0316146125875760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c09565b6001600160a01b0382166125e95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c09565b6125f46000826123ac565b6001600160a01b038316600090815260066020526040812080546001929061261d908490613df6565b90915550506001600160a01b038216600090815260066020526040812080546001929061264b908490613bf5565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b54816126b960095490565b6126c39190613bf5565b1061271c5760405162461bcd60e51b8152602060048201526024808201527f536f6c64206f757421204e6f206d6f726520574843732061726520617661696c60448201526361626c6560e01b6064820152608401610c09565b60005b81811015610f23576127398361273460095490565b612bf2565b612747600980546001019055565b33600090815260126020526040812080549161276283613e0d565b9190505550808061277290613e0d565b91505061271f565b61278687878787612c0c565b6000858560405160200161279b929190613b26565b60405160208183030381529060405290506127b98782868686612cf5565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637a14574890604401602060405180830381865afa15801561282a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061284e9190613e26565b90508660405161285e9190613d23565b604080519182900382208883526001600160401b03841660208401529161ffff8b16916001600160a01b038d16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4505050505050505050565b600080828060200190518101906128d99190613e43565b601482015191935091506128ee878284612e8e565b806001600160a01b0316866040516129069190613d23565b604080519182900382208583526001600160401b03891660208401529161ffff8b16917f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba910160405180910390a450505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031603612a0e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c09565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612a86848484612510565b612a9284848484612e98565b6118c05760405162461bcd60e51b8152600401610c0990613e89565b6060600a8054610c5790613a66565b606081600003612ae45750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b0e5780612af881613e0d565b9150612b079050600a83613ef1565b9150612ae8565b6000816001600160401b03811115612b2857612b286132ca565b6040519080825280601f01601f191660200182016040528015612b52576020820181803683370190505b5090505b841561227357612b67600183613df6565b9150612b74600a86613f05565b612b7f906030613bf5565b60f81b818381518110612b9457612b94613f19565b60200101906001600160f81b031916908160001a905350612bb6600a86613ef1565b9450612b56565b60006001600160e01b03198216637bb0080b60e01b1480610c4257506301ffc9a760e01b6001600160e01b0319831614610c42565b611214828260405180602001604052806000815250612f96565b612c1533610fd6565b612c785760405162461bcd60e51b815260206004820152602e60248201527f4f4e46543732313a2073656e642063616c6c6572206973206e6f74206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610c09565b836001600160a01b0316612c8b826117df565b6001600160a01b031614612cec5760405162461bcd60e51b815260206004820152602260248201527f4f4e46543732313a2073656e642066726f6d20696e636f7272656374206f776e60448201526132b960f11b6064820152608401610c09565b6118c081612fc9565b61ffff851660009081526001602052604081208054612d1390613a66565b80601f0160208091040260200160405190810160405280929190818152602001828054612d3f90613a66565b8015612d8c5780601f10612d6157610100808354040283529160200191612d8c565b820191906000526020600020905b815481529060010190602001808311612d6f57829003601f168201915b505050505090508051600003612dfd5760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610c09565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c5803100903490612e54908a9086908b908b908b908b90600401613f2f565b6000604051808303818588803b158015612e6d57600080fd5b505af1158015612e81573d6000803e3d6000fd5b5050505050505050505050565b610f238282612bf2565b60006001600160a01b0384163b15612f8e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612edc903390899088908890600401613f96565b6020604051808303816000875af1925050508015612f17575060408051601f3d908101601f19168201909252612f1491810190613fd3565b60015b612f74573d808015612f45576040519150601f19603f3d011682016040523d82523d6000602084013e612f4a565b606091505b508051600003612f6c5760405162461bcd60e51b8152600401610c0990613e89565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612273565b506001612273565b612fa08383613064565b612fad6000848484612e98565b610f235760405162461bcd60e51b8152600401610c0990613e89565b6000612fd4826117df565b9050612fe16000836123ac565b6001600160a01b038116600090815260066020526040812080546001929061300a908490613df6565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166130ba5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c09565b6000818152600560205260409020546001600160a01b03161561311f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c09565b6001600160a01b0382166000908152600660205260408120805460019290613148908490613bf5565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131b290613a66565b90600052602060002090601f0160209004810192826131d4576000855561321a565b82601f106131ed57805160ff191683800117855561321a565b8280016001018555821561321a579182015b8281111561321a5782518255916020019190600101906131ff565b5061322692915061329e565b5090565b82805461323690613a66565b90600052602060002090601f016020900481019282613258576000855561321a565b82601f106132715782800160ff1982351617855561321a565b8280016001018555821561321a579182015b8281111561321a578235825591602001919060010190613283565b5b80821115613226576000815560010161329f565b803561ffff811681146132c557600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613308576133086132ca565b604052919050565b60006001600160401b03821115613329576133296132ca565b50601f01601f191660200190565b600061334a61334584613310565b6132e0565b905082815283838301111561335e57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261338657600080fd5b611e2c83833560208501613337565b6001600160401b038116811461146757600080fd5b600080600080608085870312156133c057600080fd5b6133c9856132b3565b935060208501356001600160401b03808211156133e557600080fd5b6133f188838901613375565b94506040870135915061340382613395565b9092506060860135908082111561341957600080fd5b5061342687828801613375565b91505092959194509250565b6001600160e01b03198116811461146757600080fd5b60006020828403121561345a57600080fd5b8135611e2c81613432565b60005b83811015613480578181015183820152602001613468565b838111156118c05750506000910152565b600081518084526134a9816020860160208601613465565b601f01601f19169290920160200192915050565b602081526000611e2c6020830184613491565b6000602082840312156134e257600080fd5b611e2c826132b3565b6000602082840312156134fd57600080fd5b5035919050565b6001600160a01b038116811461146757600080fd5b6000806040838503121561352c57600080fd5b823561353781613504565b946020939093013593505050565b60006020828403121561355757600080fd5b8135611e2c81613504565b60008060006060848603121561357757600080fd5b833561358281613504565b9250602084013561359281613504565b929592945050506040919091013590565b803580151581146132c557600080fd5b600080600080600060a086880312156135cb57600080fd5b6135d4866132b3565b945060208601356001600160401b03808211156135f057600080fd5b6135fc89838a01613375565b955060408801359450613611606089016135a3565b9350608088013591508082111561362757600080fd5b5061363488828901613375565b9150509295509295909350565b803560ff811681146132c557600080fd5b60008060008060008060c0878903121561366b57600080fd5b8635955061367b60208801613641565b95989597505050506040840135936060810135936080820135935060a0909101359150565b60008083601f8401126136b257600080fd5b5081356001600160401b038111156136c957600080fd5b6020830191508360208285010111156136e157600080fd5b9250929050565b6000806000604084860312156136fd57600080fd5b613706846132b3565b925060208401356001600160401b0381111561372157600080fd5b61372d868287016136a0565b9497909650939450505050565b600080600080600080600060e0888a03121561375557600080fd5b873561376081613504565b965061376e602089016132b3565b955060408801356001600160401b038082111561378a57600080fd5b6137968b838c01613375565b965060608a0135955060808a013591506137af82613504565b90935060a0890135906137c182613504565b90925060c089013590808211156137d757600080fd5b506137e48a828b01613375565b91505092959891949750929550565b60006020828403121561380557600080fd5b81356001600160401b0381111561381b57600080fd5b8201601f8101841361382c57600080fd5b61227384823560208401613337565b60008060006060848603121561385057600080fd5b613859846132b3565b925060208401356001600160401b0381111561387457600080fd5b61388086828701613375565b925050604084013561389181613395565b809150509250925092565b600080600080600060a086880312156138b457600080fd5b6138bd86613641565b97602087013597506040870135966060810135965060800135945092505050565b600080604083850312156138f157600080fd5b82356138fc81613504565b915061390a602084016135a3565b90509250929050565b6000806000806080858703121561392957600080fd5b843561393481613504565b9350602085013561394481613504565b92506040850135915060608501356001600160401b0381111561396657600080fd5b61342687828801613375565b60008060008060006080868803121561398a57600080fd5b613993866132b3565b94506139a1602087016132b3565b93506040860135925060608601356001600160401b038111156139c357600080fd5b6139cf888289016136a0565b969995985093965092949392505050565b600080604083850312156139f357600080fd5b82356139fe81613504565b91506020830135613a0e81613504565b809150509250929050565b60008060008060808587031215613a2f57600080fd5b613a38856132b3565b9350613a46602086016132b3565b92506040850135613a5681613504565b9396929550929360600135925050565b600181811c90821680613a7a57607f821691505b602082108103613a9a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604081526000613b396040830185613491565b90508260208301529392505050565b61ffff861681526001600160a01b038516602082015260a060408201819052600090613b7690830186613491565b84151560608401528281036080840152613b908185613491565b98975050505050505050565b60008060408385031215613baf57600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613bf057613bf0613bc0565b500290565b60008219821115613c0857613c08613bc0565b500190565b60208082526012908201527150726573616c65206e6f742061637469766560701b604082015260600190565b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff84168152604060208201526000612270604083018486613c74565b60008351613ccd818460208801613465565b835190830190613ce1818360208801613465565b01949350505050565b600061ffff808816835280871660208401525084604083015260806060830152613d18608083018486613c74565b979650505050505050565b60008251613d35818460208701613465565b9190910192915050565b600082601f830112613d5057600080fd5b8151613d5e61334582613310565b818152846020838601011115613d7357600080fd5b612273826020830160208701613465565b600060208284031215613d9657600080fd5b81516001600160401b03811115613dac57600080fd5b61227384828501613d3f565b61ffff85168152608060208201526000613dd56080830186613491565b6001600160401b03851660408401528281036060840152613d188185613491565b600082821015613e0857613e08613bc0565b500390565b600060018201613e1f57613e1f613bc0565b5060010190565b600060208284031215613e3857600080fd5b8151611e2c81613395565b60008060408385031215613e5657600080fd5b82516001600160401b03811115613e6c57600080fd5b613e7885828601613d3f565b925050602083015190509250929050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613f0057613f00613edb565b500490565b600082613f1457613f14613edb565b500690565b634e487b7160e01b600052603260045260246000fd5b61ffff8716815260c060208201526000613f4c60c0830188613491565b8281036040840152613f5e8188613491565b6001600160a01b0387811660608601528616608085015283810360a08501529050613f898185613491565b9998505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613fc990830184613491565b9695505050505050565b600060208284031215613fe557600080fd5b8151611e2c8161343256fea264697066735822122037553db036455b4b595004384d5e9a9cd2c711f3f40b0fc192b8e7f2b388593064736f6c634300080d003300000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062f
Deployed Bytecode
0x6080604052600436106103805760003560e01c806366ad5c8a116101d1578063b3e82dc911610102578063e1d4c870116100a0578063f1d5f5171161006f578063f1d5f51714610a41578063f2fde38b14610a61578063f48a2e0314610a81578063f5ecbdbc14610aa157600080fd5b8063e1d4c870146109a8578063e985e9c5146109be578063eb8d244414610a07578063eb8d72b714610a2157600080fd5b8063cbed8b9c116100dc578063cbed8b9c1461094a578063d1deba1f1461096a578063d547cfb71461097d578063df7729411461099257600080fd5b8063b3e82dc9146108ea578063b88d4fde1461090a578063c87b56dd1461092a57600080fd5b80638433a3ce1161016f57806391b7f5ed1161014957806391b7f5ed1461086157806395d89b4114610881578063a22cb46514610896578063b353aaa7146108b657600080fd5b80638433a3ce1461081157806386ed1a54146108245780638da5cb5b1461084357600080fd5b8063715018a6116101ab578063715018a6146107a75780637533d788146107bc5780637683a75c146107dc5780637d8966e4146107fc57600080fd5b806366ad5c8a146107525780636c1438621461077257806370a082311461078757600080fd5b806331beb605116102b657806342842e0e1161025457806355f804b31161022357806355f804b3146106a35780635b8c41e6146106c3578063631c3771146107125780636352211e1461073257600080fd5b806342842e0e1461063d57806342d65a8d1461065d5780634410d32f1461067d578063519056361461069057600080fd5b80633ccfd60b116102905780633ccfd60b146105c85780633d8b38f6146105dd578063408cbf94146105fd578063426ecfb01461061d57600080fd5b806331beb6051461057d578063343937431461059d5780633c8463a1146105b257600080fd5b8063149db7701161032357806323b872dd116102fd57806323b872dd146105025780632a205e3d146105225780632db11544146105575780632e531d6f1461056a57600080fd5b8063149db7701461049657806318160ddd146104b657806318cae269146104d557600080fd5b806307e0db171161035f57806307e0db17146103fe578063081812fc1461041e578063095ea7b31461045657806310ddb1371461047657600080fd5b80621d35671461038557806301ffc9a7146103a757806306fdde03146103dc575b600080fd5b34801561039157600080fd5b506103a56103a03660046133aa565b610ac1565b005b3480156103b357600080fd5b506103c76103c2366004613448565b610c25565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610c48565b6040516103d391906134bd565b34801561040a57600080fd5b506103a56104193660046134d0565b610cda565b34801561042a57600080fd5b5061043e6104393660046134eb565b610d7e565b6040516001600160a01b0390911681526020016103d3565b34801561046257600080fd5b506103a5610471366004613519565b610e13565b34801561048257600080fd5b506103a56104913660046134d0565b610f28565b3480156104a257600080fd5b506103a56104b13660046134eb565b610fa2565b3480156104c257600080fd5b50600b545b6040519081526020016103d3565b3480156104e157600080fd5b506104c76104f0366004613545565b60126020526000908152604090205481565b34801561050e57600080fd5b506103a561051d366004613562565b610fd1565b34801561052e57600080fd5b5061054261053d3660046135b3565b611003565b604080519283526020830191909152016103d3565b6103a56105653660046134eb565b6110ce565b6103a5610578366004613652565b611218565b34801561058957600080fd5b506103a5610598366004613545565b611371565b3480156105a957600080fd5b506103a56113bd565b3480156105be57600080fd5b506104c7600f5481565b3480156105d457600080fd5b506103a5611404565b3480156105e957600080fd5b506103c76105f83660046136e8565b61146a565b34801561060957600080fd5b506103a5610618366004613519565b611536565b34801561062957600080fd5b506103a56106383660046134eb565b61156a565b34801561064957600080fd5b506103a5610658366004613562565b611599565b34801561066957600080fd5b506103a56106783660046136e8565b6115b4565b6103a561068b366004613652565b61165c565b6103a561069e36600461373a565b611764565b3480156106af57600080fd5b506103a56106be3660046137f3565b611773565b3480156106cf57600080fd5b506104c76106de36600461383b565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b34801561071e57600080fd5b506103a561072d3660046134eb565b6117b0565b34801561073e57600080fd5b5061043e61074d3660046134eb565b6117df565b34801561075e57600080fd5b506103a561076d3660046133aa565b611856565b34801561077e57600080fd5b506104c76118c6565b34801561079357600080fd5b506104c76107a2366004613545565b6118d6565b3480156107b357600080fd5b506103a561195d565b3480156107c857600080fd5b506103f16107d73660046134d0565b611993565b3480156107e857600080fd5b506103c76107f736600461389c565b611a2d565b34801561080857600080fd5b506103a5611b9f565b6103a561081f366004613652565b611bdd565b34801561083057600080fd5b506011546103c790610100900460ff1681565b34801561084f57600080fd5b506000546001600160a01b031661043e565b34801561086d57600080fd5b506103a561087c3660046134eb565b611cdd565b34801561088d57600080fd5b506103f1611d0c565b3480156108a257600080fd5b506103a56108b13660046138de565b611d1b565b3480156108c257600080fd5b5061043e7f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67581565b3480156108f657600080fd5b5060145461043e906001600160a01b031681565b34801561091657600080fd5b506103a5610925366004613913565b611d26565b34801561093657600080fd5b506103f16109453660046134eb565b611d58565b34801561095657600080fd5b506103a5610965366004613972565b611e33565b6103a56109783660046133aa565b611eea565b34801561098957600080fd5b506103f161203c565b34801561099e57600080fd5b506104c760105481565b3480156109b457600080fd5b506104c7600b5481565b3480156109ca57600080fd5b506103c76109d93660046139e0565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610a1357600080fd5b506011546103c79060ff1681565b348015610a2d57600080fd5b506103a5610a3c3660046136e8565b612049565b348015610a4d57600080fd5b506103a5610a5c3660046134eb565b6120d2565b348015610a6d57600080fd5b506103a5610a7c366004613545565b612101565b348015610a8d57600080fd5b506103a5610a9c3660046134eb565b612199565b348015610aad57600080fd5b506103f1610abc366004613a19565b6121c8565b337f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031614610af657600080fd5b61ffff841660009081526001602052604081208054610b1490613a66565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4090613a66565b8015610b8d5780601f10610b6257610100808354040283529160200191610b8d565b820191906000526020600020905b815481529060010190602001808311610b7057829003601f168201915b5050505050905080518451148015610bb2575080805190602001208480519060200120145b610c125760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b610c1e8585858561227b565b5050505050565b60006001600160e01b031982161580610c425750610c428261236c565b92915050565b606060038054610c5790613a66565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8390613a66565b8015610cd05780601f10610ca557610100808354040283529160200191610cd0565b820191906000526020600020905b815481529060010190602001808311610cb357829003601f168201915b5050505050905090565b6000546001600160a01b03163314610d045760405162461bcd60e51b8152600401610c0990613aa0565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b0316906307e0db17906024015b600060405180830381600087803b158015610d6a57600080fd5b505af1158015610c1e573d6000803e3d6000fd5b6000818152600560205260408120546001600160a01b0316610df75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c09565b506000908152600760205260409020546001600160a01b031690565b6000610e1e826117df565b9050806001600160a01b0316836001600160a01b031603610e8b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c09565b336001600160a01b0382161480610ea75750610ea781336109d9565b610f195760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c09565b610f2383836123ac565b505050565b6000546001600160a01b03163314610f525760405162461bcd60e51b8152600401610c0990613aa0565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b0316906310ddb13790602401610d50565b6000546001600160a01b03163314610fcc5760405162461bcd60e51b8152600401610c0990613aa0565b600b55565b610fdc335b8261241a565b610ff85760405162461bcd60e51b8152600401610c0990613ad5565b610f23838383612510565b6000806000868660405160200161101b929190613b26565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906340a7bb109061107f908b90309086908b908b90600401613b48565b6040805180830381865afa15801561109b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bf9190613b9c565b92509250509550959350505050565b60115460ff166111125760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610c09565b80600c546111209190613bd6565b3410156111615760405162461bcd60e51b815260206004820152600f60248201526e0dcdee840cadcdeeaced0e840cae8d608b1b6044820152606401610c09565b6010548111156111a75760405162461bcd60e51b81526020600482015260116024820152701d1e17db1a5b5a5d08195e18d959591959607a1b6044820152606401610c09565b33600090815260126020526040902054600f546111c48383613bf5565b111561120a5760405162461bcd60e51b81526020600482015260156024820152741dd85b1b195d17db1a5b5a5d08195e18d959591959605a1b6044820152606401610c09565b61121433836126ac565b5050565b601154610100900460ff1661123f5760405162461bcd60e51b8152600401610c0990613c0d565b85600d5461124d9190613bd6565b34101561128e5760405162461bcd60e51b815260206004820152600f60248201526e09cdee840cadcdeeaced0e840cae8d608b1b6044820152606401610c09565b61129b8585858585611a2d565b6112b75760405162461bcd60e51b8152600401610c0990613c39565b806002146112f55760405162461bcd60e51b815260206004820152600b60248201526a4e6f206d696e747061737360a81b6044820152606401610c09565b33600090815260126020526040902054826113108883613bf5565b111561135e5760405162461bcd60e51b815260206004820152601e60248201527f4578636565647320496e646976696475616c206d696e74206c696d69742100006044820152606401610c09565b61136833886126ac565b50505050505050565b6000546001600160a01b0316331461139b5760405162461bcd60e51b8152600401610c0990613aa0565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113e75760405162461bcd60e51b8152600401610c0990613aa0565b6011805461ff001981166101009182900460ff1615909102179055565b6000546001600160a01b0316331461142e5760405162461bcd60e51b8152600401610c0990613aa0565b6013546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611467573d6000803e3d6000fd5b50565b61ffff83166000908152600160205260408120805482919061148b90613a66565b80601f01602080910402602001604051908101604052809291908181526020018280546114b790613a66565b80156115045780601f106114d957610100808354040283529160200191611504565b820191906000526020600020905b8154815290600101906020018083116114e757829003601f168201915b50505050509050838360405161151b929190613c64565b60405180910390208180519060200120149150509392505050565b6000546001600160a01b031633146115605760405162461bcd60e51b8152600401610c0990613aa0565b61121482826126ac565b6000546001600160a01b031633146115945760405162461bcd60e51b8152600401610c0990613aa0565b601055565b610f2383838360405180602001604052806000815250611d26565b6000546001600160a01b031633146115de5760405162461bcd60e51b8152600401610c0990613aa0565b6040516342d65a8d60e01b81526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906342d65a8d9061162e90869086908690600401613c9d565b600060405180830381600087803b15801561164857600080fd5b505af1158015611368573d6000803e3d6000fd5b601154610100900460ff166116835760405162461bcd60e51b8152600401610c0990613c0d565b85600e546116919190613bd6565b3410156116d25760405162461bcd60e51b815260206004820152600f60248201526e09cdee840cadcdeeaced0e840cae8d608b1b6044820152606401610c09565b6116df8585858585611a2d565b6116fb5760405162461bcd60e51b8152600401610c0990613c39565b33600090815260126020526040902054826117168883613bf5565b111561135e5760405162461bcd60e51b815260206004820152601f60248201527f496e646976696475616c206d696e74206c696d697420657863656564656421006044820152606401610c09565b6113688787878787878761277a565b6000546001600160a01b0316331461179d5760405162461bcd60e51b8152600401610c0990613aa0565b805161121490600a9060208401906131a6565b6000546001600160a01b031633146117da5760405162461bcd60e51b8152600401610c0990613aa0565b600d55565b6000818152600560205260408120546001600160a01b031680610c425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c09565b3330146118b45760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610c09565b6118c0848484846128c2565b50505050565b60006118d160095490565b905090565b60006001600160a01b0382166119415760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c09565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146119875760405162461bcd60e51b8152600401610c0990613aa0565b611991600061295d565b565b600160205260009081526040902080546119ac90613a66565b80601f01602080910402602001604051908101604052809291908181526020018280546119d890613a66565b8015611a255780601f106119fa57610100808354040283529160200191611a25565b820191906000526020600020905b815481529060010190602001808311611a0857829003601f168201915b505050505081565b604080513360601b6bffffffffffffffffffffffff1916602080830191909152603482018590526054808301859052835180840390910181526074830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a333200000000609484015260b08084018290528451808503909101815260d090930190935281519101206000919082906040805160008082526020820180845284905260ff8c1692820192909252606081018a9052608081018990529192509060019060a0016020604051602081039080840390855afa158015611b15573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611b6c5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610c09565b6014546001600160a01b0390811690821603611b8e5760019350505050611b96565b600093505050505b95945050505050565b6000546001600160a01b03163314611bc95760405162461bcd60e51b8152600401610c0990613aa0565b6011805460ff19811660ff90911615179055565b601154610100900460ff16611c045760405162461bcd60e51b8152600401610c0990613c0d565b611c118585858585611a2d565b611c2d5760405162461bcd60e51b8152600401610c0990613c39565b80600114611c745760405162461bcd60e51b81526020600482015260146024820152734e6f7420616c6c6f77656420746f20636c61696d60601b6044820152606401610c09565b3360009081526012602052604090205482611c8f8883613bf5565b111561135e5760405162461bcd60e51b815260206004820152601b60248201527f4578636565647320616c6c6f776564206672656520636c61696d7300000000006044820152606401610c09565b6000546001600160a01b03163314611d075760405162461bcd60e51b8152600401610c0990613aa0565b600c55565b606060048054610c5790613a66565b6112143383836129ad565b611d30338361241a565b611d4c5760405162461bcd60e51b8152600401610c0990613ad5565b6118c084848484612a7b565b6000818152600560205260409020546060906001600160a01b0316611dd75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c09565b6000611de1612aae565b90506000815111611e015760405180602001604052806000815250611e2c565b80611e0b84612abd565b604051602001611e1c929190613cbb565b6040516020818303038152906040525b9392505050565b6000546001600160a01b03163314611e5d5760405162461bcd60e51b8152600401610c0990613aa0565b6040516332fb62e760e21b81526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063cbed8b9c90611eb19088908890889088908890600401613cea565b600060405180830381600087803b158015611ecb57600080fd5b505af1158015611edf573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051611f0b908690613d23565b90815260408051602092819003830190206001600160401b03861660009081529252902054905080611f8b5760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610c09565b815160208301208114611fea5760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610c09565b61ffff8516600090815260026020526040808220905161200b908790613d23565b90815260408051602092819003830190206001600160401b03871660009081529252902055610c1e858585856128c2565b600a80546119ac90613a66565b6000546001600160a01b031633146120735760405162461bcd60e51b8152600401610c0990613aa0565b61ffff8316600090815260016020526040902061209190838361322a565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab8383836040516120c593929190613c9d565b60405180910390a1505050565b6000546001600160a01b031633146120fc5760405162461bcd60e51b8152600401610c0990613aa0565b600f55565b6000546001600160a01b0316331461212b5760405162461bcd60e51b8152600401610c0990613aa0565b6001600160a01b0381166121905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c09565b6114678161295d565b6000546001600160a01b031633146121c35760405162461bcd60e51b8152600401610c0990613aa0565b600e55565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b03169063f5ecbdbc90608401600060405180830381865afa158015612248573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122709190810190613d84565b90505b949350505050565b604051633356ae4560e11b815230906366ad5c8a906122a4908790879087908790600401613db8565b600060405180830381600087803b1580156122be57600080fd5b505af19250505080156122cf575060015b6118c0578080519060200120600260008661ffff1661ffff168152602001908152602001600020846040516123049190613d23565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d9061235f908690869086908690613db8565b60405180910390a16118c0565b60006001600160e01b031982166380ac58cd60e01b148061239d57506001600160e01b03198216635b5e139f60e01b145b80610c425750610c4282612bbd565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123e1826117df565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166124935760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c09565b600061249e836117df565b9050806001600160a01b0316846001600160a01b031614806124e557506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b806122735750836001600160a01b03166124fe84610d7e565b6001600160a01b031614949350505050565b826001600160a01b0316612523826117df565b6001600160a01b0316146125875760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c09565b6001600160a01b0382166125e95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c09565b6125f46000826123ac565b6001600160a01b038316600090815260066020526040812080546001929061261d908490613df6565b90915550506001600160a01b038216600090815260066020526040812080546001929061264b908490613bf5565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b54816126b960095490565b6126c39190613bf5565b1061271c5760405162461bcd60e51b8152602060048201526024808201527f536f6c64206f757421204e6f206d6f726520574843732061726520617661696c60448201526361626c6560e01b6064820152608401610c09565b60005b81811015610f23576127398361273460095490565b612bf2565b612747600980546001019055565b33600090815260126020526040812080549161276283613e0d565b9190505550808061277290613e0d565b91505061271f565b61278687878787612c0c565b6000858560405160200161279b929190613b26565b60405160208183030381529060405290506127b98782868686612cf5565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031690637a14574890604401602060405180830381865afa15801561282a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061284e9190613e26565b90508660405161285e9190613d23565b604080519182900382208883526001600160401b03841660208401529161ffff8b16916001600160a01b038d16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4505050505050505050565b600080828060200190518101906128d99190613e43565b601482015191935091506128ee878284612e8e565b806001600160a01b0316866040516129069190613d23565b604080519182900382208583526001600160401b03891660208401529161ffff8b16917f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba910160405180910390a450505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031603612a0e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c09565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612a86848484612510565b612a9284848484612e98565b6118c05760405162461bcd60e51b8152600401610c0990613e89565b6060600a8054610c5790613a66565b606081600003612ae45750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b0e5780612af881613e0d565b9150612b079050600a83613ef1565b9150612ae8565b6000816001600160401b03811115612b2857612b286132ca565b6040519080825280601f01601f191660200182016040528015612b52576020820181803683370190505b5090505b841561227357612b67600183613df6565b9150612b74600a86613f05565b612b7f906030613bf5565b60f81b818381518110612b9457612b94613f19565b60200101906001600160f81b031916908160001a905350612bb6600a86613ef1565b9450612b56565b60006001600160e01b03198216637bb0080b60e01b1480610c4257506301ffc9a760e01b6001600160e01b0319831614610c42565b611214828260405180602001604052806000815250612f96565b612c1533610fd6565b612c785760405162461bcd60e51b815260206004820152602e60248201527f4f4e46543732313a2073656e642063616c6c6572206973206e6f74206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610c09565b836001600160a01b0316612c8b826117df565b6001600160a01b031614612cec5760405162461bcd60e51b815260206004820152602260248201527f4f4e46543732313a2073656e642066726f6d20696e636f7272656374206f776e60448201526132b960f11b6064820152608401610c09565b6118c081612fc9565b61ffff851660009081526001602052604081208054612d1390613a66565b80601f0160208091040260200160405190810160405280929190818152602001828054612d3f90613a66565b8015612d8c5780601f10612d6157610100808354040283529160200191612d8c565b820191906000526020600020905b815481529060010190602001808311612d6f57829003601f168201915b505050505090508051600003612dfd5760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610c09565b60405162c5803160e81b81526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063c5803100903490612e54908a9086908b908b908b908b90600401613f2f565b6000604051808303818588803b158015612e6d57600080fd5b505af1158015612e81573d6000803e3d6000fd5b5050505050505050505050565b610f238282612bf2565b60006001600160a01b0384163b15612f8e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612edc903390899088908890600401613f96565b6020604051808303816000875af1925050508015612f17575060408051601f3d908101601f19168201909252612f1491810190613fd3565b60015b612f74573d808015612f45576040519150601f19603f3d011682016040523d82523d6000602084013e612f4a565b606091505b508051600003612f6c5760405162461bcd60e51b8152600401610c0990613e89565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612273565b506001612273565b612fa08383613064565b612fad6000848484612e98565b610f235760405162461bcd60e51b8152600401610c0990613e89565b6000612fd4826117df565b9050612fe16000836123ac565b6001600160a01b038116600090815260066020526040812080546001929061300a908490613df6565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166130ba5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c09565b6000818152600560205260409020546001600160a01b03161561311f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c09565b6001600160a01b0382166000908152600660205260408120805460019290613148908490613bf5565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131b290613a66565b90600052602060002090601f0160209004810192826131d4576000855561321a565b82601f106131ed57805160ff191683800117855561321a565b8280016001018555821561321a579182015b8281111561321a5782518255916020019190600101906131ff565b5061322692915061329e565b5090565b82805461323690613a66565b90600052602060002090601f016020900481019282613258576000855561321a565b82601f106132715782800160ff1982351617855561321a565b8280016001018555821561321a579182015b8281111561321a578235825591602001919060010190613283565b5b80821115613226576000815560010161329f565b803561ffff811681146132c557600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613308576133086132ca565b604052919050565b60006001600160401b03821115613329576133296132ca565b50601f01601f191660200190565b600061334a61334584613310565b6132e0565b905082815283838301111561335e57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261338657600080fd5b611e2c83833560208501613337565b6001600160401b038116811461146757600080fd5b600080600080608085870312156133c057600080fd5b6133c9856132b3565b935060208501356001600160401b03808211156133e557600080fd5b6133f188838901613375565b94506040870135915061340382613395565b9092506060860135908082111561341957600080fd5b5061342687828801613375565b91505092959194509250565b6001600160e01b03198116811461146757600080fd5b60006020828403121561345a57600080fd5b8135611e2c81613432565b60005b83811015613480578181015183820152602001613468565b838111156118c05750506000910152565b600081518084526134a9816020860160208601613465565b601f01601f19169290920160200192915050565b602081526000611e2c6020830184613491565b6000602082840312156134e257600080fd5b611e2c826132b3565b6000602082840312156134fd57600080fd5b5035919050565b6001600160a01b038116811461146757600080fd5b6000806040838503121561352c57600080fd5b823561353781613504565b946020939093013593505050565b60006020828403121561355757600080fd5b8135611e2c81613504565b60008060006060848603121561357757600080fd5b833561358281613504565b9250602084013561359281613504565b929592945050506040919091013590565b803580151581146132c557600080fd5b600080600080600060a086880312156135cb57600080fd5b6135d4866132b3565b945060208601356001600160401b03808211156135f057600080fd5b6135fc89838a01613375565b955060408801359450613611606089016135a3565b9350608088013591508082111561362757600080fd5b5061363488828901613375565b9150509295509295909350565b803560ff811681146132c557600080fd5b60008060008060008060c0878903121561366b57600080fd5b8635955061367b60208801613641565b95989597505050506040840135936060810135936080820135935060a0909101359150565b60008083601f8401126136b257600080fd5b5081356001600160401b038111156136c957600080fd5b6020830191508360208285010111156136e157600080fd5b9250929050565b6000806000604084860312156136fd57600080fd5b613706846132b3565b925060208401356001600160401b0381111561372157600080fd5b61372d868287016136a0565b9497909650939450505050565b600080600080600080600060e0888a03121561375557600080fd5b873561376081613504565b965061376e602089016132b3565b955060408801356001600160401b038082111561378a57600080fd5b6137968b838c01613375565b965060608a0135955060808a013591506137af82613504565b90935060a0890135906137c182613504565b90925060c089013590808211156137d757600080fd5b506137e48a828b01613375565b91505092959891949750929550565b60006020828403121561380557600080fd5b81356001600160401b0381111561381b57600080fd5b8201601f8101841361382c57600080fd5b61227384823560208401613337565b60008060006060848603121561385057600080fd5b613859846132b3565b925060208401356001600160401b0381111561387457600080fd5b61388086828701613375565b925050604084013561389181613395565b809150509250925092565b600080600080600060a086880312156138b457600080fd5b6138bd86613641565b97602087013597506040870135966060810135965060800135945092505050565b600080604083850312156138f157600080fd5b82356138fc81613504565b915061390a602084016135a3565b90509250929050565b6000806000806080858703121561392957600080fd5b843561393481613504565b9350602085013561394481613504565b92506040850135915060608501356001600160401b0381111561396657600080fd5b61342687828801613375565b60008060008060006080868803121561398a57600080fd5b613993866132b3565b94506139a1602087016132b3565b93506040860135925060608601356001600160401b038111156139c357600080fd5b6139cf888289016136a0565b969995985093965092949392505050565b600080604083850312156139f357600080fd5b82356139fe81613504565b91506020830135613a0e81613504565b809150509250929050565b60008060008060808587031215613a2f57600080fd5b613a38856132b3565b9350613a46602086016132b3565b92506040850135613a5681613504565b9396929550929360600135925050565b600181811c90821680613a7a57607f821691505b602082108103613a9a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604081526000613b396040830185613491565b90508260208301529392505050565b61ffff861681526001600160a01b038516602082015260a060408201819052600090613b7690830186613491565b84151560608401528281036080840152613b908185613491565b98975050505050505050565b60008060408385031215613baf57600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613bf057613bf0613bc0565b500290565b60008219821115613c0857613c08613bc0565b500190565b60208082526012908201527150726573616c65206e6f742061637469766560701b604082015260600190565b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff84168152604060208201526000612270604083018486613c74565b60008351613ccd818460208801613465565b835190830190613ce1818360208801613465565b01949350505050565b600061ffff808816835280871660208401525084604083015260806060830152613d18608083018486613c74565b979650505050505050565b60008251613d35818460208701613465565b9190910192915050565b600082601f830112613d5057600080fd5b8151613d5e61334582613310565b818152846020838601011115613d7357600080fd5b612273826020830160208701613465565b600060208284031215613d9657600080fd5b81516001600160401b03811115613dac57600080fd5b61227384828501613d3f565b61ffff85168152608060208201526000613dd56080830186613491565b6001600160401b03851660408401528281036060840152613d188185613491565b600082821015613e0857613e08613bc0565b500390565b600060018201613e1f57613e1f613bc0565b5060010190565b600060208284031215613e3857600080fd5b8151611e2c81613395565b60008060408385031215613e5657600080fd5b82516001600160401b03811115613e6c57600080fd5b613e7885828601613d3f565b925050602083015190509250929050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613f0057613f00613edb565b500490565b600082613f1457613f14613edb565b500690565b634e487b7160e01b600052603260045260246000fd5b61ffff8716815260c060208201526000613f4c60c0830188613491565b8281036040840152613f5e8188613491565b6001600160a01b0387811660608601528616608085015283810360a08501529050613f898185613491565b9998505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613fc990830184613491565b9695505050505050565b600060208284031215613fe557600080fd5b8151611e2c8161343256fea264697066735822122037553db036455b4b595004384d5e9a9cd2c711f3f40b0fc192b8e7f2b388593064736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062f
-----Decoded View---------------
Arg [0] : _layerZeroEndpoint (address): 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675
Arg [1] : startMintId (uint256): 0
Arg [2] : endMintId (uint256): 1583
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 000000000000000000000000000000000000000000000000000000000000062f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.