ERC-721
Overview
Max Total Supply
7,500 THEUNIS
Holders
1,815
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheUnis
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // chibidbs.com pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./ERC721Accesslist.sol"; import "./NonblockingReceiver.sol"; /* * @title The Unis - ETHEREUM * TheUnis - a contract for the The Unis */ contract TheUnis is ERC721Accesslist, NonblockingReceiver { // set the max supply ever - although we may lock this to a lower number this sets a total upper bound uint256 constant maxEverSupply = 10000; bool public changeSupplyLocked = false; // fix the max supply for good bool public publicSaleActive = false; //public sale active uint public maxTokenPurchase = 50; // what's the max someone can buy uint public maxAccesslistPurchase = 2; // what's the max someone on the access list can buy //////////////////////////////////////////////////////////////////////////////////////// // Ethereum Settings // Current Network : MAINNET //////////////////////////////////////////////////////////////////////////////////////// address public layerZeroEndpoint = 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675; // Mainnet endpoint uint256 public baseTokenId = 0; uint256 public maxSupply = 7500; // current release limit - can change to allow second mint, or to allow accesslist limits uint256 public basePrice = 10000000000000000; //0.010 ETH uint256 public accesslistPrice = 10000000000000000; //0.010 ETH // set provenance string public PROVENANCE; // url data for the meta data string public tokenURIPrefix = ""; uint256 gasForDestinationLzReceive = 350000; constructor() ERC721Accesslist("TheUnis", "THEUNIS") { endpoint = ILayerZeroEndpoint(layerZeroEndpoint); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } // token meta data url functions function baseTokenURI() override public view returns (string memory) { return tokenURIPrefix; } function updateTokenURIPrefix(string memory newPrefix) external onlyOwner { tokenURIPrefix = newPrefix; } // get and set the public sale state function setPublicSale(bool _setSaleState) public onlyOwner{ publicSaleActive = _setSaleState; } // allow us to slowly release up to the max ever supply function setMaxSupply(uint _maxSupply) public onlyOwner{ if (_maxSupply <= maxEverSupply && !changeSupplyLocked) maxSupply = _maxSupply; } function lockSupply() virtual public onlyOwner{ changeSupplyLocked = true; } function setProvenance(string memory provenance) public onlyOwner { PROVENANCE = provenance; } // set a new price for the main mint function updatePrice(uint _newPrice) public onlyOwner{ basePrice = _newPrice; } // set a new price for the access list mint function updateAccesslistPrice(uint newPrice) public onlyOwner{ accesslistPrice = newPrice; } // update the max number that can be minted in a single transaction in a public mint function updateMaxTokenPurchase(uint _maxTokenPurchase) public onlyOwner{ maxTokenPurchase = _maxTokenPurchase; } // update the total number that can be minted via an accesslist function updateMaxAccesslistPurchase(uint _maxAccesslistPurchase) public onlyOwner{ maxAccesslistPurchase = _maxAccesslistPurchase; } // allow the owner to pre-mint or save a number of tokens function reserveTokens(uint _amount, address _receiver) public onlyOwner { uint256 newSupply = totalSupply + _amount; require(newSupply <= maxSupply, "MAX_SUPPLY_EXCEEDED"); for (uint256 i = 0; i < _amount; i++) { _mint(_receiver, totalSupply + i + baseTokenId); } // update the total supply totalSupply = newSupply; } // mint function mint(uint256 amount) external payable { require(amount != 0, "INVALID_AMOUNT"); require(publicSaleActive, "SALE_CLOSED"); require(amount <= maxTokenPurchase, "AMOUNT_EXCEEDS_MAX_PER_CALL"); require(amount * basePrice <= msg.value, "WRONG_ETH_AMOUNT"); uint256 newSupply = totalSupply + amount; require(newSupply <= maxSupply, "MAX_SUPPLY_EXCEEDED"); for (uint256 i = 0; i < amount; i++) { _mint(msg.sender, totalSupply + i + baseTokenId); } // update the totaly supply totalSupply = newSupply; } function accesslistMint(uint256 amount, bytes32[] calldata proof) public payable { // string memory payload = string(abi.encodePacked(msg.sender)); require(MerkleProof.verify(proof, accesslistRoot, keccak256(abi.encodePacked(msg.sender))), "BAD_MERKLE_PROOF"); require(accesslistSaleActive, "SALE_CLOSED"); require(amount <= maxTokenPurchase, "AMOUNT_EXCEEDS_MAX_PER_CALL"); require(amount * accesslistPrice <= msg.value, "WRONG_ETH_AMOUNT"); require(accesslistMinted[msg.sender] + amount <= maxAccesslistPurchase, "EXCEEDS_ALLOWANCE"); uint256 newSupply = totalSupply + amount; require(newSupply <= maxSupply, "MAX_SUPPLY_EXCEEDED"); accesslistMinted[msg.sender] += amount; for (uint256 i = 0; i < amount; i++) { _mint(msg.sender, totalSupply + i); } // update the totaly supply totalSupply = newSupply; } // This function transfers the nft from your address on the // source chain to the same address on the destination chain function traverseChains(uint16 _chainId, uint256 tokenId) public payable whenNotPaused { require( msg.sender == ownerOf(tokenId), "You must own the token to traverse" ); require( trustedRemoteLookup[_chainId].length > 0, "This chain is currently unavailable for travel" ); // burn NFT, eliminating it from circulation on src chain _burn(tokenId); // abi.encode() the payload with the values to send bytes memory payload = abi.encode(msg.sender, tokenId); // encode adapterParams to specify more gas for the destination uint16 version = 1; bytes memory adapterParams = abi.encodePacked( version, gasForDestinationLzReceive ); // get the fees we need to pay to LayerZero + Relayer to cover message delivery // you will be refunded for extra gas paid (uint256 messageFee, ) = endpoint.estimateFees( _chainId, address(this), payload, false, adapterParams ); require( msg.value >= messageFee, "the unis: msg.value not enough to cover messageFee. Send gas for message fees" ); endpoint.send{value: msg.value}( _chainId, // destination chainId trustedRemoteLookup[_chainId], // destination address of nft contract payload, // abi.encoded()'ed bytes payable(msg.sender), // refund address address(0x0), // 'zroPaymentAddress' unused for this adapterParams // txParameters ); } // just in case this fixed variable limits us from future integrations function setGasForDestinationLzReceive(uint256 newVal) external onlyOwner { gasForDestinationLzReceive = newVal; } // ------------------ // Internal Functions // ------------------ function _LzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal override { // decode (address toAddr, uint256 tokenId) = abi.decode( _payload, (address, uint256) ); // mint the tokens back into existence on destination chain _safeMint(toAddr, tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ILayerZeroEndpoint.sol"; import "./ILayerZeroReceiver.sol"; abstract contract NonblockingReceiver is Ownable, ILayerZeroReceiver { ILayerZeroEndpoint internal endpoint; struct FailedMessages { uint256 payloadLength; bytes32 payloadHash; } mapping(uint16 => mapping(bytes => mapping(uint256 => FailedMessages))) public failedMessages; mapping(uint16 => bytes) public trustedRemoteLookup; event MessageFailed( uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload ); function lzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) external override { require(msg.sender == address(endpoint)); // boilerplate! lzReceive must be called by the endpoint for security require( _srcAddress.length == trustedRemoteLookup[_srcChainId].length && keccak256(_srcAddress) == keccak256(trustedRemoteLookup[_srcChainId]), "NonblockingReceiver: invalid source sending contract" ); // try-catch all errors/exceptions // having failed messages does not block messages passing try this.onLzReceive(_srcChainId, _srcAddress, _nonce, _payload) { // do nothing } catch { // error / exception failedMessages[_srcChainId][_srcAddress][_nonce] = FailedMessages( _payload.length, keccak256(_payload) ); emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload); } } function onLzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) public { // only internal transaction require( msg.sender == address(this), "NonblockingReceiver: caller must be Bridge." ); // handle incoming message _LzReceive(_srcChainId, _srcAddress, _nonce, _payload); } // abstract function function _LzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual; function _lzSend( uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _txParam ) internal { endpoint.send{value: msg.value}( _dstChainId, trustedRemoteLookup[_dstChainId], _payload, _refundAddress, _zroPaymentAddress, _txParam ); } function retryMessage( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes calldata _payload ) external payable { // assert there is message to retry FailedMessages storage failedMsg = failedMessages[_srcChainId][ _srcAddress ][_nonce]; require( failedMsg.payloadHash != bytes32(0), "NonblockingReceiver: no stored message" ); require( _payload.length == failedMsg.payloadLength && keccak256(_payload) == failedMsg.payloadHash, "LayerZero: invalid payload" ); // clear the stored message failedMsg.payloadLength = 0; failedMsg.payloadHash = bytes32(0); // execute the message. revert if it fails again this.onLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } function setTrustedRemote(uint16 _chainId, bytes calldata _trustedRemote) external onlyOwner { trustedRemoteLookup[_chainId] = _trustedRemote; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; //import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; /** * @title ERC721Accesslist * ERC721Accesslist - ERC721 contract that has a Merkle based accesslist - which could also be used as a raffle */ abstract contract ERC721Accesslist is ERC721, Ownable, Pausable { using SafeMath for uint256; uint256 public totalSupply; bytes32 public accesslistRoot; bool public accesslistSaleActive; mapping(address => uint) public accesslistMinted; constructor( string memory _name, string memory _symbol ) ERC721(_name, _symbol) { } function baseTokenURI() virtual public view returns (string memory); function tokenURI(uint256 _tokenId) override public view returns (string memory) { return string(abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId), ".json")); } // pausable functions /** * @dev Before the token is transferred - ensure it's not paused * */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal whenNotPaused override(ERC721) { super._beforeTokenTransfer(from, to, amount); } /** * @dev Pauses all token transfers. * * See {ERC721Pausable} and {Pausable-_pause}. * */ function pause() public onlyOwner { _pause(); } /** * @dev Unpauses all token transfers. * * See {ERC721Pausable} and {Pausable-_unpause}. * */ function unpause() public onlyOwner { _unpause(); } // get a list of tokens owned by someone function tokensOfOwner(address _owner) external view returns(uint256[] memory ownerTokens) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { // Return an empty array return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 totalItems = totalSupply; uint256 resultIndex = 0; // We count on the fact that all items have IDs starting at 1 and increasing // sequentially up to the totalItems count. uint256 itemId; for (itemId = 1; itemId <= totalItems; itemId++) { if (ownerOf(itemId) == _owner) { result[resultIndex] = itemId; resultIndex++; } } return result; } } // The following functions are overrides required by Solidity. function supportsInterface(bytes4 interfaceId) public view override(ERC721) returns (bool) { return super.supportsInterface(interfaceId); } // get and set the accesslist sale state function setAccesslistSale(bool _setSaleState) public onlyOwner{ accesslistSaleActive = _setSaleState; } // set the accesslist root function setAccesslistRoot(bytes32 _accesslistRoot) external onlyOwner { accesslistRoot = _accesslistRoot; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ 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 Merklee 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) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface ILayerZeroReceiver { // @notice LayerZero endpoint will invoke this function to deliver the message on the destination // @param _srcChainId - the source endpoint identifier // @param _srcAddress - the source sending contract address from the source chain // @param _nonce - the ordered message nonce // @param _payload - the signed payload is the UA bytes has encoded to be sent function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "./ILayerZeroUserApplicationConfig.sol"; interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig { // @notice send a LayerZero message to the specified address at a LayerZero endpoint. // @param _dstChainId - the destination chain identifier // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains // @param _payload - a custom bytes payload to send to the destination contract // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable; // @notice used by the messaging library to publish verified payload // @param _srcChainId - the source chain identifier // @param _srcAddress - the source contract (as bytes) at the source chain // @param _dstAddress - the address on destination chain // @param _nonce - the unbound message ordering nonce // @param _gasLimit - the gas limit for external contract execution // @param _payload - verified payload to send to the destination contract function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external; // @notice get the inboundNonce of a lzApp from a source chain which could be EVM or non-EVM chain // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64); // @notice get the outboundNonce from this source chain which, consequently, is always an EVM // @param _srcAddress - the source chain contract address function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64); // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery // @param _dstChainId - the destination chain identifier // @param _userApplication - the user app address on this EVM chain // @param _payload - the custom message to send over LayerZero // @param _payInZRO - if false, user app pays the protocol fee in native token // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee); // @notice get this Endpoint's immutable source identifier function getChainId() external view returns (uint16); // @notice the interface to retry failed message on this Endpoint destination // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address // @param _payload - the payload to be retried function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external; // @notice query if any STORED payload (message blocking) at the endpoint. // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool); // @notice query if the _libraryAddress is valid for sending msgs. // @param _userApplication - the user app address on this EVM chain function getSendLibraryAddress(address _userApplication) external view returns (address); // @notice query if the _libraryAddress is valid for receiving msgs. // @param _userApplication - the user app address on this EVM chain function getReceiveLibraryAddress(address _userApplication) external view returns (address); // @notice query if the non-reentrancy guard for send() is on // @return true if the guard is on. false otherwise function isSendingPayload() external view returns (bool); // @notice query if the non-reentrancy guard for receive() is on // @return true if the guard is on. false otherwise function isReceivingPayload() external view returns (bool); // @notice get the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _userApplication - the contract address of the user application // @param _configType - type of configuration. every messaging library has its own convention. function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory); // @notice get the send() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getSendVersion(address _userApplication) external view returns (uint16); // @notice get the lzReceive() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getReceiveVersion(address _userApplication) external view returns (uint16); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @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); } /** * @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 of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(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 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 {} }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface ILayerZeroUserApplicationConfig { // @notice set the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _configType - type of configuration. every messaging library has its own convention. // @param _config - configuration in the bytes. can encode arbitrary content. function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external; // @notice set the send() LayerZero messaging library version to _version // @param _version - new messaging library version function setSendVersion(uint16 _version) external; // @notice set the lzReceive() LayerZero messaging library version to _version // @param _version - new messaging library version function setReceiveVersion(uint16 _version) external; // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload // @param _srcChainId - the chainId of the source chain // @param _srcAddress - the contract address of the source contract at the source chain function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 2000 }, "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":"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"accesslistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accesslistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accesslistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accesslistRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accesslistSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"basePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"changeSupplyLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"failedMessages","outputs":[{"internalType":"uint256","name":"payloadLength","type":"uint256"},{"internalType":"bytes32","name":"payloadHash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"layerZeroEndpoint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxAccesslistPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"onLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_accesslistRoot","type":"bytes32"}],"name":"setAccesslistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_setSaleState","type":"bool"}],"name":"setAccesslistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setGasForDestinationLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_setSaleState","type":"bool"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"bytes","name":"_trustedRemote","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"traverseChains","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"updateAccesslistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxAccesslistPurchase","type":"uint256"}],"name":"updateMaxAccesslistPurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokenPurchase","type":"uint256"}],"name":"updateMaxTokenPurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newPrefix","type":"string"}],"name":"updateTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600e805461ffff191690556032600f556002601055601180546001600160a01b0319167366a71dcef29a0ffbdbe3c6a460a3b5bc225cd67517905560006012819055611d4c601355662386f26fc10000601481905560155560a060408190526080829052620000729160179190620001a2565b50620557306018553480156200008757600080fd5b5060405180604001604052806007815260200166546865556e697360c81b81525060405180604001604052806007815260200166544845554e495360c81b81525081818160009080519060200190620000e2929190620001a2565b508051620000f8906001906020840190620001a2565b505050620001156200010f6200014c60201b60201c565b62000150565b50506006805460ff60a01b19169055601154600b80546001600160a01b0319166001600160a01b0390921691909117905562000285565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001b09062000248565b90600052602060002090601f016020900481019282620001d457600085556200021f565b82601f10620001ef57805160ff19168380011785556200021f565b828001600101855582156200021f579182015b828111156200021f57825182559160200191906001019062000202565b506200022d92915062000231565b5090565b5b808211156200022d576000815560010162000232565b600181811c908216806200025d57607f821691505b602082108114156200027f57634e487b7160e01b600052602260045260246000fd5b50919050565b61423780620002956000396000f3fe60806040526004361061038b5760003560e01c8063715018a6116101dc578063bc8893b411610102578063d1deba1f116100a0578063e985e9c51161006f578063e985e9c514610a1d578063eb8d72b714610a66578063f2fde38b14610a86578063ffe630b514610aa657600080fd5b8063d1deba1f146109c9578063d547cfb7146109dc578063d5abeb01146109f1578063e45be46114610a0757600080fd5b8063c87b56dd116100dc578063c87b56dd14610956578063c9b20f1414610976578063cc77a83e14610996578063cf89fa03146109b657600080fd5b8063bc8893b41461090c578063c0ac99831461092b578063c7876ea41461094057600080fd5b80638ee749121161017a578063a22cb46511610149578063a22cb46514610892578063a9875558146108b2578063b88d4fde146108d2578063bbb64dab146108f257600080fd5b80638ee74912146107df578063943fb8721461084a57806395d89b411461086a578063a0712d681461087f57600080fd5b80638456cb59116101b65780638456cb591461075f5780638462151c146107745780638d6cc56d146107a15780638da5cb5b146107c157600080fd5b8063715018a6146107155780637533d7881461072a57806381eaf99b1461074a57600080fd5b80631f32b057116102c157806357d190c91161025f5780636352211e1161022e5780636352211e146106a05780636373a6b1146106c05780636f8b44b0146106d557806370a08231146106f557600080fd5b806357d190c91461061457806358d81a41146106415780635aca1bb6146106615780635c975abb1461068157600080fd5b80633ccfd60b1161029b5780633ccfd60b146105aa5780633f4ba83a146105bf57806342842e0e146105d457806353d4c775146105f457600080fd5b80631f32b0571461054a57806323b872dd1461056a57806335f067cf1461058a57600080fd5b8063095ea7b31161032e5780630d191d40116103085780630d191d40146104e8578063123bd23b146104fe57806318160ddd146105145780631c37a8221461052a57600080fd5b8063095ea7b31461049f57806309aa3dcf146104bf5780630a78d85a146104d557600080fd5b806306fdde031161036a57806306fdde031461040157806307968db114610423578063081812fc1461045b5780630952c66d1461047b57600080fd5b80621d35671461039057806301ffc9a7146103b25780630628e2f9146103e7575b600080fd5b34801561039c57600080fd5b506103b06103ab366004613b85565b610ac6565b005b3480156103be57600080fd5b506103d26103cd3660046139b1565b610ce3565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b50600e546103d29060ff1681565b34801561040d57600080fd5b50610416610cf4565b6040516103de9190613e83565b34801561042f57600080fd5b50601154610443906001600160a01b031681565b6040516001600160a01b0390911681526020016103de565b34801561046757600080fd5b50610443610476366004613998565b610d86565b34801561048757600080fd5b5061049160125481565b6040519081526020016103de565b3480156104ab57600080fd5b506103b06104ba366004613951565b610e2c565b3480156104cb57600080fd5b50610491600f5481565b6103b06104e3366004613c3f565b610f5e565b3480156104f457600080fd5b5061049160085481565b34801561050a57600080fd5b5061049160155481565b34801561052057600080fd5b5061049160075481565b34801561053657600080fd5b506103b0610545366004613b85565b611265565b34801561055657600080fd5b506103b0610565366004613998565b6112e6565b34801561057657600080fd5b506103b061058536600461386f565b611345565b34801561059657600080fd5b506103b06105a53660046139eb565b6113cc565b3480156105b657600080fd5b506103b061143d565b3480156105cb57600080fd5b506103b06114c6565b3480156105e057600080fd5b506103b06105ef36600461386f565b61152a565b34801561060057600080fd5b506103b061060f366004613c1a565b611545565b34801561062057600080fd5b5061049161062f3660046137eb565b600a6020526000908152604090205481565b34801561064d57600080fd5b506103b061065c366004613998565b611647565b34801561066d57600080fd5b506103b061067c36600461397d565b6116a6565b34801561068d57600080fd5b50600654600160a01b900460ff166103d2565b3480156106ac57600080fd5b506104436106bb366004613998565b611737565b3480156106cc57600080fd5b506104166117c2565b3480156106e157600080fd5b506103b06106f0366004613998565b611850565b34801561070157600080fd5b506104916107103660046137eb565b6118cd565b34801561072157600080fd5b506103b0611967565b34801561073657600080fd5b50610416610745366004613a34565b6119cb565b34801561075657600080fd5b506103b06119e4565b34801561076b57600080fd5b506103b0611a4d565b34801561078057600080fd5b5061079461078f3660046137eb565b611aaf565b6040516103de9190613e3f565b3480156107ad57600080fd5b506103b06107bc366004613998565b611ba5565b3480156107cd57600080fd5b506006546001600160a01b0316610443565b3480156107eb57600080fd5b506108356107fa366004613aa2565b600c60209081526000938452604080852084518086018401805192815290840195840195909520945292905282529020805460019091015482565b604080519283526020830191909152016103de565b34801561085657600080fd5b506103b0610865366004613998565b611c04565b34801561087657600080fd5b50610416611c63565b6103b061088d366004613998565b611c72565b34801561089e57600080fd5b506103b06108ad36600461391c565b611e62565b3480156108be57600080fd5b506103b06108cd366004613998565b611f27565b3480156108de57600080fd5b506103b06108ed3660046138b0565b611f86565b3480156108fe57600080fd5b506009546103d29060ff1681565b34801561091857600080fd5b50600e546103d290610100900460ff1681565b34801561093757600080fd5b5061041661200e565b34801561094c57600080fd5b5061049160145481565b34801561096257600080fd5b50610416610971366004613998565b61201b565b34801561098257600080fd5b506103b0610991366004613998565b612055565b3480156109a257600080fd5b506103b06109b136600461397d565b6120b4565b6103b06109c4366004613bfe565b612121565b6103b06109d7366004613af9565b6124ea565b3480156109e857600080fd5b506104166126a8565b3480156109fd57600080fd5b5061049160135481565b348015610a1357600080fd5b5061049160105481565b348015610a2957600080fd5b506103d2610a38366004613836565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a7257600080fd5b506103b0610a81366004613a4f565b6126b7565b348015610a9257600080fd5b506103b0610aa13660046137eb565b61272f565b348015610ab257600080fd5b506103b0610ac13660046139eb565b61280e565b600b546001600160a01b03163314610add57600080fd5b61ffff84166000908152600d602052604090208054610afb90614102565b90508351148015610b3a575061ffff84166000908152600d6020526040908190209051610b289190613d3a565b60405180910390208380519060200120145b610bb15760405162461bcd60e51b815260206004820152603460248201527f4e6f6e626c6f636b696e6752656365697665723a20696e76616c696420736f7560448201527f7263652073656e64696e6720636f6e747261637400000000000000000000000060648201526084015b60405180910390fd5b6040517f1c37a8220000000000000000000000000000000000000000000000000000000081523090631c37a82290610bf3908790879087908790600401613f4a565b600060405180830381600087803b158015610c0d57600080fd5b505af1925050508015610c1e575060015b610cdd576040518060400160405280825181526020018280519060200120815250600c60008661ffff1661ffff16815260200190815260200160002084604051610c689190613d1e565b90815260408051918290036020908101832067ffffffffffffffff8716600090815290825291909120835181559201516001909201919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90610cd4908690869086908690613f4a565b60405180910390a15b50505050565b6000610cee8261287b565b92915050565b606060008054610d0390614102565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2f90614102565b8015610d7c5780601f10610d5157610100808354040283529160200191610d7c565b820191906000526020600020905b815481529060010190602001808311610d5f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e105760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ba8565b506000908152600460205260409020546001600160a01b031690565b6000610e3782611737565b9050806001600160a01b0316836001600160a01b03161415610ec15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ba8565b336001600160a01b0382161480610edd5750610edd8133610a38565b610f4f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ba8565b610f59838361295e565b505050565b610fe6828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506008546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b1660208201529092506034019050604051602081830303815290604052805190602001206129d9565b6110325760405162461bcd60e51b815260206004820152601060248201527f4241445f4d45524b4c455f50524f4f46000000000000000000000000000000006044820152606401610ba8565b60095460ff166110845760405162461bcd60e51b815260206004820152600b60248201527f53414c455f434c4f5345440000000000000000000000000000000000000000006044820152606401610ba8565b600f548311156110d65760405162461bcd60e51b815260206004820152601b60248201527f414d4f554e545f455843454544535f4d41585f5045525f43414c4c00000000006044820152606401610ba8565b34601554846110e591906140a0565b11156111335760405162461bcd60e51b815260206004820152601060248201527f57524f4e475f4554485f414d4f554e54000000000000000000000000000000006044820152606401610ba8565b601054336000908152600a6020526040902054611151908590614074565b111561119f5760405162461bcd60e51b815260206004820152601160248201527f455843454544535f414c4c4f57414e43450000000000000000000000000000006044820152606401610ba8565b6000836007546111af9190614074565b90506013548111156112035760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c595f4558434545444544000000000000000000000000006044820152606401610ba8565b336000908152600a602052604081208054869290611222908490614074565b90915550600090505b8481101561125c5761124a33826007546112459190614074565b6129ef565b8061125481614137565b91505061122b565b50600755505050565b3330146112da5760405162461bcd60e51b815260206004820152602b60248201527f4e6f6e626c6f636b696e6752656365697665723a2063616c6c6572206d75737460448201527f206265204272696467652e0000000000000000000000000000000000000000006064820152608401610ba8565b610cdd84848484612b4a565b6006546001600160a01b031633146113405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b600855565b61134f3382612b77565b6113c15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ba8565b610f59838383612c7f565b6006546001600160a01b031633146114265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b80516114399060179060208401906135b9565b5050565b6006546001600160a01b031633146114975760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b6040514790339082156108fc029083906000818181858888f19350505050158015611439573d6000803e3d6000fd5b6006546001600160a01b031633146115205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b611528612e64565b565b610f5983838360405180602001604052806000815250611f86565b6006546001600160a01b0316331461159f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b6000826007546115af9190614074565b90506013548111156116035760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c595f4558434545444544000000000000000000000000006044820152606401610ba8565b60005b8381101561163f5761162d83601254836007546116239190614074565b6112459190614074565b8061163781614137565b915050611606565b506007555050565b6006546001600160a01b031633146116a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b601055565b6006546001600160a01b031633146117005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b600e8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b6000818152600260205260408120546001600160a01b031680610cee5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ba8565b601680546117cf90614102565b80601f01602080910402602001604051908101604052809291908181526020018280546117fb90614102565b80156118485780601f1061181d57610100808354040283529160200191611848565b820191906000526020600020905b81548152906001019060200180831161182b57829003601f168201915b505050505081565b6006546001600160a01b031633146118aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b61271081111580156118bf5750600e5460ff16155b156118ca5760138190555b50565b60006001600160a01b03821661194b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ba8565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146119c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b6115286000612f25565b600d60205260009081526040902080546117cf90614102565b6006546001600160a01b03163314611a3e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b600e805460ff19166001179055565b6006546001600160a01b03163314611aa75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b611528612f84565b60606000611abc836118cd565b905080611add5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611af857611af86141a8565b604051908082528060200260200182016040528015611b21578160200160208202803683370190505b50600754909150600060015b828111611b9457866001600160a01b0316611b4782611737565b6001600160a01b03161415611b825780848381518110611b6957611b69614192565b602090810291909101015281611b7e81614137565b9250505b80611b8c81614137565b915050611b2d565b509195945050505050565b50919050565b6006546001600160a01b03163314611bff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b601455565b6006546001600160a01b03163314611c5e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b601855565b606060018054610d0390614102565b80611cbf5760405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f414d4f554e540000000000000000000000000000000000006044820152606401610ba8565b600e54610100900460ff16611d165760405162461bcd60e51b815260206004820152600b60248201527f53414c455f434c4f5345440000000000000000000000000000000000000000006044820152606401610ba8565b600f54811115611d685760405162461bcd60e51b815260206004820152601b60248201527f414d4f554e545f455843454544535f4d41585f5045525f43414c4c00000000006044820152606401610ba8565b3460145482611d7791906140a0565b1115611dc55760405162461bcd60e51b815260206004820152601060248201527f57524f4e475f4554485f414d4f554e54000000000000000000000000000000006044820152606401610ba8565b600081600754611dd59190614074565b9050601354811115611e295760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c595f4558434545444544000000000000000000000000006044820152606401610ba8565b60005b82811015611e5b57611e4933601254836007546116239190614074565b80611e5381614137565b915050611e2c565b5060075550565b6001600160a01b038216331415611ebb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ba8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611f815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b601555565b611f903383612b77565b6120025760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ba8565b610cdd84848484613034565b601780546117cf90614102565b60606120256126a8565b61202e836130bd565b60405160200161203f929190613dac565b6040516020818303038152906040529050919050565b6006546001600160a01b031633146120af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b600f55565b6006546001600160a01b0316331461210e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b6009805460ff1916911515919091179055565b600654600160a01b900460ff161561217b5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ba8565b61218481611737565b6001600160a01b0316336001600160a01b03161461220a5760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206f776e2074686520746f6b656e20746f2074726176657260448201527f73650000000000000000000000000000000000000000000000000000000000006064820152608401610ba8565b61ffff82166000908152600d60205260408120805461222890614102565b90501161229d5760405162461bcd60e51b815260206004820152602e60248201527f5468697320636861696e2069732063757272656e746c7920756e617661696c6160448201527f626c6520666f722074726176656c0000000000000000000000000000000000006064820152608401610ba8565b6122a6816131ef565b604080513360208201528082018390528151808203830181526060820183526018547e0100000000000000000000000000000000000000000000000000000000000060808401526082808401919091528351808403909101815260a2830193849052600b547f40a7bb100000000000000000000000000000000000000000000000000000000090945290926001926000916001600160a01b0316906340a7bb109061235d908990309089908790899060a601613e96565b604080518083038186803b15801561237457600080fd5b505afa158015612388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ac9190613cbe565b5090508034101561244b5760405162461bcd60e51b815260206004820152604d60248201527f74686520756e69733a206d73672e76616c7565206e6f7420656e6f756768207460448201527f6f20636f766572206d6573736167654665652e2053656e642067617320666f7260648201527f206d657373616765206665657300000000000000000000000000000000000000608482015260a401610ba8565b600b5461ffff87166000908152600d602052604080822090517fc58031000000000000000000000000000000000000000000000000000000000081526001600160a01b039093169263c58031009234926124b0928c928b913391908b90600401613f94565b6000604051808303818588803b1580156124c957600080fd5b505af11580156124dd573d6000803e3d6000fd5b5050505050505050505050565b61ffff85166000908152600c6020526040808220905161250b908790613d1e565b908152604080516020928190038301902067ffffffffffffffff871660009081529252902060018101549091506125aa5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e6752656365697665723a206e6f2073746f726564206d60448201527f65737361676500000000000000000000000000000000000000000000000000006064820152608401610ba8565b8054821480156125d45750806001015483836040516125ca929190613d0e565b6040518091039020145b6126205760405162461bcd60e51b815260206004820152601a60248201527f4c617965725a65726f3a20696e76616c6964207061796c6f61640000000000006044820152606401610ba8565b600080825560018201556040517f1c37a8220000000000000000000000000000000000000000000000000000000081523090631c37a8229061266e9089908990899089908990600401613ee8565b600060405180830381600087803b15801561268857600080fd5b505af115801561269c573d6000803e3d6000fd5b50505050505050505050565b606060178054610d0390614102565b6006546001600160a01b031633146127115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b61ffff83166000908152600d60205260409020610cdd90838361363d565b6006546001600160a01b031633146127895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b6001600160a01b0381166128055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ba8565b6118ca81612f25565b6006546001600160a01b031633146128685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b80516114399060169060208401906135b9565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061290e57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610cee57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610cee565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906129a082611737565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000826129e685846132a3565b14949350505050565b6001600160a01b038216612a455760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ba8565b6000818152600260205260409020546001600160a01b031615612aaa5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ba8565b612ab66000838361330f565b6001600160a01b0382166000908152600360205260408120805460019290612adf908490614074565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008082806020019051810190612b619190613808565b91509150612b6f8282613369565b505050505050565b6000818152600260205260408120546001600160a01b0316612c015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ba8565b6000612c0c83611737565b9050806001600160a01b0316846001600160a01b03161480612c475750836001600160a01b0316612c3c84610d86565b6001600160a01b0316145b80612c7757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612c9282611737565b6001600160a01b031614612d0e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ba8565b6001600160a01b038216612d895760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ba8565b612d9483838361330f565b612d9f60008261295e565b6001600160a01b0383166000908152600360205260408120805460019290612dc89084906140bf565b90915550506001600160a01b0382166000908152600360205260408120805460019290612df6908490614074565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600654600160a01b900460ff16612ebd5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ba8565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600654600160a01b900460ff1615612fde5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ba8565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612f083390565b61303f848484612c7f565b61304b84848484613383565b610cdd5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ba8565b6060816130fd57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613127578061311181614137565b91506131209050600a8361408c565b9150613101565b60008167ffffffffffffffff811115613142576131426141a8565b6040519080825280601f01601f19166020018201604052801561316c576020820181803683370190505b5090505b8415612c77576131816001836140bf565b915061318e600a86614152565b613199906030614074565b60f81b8183815181106131ae576131ae614192565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506131e8600a8661408c565b9450613170565b60006131fa82611737565b90506132088160008461330f565b61321360008361295e565b6001600160a01b038116600090815260036020526040812080546001929061323c9084906140bf565b9091555050600082815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815b8451811015611ad55760008582815181106132c5576132c5614192565b602002602001015190508083116132eb57600083815260208290526040902092506132fc565b600081815260208490526040902092505b508061330781614137565b9150506132a8565b600654600160a01b900460ff1615610f595760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ba8565b611439828260405180602001604052806000815250613530565b60006001600160a01b0384163b15613525576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906133e0903390899088908890600401613e03565b602060405180830381600087803b1580156133fa57600080fd5b505af192505050801561342a575060408051601f3d908101601f19168201909252613427918101906139ce565b60015b6134da573d808015613458576040519150601f19603f3d011682016040523d82523d6000602084013e61345d565b606091505b5080516134d25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ba8565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612c77565b506001949350505050565b61353a83836129ef565b6135476000848484613383565b610f595760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ba8565b8280546135c590614102565b90600052602060002090601f0160209004810192826135e7576000855561362d565b82601f1061360057805160ff191683800117855561362d565b8280016001018555821561362d579182015b8281111561362d578251825591602001919060010190613612565b506136399291506136b1565b5090565b82805461364990614102565b90600052602060002090601f01602090048101928261366b576000855561362d565b82601f106136845782800160ff1982351617855561362d565b8280016001018555821561362d579182015b8281111561362d578235825591602001919060010190613696565b5b8082111561363957600081556001016136b2565b600067ffffffffffffffff808411156136e1576136e16141a8565b604051601f8501601f19908116603f01168101908282118183101715613709576137096141a8565b8160405280935085815286868601111561372257600080fd5b858560208301376000602087830101525050509392505050565b8035801515811461374c57600080fd5b919050565b60008083601f84011261376357600080fd5b50813567ffffffffffffffff81111561377b57600080fd5b60208301915083602082850101111561379357600080fd5b9250929050565b600082601f8301126137ab57600080fd5b6137ba838335602085016136c6565b9392505050565b803561ffff8116811461374c57600080fd5b803567ffffffffffffffff8116811461374c57600080fd5b6000602082840312156137fd57600080fd5b81356137ba816141be565b6000806040838503121561381b57600080fd5b8251613826816141be565b6020939093015192949293505050565b6000806040838503121561384957600080fd5b8235613854816141be565b91506020830135613864816141be565b809150509250929050565b60008060006060848603121561388457600080fd5b833561388f816141be565b9250602084013561389f816141be565b929592945050506040919091013590565b600080600080608085870312156138c657600080fd5b84356138d1816141be565b935060208501356138e1816141be565b925060408501359150606085013567ffffffffffffffff81111561390457600080fd5b6139108782880161379a565b91505092959194509250565b6000806040838503121561392f57600080fd5b823561393a816141be565b91506139486020840161373c565b90509250929050565b6000806040838503121561396457600080fd5b823561396f816141be565b946020939093013593505050565b60006020828403121561398f57600080fd5b6137ba8261373c565b6000602082840312156139aa57600080fd5b5035919050565b6000602082840312156139c357600080fd5b81356137ba816141d3565b6000602082840312156139e057600080fd5b81516137ba816141d3565b6000602082840312156139fd57600080fd5b813567ffffffffffffffff811115613a1457600080fd5b8201601f81018413613a2557600080fd5b612c77848235602084016136c6565b600060208284031215613a4657600080fd5b6137ba826137c1565b600080600060408486031215613a6457600080fd5b613a6d846137c1565b9250602084013567ffffffffffffffff811115613a8957600080fd5b613a9586828701613751565b9497909650939450505050565b600080600060608486031215613ab757600080fd5b613ac0846137c1565b9250602084013567ffffffffffffffff811115613adc57600080fd5b613ae88682870161379a565b925050604084013590509250925092565b600080600080600060808688031215613b1157600080fd5b613b1a866137c1565b9450602086013567ffffffffffffffff80821115613b3757600080fd5b613b4389838a0161379a565b9550613b51604089016137d3565b94506060880135915080821115613b6757600080fd5b50613b7488828901613751565b969995985093965092949392505050565b60008060008060808587031215613b9b57600080fd5b613ba4856137c1565b9350602085013567ffffffffffffffff80821115613bc157600080fd5b613bcd8883890161379a565b9450613bdb604088016137d3565b93506060870135915080821115613bf157600080fd5b506139108782880161379a565b60008060408385031215613c1157600080fd5b61396f836137c1565b60008060408385031215613c2d57600080fd5b823591506020830135613864816141be565b600080600060408486031215613c5457600080fd5b83359250602084013567ffffffffffffffff80821115613c7357600080fd5b818601915086601f830112613c8757600080fd5b813581811115613c9657600080fd5b8760208260051b8501011115613cab57600080fd5b6020830194508093505050509250925092565b60008060408385031215613cd157600080fd5b505080516020909101519092909150565b60008151808452613cfa8160208601602086016140d6565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008251613d308184602087016140d6565b9190910192915050565b6000808354613d4881614102565b60018281168015613d605760018114613d7157613da0565b60ff19841687528287019450613da0565b8760005260208060002060005b85811015613d975781548a820152908401908201613d7e565b50505082870194505b50929695505050505050565b60008351613dbe8184602088016140d6565b835190830190613dd28183602088016140d6565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613e356080830184613ce2565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613e7757835183529284019291840191600101613e5b565b50909695505050505050565b6020815260006137ba6020830184613ce2565b61ffff861681526001600160a01b038516602082015260a060408201526000613ec260a0830186613ce2565b84151560608401528281036080840152613edc8185613ce2565b98975050505050505050565b61ffff86168152608060208201526000613f056080830187613ce2565b67ffffffffffffffff861660408401528281036060840152838152838560208301376000602085830101526020601f19601f8601168201019150509695505050505050565b61ffff85168152608060208201526000613f676080830186613ce2565b67ffffffffffffffff851660408401528281036060840152613f898185613ce2565b979650505050505050565b61ffff871681526000602060c08184015260008854613fb281614102565b8060c087015260e0600180841660008114613fd45760018114613fe957614017565b60ff198516838a015261010089019550614017565b8d6000528660002060005b8581101561400f5781548b8201860152908301908801613ff4565b8a0184019650505b5050505050838103604085015261402e8189613ce2565b91505061404660608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a08401526140678185613ce2565b9998505050505050505050565b6000821982111561408757614087614166565b500190565b60008261409b5761409b61417c565b500490565b60008160001904831182151516156140ba576140ba614166565b500290565b6000828210156140d1576140d1614166565b500390565b60005b838110156140f15781810151838201526020016140d9565b83811115610cdd5750506000910152565b600181811c9082168061411657607f821691505b60208210811415611b9f57634e487b7160e01b600052602260045260246000fd5b600060001982141561414b5761414b614166565b5060010190565b6000826141615761416161417c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146118ca57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146118ca57600080fdfea264697066735822122005457042ad9327f0dba9691b2d8ec893da0fb6d0d96de8396835e729d07bf50664736f6c63430008070033
Deployed Bytecode
0x60806040526004361061038b5760003560e01c8063715018a6116101dc578063bc8893b411610102578063d1deba1f116100a0578063e985e9c51161006f578063e985e9c514610a1d578063eb8d72b714610a66578063f2fde38b14610a86578063ffe630b514610aa657600080fd5b8063d1deba1f146109c9578063d547cfb7146109dc578063d5abeb01146109f1578063e45be46114610a0757600080fd5b8063c87b56dd116100dc578063c87b56dd14610956578063c9b20f1414610976578063cc77a83e14610996578063cf89fa03146109b657600080fd5b8063bc8893b41461090c578063c0ac99831461092b578063c7876ea41461094057600080fd5b80638ee749121161017a578063a22cb46511610149578063a22cb46514610892578063a9875558146108b2578063b88d4fde146108d2578063bbb64dab146108f257600080fd5b80638ee74912146107df578063943fb8721461084a57806395d89b411461086a578063a0712d681461087f57600080fd5b80638456cb59116101b65780638456cb591461075f5780638462151c146107745780638d6cc56d146107a15780638da5cb5b146107c157600080fd5b8063715018a6146107155780637533d7881461072a57806381eaf99b1461074a57600080fd5b80631f32b057116102c157806357d190c91161025f5780636352211e1161022e5780636352211e146106a05780636373a6b1146106c05780636f8b44b0146106d557806370a08231146106f557600080fd5b806357d190c91461061457806358d81a41146106415780635aca1bb6146106615780635c975abb1461068157600080fd5b80633ccfd60b1161029b5780633ccfd60b146105aa5780633f4ba83a146105bf57806342842e0e146105d457806353d4c775146105f457600080fd5b80631f32b0571461054a57806323b872dd1461056a57806335f067cf1461058a57600080fd5b8063095ea7b31161032e5780630d191d40116103085780630d191d40146104e8578063123bd23b146104fe57806318160ddd146105145780631c37a8221461052a57600080fd5b8063095ea7b31461049f57806309aa3dcf146104bf5780630a78d85a146104d557600080fd5b806306fdde031161036a57806306fdde031461040157806307968db114610423578063081812fc1461045b5780630952c66d1461047b57600080fd5b80621d35671461039057806301ffc9a7146103b25780630628e2f9146103e7575b600080fd5b34801561039c57600080fd5b506103b06103ab366004613b85565b610ac6565b005b3480156103be57600080fd5b506103d26103cd3660046139b1565b610ce3565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b50600e546103d29060ff1681565b34801561040d57600080fd5b50610416610cf4565b6040516103de9190613e83565b34801561042f57600080fd5b50601154610443906001600160a01b031681565b6040516001600160a01b0390911681526020016103de565b34801561046757600080fd5b50610443610476366004613998565b610d86565b34801561048757600080fd5b5061049160125481565b6040519081526020016103de565b3480156104ab57600080fd5b506103b06104ba366004613951565b610e2c565b3480156104cb57600080fd5b50610491600f5481565b6103b06104e3366004613c3f565b610f5e565b3480156104f457600080fd5b5061049160085481565b34801561050a57600080fd5b5061049160155481565b34801561052057600080fd5b5061049160075481565b34801561053657600080fd5b506103b0610545366004613b85565b611265565b34801561055657600080fd5b506103b0610565366004613998565b6112e6565b34801561057657600080fd5b506103b061058536600461386f565b611345565b34801561059657600080fd5b506103b06105a53660046139eb565b6113cc565b3480156105b657600080fd5b506103b061143d565b3480156105cb57600080fd5b506103b06114c6565b3480156105e057600080fd5b506103b06105ef36600461386f565b61152a565b34801561060057600080fd5b506103b061060f366004613c1a565b611545565b34801561062057600080fd5b5061049161062f3660046137eb565b600a6020526000908152604090205481565b34801561064d57600080fd5b506103b061065c366004613998565b611647565b34801561066d57600080fd5b506103b061067c36600461397d565b6116a6565b34801561068d57600080fd5b50600654600160a01b900460ff166103d2565b3480156106ac57600080fd5b506104436106bb366004613998565b611737565b3480156106cc57600080fd5b506104166117c2565b3480156106e157600080fd5b506103b06106f0366004613998565b611850565b34801561070157600080fd5b506104916107103660046137eb565b6118cd565b34801561072157600080fd5b506103b0611967565b34801561073657600080fd5b50610416610745366004613a34565b6119cb565b34801561075657600080fd5b506103b06119e4565b34801561076b57600080fd5b506103b0611a4d565b34801561078057600080fd5b5061079461078f3660046137eb565b611aaf565b6040516103de9190613e3f565b3480156107ad57600080fd5b506103b06107bc366004613998565b611ba5565b3480156107cd57600080fd5b506006546001600160a01b0316610443565b3480156107eb57600080fd5b506108356107fa366004613aa2565b600c60209081526000938452604080852084518086018401805192815290840195840195909520945292905282529020805460019091015482565b604080519283526020830191909152016103de565b34801561085657600080fd5b506103b0610865366004613998565b611c04565b34801561087657600080fd5b50610416611c63565b6103b061088d366004613998565b611c72565b34801561089e57600080fd5b506103b06108ad36600461391c565b611e62565b3480156108be57600080fd5b506103b06108cd366004613998565b611f27565b3480156108de57600080fd5b506103b06108ed3660046138b0565b611f86565b3480156108fe57600080fd5b506009546103d29060ff1681565b34801561091857600080fd5b50600e546103d290610100900460ff1681565b34801561093757600080fd5b5061041661200e565b34801561094c57600080fd5b5061049160145481565b34801561096257600080fd5b50610416610971366004613998565b61201b565b34801561098257600080fd5b506103b0610991366004613998565b612055565b3480156109a257600080fd5b506103b06109b136600461397d565b6120b4565b6103b06109c4366004613bfe565b612121565b6103b06109d7366004613af9565b6124ea565b3480156109e857600080fd5b506104166126a8565b3480156109fd57600080fd5b5061049160135481565b348015610a1357600080fd5b5061049160105481565b348015610a2957600080fd5b506103d2610a38366004613836565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a7257600080fd5b506103b0610a81366004613a4f565b6126b7565b348015610a9257600080fd5b506103b0610aa13660046137eb565b61272f565b348015610ab257600080fd5b506103b0610ac13660046139eb565b61280e565b600b546001600160a01b03163314610add57600080fd5b61ffff84166000908152600d602052604090208054610afb90614102565b90508351148015610b3a575061ffff84166000908152600d6020526040908190209051610b289190613d3a565b60405180910390208380519060200120145b610bb15760405162461bcd60e51b815260206004820152603460248201527f4e6f6e626c6f636b696e6752656365697665723a20696e76616c696420736f7560448201527f7263652073656e64696e6720636f6e747261637400000000000000000000000060648201526084015b60405180910390fd5b6040517f1c37a8220000000000000000000000000000000000000000000000000000000081523090631c37a82290610bf3908790879087908790600401613f4a565b600060405180830381600087803b158015610c0d57600080fd5b505af1925050508015610c1e575060015b610cdd576040518060400160405280825181526020018280519060200120815250600c60008661ffff1661ffff16815260200190815260200160002084604051610c689190613d1e565b90815260408051918290036020908101832067ffffffffffffffff8716600090815290825291909120835181559201516001909201919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90610cd4908690869086908690613f4a565b60405180910390a15b50505050565b6000610cee8261287b565b92915050565b606060008054610d0390614102565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2f90614102565b8015610d7c5780601f10610d5157610100808354040283529160200191610d7c565b820191906000526020600020905b815481529060010190602001808311610d5f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e105760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ba8565b506000908152600460205260409020546001600160a01b031690565b6000610e3782611737565b9050806001600160a01b0316836001600160a01b03161415610ec15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ba8565b336001600160a01b0382161480610edd5750610edd8133610a38565b610f4f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ba8565b610f59838361295e565b505050565b610fe6828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506008546040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b1660208201529092506034019050604051602081830303815290604052805190602001206129d9565b6110325760405162461bcd60e51b815260206004820152601060248201527f4241445f4d45524b4c455f50524f4f46000000000000000000000000000000006044820152606401610ba8565b60095460ff166110845760405162461bcd60e51b815260206004820152600b60248201527f53414c455f434c4f5345440000000000000000000000000000000000000000006044820152606401610ba8565b600f548311156110d65760405162461bcd60e51b815260206004820152601b60248201527f414d4f554e545f455843454544535f4d41585f5045525f43414c4c00000000006044820152606401610ba8565b34601554846110e591906140a0565b11156111335760405162461bcd60e51b815260206004820152601060248201527f57524f4e475f4554485f414d4f554e54000000000000000000000000000000006044820152606401610ba8565b601054336000908152600a6020526040902054611151908590614074565b111561119f5760405162461bcd60e51b815260206004820152601160248201527f455843454544535f414c4c4f57414e43450000000000000000000000000000006044820152606401610ba8565b6000836007546111af9190614074565b90506013548111156112035760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c595f4558434545444544000000000000000000000000006044820152606401610ba8565b336000908152600a602052604081208054869290611222908490614074565b90915550600090505b8481101561125c5761124a33826007546112459190614074565b6129ef565b8061125481614137565b91505061122b565b50600755505050565b3330146112da5760405162461bcd60e51b815260206004820152602b60248201527f4e6f6e626c6f636b696e6752656365697665723a2063616c6c6572206d75737460448201527f206265204272696467652e0000000000000000000000000000000000000000006064820152608401610ba8565b610cdd84848484612b4a565b6006546001600160a01b031633146113405760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b600855565b61134f3382612b77565b6113c15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ba8565b610f59838383612c7f565b6006546001600160a01b031633146114265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b80516114399060179060208401906135b9565b5050565b6006546001600160a01b031633146114975760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b6040514790339082156108fc029083906000818181858888f19350505050158015611439573d6000803e3d6000fd5b6006546001600160a01b031633146115205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b611528612e64565b565b610f5983838360405180602001604052806000815250611f86565b6006546001600160a01b0316331461159f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b6000826007546115af9190614074565b90506013548111156116035760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c595f4558434545444544000000000000000000000000006044820152606401610ba8565b60005b8381101561163f5761162d83601254836007546116239190614074565b6112459190614074565b8061163781614137565b915050611606565b506007555050565b6006546001600160a01b031633146116a15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b601055565b6006546001600160a01b031633146117005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b600e8054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b6000818152600260205260408120546001600160a01b031680610cee5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ba8565b601680546117cf90614102565b80601f01602080910402602001604051908101604052809291908181526020018280546117fb90614102565b80156118485780601f1061181d57610100808354040283529160200191611848565b820191906000526020600020905b81548152906001019060200180831161182b57829003601f168201915b505050505081565b6006546001600160a01b031633146118aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b61271081111580156118bf5750600e5460ff16155b156118ca5760138190555b50565b60006001600160a01b03821661194b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ba8565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146119c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b6115286000612f25565b600d60205260009081526040902080546117cf90614102565b6006546001600160a01b03163314611a3e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b600e805460ff19166001179055565b6006546001600160a01b03163314611aa75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b611528612f84565b60606000611abc836118cd565b905080611add5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611af857611af86141a8565b604051908082528060200260200182016040528015611b21578160200160208202803683370190505b50600754909150600060015b828111611b9457866001600160a01b0316611b4782611737565b6001600160a01b03161415611b825780848381518110611b6957611b69614192565b602090810291909101015281611b7e81614137565b9250505b80611b8c81614137565b915050611b2d565b509195945050505050565b50919050565b6006546001600160a01b03163314611bff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b601455565b6006546001600160a01b03163314611c5e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b601855565b606060018054610d0390614102565b80611cbf5760405162461bcd60e51b815260206004820152600e60248201527f494e56414c49445f414d4f554e540000000000000000000000000000000000006044820152606401610ba8565b600e54610100900460ff16611d165760405162461bcd60e51b815260206004820152600b60248201527f53414c455f434c4f5345440000000000000000000000000000000000000000006044820152606401610ba8565b600f54811115611d685760405162461bcd60e51b815260206004820152601b60248201527f414d4f554e545f455843454544535f4d41585f5045525f43414c4c00000000006044820152606401610ba8565b3460145482611d7791906140a0565b1115611dc55760405162461bcd60e51b815260206004820152601060248201527f57524f4e475f4554485f414d4f554e54000000000000000000000000000000006044820152606401610ba8565b600081600754611dd59190614074565b9050601354811115611e295760405162461bcd60e51b815260206004820152601360248201527f4d41585f535550504c595f4558434545444544000000000000000000000000006044820152606401610ba8565b60005b82811015611e5b57611e4933601254836007546116239190614074565b80611e5381614137565b915050611e2c565b5060075550565b6001600160a01b038216331415611ebb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ba8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03163314611f815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b601555565b611f903383612b77565b6120025760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ba8565b610cdd84848484613034565b601780546117cf90614102565b60606120256126a8565b61202e836130bd565b60405160200161203f929190613dac565b6040516020818303038152906040529050919050565b6006546001600160a01b031633146120af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b600f55565b6006546001600160a01b0316331461210e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b6009805460ff1916911515919091179055565b600654600160a01b900460ff161561217b5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ba8565b61218481611737565b6001600160a01b0316336001600160a01b03161461220a5760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206f776e2074686520746f6b656e20746f2074726176657260448201527f73650000000000000000000000000000000000000000000000000000000000006064820152608401610ba8565b61ffff82166000908152600d60205260408120805461222890614102565b90501161229d5760405162461bcd60e51b815260206004820152602e60248201527f5468697320636861696e2069732063757272656e746c7920756e617661696c6160448201527f626c6520666f722074726176656c0000000000000000000000000000000000006064820152608401610ba8565b6122a6816131ef565b604080513360208201528082018390528151808203830181526060820183526018547e0100000000000000000000000000000000000000000000000000000000000060808401526082808401919091528351808403909101815260a2830193849052600b547f40a7bb100000000000000000000000000000000000000000000000000000000090945290926001926000916001600160a01b0316906340a7bb109061235d908990309089908790899060a601613e96565b604080518083038186803b15801561237457600080fd5b505afa158015612388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ac9190613cbe565b5090508034101561244b5760405162461bcd60e51b815260206004820152604d60248201527f74686520756e69733a206d73672e76616c7565206e6f7420656e6f756768207460448201527f6f20636f766572206d6573736167654665652e2053656e642067617320666f7260648201527f206d657373616765206665657300000000000000000000000000000000000000608482015260a401610ba8565b600b5461ffff87166000908152600d602052604080822090517fc58031000000000000000000000000000000000000000000000000000000000081526001600160a01b039093169263c58031009234926124b0928c928b913391908b90600401613f94565b6000604051808303818588803b1580156124c957600080fd5b505af11580156124dd573d6000803e3d6000fd5b5050505050505050505050565b61ffff85166000908152600c6020526040808220905161250b908790613d1e565b908152604080516020928190038301902067ffffffffffffffff871660009081529252902060018101549091506125aa5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e6752656365697665723a206e6f2073746f726564206d60448201527f65737361676500000000000000000000000000000000000000000000000000006064820152608401610ba8565b8054821480156125d45750806001015483836040516125ca929190613d0e565b6040518091039020145b6126205760405162461bcd60e51b815260206004820152601a60248201527f4c617965725a65726f3a20696e76616c6964207061796c6f61640000000000006044820152606401610ba8565b600080825560018201556040517f1c37a8220000000000000000000000000000000000000000000000000000000081523090631c37a8229061266e9089908990899089908990600401613ee8565b600060405180830381600087803b15801561268857600080fd5b505af115801561269c573d6000803e3d6000fd5b50505050505050505050565b606060178054610d0390614102565b6006546001600160a01b031633146127115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b61ffff83166000908152600d60205260409020610cdd90838361363d565b6006546001600160a01b031633146127895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b6001600160a01b0381166128055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ba8565b6118ca81612f25565b6006546001600160a01b031633146128685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ba8565b80516114399060169060208401906135b9565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061290e57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610cee57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610cee565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906129a082611737565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000826129e685846132a3565b14949350505050565b6001600160a01b038216612a455760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ba8565b6000818152600260205260409020546001600160a01b031615612aaa5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ba8565b612ab66000838361330f565b6001600160a01b0382166000908152600360205260408120805460019290612adf908490614074565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008082806020019051810190612b619190613808565b91509150612b6f8282613369565b505050505050565b6000818152600260205260408120546001600160a01b0316612c015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ba8565b6000612c0c83611737565b9050806001600160a01b0316846001600160a01b03161480612c475750836001600160a01b0316612c3c84610d86565b6001600160a01b0316145b80612c7757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612c9282611737565b6001600160a01b031614612d0e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ba8565b6001600160a01b038216612d895760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ba8565b612d9483838361330f565b612d9f60008261295e565b6001600160a01b0383166000908152600360205260408120805460019290612dc89084906140bf565b90915550506001600160a01b0382166000908152600360205260408120805460019290612df6908490614074565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600654600160a01b900460ff16612ebd5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610ba8565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600654600160a01b900460ff1615612fde5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ba8565b600680547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612f083390565b61303f848484612c7f565b61304b84848484613383565b610cdd5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ba8565b6060816130fd57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613127578061311181614137565b91506131209050600a8361408c565b9150613101565b60008167ffffffffffffffff811115613142576131426141a8565b6040519080825280601f01601f19166020018201604052801561316c576020820181803683370190505b5090505b8415612c77576131816001836140bf565b915061318e600a86614152565b613199906030614074565b60f81b8183815181106131ae576131ae614192565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506131e8600a8661408c565b9450613170565b60006131fa82611737565b90506132088160008461330f565b61321360008361295e565b6001600160a01b038116600090815260036020526040812080546001929061323c9084906140bf565b9091555050600082815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600081815b8451811015611ad55760008582815181106132c5576132c5614192565b602002602001015190508083116132eb57600083815260208290526040902092506132fc565b600081815260208490526040902092505b508061330781614137565b9150506132a8565b600654600160a01b900460ff1615610f595760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610ba8565b611439828260405180602001604052806000815250613530565b60006001600160a01b0384163b15613525576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906133e0903390899088908890600401613e03565b602060405180830381600087803b1580156133fa57600080fd5b505af192505050801561342a575060408051601f3d908101601f19168201909252613427918101906139ce565b60015b6134da573d808015613458576040519150601f19603f3d011682016040523d82523d6000602084013e61345d565b606091505b5080516134d25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ba8565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612c77565b506001949350505050565b61353a83836129ef565b6135476000848484613383565b610f595760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ba8565b8280546135c590614102565b90600052602060002090601f0160209004810192826135e7576000855561362d565b82601f1061360057805160ff191683800117855561362d565b8280016001018555821561362d579182015b8281111561362d578251825591602001919060010190613612565b506136399291506136b1565b5090565b82805461364990614102565b90600052602060002090601f01602090048101928261366b576000855561362d565b82601f106136845782800160ff1982351617855561362d565b8280016001018555821561362d579182015b8281111561362d578235825591602001919060010190613696565b5b8082111561363957600081556001016136b2565b600067ffffffffffffffff808411156136e1576136e16141a8565b604051601f8501601f19908116603f01168101908282118183101715613709576137096141a8565b8160405280935085815286868601111561372257600080fd5b858560208301376000602087830101525050509392505050565b8035801515811461374c57600080fd5b919050565b60008083601f84011261376357600080fd5b50813567ffffffffffffffff81111561377b57600080fd5b60208301915083602082850101111561379357600080fd5b9250929050565b600082601f8301126137ab57600080fd5b6137ba838335602085016136c6565b9392505050565b803561ffff8116811461374c57600080fd5b803567ffffffffffffffff8116811461374c57600080fd5b6000602082840312156137fd57600080fd5b81356137ba816141be565b6000806040838503121561381b57600080fd5b8251613826816141be565b6020939093015192949293505050565b6000806040838503121561384957600080fd5b8235613854816141be565b91506020830135613864816141be565b809150509250929050565b60008060006060848603121561388457600080fd5b833561388f816141be565b9250602084013561389f816141be565b929592945050506040919091013590565b600080600080608085870312156138c657600080fd5b84356138d1816141be565b935060208501356138e1816141be565b925060408501359150606085013567ffffffffffffffff81111561390457600080fd5b6139108782880161379a565b91505092959194509250565b6000806040838503121561392f57600080fd5b823561393a816141be565b91506139486020840161373c565b90509250929050565b6000806040838503121561396457600080fd5b823561396f816141be565b946020939093013593505050565b60006020828403121561398f57600080fd5b6137ba8261373c565b6000602082840312156139aa57600080fd5b5035919050565b6000602082840312156139c357600080fd5b81356137ba816141d3565b6000602082840312156139e057600080fd5b81516137ba816141d3565b6000602082840312156139fd57600080fd5b813567ffffffffffffffff811115613a1457600080fd5b8201601f81018413613a2557600080fd5b612c77848235602084016136c6565b600060208284031215613a4657600080fd5b6137ba826137c1565b600080600060408486031215613a6457600080fd5b613a6d846137c1565b9250602084013567ffffffffffffffff811115613a8957600080fd5b613a9586828701613751565b9497909650939450505050565b600080600060608486031215613ab757600080fd5b613ac0846137c1565b9250602084013567ffffffffffffffff811115613adc57600080fd5b613ae88682870161379a565b925050604084013590509250925092565b600080600080600060808688031215613b1157600080fd5b613b1a866137c1565b9450602086013567ffffffffffffffff80821115613b3757600080fd5b613b4389838a0161379a565b9550613b51604089016137d3565b94506060880135915080821115613b6757600080fd5b50613b7488828901613751565b969995985093965092949392505050565b60008060008060808587031215613b9b57600080fd5b613ba4856137c1565b9350602085013567ffffffffffffffff80821115613bc157600080fd5b613bcd8883890161379a565b9450613bdb604088016137d3565b93506060870135915080821115613bf157600080fd5b506139108782880161379a565b60008060408385031215613c1157600080fd5b61396f836137c1565b60008060408385031215613c2d57600080fd5b823591506020830135613864816141be565b600080600060408486031215613c5457600080fd5b83359250602084013567ffffffffffffffff80821115613c7357600080fd5b818601915086601f830112613c8757600080fd5b813581811115613c9657600080fd5b8760208260051b8501011115613cab57600080fd5b6020830194508093505050509250925092565b60008060408385031215613cd157600080fd5b505080516020909101519092909150565b60008151808452613cfa8160208601602086016140d6565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b60008251613d308184602087016140d6565b9190910192915050565b6000808354613d4881614102565b60018281168015613d605760018114613d7157613da0565b60ff19841687528287019450613da0565b8760005260208060002060005b85811015613d975781548a820152908401908201613d7e565b50505082870194505b50929695505050505050565b60008351613dbe8184602088016140d6565b835190830190613dd28183602088016140d6565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613e356080830184613ce2565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613e7757835183529284019291840191600101613e5b565b50909695505050505050565b6020815260006137ba6020830184613ce2565b61ffff861681526001600160a01b038516602082015260a060408201526000613ec260a0830186613ce2565b84151560608401528281036080840152613edc8185613ce2565b98975050505050505050565b61ffff86168152608060208201526000613f056080830187613ce2565b67ffffffffffffffff861660408401528281036060840152838152838560208301376000602085830101526020601f19601f8601168201019150509695505050505050565b61ffff85168152608060208201526000613f676080830186613ce2565b67ffffffffffffffff851660408401528281036060840152613f898185613ce2565b979650505050505050565b61ffff871681526000602060c08184015260008854613fb281614102565b8060c087015260e0600180841660008114613fd45760018114613fe957614017565b60ff198516838a015261010089019550614017565b8d6000528660002060005b8581101561400f5781548b8201860152908301908801613ff4565b8a0184019650505b5050505050838103604085015261402e8189613ce2565b91505061404660608401876001600160a01b03169052565b6001600160a01b038516608084015282810360a08401526140678185613ce2565b9998505050505050505050565b6000821982111561408757614087614166565b500190565b60008261409b5761409b61417c565b500490565b60008160001904831182151516156140ba576140ba614166565b500290565b6000828210156140d1576140d1614166565b500390565b60005b838110156140f15781810151838201526020016140d9565b83811115610cdd5750506000910152565b600181811c9082168061411657607f821691505b60208210811415611b9f57634e487b7160e01b600052602260045260246000fd5b600060001982141561414b5761414b614166565b5060010190565b6000826141615761416161417c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146118ca57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146118ca57600080fdfea264697066735822122005457042ad9327f0dba9691b2d8ec893da0fb6d0d96de8396835e729d07bf50664736f6c63430008070033
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.