ERC-721
Overview
Max Total Supply
0 RC
Holders
151
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 RCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RoyalCrows
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ // ░░▒▒▒▒░░▒▒▒▒░░▒░▒░▒░░░░░▒▒▒▒░░▒▒▒▒░░▒░▒░▒░░░░░ // ░░▒████╗▒████╗▒█╗█╗█╗░░░▒████╗▒████╗▒█╗█╗█╗░░░ // ░░▒█╔═█║▒█╔═█║▒█║█║█║░░░▒█╔═█║▒█╔═█║▒█║█║█║░░░ // ░░▒█║▒╚╝▒█║▒█║▒█║█║█║░░░▒█║▒╚╝▒█║▒█║▒█║█║█║░░░ // ░░▒█║▒█╗▒████║▒█████║░░░▒█║▒█╗▒████║▒█████║░░░ // ░░░████║░█╔═█║░╚█╔█╔╝░░░░████║░█╔═█║░╚█╔█╔╝░░░ // ░░░╚═══╝░╚╝░╚╝░░╚╝╚╝░░░░░╚═══╝░╚╝░╚╝░░╚╝╚╝░░░░ // ═╬══════════════════════════════════════════╬═ 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; } 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, uint256 _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; } 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); } 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); } } library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } 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); } abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } 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); } } } } abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } 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, uint256 _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 (uint256 nativeFee, uint256 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, uint256 _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); } 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, uint256 _tokenId, bool _useZro, bytes calldata _adapterParams ) external view returns (uint256 nativeFee, uint256 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, uint256 _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, uint256 _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, uint256 _tokenId, uint64 _nonce ); } 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); } } 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); } 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); } 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), "LzApp: invalid endpoint caller" ); 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, uint256 _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, uint256 _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); } } 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 {} } 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); } } interface IONFT721 is IONFT721Core, IERC721 {} 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, uint256 _tokenId, bool _useZro, bytes memory _adapterParams ) public view virtual override returns (uint256 nativeFee, uint256 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, uint256 _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, uint256 _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, uint256 tokenId) = abi.decode( _payload, (bytes, uint256) ); 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, uint256 _tokenId ) internal virtual; function _creditTo( uint16 _srcChainId, address _toAddress, uint256 _tokenId ) internal virtual; } 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, uint256 _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, uint256 _tokenId ) internal virtual override { _safeMint(_toAddress, _tokenId); } } contract RoyalCrows is ONFT721, ReentrancyGuard { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public nextMintId; uint256 public maxMintId; uint256 public ogLimit = 3; uint256 public publicLimit = 2; uint256 public teamMint = 111; uint256 public promoSupply = 199; uint256 public reservedSupply = 2000; uint256 public reservedPrice; bool public revealed = false; bool public onlyReserved = false; bool public onlyWl = true; bytes32 public ogMerkleRoot; bytes32 public wlMerkleRoot; address private bridge = 0x7516207Df482EDcCE333d2d244118BD5A5b67CCB; mapping(address => uint256) private ogMints; mapping(address => bool) private wlMints; mapping(address => uint256) private publicMints; event BridgeOut( uint16 _chainId, uint256 _tokenId, string _destination, uint256 _fee ); event BridgeIn(uint256 _tokenId, address _to, string _extra); constructor() ONFT721("RoyalCrows", "RC", 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675) { setBaseURI(""); setNotRevealedURI( "ipfs://QmXi67jSug3AR3uEr7b3Yn9zRWtWTm64u49LQe2Ng4CD3v/ethereum.json" ); nextMintId = 4878; maxMintId = 7878; //team mint for (uint256 i = 0; i < teamMint; i++) { _safeMint(msg.sender, ++nextMintId); } //promo supply for (uint256 i = 0; i < promoSupply; i++) { _safeMint(msg.sender, ++nextMintId); } } // mint function mint() external nonReentrant { require(!onlyWl, "only wl allowed"); require(nextMintId < maxMintId - reservedSupply, "max supply reached"); require( publicMints[msg.sender] < publicLimit, "address limit reached" ); _safeMint(msg.sender, ++nextMintId); publicMints[msg.sender]++; } function wlMint(bytes32[] calldata merkleProof) external nonReentrant { require(nextMintId < maxMintId - reservedSupply, "max supply reached"); require(!wlMints[msg.sender], "alredy claimed"); require( MerkleProof.verify( merkleProof, wlMerkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "address is not on a list" ); _safeMint(msg.sender, ++nextMintId); wlMints[msg.sender] = true; } function ogMint(bytes32[] calldata merkleProof, uint256 amount) external nonReentrant { require( nextMintId + amount <= maxMintId - reservedSupply, "max supply reached" ); require(ogMints[msg.sender] + amount <= ogLimit, "og limit reached"); require( MerkleProof.verify( merkleProof, ogMerkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "address is not on a list" ); for (uint256 i = 1; i <= amount; i++) { _safeMint(msg.sender, ++nextMintId); ogMints[msg.sender]++; } } function mintReserved() external payable nonReentrant { require(onlyReserved, "not active"); require(nextMintId < maxMintId, "max supply reached"); require(msg.value >= reservedPrice, "value too low"); _safeMint(msg.sender, ++nextMintId); } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } // bridge function bridgeIn( uint256 _tokenId, address _to, string memory _extra ) public { require(msg.sender == bridge, "wrong bridge address"); _safeMint(_to, _tokenId); emit BridgeIn(_tokenId, _to, _extra); } function bridgeOut( uint256 _tokenId, uint16 _chainId, string memory _destination ) public payable { require(msg.sender == ownerOf(_tokenId), "is not owner"); (bool sent, ) = payable(bridge).call{value: msg.value}(""); require(sent); _burn(_tokenId); emit BridgeOut(_chainId, _tokenId, _destination, msg.value); } // collection function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); if (revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, tokenId.toString(), baseExtension ) ) : ""; } // onlyOwner function reveal() public onlyOwner { revealed = true; } function setOgMerkleRoot(bytes32 _merkleRoot) external onlyOwner { ogMerkleRoot = _merkleRoot; } function setWlMerkleRoot(bytes32 _merkleRoot) external onlyOwner { wlMerkleRoot = _merkleRoot; } function setOnlyWhitelisted(bool _state) public onlyOwner { onlyWl = _state; } function setOnlyReserved(bool _state) public onlyOwner { onlyReserved = _state; } function setReservedPrice(uint256 _price) public onlyOwner { reservedPrice = _price; } function setBridgeAddress(address _bridge) public onlyOwner { bridge = _bridge; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function withdraw() public payable onlyOwner { (bool sent, ) = payable(owner()).call{value: address(this).balance}(""); require(sent); } }
{ "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":[],"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":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"string","name":"_extra","type":"string"}],"name":"BridgeIn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_chainId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_destination","type":"string"},{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"BridgeOut","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":[{"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":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"string","name":"_extra","type":"string"}],"name":"bridgeIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"string","name":"_destination","type":"string"}],"name":"bridgeOut","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":[{"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":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintReserved","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextMintId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ogMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"onlyReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWl","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"promoSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"setBridgeAddress","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":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setOgMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setReservedPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","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":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setWlMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"wlMint","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e0604052600560a081905264173539b7b760d91b60c09081526200002891600b919062000688565b506003600f556002601055606f60115560c76012556107d06013556015805462ffffff191662010000179055601880546001600160a01b031916737516207df482edcce333d2d244118bd5a5b67ccb1790553480156200008757600080fd5b506040518060400160405280600a815260200169526f79616c43726f777360b01b81525060405180604001604052806002815260200161524360f01b8152507366a71dcef29a0ffbdbe3c6a460a3b5bc225cd6758282828080620000fa620000f46200021260201b60201c565b62000216565b60601b6001600160601b031916608052505081516200012190600390602085019062000688565b5080516200013790600490602084019062000688565b5050600160095550506040805160208101909152600081526200015d9250905062000266565b6200018160405180608001604052806043815260200162004d0a60439139620002ce565b61130e600d55611ec6600e5560005b601154811015620001d157620001bc33600d60008154620001b19062000834565b91829055506200032e565b80620001c88162000834565b91505062000190565b5060005b6012548110156200020b57620001f633600d60008154620001b19062000834565b80620002028162000834565b915050620001d5565b5062000868565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620002b55760405162461bcd60e51b8152602060048201819052602482015260008051602062004cea83398151915260448201526064015b60405180910390fd5b8051620002ca90600a90602084019062000688565b5050565b6000546001600160a01b03163314620003195760405162461bcd60e51b8152602060048201819052602482015260008051602062004cea8339815191526044820152606401620002ac565b8051620002ca90600c90602084019062000688565b620002ca8282604051806020016040528060008152506200035060201b60201c565b6200035c8383620003c8565b6200036b600084848462000510565b620003c35760405162461bcd60e51b8152602060048201526032602482015260008051602062004cca83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401620002ac565b505050565b6001600160a01b038216620004205760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620002ac565b6000818152600560205260409020546001600160a01b031615620004875760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620002ac565b6001600160a01b0382166000908152600660205260408120805460019290620004b2908490620007dc565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600062000531846001600160a01b03166200067960201b620024e61760201c565b156200066d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200056b90339089908890889060040162000761565b602060405180830381600087803b1580156200058657600080fd5b505af1925050508015620005b9575060408051601f3d908101601f19168201909252620005b6918101906200072e565b60015b62000652573d808015620005ea576040519150601f19603f3d011682016040523d82523d6000602084013e620005ef565b606091505b5080516200064a5760405162461bcd60e51b8152602060048201526032602482015260008051602062004cca83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401620002ac565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000671565b5060015b949350505050565b6001600160a01b03163b151590565b8280546200069690620007f7565b90600052602060002090601f016020900481019282620006ba576000855562000705565b82601f10620006d557805160ff191683800117855562000705565b8280016001018555821562000705579182015b8281111562000705578251825591602001919060010190620006e8565b506200071392915062000717565b5090565b5b8082111562000713576000815560010162000718565b6000602082840312156200074157600080fd5b81516001600160e01b0319811681146200075a57600080fd5b9392505050565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620007b05785810182015185820160a00152810162000792565b82811115620007c357600060a084870101525b5050601f01601f19169190910160a00195945050505050565b60008219821115620007f257620007f262000852565b500190565b600181811c908216806200080c57607f821691505b602082108114156200082e57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200084b576200084b62000852565b5060010190565b634e487b7160e01b600052601160045260246000fd5b60805160601c614404620008c6600039600081816108fc01528181610b4e01528181610dea015281816110c7015281816112ae0152818161154401528181611fc201528181612426015281816129a101526130b101526144046000f3fe6080604052600436106103b75760003560e01c80637116abf9116101f2578063c2edb8761161010d578063e985e9c5116100a0578063f2fde38b1161006f578063f2fde38b14610acc578063f3e8d8dd14610aec578063f5ecbdbc14610b0b578063f8cc6c1e14610b2b57600080fd5b8063e985e9c514610a3b578063eb8d72b714610a84578063ec8c890414610aa4578063f2c4ce1e14610aac57600080fd5b8063d1b7bda3116100dc578063d1b7bda3146109dc578063d1deba1f146109f2578063d8a7ab8914610a05578063e1d4c87014610a2557600080fd5b8063c2edb87614610967578063c668286214610987578063c87b56dd1461099c578063cbed8b9c146109bc57600080fd5b8063a22cb46511610185578063b353aaa711610154578063b353aaa7146108ea578063b88d4fde1461091e578063ba7a86b81461093e578063bba135d61461095457600080fd5b8063a22cb4651461087f578063a4331d2d1461089f578063a475b5dd146108b5578063b0ea7dcf146108ca57600080fd5b80638ac1e161116101c15780638ac1e1611461080c5780638da5cb5b1461082c57806395d89b411461084a578063a012aec51461085f57600080fd5b80637116abf914610797578063715018a6146107b75780637533d788146107cc5780637f5a22f9146107ec57600080fd5b80633d8b38f6116102e257806355f804b3116102755780636aa99da3116102445780636aa99da31461072c5780636c0360eb1461074257806370a082311461075757806370c5668d1461077757600080fd5b806355f804b31461067d5780635b8c41e61461069d5780636352211e146106ec57806366ad5c8a1461070c57600080fd5b80634f913416116102b15780634f91341614610624578063518302271461063a578063519056361461065457806354c06aee1461066757600080fd5b80633d8b38f6146105ae57806342842e0e146105ce57806342d65a8d146105ee57806344d19d2b1461060e57600080fd5b80630a3025301161035a57806323b872dd1161032957806323b872dd146105315780632a205e3d146105515780633c952764146105865780633ccfd60b146105a657600080fd5b80630a302530146104c257806310ddb137146104e65780631249c58b146105065780631b55d2161461051b57600080fd5b806307e0db171161039657806307e0db1714610435578063081812fc14610455578063081c8c441461048d578063095ea7b3146104a257600080fd5b80621d3567146103bc57806301ffc9a7146103de57806306fdde0314610413575b600080fd5b3480156103c857600080fd5b506103dc6103d7366004613b71565b610b4b565b005b3480156103ea57600080fd5b506103fe6103f936600461392d565b610cf2565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b50610428610d15565b60405161040a9190613ee8565b34801561044157600080fd5b506103dc610450366004613a15565b610da7565b34801561046157600080fd5b50610475610470366004613914565b610e4b565b6040516001600160a01b03909116815260200161040a565b34801561049957600080fd5b50610428610ee0565b3480156104ae57600080fd5b506103dc6104bd366004613841565b610f6e565b3480156104ce57600080fd5b506104d860165481565b60405190815260200161040a565b3480156104f257600080fd5b506103dc610501366004613a15565b611084565b34801561051257600080fd5b506103dc6110fe565b34801561052757600080fd5b506104d860145481565b34801561053d57600080fd5b506103dc61054c3660046136a7565b61123d565b34801561055d57600080fd5b5061057161056c366004613a82565b61126f565b6040805192835260208301919091520161040a565b34801561059257600080fd5b506103dc6105a13660046138f9565b611349565b6103dc61138f565b3480156105ba57600080fd5b506103fe6105c9366004613a30565b61141c565b3480156105da57600080fd5b506103dc6105e93660046136a7565b6114e8565b3480156105fa57600080fd5b506103dc610609366004613a30565b611503565b34801561061a57600080fd5b506104d860135481565b34801561063057600080fd5b506104d8600f5481565b34801561064657600080fd5b506015546103fe9060ff1681565b6103dc610662366004613788565b6115b4565b34801561067357600080fd5b506104d860175481565b34801561068957600080fd5b506103dc6106983660046139e1565b6115c3565b3480156106a957600080fd5b506104d86106b8366004613b10565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156106f857600080fd5b50610475610707366004613914565b611604565b34801561071857600080fd5b506103dc610727366004613b71565b61167b565b34801561073857600080fd5b506104d8600d5481565b34801561074e57600080fd5b506104286116eb565b34801561076357600080fd5b506104d8610772366004613651565b6116f8565b34801561078357600080fd5b506103dc6107923660046138f9565b61177f565b3480156107a357600080fd5b506103dc6107b23660046138ae565b6117c3565b3480156107c357600080fd5b506103dc61199e565b3480156107d857600080fd5b506104286107e7366004613a15565b6119d4565b3480156107f857600080fd5b506103dc610807366004613651565b6119ed565b34801561081857600080fd5b506103dc610827366004613914565b611a39565b34801561083857600080fd5b506000546001600160a01b0316610475565b34801561085657600080fd5b50610428611a68565b34801561086b57600080fd5b506103dc61087a366004613ca8565b611a77565b34801561088b57600080fd5b506103dc61089a366004613753565b611b12565b3480156108ab57600080fd5b506104d860105481565b3480156108c157600080fd5b506103dc611b1d565b3480156108d657600080fd5b506103dc6108e536600461386d565b611b56565b3480156108f657600080fd5b506104757f000000000000000000000000000000000000000000000000000000000000000081565b34801561092a57600080fd5b506103dc6109393660046136e8565b611cdc565b34801561094a57600080fd5b506104d860115481565b6103dc610962366004613d00565b611d0e565b34801561097357600080fd5b506015546103fe9062010000900460ff1681565b34801561099357600080fd5b50610428611e12565b3480156109a857600080fd5b506104286109b7366004613914565b611e1f565b3480156109c857600080fd5b506103dc6109d7366004613c3a565b611f81565b3480156109e857600080fd5b506104d860125481565b6103dc610a00366004613b71565b612038565b348015610a1157600080fd5b506103dc610a20366004613914565b61218a565b348015610a3157600080fd5b506104d8600e5481565b348015610a4757600080fd5b506103fe610a5636600461366e565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610a9057600080fd5b506103dc610a9f366004613a30565b6121b9565b6103dc612235565b348015610ab857600080fd5b506103dc610ac73660046139e1565b612320565b348015610ad857600080fd5b506103dc610ae7366004613651565b61235d565b348015610af857600080fd5b506015546103fe90610100900460ff1681565b348015610b1757600080fd5b50610428610b26366004613bed565b6123f5565b348015610b3757600080fd5b506103dc610b46366004613914565b6124b7565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610bc85760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff841660009081526001602052604081208054610be6906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610c12906142cc565b8015610c5f5780601f10610c3457610100808354040283529160200191610c5f565b820191906000526020600020905b815481529060010190602001808311610c4257829003601f168201915b5050505050905080518451148015610c84575080805190602001208480519060200120145b610cdf5760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608401610bbf565b610ceb858585856124f5565b5050505050565b60006001600160e01b031982161580610d0f5750610d0f826125e6565b92915050565b606060038054610d24906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610d50906142cc565b8015610d9d5780601f10610d7257610100808354040283529160200191610d9d565b820191906000526020600020905b815481529060010190602001808311610d8057829003601f168201915b5050505050905090565b6000546001600160a01b03163314610dd15760405162461bcd60e51b8152600401610bbf90613f9b565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b600060405180830381600087803b158015610e3757600080fd5b505af1158015610ceb573d6000803e3d6000fd5b6000818152600560205260408120546001600160a01b0316610ec45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bbf565b506000908152600760205260409020546001600160a01b031690565b600c8054610eed906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610f19906142cc565b8015610f665780601f10610f3b57610100808354040283529160200191610f66565b820191906000526020600020905b815481529060010190602001808311610f4957829003601f168201915b505050505081565b6000610f7982611604565b9050806001600160a01b0316836001600160a01b03161415610fe75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bbf565b336001600160a01b038216148061100357506110038133610a56565b6110755760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bbf565b61107f8383612626565b505050565b6000546001600160a01b031633146110ae5760405162461bcd60e51b8152600401610bbf90613f9b565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb13790602401610e1d565b600260095414156111215760405162461bcd60e51b8152600401610bbf90614021565b600260095560155462010000900460ff16156111715760405162461bcd60e51b815260206004820152600f60248201526e1bdb9b1e481ddb08185b1b1bddd959608a1b6044820152606401610bbf565b601354600e546111819190614289565b600d54106111a15760405162461bcd60e51b8152600401610bbf90613f6f565b601054336000908152601b6020526040902054106111f95760405162461bcd60e51b81526020600482015260156024820152741859191c995cdcc81b1a5b5a5d081c995858da1959605a1b6044820152606401610bbf565b61121633600d6000815461120c90614307565b9182905550612694565b336000908152601b6020526040812080549161123183614307565b90915550506001600955565b611248335b826126ae565b6112645760405162461bcd60e51b8152600401610bbf90613fd0565b61107f8383836127a4565b60008060008686604051602001611287929190613efb565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb10906112eb908b90309086908b908b90600401614058565b604080518083038186803b15801561130257600080fd5b505afa158015611316573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133a9190613d25565b92509250509550959350505050565b6000546001600160a01b031633146113735760405162461bcd60e51b8152600401610bbf90613f9b565b60158054911515620100000262ff000019909216919091179055565b6000546001600160a01b031633146113b95760405162461bcd60e51b8152600401610bbf90613f9b565b600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114611406576040519150601f19603f3d011682016040523d82523d6000602084013e61140b565b606091505b505090508061141957600080fd5b50565b61ffff83166000908152600160205260408120805482919061143d906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611469906142cc565b80156114b65780601f1061148b576101008083540402835291602001916114b6565b820191906000526020600020905b81548152906001019060200180831161149957829003601f168201915b5050505050905083836040516114cd929190613dbb565b60405180910390208180519060200120149150509392505050565b61107f83838360405180602001604052806000815250611cdc565b6000546001600160a01b0316331461152d5760405162461bcd60e51b8152600401610bbf90613f9b565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d9061157d908690869086906004016140ac565b600060405180830381600087803b15801561159757600080fd5b505af11580156115ab573d6000803e3d6000fd5b50505050505050565b6115ab87878787878787612940565b6000546001600160a01b031633146115ed5760405162461bcd60e51b8152600401610bbf90613f9b565b805161160090600a9060208401906133f6565b5050565b6000818152600560205260408120546001600160a01b031680610d0f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bbf565b3330146116d95760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610bbf565b6116e584848484612a97565b50505050565b600a8054610eed906142cc565b60006001600160a01b0382166117635760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bbf565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146117a95760405162461bcd60e51b8152600401610bbf90613f9b565b601580549115156101000261ff0019909216919091179055565b600260095414156117e65760405162461bcd60e51b8152600401610bbf90614021565b6002600955601354600e546117fb9190614289565b81600d54611809919061425d565b11156118275760405162461bcd60e51b8152600401610bbf90613f6f565b600f543360009081526019602052604090205461184590839061425d565b11156118865760405162461bcd60e51b815260206004820152601060248201526f1bd9c81b1a5b5a5d081c995858da195960821b6044820152606401610bbf565b6118fc838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506016546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b60405160208183030381529060405280519060200120612b32565b6119435760405162461bcd60e51b81526020600482015260186024820152771859191c995cdcc81a5cc81b9bdd081bdb8818481b1a5cdd60421b6044820152606401610bbf565b60015b8181116119935761196033600d6000815461120c90614307565b33600090815260196020526040812080549161197b83614307565b9190505550808061198b90614307565b915050611946565b505060016009555050565b6000546001600160a01b031633146119c85760405162461bcd60e51b8152600401610bbf90613f9b565b6119d26000612b48565b565b60016020526000908152604090208054610eed906142cc565b6000546001600160a01b03163314611a175760405162461bcd60e51b8152600401610bbf90613f9b565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a635760405162461bcd60e51b8152600401610bbf90613f9b565b601755565b606060048054610d24906142cc565b6018546001600160a01b03163314611ac85760405162461bcd60e51b815260206004820152601460248201527377726f6e6720627269646765206164647265737360601b6044820152606401610bbf565b611ad28284612694565b7f401dfca18ae7a5d809f30cfb9ac3338403b2a97be8f239bdfe9dcccdd8294e25838383604051611b05939291906141dc565b60405180910390a1505050565b611600338383612b98565b6000546001600160a01b03163314611b475760405162461bcd60e51b8152600401610bbf90613f9b565b6015805460ff19166001179055565b60026009541415611b795760405162461bcd60e51b8152600401610bbf90614021565b6002600955601354600e54611b8e9190614289565b600d5410611bae5760405162461bcd60e51b8152600401610bbf90613f6f565b336000908152601a602052604090205460ff1615611bff5760405162461bcd60e51b815260206004820152600e60248201526d185b1c99591e4818db185a5b595960921b6044820152606401610bbf565b611c5e828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506017546040516bffffffffffffffffffffffff193360601b16602082015290925060340190506118e1565b611ca55760405162461bcd60e51b81526020600482015260186024820152771859191c995cdcc81a5cc81b9bdd081bdb8818481b1a5cdd60421b6044820152606401610bbf565b611cb833600d6000815461120c90614307565b5050336000908152601a60205260409020805460ff19166001908117909155600955565b611ce633836126ae565b611d025760405162461bcd60e51b8152600401610bbf90613fd0565b6116e584848484612c67565b611d1783611604565b6001600160a01b0316336001600160a01b031614611d665760405162461bcd60e51b815260206004820152600c60248201526b34b9903737ba1037bbb732b960a11b6044820152606401610bbf565b6018546040516000916001600160a01b03169034908381818185875af1925050503d8060008114611db3576040519150601f19603f3d011682016040523d82523d6000602084013e611db8565b606091505b5050905080611dc657600080fd5b611dcf84612c9a565b7fed4bcd3e2673a99c9bb43226fade4ff5a6e6408d3772c675335ef916aa2b044783858434604051611e0494939291906141a8565b60405180910390a150505050565b600b8054610eed906142cc565b6000818152600560205260409020546060906001600160a01b0316611e865760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610bbf565b60155460ff16611f2257600c8054611e9d906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611ec9906142cc565b8015611f165780601f10611eeb57610100808354040283529160200191611f16565b820191906000526020600020905b815481529060010190602001808311611ef957829003601f168201915b50505050509050919050565b6000611f2c612d35565b90506000815111611f4c5760405180602001604052806000815250611f7a565b80611f5684612d44565b600b604051602001611f6a93929190613de7565b6040516020818303038152906040525b9392505050565b6000546001600160a01b03163314611fab5760405162461bcd60e51b8152600401610bbf90613f9b565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c90611fff908890889088908890889060040161417a565b600060405180830381600087803b15801561201957600080fd5b505af115801561202d573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051612059908690613dcb565b90815260408051602092819003830190206001600160401b038616600090815292529020549050806120d95760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610bbf565b8151602083012081146121385760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610bbf565b61ffff85166000908152600260205260408082209051612159908790613dcb565b90815260408051602092819003830190206001600160401b03871660009081529252902055610ceb85858585612a97565b6000546001600160a01b031633146121b45760405162461bcd60e51b8152600401610bbf90613f9b565b601655565b6000546001600160a01b031633146121e35760405162461bcd60e51b8152600401610bbf90613f9b565b61ffff8316600090815260016020526040902061220190838361347a565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051611b05939291906140ac565b600260095414156122585760405162461bcd60e51b8152600401610bbf90614021565b6002600955601554610100900460ff166122a15760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401610bbf565b600e54600d54106122c45760405162461bcd60e51b8152600401610bbf90613f6f565b6014543410156123065760405162461bcd60e51b815260206004820152600d60248201526c76616c756520746f6f206c6f7760981b6044820152606401610bbf565b61231933600d6000815461120c90614307565b6001600955565b6000546001600160a01b0316331461234a5760405162461bcd60e51b8152600401610bbf90613f9b565b805161160090600c9060208401906133f6565b6000546001600160a01b031633146123875760405162461bcd60e51b8152600401610bbf90613f9b565b6001600160a01b0381166123ec5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bbf565b61141981612b48565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc9060840160006040518083038186803b15801561247057600080fd5b505afa158015612484573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124ac9190810190613967565b90505b949350505050565b6000546001600160a01b031633146124e15760405162461bcd60e51b8152600401610bbf90613f9b565b601455565b6001600160a01b03163b151590565b604051633356ae4560e11b815230906366ad5c8a9061251e908790879087908790600401614131565b600060405180830381600087803b15801561253857600080fd5b505af1925050508015612549575060015b6116e5578080519060200120600260008661ffff1661ffff1681526020019081526020016000208460405161257e9190613dcb565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d906125d9908690869086908690614131565b60405180910390a16116e5565b60006001600160e01b031982166380ac58cd60e01b148061261757506001600160e01b03198216635b5e139f60e01b145b80610d0f5750610d0f82612e41565b600081815260076020526040902080546001600160a01b0319166001600160a01b038416908117909155819061265b82611604565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611600828260405180602001604052806000815250612e76565b6000818152600560205260408120546001600160a01b03166127275760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bbf565b600061273283611604565b9050806001600160a01b0316846001600160a01b0316148061277957506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b806124af5750836001600160a01b031661279284610e4b565b6001600160a01b031614949350505050565b826001600160a01b03166127b782611604565b6001600160a01b03161461281b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610bbf565b6001600160a01b03821661287d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bbf565b612888600082612626565b6001600160a01b03831660009081526006602052604081208054600192906128b1908490614289565b90915550506001600160a01b03821660009081526006602052604081208054600192906128df90849061425d565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61294c87878787612ea9565b60008585604051602001612961929190613efb565b604051602081830303815290604052905061297f8782868686612f92565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637a1457489060440160206040518083038186803b1580156129eb57600080fd5b505afa1580156129ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a239190613d49565b905086604051612a339190613dcb565b604080519182900382208883526001600160401b03841660208401529161ffff8b16916001600160a01b038d16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4505050505050505050565b60008082806020019051810190612aae919061399b565b60148201519193509150612ac387828461312c565b806001600160a01b031686604051612adb9190613dcb565b604080519182900382208583526001600160401b03891660208401529161ffff8b16917f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba910160405180910390a450505050505050565b600082612b3f8584613136565b14949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03161415612bfa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bbf565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c728484846127a4565b612c7e848484846131aa565b6116e55760405162461bcd60e51b8152600401610bbf90613f1d565b6000612ca582611604565b9050612cb2600083612626565b6001600160a01b0381166000908152600660205260408120805460019290612cdb908490614289565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6060600a8054610d24906142cc565b606081612d685750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d925780612d7c81614307565b9150612d8b9050600a83614275565b9150612d6c565b6000816001600160401b03811115612dac57612dac614378565b6040519080825280601f01601f191660200182016040528015612dd6576020820181803683370190505b5090505b84156124af57612deb600183614289565b9150612df8600a86614322565b612e0390603061425d565b60f81b818381518110612e1857612e18614362565b60200101906001600160f81b031916908160001a905350612e3a600a86614275565b9450612dda565b60006001600160e01b03198216637bb0080b60e01b1480610d0f57506301ffc9a760e01b6001600160e01b0319831614610d0f565b612e8083836132b4565b612e8d60008484846131aa565b61107f5760405162461bcd60e51b8152600401610bbf90613f1d565b612eb233611242565b612f155760405162461bcd60e51b815260206004820152602e60248201527f4f4e46543732313a2073656e642063616c6c6572206973206e6f74206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610bbf565b836001600160a01b0316612f2882611604565b6001600160a01b031614612f895760405162461bcd60e51b815260206004820152602260248201527f4f4e46543732313a2073656e642066726f6d20696e636f7272656374206f776e60448201526132b960f11b6064820152608401610bbf565b6116e581612c9a565b61ffff851660009081526001602052604081208054612fb0906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054612fdc906142cc565b80156130295780601f10612ffe57610100808354040283529160200191613029565b820191906000526020600020905b81548152906001019060200180831161300c57829003601f168201915b5050505050905080516000141561309b5760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610bbf565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c58031009034906130f2908a9086908b908b908b908b906004016140ca565b6000604051808303818588803b15801561310b57600080fd5b505af115801561311f573d6000803e3d6000fd5b5050505050505050505050565b61107f8282612694565b600081815b84518110156131a257600085828151811061315857613158614362565b6020026020010151905080831161317e576000838152602082905260409020925061318f565b600081815260208490526040902092505b508061319a81614307565b91505061313b565b509392505050565b60006001600160a01b0384163b156132ac57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131ee903390899088908890600401613eab565b602060405180830381600087803b15801561320857600080fd5b505af1925050508015613238575060408051601f3d908101601f191682019092526132359181019061394a565b60015b613292573d808015613266576040519150601f19603f3d011682016040523d82523d6000602084013e61326b565b606091505b50805161328a5760405162461bcd60e51b8152600401610bbf90613f1d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124af565b5060016124af565b6001600160a01b03821661330a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bbf565b6000818152600560205260409020546001600160a01b03161561336f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bbf565b6001600160a01b038216600090815260066020526040812080546001929061339890849061425d565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613402906142cc565b90600052602060002090601f016020900481019282613424576000855561346a565b82601f1061343d57805160ff191683800117855561346a565b8280016001018555821561346a579182015b8281111561346a57825182559160200191906001019061344f565b506134769291506134ee565b5090565b828054613486906142cc565b90600052602060002090601f0160209004810192826134a8576000855561346a565b82601f106134c15782800160ff1982351617855561346a565b8280016001018555821561346a579182015b8281111561346a5782358255916020019190600101906134d3565b5b8082111561347657600081556001016134ef565b60008083601f84011261351557600080fd5b5081356001600160401b0381111561352c57600080fd5b6020830191508360208260051b850101111561354757600080fd5b9250929050565b8035801515811461355e57600080fd5b919050565b60008083601f84011261357557600080fd5b5081356001600160401b0381111561358c57600080fd5b60208301915083602082850101111561354757600080fd5b600082601f8301126135b557600080fd5b81356135c86135c382614236565b614206565b8181528460208386010111156135dd57600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261360b57600080fd5b81516136196135c382614236565b81815284602083860101111561362e57600080fd5b6124af8260208301602087016142a0565b803561ffff8116811461355e57600080fd5b60006020828403121561366357600080fd5b8135611f7a8161438e565b6000806040838503121561368157600080fd5b823561368c8161438e565b9150602083013561369c8161438e565b809150509250929050565b6000806000606084860312156136bc57600080fd5b83356136c78161438e565b925060208401356136d78161438e565b929592945050506040919091013590565b600080600080608085870312156136fe57600080fd5b84356137098161438e565b935060208501356137198161438e565b92506040850135915060608501356001600160401b0381111561373b57600080fd5b613747878288016135a4565b91505092959194509250565b6000806040838503121561376657600080fd5b82356137718161438e565b915061377f6020840161354e565b90509250929050565b600080600080600080600060e0888a0312156137a357600080fd5b87356137ae8161438e565b96506137bc6020890161363f565b955060408801356001600160401b03808211156137d857600080fd5b6137e48b838c016135a4565b965060608a0135955060808a013591506137fd8261438e565b90935060a08901359061380f8261438e565b90925060c0890135908082111561382557600080fd5b506138328a828b016135a4565b91505092959891949750929550565b6000806040838503121561385457600080fd5b823561385f8161438e565b946020939093013593505050565b6000806020838503121561388057600080fd5b82356001600160401b0381111561389657600080fd5b6138a285828601613503565b90969095509350505050565b6000806000604084860312156138c357600080fd5b83356001600160401b038111156138d957600080fd5b6138e586828701613503565b909790965060209590950135949350505050565b60006020828403121561390b57600080fd5b611f7a8261354e565b60006020828403121561392657600080fd5b5035919050565b60006020828403121561393f57600080fd5b8135611f7a816143a3565b60006020828403121561395c57600080fd5b8151611f7a816143a3565b60006020828403121561397957600080fd5b81516001600160401b0381111561398f57600080fd5b6124af848285016135fa565b600080604083850312156139ae57600080fd5b82516001600160401b038111156139c457600080fd5b6139d0858286016135fa565b925050602083015190509250929050565b6000602082840312156139f357600080fd5b81356001600160401b03811115613a0957600080fd5b6124af848285016135a4565b600060208284031215613a2757600080fd5b611f7a8261363f565b600080600060408486031215613a4557600080fd5b613a4e8461363f565b925060208401356001600160401b03811115613a6957600080fd5b613a7586828701613563565b9497909650939450505050565b600080600080600060a08688031215613a9a57600080fd5b613aa38661363f565b945060208601356001600160401b0380821115613abf57600080fd5b613acb89838a016135a4565b955060408801359450613ae06060890161354e565b93506080880135915080821115613af657600080fd5b50613b03888289016135a4565b9150509295509295909350565b600080600060608486031215613b2557600080fd5b613b2e8461363f565b925060208401356001600160401b03811115613b4957600080fd5b613b55868287016135a4565b9250506040840135613b66816143b9565b809150509250925092565b60008060008060808587031215613b8757600080fd5b613b908561363f565b935060208501356001600160401b0380821115613bac57600080fd5b613bb8888389016135a4565b945060408701359150613bca826143b9565b90925060608601359080821115613be057600080fd5b50613747878288016135a4565b60008060008060808587031215613c0357600080fd5b613c0c8561363f565b9350613c1a6020860161363f565b92506040850135613c2a8161438e565b9396929550929360600135925050565b600080600080600060808688031215613c5257600080fd5b613c5b8661363f565b9450613c696020870161363f565b93506040860135925060608601356001600160401b03811115613c8b57600080fd5b613c9788828901613563565b969995985093965092949392505050565b600080600060608486031215613cbd57600080fd5b833592506020840135613ccf8161438e565b915060408401356001600160401b03811115613cea57600080fd5b613cf6868287016135a4565b9150509250925092565b600080600060608486031215613d1557600080fd5b83359250613ccf6020850161363f565b60008060408385031215613d3857600080fd5b505080516020909101519092909150565b600060208284031215613d5b57600080fd5b8151611f7a816143b9565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008151808452613da78160208601602086016142a0565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008251613ddd8184602087016142a0565b9190910192915050565b600084516020613dfa8285838a016142a0565b855191840191613e0d8184848a016142a0565b8554920191600090600181811c9080831680613e2a57607f831692505b858310811415613e4857634e487b7160e01b85526022600452602485fd5b808015613e5c5760018114613e6d57613e9a565b60ff19851688528388019550613e9a565b60008b81526020902060005b85811015613e925781548a820152908401908801613e79565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ede90830184613d8f565b9695505050505050565b602081526000611f7a6020830184613d8f565b604081526000613f0e6040830185613d8f565b90508260208301529392505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601290820152711b585e081cdd5c1c1b1e481c995858da195960721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b61ffff861681526001600160a01b038516602082015260a06040820181905260009061408690830186613d8f565b841515606084015282810360808401526140a08185613d8f565b98975050505050505050565b61ffff841681526040602082015260006124ac604083018486613d66565b61ffff8716815260c0602082015260006140e760c0830188613d8f565b82810360408401526140f98188613d8f565b6001600160a01b0387811660608601528616608085015283810360a085015290506141248185613d8f565b9998505050505050505050565b61ffff8516815260806020820152600061414e6080830186613d8f565b6001600160401b0385166040840152828103606084015261416f8185613d8f565b979650505050505050565b600061ffff80881683528087166020840152508460408301526080606083015261416f608083018486613d66565b61ffff851681528360208201526080604082015260006141cb6080830185613d8f565b905082606083015295945050505050565b8381526001600160a01b03831660208201526060604082018190526000906124ac90830184613d8f565b604051601f8201601f191681016001600160401b038111828210171561422e5761422e614378565b604052919050565b60006001600160401b0382111561424f5761424f614378565b50601f01601f191660200190565b6000821982111561427057614270614336565b500190565b6000826142845761428461434c565b500490565b60008282101561429b5761429b614336565b500390565b60005b838110156142bb5781810151838201526020016142a3565b838111156116e55750506000910152565b600181811c908216806142e057607f821691505b6020821081141561430157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561431b5761431b614336565b5060010190565b6000826143315761433161434c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461141957600080fd5b6001600160e01b03198116811461141957600080fd5b6001600160401b038116811461141957600080fdfea264697066735822122035572e0b0f99ae3b9044b68428f74a922bf745aca651950b53f5fbdae9cd0e2864736f6c634300080700334552433732313a207472616e7366657220746f206e6f6e2045524337323152654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572697066733a2f2f516d586936376a53756733415233754572376233596e397a52577457546d36347534394c5165324e6734434433762f657468657265756d2e6a736f6e
Deployed Bytecode
0x6080604052600436106103b75760003560e01c80637116abf9116101f2578063c2edb8761161010d578063e985e9c5116100a0578063f2fde38b1161006f578063f2fde38b14610acc578063f3e8d8dd14610aec578063f5ecbdbc14610b0b578063f8cc6c1e14610b2b57600080fd5b8063e985e9c514610a3b578063eb8d72b714610a84578063ec8c890414610aa4578063f2c4ce1e14610aac57600080fd5b8063d1b7bda3116100dc578063d1b7bda3146109dc578063d1deba1f146109f2578063d8a7ab8914610a05578063e1d4c87014610a2557600080fd5b8063c2edb87614610967578063c668286214610987578063c87b56dd1461099c578063cbed8b9c146109bc57600080fd5b8063a22cb46511610185578063b353aaa711610154578063b353aaa7146108ea578063b88d4fde1461091e578063ba7a86b81461093e578063bba135d61461095457600080fd5b8063a22cb4651461087f578063a4331d2d1461089f578063a475b5dd146108b5578063b0ea7dcf146108ca57600080fd5b80638ac1e161116101c15780638ac1e1611461080c5780638da5cb5b1461082c57806395d89b411461084a578063a012aec51461085f57600080fd5b80637116abf914610797578063715018a6146107b75780637533d788146107cc5780637f5a22f9146107ec57600080fd5b80633d8b38f6116102e257806355f804b3116102755780636aa99da3116102445780636aa99da31461072c5780636c0360eb1461074257806370a082311461075757806370c5668d1461077757600080fd5b806355f804b31461067d5780635b8c41e61461069d5780636352211e146106ec57806366ad5c8a1461070c57600080fd5b80634f913416116102b15780634f91341614610624578063518302271461063a578063519056361461065457806354c06aee1461066757600080fd5b80633d8b38f6146105ae57806342842e0e146105ce57806342d65a8d146105ee57806344d19d2b1461060e57600080fd5b80630a3025301161035a57806323b872dd1161032957806323b872dd146105315780632a205e3d146105515780633c952764146105865780633ccfd60b146105a657600080fd5b80630a302530146104c257806310ddb137146104e65780631249c58b146105065780631b55d2161461051b57600080fd5b806307e0db171161039657806307e0db1714610435578063081812fc14610455578063081c8c441461048d578063095ea7b3146104a257600080fd5b80621d3567146103bc57806301ffc9a7146103de57806306fdde0314610413575b600080fd5b3480156103c857600080fd5b506103dc6103d7366004613b71565b610b4b565b005b3480156103ea57600080fd5b506103fe6103f936600461392d565b610cf2565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b50610428610d15565b60405161040a9190613ee8565b34801561044157600080fd5b506103dc610450366004613a15565b610da7565b34801561046157600080fd5b50610475610470366004613914565b610e4b565b6040516001600160a01b03909116815260200161040a565b34801561049957600080fd5b50610428610ee0565b3480156104ae57600080fd5b506103dc6104bd366004613841565b610f6e565b3480156104ce57600080fd5b506104d860165481565b60405190815260200161040a565b3480156104f257600080fd5b506103dc610501366004613a15565b611084565b34801561051257600080fd5b506103dc6110fe565b34801561052757600080fd5b506104d860145481565b34801561053d57600080fd5b506103dc61054c3660046136a7565b61123d565b34801561055d57600080fd5b5061057161056c366004613a82565b61126f565b6040805192835260208301919091520161040a565b34801561059257600080fd5b506103dc6105a13660046138f9565b611349565b6103dc61138f565b3480156105ba57600080fd5b506103fe6105c9366004613a30565b61141c565b3480156105da57600080fd5b506103dc6105e93660046136a7565b6114e8565b3480156105fa57600080fd5b506103dc610609366004613a30565b611503565b34801561061a57600080fd5b506104d860135481565b34801561063057600080fd5b506104d8600f5481565b34801561064657600080fd5b506015546103fe9060ff1681565b6103dc610662366004613788565b6115b4565b34801561067357600080fd5b506104d860175481565b34801561068957600080fd5b506103dc6106983660046139e1565b6115c3565b3480156106a957600080fd5b506104d86106b8366004613b10565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156106f857600080fd5b50610475610707366004613914565b611604565b34801561071857600080fd5b506103dc610727366004613b71565b61167b565b34801561073857600080fd5b506104d8600d5481565b34801561074e57600080fd5b506104286116eb565b34801561076357600080fd5b506104d8610772366004613651565b6116f8565b34801561078357600080fd5b506103dc6107923660046138f9565b61177f565b3480156107a357600080fd5b506103dc6107b23660046138ae565b6117c3565b3480156107c357600080fd5b506103dc61199e565b3480156107d857600080fd5b506104286107e7366004613a15565b6119d4565b3480156107f857600080fd5b506103dc610807366004613651565b6119ed565b34801561081857600080fd5b506103dc610827366004613914565b611a39565b34801561083857600080fd5b506000546001600160a01b0316610475565b34801561085657600080fd5b50610428611a68565b34801561086b57600080fd5b506103dc61087a366004613ca8565b611a77565b34801561088b57600080fd5b506103dc61089a366004613753565b611b12565b3480156108ab57600080fd5b506104d860105481565b3480156108c157600080fd5b506103dc611b1d565b3480156108d657600080fd5b506103dc6108e536600461386d565b611b56565b3480156108f657600080fd5b506104757f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67581565b34801561092a57600080fd5b506103dc6109393660046136e8565b611cdc565b34801561094a57600080fd5b506104d860115481565b6103dc610962366004613d00565b611d0e565b34801561097357600080fd5b506015546103fe9062010000900460ff1681565b34801561099357600080fd5b50610428611e12565b3480156109a857600080fd5b506104286109b7366004613914565b611e1f565b3480156109c857600080fd5b506103dc6109d7366004613c3a565b611f81565b3480156109e857600080fd5b506104d860125481565b6103dc610a00366004613b71565b612038565b348015610a1157600080fd5b506103dc610a20366004613914565b61218a565b348015610a3157600080fd5b506104d8600e5481565b348015610a4757600080fd5b506103fe610a5636600461366e565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610a9057600080fd5b506103dc610a9f366004613a30565b6121b9565b6103dc612235565b348015610ab857600080fd5b506103dc610ac73660046139e1565b612320565b348015610ad857600080fd5b506103dc610ae7366004613651565b61235d565b348015610af857600080fd5b506015546103fe90610100900460ff1681565b348015610b1757600080fd5b50610428610b26366004613bed565b6123f5565b348015610b3757600080fd5b506103dc610b46366004613914565b6124b7565b337f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031614610bc85760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff841660009081526001602052604081208054610be6906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610c12906142cc565b8015610c5f5780601f10610c3457610100808354040283529160200191610c5f565b820191906000526020600020905b815481529060010190602001808311610c4257829003601f168201915b5050505050905080518451148015610c84575080805190602001208480519060200120145b610cdf5760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608401610bbf565b610ceb858585856124f5565b5050505050565b60006001600160e01b031982161580610d0f5750610d0f826125e6565b92915050565b606060038054610d24906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610d50906142cc565b8015610d9d5780601f10610d7257610100808354040283529160200191610d9d565b820191906000526020600020905b815481529060010190602001808311610d8057829003601f168201915b5050505050905090565b6000546001600160a01b03163314610dd15760405162461bcd60e51b8152600401610bbf90613f9b565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b0316906307e0db17906024015b600060405180830381600087803b158015610e3757600080fd5b505af1158015610ceb573d6000803e3d6000fd5b6000818152600560205260408120546001600160a01b0316610ec45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bbf565b506000908152600760205260409020546001600160a01b031690565b600c8054610eed906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610f19906142cc565b8015610f665780601f10610f3b57610100808354040283529160200191610f66565b820191906000526020600020905b815481529060010190602001808311610f4957829003601f168201915b505050505081565b6000610f7982611604565b9050806001600160a01b0316836001600160a01b03161415610fe75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bbf565b336001600160a01b038216148061100357506110038133610a56565b6110755760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bbf565b61107f8383612626565b505050565b6000546001600160a01b031633146110ae5760405162461bcd60e51b8152600401610bbf90613f9b565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b0316906310ddb13790602401610e1d565b600260095414156111215760405162461bcd60e51b8152600401610bbf90614021565b600260095560155462010000900460ff16156111715760405162461bcd60e51b815260206004820152600f60248201526e1bdb9b1e481ddb08185b1b1bddd959608a1b6044820152606401610bbf565b601354600e546111819190614289565b600d54106111a15760405162461bcd60e51b8152600401610bbf90613f6f565b601054336000908152601b6020526040902054106111f95760405162461bcd60e51b81526020600482015260156024820152741859191c995cdcc81b1a5b5a5d081c995858da1959605a1b6044820152606401610bbf565b61121633600d6000815461120c90614307565b9182905550612694565b336000908152601b6020526040812080549161123183614307565b90915550506001600955565b611248335b826126ae565b6112645760405162461bcd60e51b8152600401610bbf90613fd0565b61107f8383836127a4565b60008060008686604051602001611287929190613efb565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906340a7bb10906112eb908b90309086908b908b90600401614058565b604080518083038186803b15801561130257600080fd5b505afa158015611316573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133a9190613d25565b92509250509550959350505050565b6000546001600160a01b031633146113735760405162461bcd60e51b8152600401610bbf90613f9b565b60158054911515620100000262ff000019909216919091179055565b6000546001600160a01b031633146113b95760405162461bcd60e51b8152600401610bbf90613f9b565b600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114611406576040519150601f19603f3d011682016040523d82523d6000602084013e61140b565b606091505b505090508061141957600080fd5b50565b61ffff83166000908152600160205260408120805482919061143d906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611469906142cc565b80156114b65780601f1061148b576101008083540402835291602001916114b6565b820191906000526020600020905b81548152906001019060200180831161149957829003601f168201915b5050505050905083836040516114cd929190613dbb565b60405180910390208180519060200120149150509392505050565b61107f83838360405180602001604052806000815250611cdc565b6000546001600160a01b0316331461152d5760405162461bcd60e51b8152600401610bbf90613f9b565b6040516342d65a8d60e01b81526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd67516906342d65a8d9061157d908690869086906004016140ac565b600060405180830381600087803b15801561159757600080fd5b505af11580156115ab573d6000803e3d6000fd5b50505050505050565b6115ab87878787878787612940565b6000546001600160a01b031633146115ed5760405162461bcd60e51b8152600401610bbf90613f9b565b805161160090600a9060208401906133f6565b5050565b6000818152600560205260408120546001600160a01b031680610d0f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bbf565b3330146116d95760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610bbf565b6116e584848484612a97565b50505050565b600a8054610eed906142cc565b60006001600160a01b0382166117635760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bbf565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146117a95760405162461bcd60e51b8152600401610bbf90613f9b565b601580549115156101000261ff0019909216919091179055565b600260095414156117e65760405162461bcd60e51b8152600401610bbf90614021565b6002600955601354600e546117fb9190614289565b81600d54611809919061425d565b11156118275760405162461bcd60e51b8152600401610bbf90613f6f565b600f543360009081526019602052604090205461184590839061425d565b11156118865760405162461bcd60e51b815260206004820152601060248201526f1bd9c81b1a5b5a5d081c995858da195960821b6044820152606401610bbf565b6118fc838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506016546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b60405160208183030381529060405280519060200120612b32565b6119435760405162461bcd60e51b81526020600482015260186024820152771859191c995cdcc81a5cc81b9bdd081bdb8818481b1a5cdd60421b6044820152606401610bbf565b60015b8181116119935761196033600d6000815461120c90614307565b33600090815260196020526040812080549161197b83614307565b9190505550808061198b90614307565b915050611946565b505060016009555050565b6000546001600160a01b031633146119c85760405162461bcd60e51b8152600401610bbf90613f9b565b6119d26000612b48565b565b60016020526000908152604090208054610eed906142cc565b6000546001600160a01b03163314611a175760405162461bcd60e51b8152600401610bbf90613f9b565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a635760405162461bcd60e51b8152600401610bbf90613f9b565b601755565b606060048054610d24906142cc565b6018546001600160a01b03163314611ac85760405162461bcd60e51b815260206004820152601460248201527377726f6e6720627269646765206164647265737360601b6044820152606401610bbf565b611ad28284612694565b7f401dfca18ae7a5d809f30cfb9ac3338403b2a97be8f239bdfe9dcccdd8294e25838383604051611b05939291906141dc565b60405180910390a1505050565b611600338383612b98565b6000546001600160a01b03163314611b475760405162461bcd60e51b8152600401610bbf90613f9b565b6015805460ff19166001179055565b60026009541415611b795760405162461bcd60e51b8152600401610bbf90614021565b6002600955601354600e54611b8e9190614289565b600d5410611bae5760405162461bcd60e51b8152600401610bbf90613f6f565b336000908152601a602052604090205460ff1615611bff5760405162461bcd60e51b815260206004820152600e60248201526d185b1c99591e4818db185a5b595960921b6044820152606401610bbf565b611c5e828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506017546040516bffffffffffffffffffffffff193360601b16602082015290925060340190506118e1565b611ca55760405162461bcd60e51b81526020600482015260186024820152771859191c995cdcc81a5cc81b9bdd081bdb8818481b1a5cdd60421b6044820152606401610bbf565b611cb833600d6000815461120c90614307565b5050336000908152601a60205260409020805460ff19166001908117909155600955565b611ce633836126ae565b611d025760405162461bcd60e51b8152600401610bbf90613fd0565b6116e584848484612c67565b611d1783611604565b6001600160a01b0316336001600160a01b031614611d665760405162461bcd60e51b815260206004820152600c60248201526b34b9903737ba1037bbb732b960a11b6044820152606401610bbf565b6018546040516000916001600160a01b03169034908381818185875af1925050503d8060008114611db3576040519150601f19603f3d011682016040523d82523d6000602084013e611db8565b606091505b5050905080611dc657600080fd5b611dcf84612c9a565b7fed4bcd3e2673a99c9bb43226fade4ff5a6e6408d3772c675335ef916aa2b044783858434604051611e0494939291906141a8565b60405180910390a150505050565b600b8054610eed906142cc565b6000818152600560205260409020546060906001600160a01b0316611e865760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610bbf565b60155460ff16611f2257600c8054611e9d906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611ec9906142cc565b8015611f165780601f10611eeb57610100808354040283529160200191611f16565b820191906000526020600020905b815481529060010190602001808311611ef957829003601f168201915b50505050509050919050565b6000611f2c612d35565b90506000815111611f4c5760405180602001604052806000815250611f7a565b80611f5684612d44565b600b604051602001611f6a93929190613de7565b6040516020818303038152906040525b9392505050565b6000546001600160a01b03163314611fab5760405162461bcd60e51b8152600401610bbf90613f9b565b6040516332fb62e760e21b81526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063cbed8b9c90611fff908890889088908890889060040161417a565b600060405180830381600087803b15801561201957600080fd5b505af115801561202d573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051612059908690613dcb565b90815260408051602092819003830190206001600160401b038616600090815292529020549050806120d95760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610bbf565b8151602083012081146121385760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610bbf565b61ffff85166000908152600260205260408082209051612159908790613dcb565b90815260408051602092819003830190206001600160401b03871660009081529252902055610ceb85858585612a97565b6000546001600160a01b031633146121b45760405162461bcd60e51b8152600401610bbf90613f9b565b601655565b6000546001600160a01b031633146121e35760405162461bcd60e51b8152600401610bbf90613f9b565b61ffff8316600090815260016020526040902061220190838361347a565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051611b05939291906140ac565b600260095414156122585760405162461bcd60e51b8152600401610bbf90614021565b6002600955601554610100900460ff166122a15760405162461bcd60e51b815260206004820152600a6024820152696e6f742061637469766560b01b6044820152606401610bbf565b600e54600d54106122c45760405162461bcd60e51b8152600401610bbf90613f6f565b6014543410156123065760405162461bcd60e51b815260206004820152600d60248201526c76616c756520746f6f206c6f7760981b6044820152606401610bbf565b61231933600d6000815461120c90614307565b6001600955565b6000546001600160a01b0316331461234a5760405162461bcd60e51b8152600401610bbf90613f9b565b805161160090600c9060208401906133f6565b6000546001600160a01b031633146123875760405162461bcd60e51b8152600401610bbf90613f9b565b6001600160a01b0381166123ec5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bbf565b61141981612b48565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b03169063f5ecbdbc9060840160006040518083038186803b15801561247057600080fd5b505afa158015612484573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124ac9190810190613967565b90505b949350505050565b6000546001600160a01b031633146124e15760405162461bcd60e51b8152600401610bbf90613f9b565b601455565b6001600160a01b03163b151590565b604051633356ae4560e11b815230906366ad5c8a9061251e908790879087908790600401614131565b600060405180830381600087803b15801561253857600080fd5b505af1925050508015612549575060015b6116e5578080519060200120600260008661ffff1661ffff1681526020019081526020016000208460405161257e9190613dcb565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d906125d9908690869086908690614131565b60405180910390a16116e5565b60006001600160e01b031982166380ac58cd60e01b148061261757506001600160e01b03198216635b5e139f60e01b145b80610d0f5750610d0f82612e41565b600081815260076020526040902080546001600160a01b0319166001600160a01b038416908117909155819061265b82611604565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611600828260405180602001604052806000815250612e76565b6000818152600560205260408120546001600160a01b03166127275760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bbf565b600061273283611604565b9050806001600160a01b0316846001600160a01b0316148061277957506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b806124af5750836001600160a01b031661279284610e4b565b6001600160a01b031614949350505050565b826001600160a01b03166127b782611604565b6001600160a01b03161461281b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610bbf565b6001600160a01b03821661287d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bbf565b612888600082612626565b6001600160a01b03831660009081526006602052604081208054600192906128b1908490614289565b90915550506001600160a01b03821660009081526006602052604081208054600192906128df90849061425d565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61294c87878787612ea9565b60008585604051602001612961929190613efb565b604051602081830303815290604052905061297f8782868686612f92565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b031690637a1457489060440160206040518083038186803b1580156129eb57600080fd5b505afa1580156129ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a239190613d49565b905086604051612a339190613dcb565b604080519182900382208883526001600160401b03841660208401529161ffff8b16916001600160a01b038d16917f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce1543910160405180910390a4505050505050505050565b60008082806020019051810190612aae919061399b565b60148201519193509150612ac387828461312c565b806001600160a01b031686604051612adb9190613dcb565b604080519182900382208583526001600160401b03891660208401529161ffff8b16917f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba910160405180910390a450505050505050565b600082612b3f8584613136565b14949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03161415612bfa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bbf565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c728484846127a4565b612c7e848484846131aa565b6116e55760405162461bcd60e51b8152600401610bbf90613f1d565b6000612ca582611604565b9050612cb2600083612626565b6001600160a01b0381166000908152600660205260408120805460019290612cdb908490614289565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6060600a8054610d24906142cc565b606081612d685750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d925780612d7c81614307565b9150612d8b9050600a83614275565b9150612d6c565b6000816001600160401b03811115612dac57612dac614378565b6040519080825280601f01601f191660200182016040528015612dd6576020820181803683370190505b5090505b84156124af57612deb600183614289565b9150612df8600a86614322565b612e0390603061425d565b60f81b818381518110612e1857612e18614362565b60200101906001600160f81b031916908160001a905350612e3a600a86614275565b9450612dda565b60006001600160e01b03198216637bb0080b60e01b1480610d0f57506301ffc9a760e01b6001600160e01b0319831614610d0f565b612e8083836132b4565b612e8d60008484846131aa565b61107f5760405162461bcd60e51b8152600401610bbf90613f1d565b612eb233611242565b612f155760405162461bcd60e51b815260206004820152602e60248201527f4f4e46543732313a2073656e642063616c6c6572206973206e6f74206f776e6560448201526d1c881b9bdc88185c1c1c9bdd995960921b6064820152608401610bbf565b836001600160a01b0316612f2882611604565b6001600160a01b031614612f895760405162461bcd60e51b815260206004820152602260248201527f4f4e46543732313a2073656e642066726f6d20696e636f7272656374206f776e60448201526132b960f11b6064820152608401610bbf565b6116e581612c9a565b61ffff851660009081526001602052604081208054612fb0906142cc565b80601f0160208091040260200160405190810160405280929190818152602001828054612fdc906142cc565b80156130295780601f10612ffe57610100808354040283529160200191613029565b820191906000526020600020905b81548152906001019060200180831161300c57829003601f168201915b5050505050905080516000141561309b5760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610bbf565b60405162c5803160e81b81526001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675169063c58031009034906130f2908a9086908b908b908b908b906004016140ca565b6000604051808303818588803b15801561310b57600080fd5b505af115801561311f573d6000803e3d6000fd5b5050505050505050505050565b61107f8282612694565b600081815b84518110156131a257600085828151811061315857613158614362565b6020026020010151905080831161317e576000838152602082905260409020925061318f565b600081815260208490526040902092505b508061319a81614307565b91505061313b565b509392505050565b60006001600160a01b0384163b156132ac57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131ee903390899088908890600401613eab565b602060405180830381600087803b15801561320857600080fd5b505af1925050508015613238575060408051601f3d908101601f191682019092526132359181019061394a565b60015b613292573d808015613266576040519150601f19603f3d011682016040523d82523d6000602084013e61326b565b606091505b50805161328a5760405162461bcd60e51b8152600401610bbf90613f1d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124af565b5060016124af565b6001600160a01b03821661330a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bbf565b6000818152600560205260409020546001600160a01b03161561336f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bbf565b6001600160a01b038216600090815260066020526040812080546001929061339890849061425d565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613402906142cc565b90600052602060002090601f016020900481019282613424576000855561346a565b82601f1061343d57805160ff191683800117855561346a565b8280016001018555821561346a579182015b8281111561346a57825182559160200191906001019061344f565b506134769291506134ee565b5090565b828054613486906142cc565b90600052602060002090601f0160209004810192826134a8576000855561346a565b82601f106134c15782800160ff1982351617855561346a565b8280016001018555821561346a579182015b8281111561346a5782358255916020019190600101906134d3565b5b8082111561347657600081556001016134ef565b60008083601f84011261351557600080fd5b5081356001600160401b0381111561352c57600080fd5b6020830191508360208260051b850101111561354757600080fd5b9250929050565b8035801515811461355e57600080fd5b919050565b60008083601f84011261357557600080fd5b5081356001600160401b0381111561358c57600080fd5b60208301915083602082850101111561354757600080fd5b600082601f8301126135b557600080fd5b81356135c86135c382614236565b614206565b8181528460208386010111156135dd57600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261360b57600080fd5b81516136196135c382614236565b81815284602083860101111561362e57600080fd5b6124af8260208301602087016142a0565b803561ffff8116811461355e57600080fd5b60006020828403121561366357600080fd5b8135611f7a8161438e565b6000806040838503121561368157600080fd5b823561368c8161438e565b9150602083013561369c8161438e565b809150509250929050565b6000806000606084860312156136bc57600080fd5b83356136c78161438e565b925060208401356136d78161438e565b929592945050506040919091013590565b600080600080608085870312156136fe57600080fd5b84356137098161438e565b935060208501356137198161438e565b92506040850135915060608501356001600160401b0381111561373b57600080fd5b613747878288016135a4565b91505092959194509250565b6000806040838503121561376657600080fd5b82356137718161438e565b915061377f6020840161354e565b90509250929050565b600080600080600080600060e0888a0312156137a357600080fd5b87356137ae8161438e565b96506137bc6020890161363f565b955060408801356001600160401b03808211156137d857600080fd5b6137e48b838c016135a4565b965060608a0135955060808a013591506137fd8261438e565b90935060a08901359061380f8261438e565b90925060c0890135908082111561382557600080fd5b506138328a828b016135a4565b91505092959891949750929550565b6000806040838503121561385457600080fd5b823561385f8161438e565b946020939093013593505050565b6000806020838503121561388057600080fd5b82356001600160401b0381111561389657600080fd5b6138a285828601613503565b90969095509350505050565b6000806000604084860312156138c357600080fd5b83356001600160401b038111156138d957600080fd5b6138e586828701613503565b909790965060209590950135949350505050565b60006020828403121561390b57600080fd5b611f7a8261354e565b60006020828403121561392657600080fd5b5035919050565b60006020828403121561393f57600080fd5b8135611f7a816143a3565b60006020828403121561395c57600080fd5b8151611f7a816143a3565b60006020828403121561397957600080fd5b81516001600160401b0381111561398f57600080fd5b6124af848285016135fa565b600080604083850312156139ae57600080fd5b82516001600160401b038111156139c457600080fd5b6139d0858286016135fa565b925050602083015190509250929050565b6000602082840312156139f357600080fd5b81356001600160401b03811115613a0957600080fd5b6124af848285016135a4565b600060208284031215613a2757600080fd5b611f7a8261363f565b600080600060408486031215613a4557600080fd5b613a4e8461363f565b925060208401356001600160401b03811115613a6957600080fd5b613a7586828701613563565b9497909650939450505050565b600080600080600060a08688031215613a9a57600080fd5b613aa38661363f565b945060208601356001600160401b0380821115613abf57600080fd5b613acb89838a016135a4565b955060408801359450613ae06060890161354e565b93506080880135915080821115613af657600080fd5b50613b03888289016135a4565b9150509295509295909350565b600080600060608486031215613b2557600080fd5b613b2e8461363f565b925060208401356001600160401b03811115613b4957600080fd5b613b55868287016135a4565b9250506040840135613b66816143b9565b809150509250925092565b60008060008060808587031215613b8757600080fd5b613b908561363f565b935060208501356001600160401b0380821115613bac57600080fd5b613bb8888389016135a4565b945060408701359150613bca826143b9565b90925060608601359080821115613be057600080fd5b50613747878288016135a4565b60008060008060808587031215613c0357600080fd5b613c0c8561363f565b9350613c1a6020860161363f565b92506040850135613c2a8161438e565b9396929550929360600135925050565b600080600080600060808688031215613c5257600080fd5b613c5b8661363f565b9450613c696020870161363f565b93506040860135925060608601356001600160401b03811115613c8b57600080fd5b613c9788828901613563565b969995985093965092949392505050565b600080600060608486031215613cbd57600080fd5b833592506020840135613ccf8161438e565b915060408401356001600160401b03811115613cea57600080fd5b613cf6868287016135a4565b9150509250925092565b600080600060608486031215613d1557600080fd5b83359250613ccf6020850161363f565b60008060408385031215613d3857600080fd5b505080516020909101519092909150565b600060208284031215613d5b57600080fd5b8151611f7a816143b9565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008151808452613da78160208601602086016142a0565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008251613ddd8184602087016142a0565b9190910192915050565b600084516020613dfa8285838a016142a0565b855191840191613e0d8184848a016142a0565b8554920191600090600181811c9080831680613e2a57607f831692505b858310811415613e4857634e487b7160e01b85526022600452602485fd5b808015613e5c5760018114613e6d57613e9a565b60ff19851688528388019550613e9a565b60008b81526020902060005b85811015613e925781548a820152908401908801613e79565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ede90830184613d8f565b9695505050505050565b602081526000611f7a6020830184613d8f565b604081526000613f0e6040830185613d8f565b90508260208301529392505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601290820152711b585e081cdd5c1c1b1e481c995858da195960721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b61ffff861681526001600160a01b038516602082015260a06040820181905260009061408690830186613d8f565b841515606084015282810360808401526140a08185613d8f565b98975050505050505050565b61ffff841681526040602082015260006124ac604083018486613d66565b61ffff8716815260c0602082015260006140e760c0830188613d8f565b82810360408401526140f98188613d8f565b6001600160a01b0387811660608601528616608085015283810360a085015290506141248185613d8f565b9998505050505050505050565b61ffff8516815260806020820152600061414e6080830186613d8f565b6001600160401b0385166040840152828103606084015261416f8185613d8f565b979650505050505050565b600061ffff80881683528087166020840152508460408301526080606083015261416f608083018486613d66565b61ffff851681528360208201526080604082015260006141cb6080830185613d8f565b905082606083015295945050505050565b8381526001600160a01b03831660208201526060604082018190526000906124ac90830184613d8f565b604051601f8201601f191681016001600160401b038111828210171561422e5761422e614378565b604052919050565b60006001600160401b0382111561424f5761424f614378565b50601f01601f191660200190565b6000821982111561427057614270614336565b500190565b6000826142845761428461434c565b500490565b60008282101561429b5761429b614336565b500390565b60005b838110156142bb5781810151838201526020016142a3565b838111156116e55750506000910152565b600181811c908216806142e057607f821691505b6020821081141561430157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561431b5761431b614336565b5060010190565b6000826143315761433161434c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461141957600080fd5b6001600160e01b03198116811461141957600080fd5b6001600160401b038116811461141957600080fdfea264697066735822122035572e0b0f99ae3b9044b68428f74a922bf745aca651950b53f5fbdae9cd0e2864736f6c63430008070033
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.