ERC-721
Overview
Max Total Supply
0 MRKLZ
Holders
21,504
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MRKLZLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
MerklyLZTest
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Multiple files format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import './Ownable.sol'; import './ERC721.sol'; import './ILayerZeroEndpoint.sol'; import './ILayerZeroReceiver.sol'; import './NonblockingLzApp.sol'; error NotTokenOwner(); error InsufficientGas(); error SupplyExceeded(); contract MerklyLZTest is Ownable, ERC721, NonblockingLzApp { uint256 public counter; uint public cost = 0.0005 ether; event ReceivedNFT( uint16 _srcChainId, address _from, uint256 _tokenId, uint256 counter ); constructor( address _endpoint ) ERC721('Merkly com', 'MRKLZ') NonblockingLzApp(_endpoint) {} function setCost(uint _cost) public onlyOwner { cost = _cost; } function mint() external payable { require(msg.value >= cost, "Not enough ether sent"); _mint(msg.sender,uint(keccak256(abi.encodePacked(counter, block.difficulty, block.timestamp))) % 10000000); unchecked { ++counter; } } function withdraw() public payable onlyOwner { (bool success, ) = payable(msg.sender).call{ value: address(this).balance }(""); require(success); } function crossChain(uint16 dstChainId, uint256 tokenId) public payable { if (msg.sender != ownerOf(tokenId)) revert NotTokenOwner(); // Remove NFT on current chain unchecked { --counter; } _burn(tokenId); bytes memory payload = abi.encode(msg.sender, tokenId); uint16 version = 1; uint256 gasForLzReceive = 350000; bytes memory adapterParams = abi.encodePacked(version, gasForLzReceive); (uint256 messageFee, ) = lzEndpoint.estimateFees( dstChainId, address(this), payload, false, adapterParams ); if (msg.value <= messageFee) revert InsufficientGas(); _lzSend( dstChainId, payload, payable(msg.sender), address(0x0), adapterParams, msg.value ); } function _nonblockingLzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 /*_nonce*/, bytes memory _payload ) internal override { address from; assembly { from := mload(add(_srcAddress, 20)) } (address toAddress, uint256 tokenId) = abi.decode( _payload, (address, uint256) ); _mint(toAddress, tokenId); unchecked { ++counter; } emit ReceivedNFT(_srcChainId, from, tokenId, counter); } // Endpoint.sol estimateFees() returns the fees for the message function estimateFees( uint16 dstChainId, uint256 tokenId ) external view returns (uint256) { bytes memory payload = abi.encode(msg.sender, tokenId); uint16 version = 1; uint256 gasForLzReceive = 350000; bytes memory adapterParams = abi.encodePacked(version, gasForLzReceive); (uint256 messageFee, ) = lzEndpoint.estimateFees( dstChainId, address(this), payload, false, adapterParams ); return messageFee; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: Unlicense /* * @title Solidity Bytes Arrays Utils * @author Gonçalo Sá <[email protected]> * * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity. * The library lets you concatenate, slice and type cast bytes arrays both in memory and storage. */ pragma solidity >=0.8.0 <0.9.0; library BytesLib { function concat( bytes memory _preBytes, bytes memory _postBytes ) internal pure returns (bytes memory) { bytes memory tempBytes; assembly { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // Store the length of the first bytes array at the beginning of // the memory for tempBytes. let length := mload(_preBytes) mstore(tempBytes, length) // Maintain a memory counter for the current write location in the // temp bytes array by adding the 32 bytes for the array length to // the starting location. let mc := add(tempBytes, 0x20) // Stop copying when the memory counter reaches the length of the // first bytes array. let end := add(mc, length) for { // Initialize a copy counter to the start of the _preBytes data, // 32 bytes into its memory. let cc := add(_preBytes, 0x20) } lt(mc, end) { // Increase both counters by 32 bytes each iteration. mc := add(mc, 0x20) cc := add(cc, 0x20) } { // Write the _preBytes data into the tempBytes memory 32 bytes // at a time. mstore(mc, mload(cc)) } // Add the length of _postBytes to the current length of tempBytes // and store it as the new length in the first 32 bytes of the // tempBytes memory. length := mload(_postBytes) mstore(tempBytes, add(length, mload(tempBytes))) // Move the memory counter back from a multiple of 0x20 to the // actual end of the _preBytes data. mc := end // Stop copying when the memory counter reaches the new combined // length of the arrays. end := add(mc, length) for { let cc := add(_postBytes, 0x20) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } // Update the free-memory pointer by padding our last write location // to 32 bytes: add 31 bytes to the end of tempBytes to move to the // next 32 byte block, then round down to the nearest multiple of // 32. If the sum of the length of the two arrays is zero then add // one before rounding down to leave a blank 32 bytes (the length block with 0). mstore( 0x40, and( add(add(end, iszero(add(length, mload(_preBytes)))), 31), not(31) // Round down to the nearest 32 bytes. ) ) } return tempBytes; } function concatStorage( bytes storage _preBytes, bytes memory _postBytes ) internal { assembly { // Read the first 32 bytes of _preBytes storage, which is the length // of the array. (We don't need to use the offset into the slot // because arrays use the entire slot.) let fslot := sload(_preBytes.slot) // Arrays of 31 bytes or less have an even value in their slot, // while longer arrays have an odd value. The actual length is // the slot divided by two for odd values, and the lowest order // byte divided by two for even values. // If the slot is even, bitwise and the slot with 255 and divide by // two to get the length. If the slot is odd, bitwise and the slot // with -1 and divide by two. let slength := div( and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2 ) let mlength := mload(_postBytes) let newlength := add(slength, mlength) // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage switch add(lt(slength, 32), lt(newlength, 32)) case 2 { // Since the new array still fits in the slot, we just need to // update the contents of the slot. // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length sstore( _preBytes.slot, // all the modifications to the slot are inside this // next block add( // we can just add to the slot contents because the // bytes we want to change are the LSBs fslot, add( mul( div( // load the bytes from memory mload(add(_postBytes, 0x20)), // zero all bytes to the right exp(0x100, sub(32, mlength)) ), // and now shift left the number of bytes to // leave space for the length in the slot exp(0x100, sub(32, newlength)) ), // increase length by the double of the memory // bytes length mul(mlength, 2) ) ) ) } case 1 { // The stored value fits in the slot, but the combined value // will exceed it. // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes.slot, add(mul(newlength, 2), 1)) // The contents of the _postBytes array start 32 bytes into // the structure. Our first read should obtain the `submod` // bytes that can fit into the unused space in the last word // of the stored array. To get this, we read 32 bytes starting // from `submod`, so the data we read overlaps with the array // contents by `submod` bytes. Masking the lowest-order // `submod` bytes allows us to add that value directly to the // stored value. let submod := sub(32, slength) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore( sc, add( and( fslot, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00 ), and(mload(mc), mask) ) ) for { mc := add(mc, 0x20) sc := add(sc, 1) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } default { // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) // Start copying to the last used word of the stored array. let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes.slot, add(mul(newlength, 2), 1)) // Copy over the first `submod` bytes of the new data as in // case 1 above. let slengthmod := mod(slength, 32) let mlengthmod := mod(mlength, 32) let submod := sub(32, slengthmod) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore(sc, add(sload(sc), and(mload(mc), mask))) for { sc := add(sc, 1) mc := add(mc, 0x20) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } } } function slice( bytes memory _bytes, uint256 _start, uint256 _length ) internal pure returns (bytes memory) { require(_length + 31 >= _length, "slice_overflow"); require(_bytes.length >= _start + _length, "slice_outOfBounds"); bytes memory tempBytes; assembly { switch iszero(_length) case 0 { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // The first word of the slice result is potentially a partial // word read from the original array. To read it, we calculate // the length of that partial word and start copying that many // bytes into the array. The first word we copy will start with // data we don't care about, but the last `lengthmod` bytes will // land at the beginning of the contents of the new array. When // we're done copying, we overwrite the full first word with // the actual length of the slice. let lengthmod := and(_length, 31) // The multiplication in the next line is necessary // because when slicing multiples of 32 bytes (lengthmod == 0) // the following copy loop was copying the origin's length // and then ending prematurely not copying everything it should. let mc := add( add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)) ) let end := add(mc, _length) for { // The multiplication in the next line has the same exact purpose // as the one above. let cc := add( add( add(_bytes, lengthmod), mul(0x20, iszero(lengthmod)) ), _start ) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } mstore(tempBytes, _length) //update free-memory pointer //allocating the array padded to 32 bytes like the compiler does now mstore(0x40, and(add(mc, 31), not(31))) } //if we want a zero-length slice let's just return a zero-length array default { tempBytes := mload(0x40) //zero out the 32 bytes slice we are about to return //we need to do it because Solidity does not garbage collect mstore(tempBytes, 0) mstore(0x40, add(tempBytes, 0x20)) } } return tempBytes; } function toAddress( bytes memory _bytes, uint256 _start ) internal pure returns (address) { require(_bytes.length >= _start + 20, "toAddress_outOfBounds"); address tempAddress; assembly { tempAddress := div( mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000 ) } return tempAddress; } function toUint8( bytes memory _bytes, uint256 _start ) internal pure returns (uint8) { require(_bytes.length >= _start + 1, "toUint8_outOfBounds"); uint8 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x1), _start)) } return tempUint; } function toUint16( bytes memory _bytes, uint256 _start ) internal pure returns (uint16) { require(_bytes.length >= _start + 2, "toUint16_outOfBounds"); uint16 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x2), _start)) } return tempUint; } function toUint32( bytes memory _bytes, uint256 _start ) internal pure returns (uint32) { require(_bytes.length >= _start + 4, "toUint32_outOfBounds"); uint32 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x4), _start)) } return tempUint; } function toUint64( bytes memory _bytes, uint256 _start ) internal pure returns (uint64) { require(_bytes.length >= _start + 8, "toUint64_outOfBounds"); uint64 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x8), _start)) } return tempUint; } function toUint96( bytes memory _bytes, uint256 _start ) internal pure returns (uint96) { require(_bytes.length >= _start + 12, "toUint96_outOfBounds"); uint96 tempUint; assembly { tempUint := mload(add(add(_bytes, 0xc), _start)) } return tempUint; } function toUint128( bytes memory _bytes, uint256 _start ) internal pure returns (uint128) { require(_bytes.length >= _start + 16, "toUint128_outOfBounds"); uint128 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x10), _start)) } return tempUint; } function toUint256( bytes memory _bytes, uint256 _start ) internal pure returns (uint256) { require(_bytes.length >= _start + 32, "toUint256_outOfBounds"); uint256 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x20), _start)) } return tempUint; } function toBytes32( bytes memory _bytes, uint256 _start ) internal pure returns (bytes32) { require(_bytes.length >= _start + 32, "toBytes32_outOfBounds"); bytes32 tempBytes32; assembly { tempBytes32 := mload(add(add(_bytes, 0x20), _start)) } return tempBytes32; } function equal( bytes memory _preBytes, bytes memory _postBytes ) internal pure returns (bool) { bool success = true; assembly { let length := mload(_preBytes) // if lengths don't match the arrays are not equal switch eq(length, mload(_postBytes)) case 1 { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 let mc := add(_preBytes, 0x20) let end := add(mc, length) for { let cc := add(_postBytes, 0x20) // the next line is the loop condition: // while(uint256(mc < end) + cb == 2) } eq(add(lt(mc, end), cb), 2) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { // if any of these checks fails then arrays are not equal if iszero(eq(mload(mc), mload(cc))) { // unsuccess: success := 0 cb := 0 } } } default { // unsuccess: success := 0 } } return success; } function equalStorage( bytes storage _preBytes, bytes memory _postBytes ) internal view returns (bool) { bool success = true; assembly { // we know _preBytes_offset is 0 let fslot := sload(_preBytes.slot) // Decode the length of the stored array like in concatStorage(). let slength := div( and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2 ) let mlength := mload(_postBytes) // if lengths don't match the arrays are not equal switch eq(slength, mlength) case 1 { // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage if iszero(iszero(slength)) { switch lt(slength, 32) case 1 { // blank the last byte which is the length fslot := mul(div(fslot, 0x100), 0x100) if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) { // unsuccess: success := 0 } } default { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) let sc := keccak256(0x0, 0x20) let mc := add(_postBytes, 0x20) let end := add(mc, mlength) // the next line is the loop condition: // while(uint256(mc < end) + cb == 2) for { } eq(add(lt(mc, end), cb), 2) { sc := add(sc, 1) mc := add(mc, 0x20) } { if iszero(eq(sload(sc), mload(mc))) { // unsuccess: success := 0 cb := 0 } } } } } default { // unsuccess: success := 0 } } return success; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./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: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); 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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT OR Apache-2.0 pragma solidity >=0.7.6; library ExcessivelySafeCall { uint256 constant LOW_28_MASK = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff; /// @notice Use when you _really_ really _really_ don't trust the called /// contract. This prevents the called contract from causing reversion of /// the caller in as many ways as we can. /// @dev The main difference between this and a solidity low-level call is /// that we limit the number of bytes that the callee can cause to be /// copied to caller memory. This prevents stupid things like malicious /// contracts returning 10,000,000 bytes causing a local OOG when copying /// to memory. /// @param _target The address to call /// @param _gas The amount of gas to forward to the remote contract /// @param _maxCopy The maximum number of bytes of returndata to copy /// to memory. /// @param _calldata The data to send to the remote contract /// @return success and returndata, as `.call()`. Returndata is capped to /// `_maxCopy` bytes. function excessivelySafeCall( address _target, uint256 _gas, uint16 _maxCopy, bytes memory _calldata ) internal returns (bool, bytes memory) { // set up for assembly call uint256 _toCopy; bool _success; bytes memory _returnData = new bytes(_maxCopy); // dispatch message to recipient // by assembly calling "handle" function // we call via assembly to avoid memcopying a very large returndata // returned by a malicious contract assembly { _success := call( _gas, // gas _target, // recipient 0, // ether value add(_calldata, 0x20), // inloc mload(_calldata), // inlen 0, // outloc 0 // outlen ) // limit our copy to 256 bytes _toCopy := returndatasize() if gt(_toCopy, _maxCopy) { _toCopy := _maxCopy } // Store the length of the copied bytes mstore(_returnData, _toCopy) // copy the bytes from returndata[0:_toCopy] returndatacopy(add(_returnData, 0x20), 0, _toCopy) } return (_success, _returnData); } /// @notice Use when you _really_ really _really_ don't trust the called /// contract. This prevents the called contract from causing reversion of /// the caller in as many ways as we can. /// @dev The main difference between this and a solidity low-level call is /// that we limit the number of bytes that the callee can cause to be /// copied to caller memory. This prevents stupid things like malicious /// contracts returning 10,000,000 bytes causing a local OOG when copying /// to memory. /// @param _target The address to call /// @param _gas The amount of gas to forward to the remote contract /// @param _maxCopy The maximum number of bytes of returndata to copy /// to memory. /// @param _calldata The data to send to the remote contract /// @return success and returndata, as `.call()`. Returndata is capped to /// `_maxCopy` bytes. function excessivelySafeStaticCall( address _target, uint256 _gas, uint16 _maxCopy, bytes memory _calldata ) internal view returns (bool, bytes memory) { // set up for assembly call uint256 _toCopy; bool _success; bytes memory _returnData = new bytes(_maxCopy); // dispatch message to recipient // by assembly calling "handle" function // we call via assembly to avoid memcopying a very large returndata // returned by a malicious contract assembly { _success := staticcall( _gas, // gas _target, // recipient add(_calldata, 0x20), // inloc mload(_calldata), // inlen 0, // outloc 0 // outlen ) // limit our copy to 256 bytes _toCopy := returndatasize() if gt(_toCopy, _maxCopy) { _toCopy := _maxCopy } // Store the length of the copied bytes mstore(_returnData, _toCopy) // copy the bytes from returndata[0:_toCopy] returndatacopy(add(_returnData, 0x20), 0, _toCopy) } return (_success, _returnData); } /** * @notice Swaps function selectors in encoded contract calls * @dev Allows reuse of encoded calldata for functions with identical * argument types but different names. It simply swaps out the first 4 bytes * for the new selector. This function modifies memory in place, and should * only be used with caution. * @param _newSelector The new 4-byte selector * @param _buf The encoded contract args */ function swapSelector( bytes4 _newSelector, bytes memory _buf ) internal pure { require(_buf.length >= 4); uint256 _mask = LOW_28_MASK; assembly { // load the first word of let _word := mload(add(_buf, 0x20)) // mask out the top 4 bytes // /x _word := and(_word, _mask) _word := or(_newSelector, _word) mstore(add(_buf, 0x20), _word) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; import "./ILayerZeroUserApplicationConfig.sol"; interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig { // @notice send a LayerZero message to the specified address at a LayerZero endpoint. // @param _dstChainId - the destination chain identifier // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains // @param _payload - a custom bytes payload to send to the destination contract // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination function send( uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams ) external payable; // @notice used by the messaging library to publish verified payload // @param _srcChainId - the source chain identifier // @param _srcAddress - the source contract (as bytes) at the source chain // @param _dstAddress - the address on destination chain // @param _nonce - the unbound message ordering nonce // @param _gasLimit - the gas limit for external contract execution // @param _payload - verified payload to send to the destination contract function receivePayload( uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload ) external; // @notice get the inboundNonce of a receiver from a source chain which could be EVM or non-EVM chain // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function getInboundNonce( uint16 _srcChainId, bytes calldata _srcAddress ) external view returns (uint64); // @notice get the outboundNonce from this source chain which, consequently, is always an EVM // @param _srcAddress - the source chain contract address function getOutboundNonce( uint16 _dstChainId, address _srcAddress ) external view returns (uint64); // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery // @param _dstChainId - the destination chain identifier // @param _userApplication - the user app address on this EVM chain // @param _payload - the custom message to send over LayerZero // @param _payInZRO - if false, user app pays the protocol fee in native token // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain function estimateFees( uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam ) external view returns (uint nativeFee, uint zroFee); // @notice get this Endpoint's immutable source identifier function getChainId() external view returns (uint16); // @notice the interface to retry failed message on this Endpoint destination // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address // @param _payload - the payload to be retried function retryPayload( uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload ) external; // @notice query if any STORED payload (message blocking) at the endpoint. // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function hasStoredPayload( uint16 _srcChainId, bytes calldata _srcAddress ) external view returns (bool); // @notice query if the _libraryAddress is valid for sending msgs. // @param _userApplication - the user app address on this EVM chain function getSendLibraryAddress( address _userApplication ) external view returns (address); // @notice query if the _libraryAddress is valid for receiving msgs. // @param _userApplication - the user app address on this EVM chain function getReceiveLibraryAddress( address _userApplication ) external view returns (address); // @notice query if the non-reentrancy guard for send() is on // @return true if the guard is on. false otherwise function isSendingPayload() external view returns (bool); // @notice query if the non-reentrancy guard for receive() is on // @return true if the guard is on. false otherwise function isReceivingPayload() external view returns (bool); // @notice get the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _userApplication - the contract address of the user application // @param _configType - type of configuration. every messaging library has its own convention. function getConfig( uint16 _version, uint16 _chainId, address _userApplication, uint _configType ) external view returns (bytes memory); // @notice get the send() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getSendVersion( address _userApplication ) external view returns (uint16); // @notice get the lzReceive() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getReceiveVersion( address _userApplication ) external view returns (uint16); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; interface ILayerZeroReceiver { // @notice LayerZero endpoint will invoke this function to deliver the message on the destination // @param _srcChainId - the source endpoint identifier // @param _srcAddress - the source sending contract address from the source chain // @param _nonce - the ordered message nonce // @param _payload - the signed payload is the UA bytes has encoded to be sent function lzReceive( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) external; }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; interface ILayerZeroUserApplicationConfig { // @notice set the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _configType - type of configuration. every messaging library has its own convention. // @param _config - configuration in the bytes. can encode arbitrary content. function setConfig( uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config ) external; // @notice set the send() LayerZero messaging library version to _version // @param _version - new messaging library version function setSendVersion(uint16 _version) external; // @notice set the lzReceive() LayerZero messaging library version to _version // @param _version - new messaging library version function setReceiveVersion(uint16 _version) external; // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload // @param _srcChainId - the chainId of the source chain // @param _srcAddress - the contract address of the source contract at the source chain function forceResumeReceive( uint16 _srcChainId, bytes calldata _srcAddress ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Ownable.sol"; import "./ILayerZeroReceiver.sol"; import "./ILayerZeroUserApplicationConfig.sol"; import "./ILayerZeroEndpoint.sol"; import "./BytesLib.sol"; /* * a generic LzReceiver implementation */ abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig { using BytesLib for bytes; // ua can not send payload larger than this by default, but it can be changed by the ua owner uint public constant DEFAULT_PAYLOAD_SIZE_LIMIT = 10000; ILayerZeroEndpoint public immutable lzEndpoint; mapping(uint16 => bytes) public trustedRemoteLookup; mapping(uint16 => mapping(uint16 => uint)) public minDstGasLookup; mapping(uint16 => uint) public payloadSizeLimitLookup; address public precrime; event SetPrecrime(address precrime); event SetTrustedRemote(uint16 _remoteChainId, bytes _path); event SetTrustedRemoteAddress(uint16 _remoteChainId, bytes _remoteAddress); event SetMinDstGas(uint16 _dstChainId, uint16 _type, uint _minDstGas); constructor(address _endpoint) { lzEndpoint = ILayerZeroEndpoint(_endpoint); } function lzReceive( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) public virtual override { // lzReceive must be called by the endpoint for security require( _msgSender() == address(lzEndpoint), "LzApp: invalid endpoint caller" ); bytes memory trustedRemote = trustedRemoteLookup[_srcChainId]; // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote. require( _srcAddress.length == trustedRemote.length && trustedRemote.length > 0 && keccak256(_srcAddress) == keccak256(trustedRemote), "LzApp: invalid source sending contract" ); _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging function _blockingLzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual; function _lzSend( uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams, uint _nativeFee ) internal virtual { bytes memory trustedRemote = trustedRemoteLookup[_dstChainId]; require( trustedRemote.length != 0, "LzApp: destination chain is not a trusted source" ); _checkPayloadSize(_dstChainId, _payload.length); lzEndpoint.send{value: _nativeFee}( _dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams ); } function _checkGasLimit( uint16 _dstChainId, uint16 _type, bytes memory _adapterParams, uint _extraGas ) internal view virtual { uint providedGasLimit = _getGasLimit(_adapterParams); uint minGasLimit = minDstGasLookup[_dstChainId][_type] + _extraGas; require(minGasLimit > 0, "LzApp: minGasLimit not set"); require(providedGasLimit >= minGasLimit, "LzApp: gas limit is too low"); } function _getGasLimit( bytes memory _adapterParams ) internal pure virtual returns (uint gasLimit) { require(_adapterParams.length >= 34, "LzApp: invalid adapterParams"); assembly { gasLimit := mload(add(_adapterParams, 34)) } } function _checkPayloadSize( uint16 _dstChainId, uint _payloadSize ) internal view virtual { uint payloadSizeLimit = payloadSizeLimitLookup[_dstChainId]; if (payloadSizeLimit == 0) { // use default if not set payloadSizeLimit = DEFAULT_PAYLOAD_SIZE_LIMIT; } require( _payloadSize <= payloadSizeLimit, "LzApp: payload size is too large" ); } //---------------------------UserApplication config---------------------------------------- function getConfig( uint16 _version, uint16 _chainId, address, uint _configType ) external view returns (bytes memory) { return lzEndpoint.getConfig( _version, _chainId, address(this), _configType ); } // generic config for LayerZero user Application function setConfig( uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config ) external override onlyOwner { lzEndpoint.setConfig(_version, _chainId, _configType, _config); } function setSendVersion(uint16 _version) external override onlyOwner { lzEndpoint.setSendVersion(_version); } function setReceiveVersion(uint16 _version) external override onlyOwner { lzEndpoint.setReceiveVersion(_version); } function forceResumeReceive( uint16 _srcChainId, bytes calldata _srcAddress ) external override onlyOwner { lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress); } // _path = abi.encodePacked(remoteAddress, localAddress) // this function set the trusted path for the cross-chain communication function setTrustedRemote( uint16 _srcChainId, bytes calldata _path ) external onlyOwner { trustedRemoteLookup[_srcChainId] = _path; emit SetTrustedRemote(_srcChainId, _path); } function setTrustedRemoteAddress( uint16 _remoteChainId, bytes calldata _remoteAddress ) external onlyOwner { trustedRemoteLookup[_remoteChainId] = abi.encodePacked( _remoteAddress, address(this) ); emit SetTrustedRemoteAddress(_remoteChainId, _remoteAddress); } function getTrustedRemoteAddress( uint16 _remoteChainId ) external view returns (bytes memory) { bytes memory path = trustedRemoteLookup[_remoteChainId]; require(path.length != 0, "LzApp: no trusted path record"); return path.slice(0, path.length - 20); // the last 20 bytes should be address(this) } function setPrecrime(address _precrime) external onlyOwner { precrime = _precrime; emit SetPrecrime(_precrime); } function setMinDstGas( uint16 _dstChainId, uint16 _packetType, uint _minGas ) external onlyOwner { require(_minGas > 0, "LzApp: invalid minGas"); minDstGasLookup[_dstChainId][_packetType] = _minGas; emit SetMinDstGas(_dstChainId, _packetType, _minGas); } // if the size is 0, it means default size limit function setPayloadSizeLimit( uint16 _dstChainId, uint _size ) external onlyOwner { payloadSizeLimitLookup[_dstChainId] = _size; } //--------------------------- VIEW FUNCTION ---------------------------------------- function isTrustedRemote( uint16 _srcChainId, bytes calldata _srcAddress ) external view returns (bool) { bytes memory trustedSource = trustedRemoteLookup[_srcChainId]; return keccak256(trustedSource) == keccak256(_srcAddress); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./LzApp.sol"; import "./ExcessivelySafeCall.sol"; /* * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress) */ abstract contract NonblockingLzApp is LzApp { using ExcessivelySafeCall for address; constructor(address _endpoint) LzApp(_endpoint) {} mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) public failedMessages; event MessageFailed( uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload, bytes _reason ); event RetryMessageSuccess( uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes32 _payloadHash ); // overriding the virtual function in LzReceiver function _blockingLzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual override { (bool success, bytes memory reason) = address(this).excessivelySafeCall( gasleft(), 150, abi.encodeWithSelector( this.nonblockingLzReceive.selector, _srcChainId, _srcAddress, _nonce, _payload ) ); // try-catch all errors/exceptions if (!success) { _storeFailedMessage( _srcChainId, _srcAddress, _nonce, _payload, reason ); } } function _storeFailedMessage( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload, bytes memory _reason ) internal virtual { failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload); emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload, _reason); } function nonblockingLzReceive( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) public virtual { // only internal transaction require( _msgSender() == address(this), "NonblockingLzApp: caller must be LzApp" ); _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } //@notice override this function function _nonblockingLzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual; function retryMessage( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) public payable virtual { // assert there is message to retry bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce]; require( payloadHash != bytes32(0), "NonblockingLzApp: no stored message" ); require( keccak256(_payload) == payloadHash, "NonblockingLzApp: invalid payload" ); // clear the stored message failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0); // execute the message. revert if it fails again _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); emit RetryMessageSuccess(_srcChainId, _srcAddress, _nonce, payloadHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_endpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InsufficientGas","type":"error"},{"inputs":[],"name":"NotTokenOwner","type":"error"},{"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"},{"indexed":false,"internalType":"bytes","name":"_reason","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":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"counter","type":"uint256"}],"name":"ReceivedNFT","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":"bytes32","name":"_payloadHash","type":"bytes32"}],"name":"RetryMessageSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"_type","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"_minDstGas","type":"uint256"}],"name":"SetMinDstGas","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"precrime","type":"address"}],"name":"SetPrecrime","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_path","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"SetTrustedRemoteAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_PAYLOAD_SIZE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"dstChainId","type":"uint16"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"crossChain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"dstChainId","type":"uint16"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"estimateFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"}],"name":"getTrustedRemoteAddress","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lzEndpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16","name":"","type":"uint16"}],"name":"minDstGasLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"nonblockingLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"payloadSizeLimitLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"precrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint16","name":"_packetType","type":"uint16"},{"internalType":"uint256","name":"_minGas","type":"uint256"}],"name":"setMinDstGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"setPayloadSizeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_precrime","type":"address"}],"name":"setPrecrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_path","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"setTrustedRemoteAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60a06040526601c6bf52634000600d553480156200001c57600080fd5b5060405162003a6838038062003a688339810160408190526200003f91620001d9565b80806040518060400160405280600a8152602001694d65726b6c7920636f6d60b01b8152506040518060400160405280600581526020016426a925a62d60d91b8152506200009c62000096620000df60201b60201c565b620000e3565b8151620000b190600190602085019062000133565b508051620000c790600290602084019062000133565b5050506001600160a01b031660805250620002489050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000141906200020b565b90600052602060002090601f016020900481019282620001655760008555620001b0565b82601f106200018057805160ff1916838001178555620001b0565b82800160010185558215620001b0579182015b82811115620001b057825182559160200191906001019062000193565b50620001be929150620001c2565b5090565b5b80821115620001be5760008155600101620001c3565b600060208284031215620001ec57600080fd5b81516001600160a01b03811681146200020457600080fd5b9392505050565b600181811c908216806200022057607f821691505b602082108114156200024257634e487b7160e01b600052602260045260246000fd5b50919050565b6080516137c5620002a3600039600081816106d20152818161086901528181610b9c01528181610d8101528181610f060152818161105c015281816112630152818161183501528181611c7401526121ef01526137c56000f3fe6080604052600436106102715760003560e01c806366ad5c8a1161014f578063b353aaa7116100c1578063d1deba1f1161007a578063d1deba1f1461078a578063df2a5b3b1461079d578063e985e9c5146107bd578063eb8d72b714610806578063f2fde38b14610826578063f5ecbdbc1461084657600080fd5b8063b353aaa7146106c0578063b88d4fde146106f4578063baf3292d14610714578063c446183414610734578063c87b56dd1461074a578063cbed8b9c1461076a57600080fd5b80638da5cb5b116101135780638da5cb5b1461060d578063950c8a741461062b57806395d89b411461064b5780639f38369a14610660578063a22cb46514610680578063a6c3d165146106a057600080fd5b806366ad5c8a1461056057806370a0823114610580578063715018a6146105a05780637533d788146105b55780638cfd8f5c146105d557600080fd5b806323b872dd116101e857806342842e0e116101ac57806342842e0e1461047b57806342d65a8d1461049b57806344a0d68a146104bb5780635b8c41e6146104db57806361bc221a1461052a5780636352211e1461054057600080fd5b806323b872dd146103e6578063362790f6146104065780633ccfd60b146104265780633d8b38f61461042e5780633f1f4fa41461044e57600080fd5b8063095ea7b31161023a578063095ea7b3146103475780630df374831461036757806310ddb137146103875780631249c58b146103a757806313faede6146103af5780631e128296146103d357600080fd5b80621d35671461027657806301ffc9a71461029857806306fdde03146102cd57806307e0db17146102ef578063081812fc1461030f575b600080fd5b34801561028257600080fd5b50610296610291366004612ccd565b610866565b005b3480156102a457600080fd5b506102b86102b3366004612d76565b610a97565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e2610ae9565b6040516102c49190612deb565b3480156102fb57600080fd5b5061029661030a366004612dfe565b610b7b565b34801561031b57600080fd5b5061032f61032a366004612e19565b610c04565b6040516001600160a01b0390911681526020016102c4565b34801561035357600080fd5b50610296610362366004612e47565b610c2b565b34801561037357600080fd5b50610296610382366004612e73565b610d41565b34801561039357600080fd5b506102966103a2366004612dfe565b610d60565b610296610db8565b3480156103bb57600080fd5b506103c5600d5481565b6040519081526020016102c4565b6102966103e1366004612e73565b610e5d565b3480156103f257600080fd5b50610296610401366004612e8f565b610fcc565b34801561041257600080fd5b506103c5610421366004612e73565b610ffd565b6102966110fd565b34801561043a57600080fd5b506102b8610449366004612ed0565b61115d565b34801561045a57600080fd5b506103c5610469366004612dfe565b60096020526000908152604090205481565b34801561048757600080fd5b50610296610496366004612e8f565b611229565b3480156104a757600080fd5b506102966104b6366004612ed0565b611244565b3480156104c757600080fd5b506102966104d6366004612e19565b6112ca565b3480156104e757600080fd5b506103c56104f6366004612fe5565b600b602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b34801561053657600080fd5b506103c5600c5481565b34801561054c57600080fd5b5061032f61055b366004612e19565b6112d7565b34801561056c57600080fd5b5061029661057b366004612ccd565b611337565b34801561058c57600080fd5b506103c561059b366004613042565b611413565b3480156105ac57600080fd5b50610296611499565b3480156105c157600080fd5b506102e26105d0366004612dfe565b6114ad565b3480156105e157600080fd5b506103c56105f036600461305f565b600860209081526000928352604080842090915290825290205481565b34801561061957600080fd5b506000546001600160a01b031661032f565b34801561063757600080fd5b50600a5461032f906001600160a01b031681565b34801561065757600080fd5b506102e2611547565b34801561066c57600080fd5b506102e261067b366004612dfe565b611556565b34801561068c57600080fd5b5061029661069b366004613092565b61166d565b3480156106ac57600080fd5b506102966106bb366004612ed0565b61167c565b3480156106cc57600080fd5b5061032f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561070057600080fd5b5061029661070f3660046130d0565b61170f565b34801561072057600080fd5b5061029661072f366004613042565b611747565b34801561074057600080fd5b506103c561271081565b34801561075657600080fd5b506102e2610765366004612e19565b6117a3565b34801561077657600080fd5b5061029661078536600461313b565b611816565b610296610798366004612ccd565b6118ab565b3480156107a957600080fd5b506102966107b83660046131a9565b611ac1565b3480156107c957600080fd5b506102b86107d83660046131e5565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561081257600080fd5b50610296610821366004612ed0565b611b73565b34801561083257600080fd5b50610296610841366004613042565b611bcd565b34801561085257600080fd5b506102e2610861366004613213565b611c43565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146108e35760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff86166000908152600760205260408120805461090190613260565b80601f016020809104026020016040519081016040528092919081815260200182805461092d90613260565b801561097a5780601f1061094f5761010080835404028352916020019161097a565b820191906000526020600020905b81548152906001019060200180831161095d57829003601f168201915b50505050509050805186869050148015610995575060008151115b80156109bd5750805160208201206040516109b3908890889061329b565b6040518091039020145b610a185760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b60648201526084016108da565b610a8e8787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881528a935091508890889081908401838280828437600092019190915250611d0592505050565b50505050505050565b60006001600160e01b031982166380ac58cd60e01b1480610ac857506001600160e01b03198216635b5e139f60e01b145b80610ae357506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610af890613260565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2490613260565b8015610b715780601f10610b4657610100808354040283529160200191610b71565b820191906000526020600020905b815481529060010190602001808311610b5457829003601f168201915b5050505050905090565b610b83611d7e565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b600060405180830381600087803b158015610be957600080fd5b505af1158015610bfd573d6000803e3d6000fd5b5050505050565b6000610c0f82611dd8565b506000908152600560205260409020546001600160a01b031690565b6000610c36826112d7565b9050806001600160a01b0316836001600160a01b03161415610ca45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108da565b336001600160a01b0382161480610cc05750610cc081336107d8565b610d325760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016108da565b610d3c8383611e37565b505050565b610d49611d7e565b61ffff909116600090815260096020526040902055565b610d68611d7e565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb13790602401610bcf565b600d54341015610e025760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016108da565b600c546040805160208101929092524490820152426060820152610e5290339062989680906080016040516020818303038152906040528051906020012060001c610e4d91906132ab565b611ea5565b600c80546001019055565b610e66816112d7565b6001600160a01b0316336001600160a01b031614610e97576040516359dc379f60e01b815260040160405180910390fd5b600c8054600019019055610eaa81612030565b60408051336020820152808201839052815180820383018152606082018352600160f01b60808301526205573060828084018290528451808503909101815260a284019485905263040a7bb160e41b90945290926001926000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906340a7bb1090610f4b908a9030908a908790899060a6016132cd565b604080518083038186803b158015610f6257600080fd5b505afa158015610f76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a9190613321565b509050803411610fbd576040516307099c5360e21b815260040160405180910390fd5b610a8e878633600086346120c5565b610fd6338261226b565b610ff25760405162461bcd60e51b81526004016108da90613345565b610d3c8383836122e9565b60408051336020820152808201839052815180820383018152606082018352600160f01b60808301526205573060828084018290528451808503909101815260a284019485905263040a7bb160e41b90945260009391926001929085907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906340a7bb10906110a1908b9030908a908790899060a6016132cd565b604080518083038186803b1580156110b857600080fd5b505afa1580156110cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f09190613321565b5098975050505050505050565b611105611d7e565b604051600090339047908381818185875af1925050503d8060008114611147576040519150601f19603f3d011682016040523d82523d6000602084013e61114c565b606091505b505090508061115a57600080fd5b50565b61ffff83166000908152600760205260408120805482919061117e90613260565b80601f01602080910402602001604051908101604052809291908181526020018280546111aa90613260565b80156111f75780601f106111cc576101008083540402835291602001916111f7565b820191906000526020600020905b8154815290600101906020018083116111da57829003601f168201915b50505050509050838360405161120e92919061329b565b60405180910390208180519060200120149150509392505050565b610d3c8383836040518060200160405280600081525061170f565b61124c611d7e565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d9061129c908690869086906004016133bb565b600060405180830381600087803b1580156112b657600080fd5b505af1158015610a8e573d6000803e3d6000fd5b6112d2611d7e565b600d55565b6000818152600360205260408120546001600160a01b031680610ae35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108da565b3330146113955760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b60648201526084016108da565b61140b8686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f89018190048102820181019092528781528993509150879087908190840183828082843760009201919091525061244d92505050565b505050505050565b60006001600160a01b03821661147d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108da565b506001600160a01b031660009081526004602052604090205490565b6114a1611d7e565b6114ab60006124d8565b565b600760205260009081526040902080546114c690613260565b80601f01602080910402602001604051908101604052809291908181526020018280546114f290613260565b801561153f5780601f106115145761010080835404028352916020019161153f565b820191906000526020600020905b81548152906001019060200180831161152257829003601f168201915b505050505081565b606060028054610af890613260565b61ffff811660009081526007602052604081208054606092919061157990613260565b80601f01602080910402602001604051908101604052809291908181526020018280546115a590613260565b80156115f25780601f106115c7576101008083540402835291602001916115f2565b820191906000526020600020905b8154815290600101906020018083116115d557829003601f168201915b5050505050905080516000141561164b5760405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f726400000060448201526064016108da565b61166660006014835161165e91906133ef565b839190612528565b9392505050565b611678338383612635565b5050565b611684611d7e565b81813060405160200161169993929190613406565b60408051601f1981840301815291815261ffff851660009081526007602090815291902082516116ce93919290910190612b4a565b507f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce838383604051611702939291906133bb565b60405180910390a1505050565b611719338361226b565b6117355760405162461bcd60e51b81526004016108da90613345565b61174184848484612704565b50505050565b61174f611d7e565b600a80546001600160a01b0319166001600160a01b0383169081179091556040519081527f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b9060200160405180910390a150565b60606117ae82611dd8565b60006117c560408051602081019091526000815290565b905060008151116117e55760405180602001604052806000815250611666565b806117ef84612737565b60405160200161180092919061342c565b6040516020818303038152906040529392505050565b61181e611d7e565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c90611872908890889088908890889060040161345b565b600060405180830381600087803b15801561188c57600080fd5b505af11580156118a0573d6000803e3d6000fd5b505050505050505050565b61ffff86166000908152600b602052604080822090516118ce908890889061329b565b90815260408051602092819003830190206001600160401b0387166000908152925290205490508061194e5760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b60648201526084016108da565b80838360405161195f92919061329b565b6040518091039020146119be5760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b60648201526084016108da565b61ffff87166000908152600b602052604080822090516119e1908990899061329b565b90815260408051602092819003830181206001600160401b038916600090815290845282902093909355601f88018290048202830182019052868252611a79918991899089908190840183828082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061244d92505050565b7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e58787878785604051611ab0959493929190613494565b60405180910390a150505050505050565b611ac9611d7e565b60008111611b115760405162461bcd60e51b81526020600482015260156024820152744c7a4170703a20696e76616c6964206d696e47617360581b60448201526064016108da565b61ffff83811660008181526008602090815260408083209487168084529482529182902085905581519283528201929092529081018290527f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac090606001611702565b611b7b611d7e565b61ffff83166000908152600760205260409020611b99908383612bce565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051611702939291906133bb565b611bd5611d7e565b6001600160a01b038116611c3a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108da565b61115a816124d8565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc9060840160006040518083038186803b158015611cbe57600080fd5b505afa158015611cd2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cfa91908101906134cf565b90505b949350505050565b600080611d685a60966366ad5c8a60e01b89898989604051602401611d2d9493929190613545565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152309291906127d3565b915091508161140b5761140b868686868561285d565b6000546001600160a01b031633146114ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108da565b6000818152600360205260409020546001600160a01b031661115a5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108da565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e6c826112d7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611efb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108da565b6000818152600360205260409020546001600160a01b031615611f605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108da565b6000818152600360205260409020546001600160a01b031615611fc55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108da565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061203b826112d7565b9050612046826112d7565b600083815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526004845282852080546000190190558785526003909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b61ffff8616600090815260076020526040812080546120e390613260565b80601f016020809104026020016040519081016040528092919081815260200182805461210f90613260565b801561215c5780601f106121315761010080835404028352916020019161215c565b820191906000526020600020905b81548152906001019060200180831161213f57829003601f168201915b505050505090508051600014156121ce5760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b60648201526084016108da565b6121d98787516128fa565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c5803100908490612230908b9086908c908c908c908c90600401613583565b6000604051808303818588803b15801561224957600080fd5b505af115801561225d573d6000803e3d6000fd5b505050505050505050505050565b600080612277836112d7565b9050806001600160a01b0316846001600160a01b031614806122be57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80611cfd5750836001600160a01b03166122d784610c04565b6001600160a01b031614949350505050565b826001600160a01b03166122fc826112d7565b6001600160a01b0316146123225760405162461bcd60e51b81526004016108da906135ea565b6001600160a01b0382166123845760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108da565b826001600160a01b0316612397826112d7565b6001600160a01b0316146123bd5760405162461bcd60e51b81526004016108da906135ea565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000601484015190506000808380602001905181019061246d919061362f565b9150915061247b8282611ea5565b600c8054600101908190556040805161ffff8a1681526001600160a01b038616602082015290810183905260608101919091527f31ae2bb20187b24b2039def7711f43f56311ec96de17b7ef01d1b1da40eb2eee90608001611ab0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608161253681601f61365d565b10156125755760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016108da565b61257f828461365d565b845110156125c35760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016108da565b6060821580156125e2576040519150600082526020820160405261262c565b6040519150601f8416801560200281840101858101878315602002848b0101015b8183101561261b578051835260209283019201612603565b5050858452601f01601f1916604052505b50949350505050565b816001600160a01b0316836001600160a01b031614156126975760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108da565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61270f8484846122e9565b61271b84848484612968565b6117415760405162461bcd60e51b81526004016108da90613675565b6060600061274483612a72565b60010190506000816001600160401b0381111561276357612763612f22565b6040519080825280601f01601f19166020018201604052801561278d576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846127c6576127cb565b612797565b509392505050565b6000606060008060008661ffff166001600160401b038111156127f8576127f8612f22565b6040519080825280601f01601f191660200182016040528015612822576020820181803683370190505b50905060008087516020890160008d8df191503d925086831115612844578692505b828152826000602083013e909890975095505050505050565b8180519060200120600b60008761ffff1661ffff1681526020019081526020016000208560405161288e91906136c7565b9081526040805191829003602090810183206001600160401b0388166000908152915220919091557fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c906128eb90879087908790879087906136e3565b60405180910390a15050505050565b61ffff82166000908152600960205260409020548061291857506127105b80821115610d3c5760405162461bcd60e51b815260206004820181905260248201527f4c7a4170703a207061796c6f61642073697a6520697320746f6f206c6172676560448201526064016108da565b60006001600160a01b0384163b15612a6a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129ac903390899088908890600401613735565b602060405180830381600087803b1580156129c657600080fd5b505af19250505080156129f6575060408051601f3d908101601f191682019092526129f391810190613772565b60015b612a50573d808015612a24576040519150601f19603f3d011682016040523d82523d6000602084013e612a29565b606091505b508051612a485760405162461bcd60e51b81526004016108da90613675565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611cfd565b506001611cfd565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612ab15772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612add576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612afb57662386f26fc10000830492506010015b6305f5e1008310612b13576305f5e100830492506008015b6127108310612b2757612710830492506004015b60648310612b39576064830492506002015b600a8310610ae35760010192915050565b828054612b5690613260565b90600052602060002090601f016020900481019282612b785760008555612bbe565b82601f10612b9157805160ff1916838001178555612bbe565b82800160010185558215612bbe579182015b82811115612bbe578251825591602001919060010190612ba3565b50612bca929150612c42565b5090565b828054612bda90613260565b90600052602060002090601f016020900481019282612bfc5760008555612bbe565b82601f10612c155782800160ff19823516178555612bbe565b82800160010185558215612bbe579182015b82811115612bbe578235825591602001919060010190612c27565b5b80821115612bca5760008155600101612c43565b803561ffff81168114612c6957600080fd5b919050565b60008083601f840112612c8057600080fd5b5081356001600160401b03811115612c9757600080fd5b602083019150836020828501011115612caf57600080fd5b9250929050565b80356001600160401b0381168114612c6957600080fd5b60008060008060008060808789031215612ce657600080fd5b612cef87612c57565b955060208701356001600160401b0380821115612d0b57600080fd5b612d178a838b01612c6e565b9097509550859150612d2b60408a01612cb6565b94506060890135915080821115612d4157600080fd5b50612d4e89828a01612c6e565b979a9699509497509295939492505050565b6001600160e01b03198116811461115a57600080fd5b600060208284031215612d8857600080fd5b813561166681612d60565b60005b83811015612dae578181015183820152602001612d96565b838111156117415750506000910152565b60008151808452612dd7816020860160208601612d93565b601f01601f19169290920160200192915050565b6020815260006116666020830184612dbf565b600060208284031215612e1057600080fd5b61166682612c57565b600060208284031215612e2b57600080fd5b5035919050565b6001600160a01b038116811461115a57600080fd5b60008060408385031215612e5a57600080fd5b8235612e6581612e32565b946020939093013593505050565b60008060408385031215612e8657600080fd5b612e6583612c57565b600080600060608486031215612ea457600080fd5b8335612eaf81612e32565b92506020840135612ebf81612e32565b929592945050506040919091013590565b600080600060408486031215612ee557600080fd5b612eee84612c57565b925060208401356001600160401b03811115612f0957600080fd5b612f1586828701612c6e565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612f6057612f60612f22565b604052919050565b60006001600160401b03821115612f8157612f81612f22565b50601f01601f191660200190565b600082601f830112612fa057600080fd5b8135612fb3612fae82612f68565b612f38565b818152846020838601011115612fc857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600060608486031215612ffa57600080fd5b61300384612c57565b925060208401356001600160401b0381111561301e57600080fd5b61302a86828701612f8f565b92505061303960408501612cb6565b90509250925092565b60006020828403121561305457600080fd5b813561166681612e32565b6000806040838503121561307257600080fd5b61307b83612c57565b915061308960208401612c57565b90509250929050565b600080604083850312156130a557600080fd5b82356130b081612e32565b9150602083013580151581146130c557600080fd5b809150509250929050565b600080600080608085870312156130e657600080fd5b84356130f181612e32565b9350602085013561310181612e32565b92506040850135915060608501356001600160401b0381111561312357600080fd5b61312f87828801612f8f565b91505092959194509250565b60008060008060006080868803121561315357600080fd5b61315c86612c57565b945061316a60208701612c57565b93506040860135925060608601356001600160401b0381111561318c57600080fd5b61319888828901612c6e565b969995985093965092949392505050565b6000806000606084860312156131be57600080fd5b6131c784612c57565b92506131d560208501612c57565b9150604084013590509250925092565b600080604083850312156131f857600080fd5b823561320381612e32565b915060208301356130c581612e32565b6000806000806080858703121561322957600080fd5b61323285612c57565b935061324060208601612c57565b9250604085013561325081612e32565b9396929550929360600135925050565b600181811c9082168061327457607f821691505b6020821081141561329557634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b6000826132c857634e487b7160e01b600052601260045260246000fd5b500690565b61ffff861681526001600160a01b038516602082015260a0604082018190526000906132fb90830186612dbf565b841515606084015282810360808401526133158185612dbf565b98975050505050505050565b6000806040838503121561333457600080fd5b505080516020909101519092909150565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff84168152604060208201526000611cfa604083018486613392565b634e487b7160e01b600052601160045260246000fd5b600082821015613401576134016133d9565b500390565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b6000835161343e818460208801612d93565b835190830190613452818360208801612d93565b01949350505050565b600061ffff808816835280871660208401525084604083015260806060830152613489608083018486613392565b979650505050505050565b61ffff861681526080602082015260006134b2608083018688613392565b6001600160401b0394909416604083015250606001529392505050565b6000602082840312156134e157600080fd5b81516001600160401b038111156134f757600080fd5b8201601f8101841361350857600080fd5b8051613516612fae82612f68565b81815285602083850101111561352b57600080fd5b61353c826020830160208601612d93565b95945050505050565b61ffff851681526080602082015260006135626080830186612dbf565b6001600160401b038516604084015282810360608401526134898185612dbf565b61ffff8716815260c0602082015260006135a060c0830188612dbf565b82810360408401526135b28188612dbf565b6001600160a01b0387811660608601528616608085015283810360a085015290506135dd8185612dbf565b9998505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6000806040838503121561364257600080fd5b825161364d81612e32565b6020939093015192949293505050565b60008219821115613670576136706133d9565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082516136d9818460208701612d93565b9190910192915050565b61ffff8616815260a06020820152600061370060a0830187612dbf565b6001600160401b038616604084015282810360608401526137218186612dbf565b905082810360808401526133158185612dbf565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061376890830184612dbf565b9695505050505050565b60006020828403121561378457600080fd5b815161166681612d6056fea2646970667358221220c3ca859bacfe90567ab803f9d418f94ae02fbf2e0bd1ce07107f058c1514ddb264736f6c634300080900330000000000000000000000003c2269811836af69497e5f486a85d7316753cf62
Deployed Bytecode
0x6080604052600436106102715760003560e01c806366ad5c8a1161014f578063b353aaa7116100c1578063d1deba1f1161007a578063d1deba1f1461078a578063df2a5b3b1461079d578063e985e9c5146107bd578063eb8d72b714610806578063f2fde38b14610826578063f5ecbdbc1461084657600080fd5b8063b353aaa7146106c0578063b88d4fde146106f4578063baf3292d14610714578063c446183414610734578063c87b56dd1461074a578063cbed8b9c1461076a57600080fd5b80638da5cb5b116101135780638da5cb5b1461060d578063950c8a741461062b57806395d89b411461064b5780639f38369a14610660578063a22cb46514610680578063a6c3d165146106a057600080fd5b806366ad5c8a1461056057806370a0823114610580578063715018a6146105a05780637533d788146105b55780638cfd8f5c146105d557600080fd5b806323b872dd116101e857806342842e0e116101ac57806342842e0e1461047b57806342d65a8d1461049b57806344a0d68a146104bb5780635b8c41e6146104db57806361bc221a1461052a5780636352211e1461054057600080fd5b806323b872dd146103e6578063362790f6146104065780633ccfd60b146104265780633d8b38f61461042e5780633f1f4fa41461044e57600080fd5b8063095ea7b31161023a578063095ea7b3146103475780630df374831461036757806310ddb137146103875780631249c58b146103a757806313faede6146103af5780631e128296146103d357600080fd5b80621d35671461027657806301ffc9a71461029857806306fdde03146102cd57806307e0db17146102ef578063081812fc1461030f575b600080fd5b34801561028257600080fd5b50610296610291366004612ccd565b610866565b005b3480156102a457600080fd5b506102b86102b3366004612d76565b610a97565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e2610ae9565b6040516102c49190612deb565b3480156102fb57600080fd5b5061029661030a366004612dfe565b610b7b565b34801561031b57600080fd5b5061032f61032a366004612e19565b610c04565b6040516001600160a01b0390911681526020016102c4565b34801561035357600080fd5b50610296610362366004612e47565b610c2b565b34801561037357600080fd5b50610296610382366004612e73565b610d41565b34801561039357600080fd5b506102966103a2366004612dfe565b610d60565b610296610db8565b3480156103bb57600080fd5b506103c5600d5481565b6040519081526020016102c4565b6102966103e1366004612e73565b610e5d565b3480156103f257600080fd5b50610296610401366004612e8f565b610fcc565b34801561041257600080fd5b506103c5610421366004612e73565b610ffd565b6102966110fd565b34801561043a57600080fd5b506102b8610449366004612ed0565b61115d565b34801561045a57600080fd5b506103c5610469366004612dfe565b60096020526000908152604090205481565b34801561048757600080fd5b50610296610496366004612e8f565b611229565b3480156104a757600080fd5b506102966104b6366004612ed0565b611244565b3480156104c757600080fd5b506102966104d6366004612e19565b6112ca565b3480156104e757600080fd5b506103c56104f6366004612fe5565b600b602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b34801561053657600080fd5b506103c5600c5481565b34801561054c57600080fd5b5061032f61055b366004612e19565b6112d7565b34801561056c57600080fd5b5061029661057b366004612ccd565b611337565b34801561058c57600080fd5b506103c561059b366004613042565b611413565b3480156105ac57600080fd5b50610296611499565b3480156105c157600080fd5b506102e26105d0366004612dfe565b6114ad565b3480156105e157600080fd5b506103c56105f036600461305f565b600860209081526000928352604080842090915290825290205481565b34801561061957600080fd5b506000546001600160a01b031661032f565b34801561063757600080fd5b50600a5461032f906001600160a01b031681565b34801561065757600080fd5b506102e2611547565b34801561066c57600080fd5b506102e261067b366004612dfe565b611556565b34801561068c57600080fd5b5061029661069b366004613092565b61166d565b3480156106ac57600080fd5b506102966106bb366004612ed0565b61167c565b3480156106cc57600080fd5b5061032f7f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6281565b34801561070057600080fd5b5061029661070f3660046130d0565b61170f565b34801561072057600080fd5b5061029661072f366004613042565b611747565b34801561074057600080fd5b506103c561271081565b34801561075657600080fd5b506102e2610765366004612e19565b6117a3565b34801561077657600080fd5b5061029661078536600461313b565b611816565b610296610798366004612ccd565b6118ab565b3480156107a957600080fd5b506102966107b83660046131a9565b611ac1565b3480156107c957600080fd5b506102b86107d83660046131e5565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561081257600080fd5b50610296610821366004612ed0565b611b73565b34801561083257600080fd5b50610296610841366004613042565b611bcd565b34801561085257600080fd5b506102e2610861366004613213565b611c43565b337f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316146108e35760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff86166000908152600760205260408120805461090190613260565b80601f016020809104026020016040519081016040528092919081815260200182805461092d90613260565b801561097a5780601f1061094f5761010080835404028352916020019161097a565b820191906000526020600020905b81548152906001019060200180831161095d57829003601f168201915b50505050509050805186869050148015610995575060008151115b80156109bd5750805160208201206040516109b3908890889061329b565b6040518091039020145b610a185760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b60648201526084016108da565b610a8e8787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881528a935091508890889081908401838280828437600092019190915250611d0592505050565b50505050505050565b60006001600160e01b031982166380ac58cd60e01b1480610ac857506001600160e01b03198216635b5e139f60e01b145b80610ae357506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610af890613260565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2490613260565b8015610b715780601f10610b4657610100808354040283529160200191610b71565b820191906000526020600020905b815481529060010190602001808311610b5457829003601f168201915b5050505050905090565b610b83611d7e565b6040516307e0db1760e01b815261ffff821660048201527f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316906307e0db17906024015b600060405180830381600087803b158015610be957600080fd5b505af1158015610bfd573d6000803e3d6000fd5b5050505050565b6000610c0f82611dd8565b506000908152600560205260409020546001600160a01b031690565b6000610c36826112d7565b9050806001600160a01b0316836001600160a01b03161415610ca45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108da565b336001600160a01b0382161480610cc05750610cc081336107d8565b610d325760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016108da565b610d3c8383611e37565b505050565b610d49611d7e565b61ffff909116600090815260096020526040902055565b610d68611d7e565b6040516310ddb13760e01b815261ffff821660048201527f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316906310ddb13790602401610bcf565b600d54341015610e025760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016108da565b600c546040805160208101929092524490820152426060820152610e5290339062989680906080016040516020818303038152906040528051906020012060001c610e4d91906132ab565b611ea5565b600c80546001019055565b610e66816112d7565b6001600160a01b0316336001600160a01b031614610e97576040516359dc379f60e01b815260040160405180910390fd5b600c8054600019019055610eaa81612030565b60408051336020820152808201839052815180820383018152606082018352600160f01b60808301526205573060828084018290528451808503909101815260a284019485905263040a7bb160e41b90945290926001926000907f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316906340a7bb1090610f4b908a9030908a908790899060a6016132cd565b604080518083038186803b158015610f6257600080fd5b505afa158015610f76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a9190613321565b509050803411610fbd576040516307099c5360e21b815260040160405180910390fd5b610a8e878633600086346120c5565b610fd6338261226b565b610ff25760405162461bcd60e51b81526004016108da90613345565b610d3c8383836122e9565b60408051336020820152808201839052815180820383018152606082018352600160f01b60808301526205573060828084018290528451808503909101815260a284019485905263040a7bb160e41b90945260009391926001929085907f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316906340a7bb10906110a1908b9030908a908790899060a6016132cd565b604080518083038186803b1580156110b857600080fd5b505afa1580156110cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f09190613321565b5098975050505050505050565b611105611d7e565b604051600090339047908381818185875af1925050503d8060008114611147576040519150601f19603f3d011682016040523d82523d6000602084013e61114c565b606091505b505090508061115a57600080fd5b50565b61ffff83166000908152600760205260408120805482919061117e90613260565b80601f01602080910402602001604051908101604052809291908181526020018280546111aa90613260565b80156111f75780601f106111cc576101008083540402835291602001916111f7565b820191906000526020600020905b8154815290600101906020018083116111da57829003601f168201915b50505050509050838360405161120e92919061329b565b60405180910390208180519060200120149150509392505050565b610d3c8383836040518060200160405280600081525061170f565b61124c611d7e565b6040516342d65a8d60e01b81526001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6216906342d65a8d9061129c908690869086906004016133bb565b600060405180830381600087803b1580156112b657600080fd5b505af1158015610a8e573d6000803e3d6000fd5b6112d2611d7e565b600d55565b6000818152600360205260408120546001600160a01b031680610ae35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108da565b3330146113955760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b60648201526084016108da565b61140b8686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f89018190048102820181019092528781528993509150879087908190840183828082843760009201919091525061244d92505050565b505050505050565b60006001600160a01b03821661147d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108da565b506001600160a01b031660009081526004602052604090205490565b6114a1611d7e565b6114ab60006124d8565b565b600760205260009081526040902080546114c690613260565b80601f01602080910402602001604051908101604052809291908181526020018280546114f290613260565b801561153f5780601f106115145761010080835404028352916020019161153f565b820191906000526020600020905b81548152906001019060200180831161152257829003601f168201915b505050505081565b606060028054610af890613260565b61ffff811660009081526007602052604081208054606092919061157990613260565b80601f01602080910402602001604051908101604052809291908181526020018280546115a590613260565b80156115f25780601f106115c7576101008083540402835291602001916115f2565b820191906000526020600020905b8154815290600101906020018083116115d557829003601f168201915b5050505050905080516000141561164b5760405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f726400000060448201526064016108da565b61166660006014835161165e91906133ef565b839190612528565b9392505050565b611678338383612635565b5050565b611684611d7e565b81813060405160200161169993929190613406565b60408051601f1981840301815291815261ffff851660009081526007602090815291902082516116ce93919290910190612b4a565b507f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce838383604051611702939291906133bb565b60405180910390a1505050565b611719338361226b565b6117355760405162461bcd60e51b81526004016108da90613345565b61174184848484612704565b50505050565b61174f611d7e565b600a80546001600160a01b0319166001600160a01b0383169081179091556040519081527f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b9060200160405180910390a150565b60606117ae82611dd8565b60006117c560408051602081019091526000815290565b905060008151116117e55760405180602001604052806000815250611666565b806117ef84612737565b60405160200161180092919061342c565b6040516020818303038152906040529392505050565b61181e611d7e565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62169063cbed8b9c90611872908890889088908890889060040161345b565b600060405180830381600087803b15801561188c57600080fd5b505af11580156118a0573d6000803e3d6000fd5b505050505050505050565b61ffff86166000908152600b602052604080822090516118ce908890889061329b565b90815260408051602092819003830190206001600160401b0387166000908152925290205490508061194e5760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b60648201526084016108da565b80838360405161195f92919061329b565b6040518091039020146119be5760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b60648201526084016108da565b61ffff87166000908152600b602052604080822090516119e1908990899061329b565b90815260408051602092819003830181206001600160401b038916600090815290845282902093909355601f88018290048202830182019052868252611a79918991899089908190840183828082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061244d92505050565b7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e58787878785604051611ab0959493929190613494565b60405180910390a150505050505050565b611ac9611d7e565b60008111611b115760405162461bcd60e51b81526020600482015260156024820152744c7a4170703a20696e76616c6964206d696e47617360581b60448201526064016108da565b61ffff83811660008181526008602090815260408083209487168084529482529182902085905581519283528201929092529081018290527f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac090606001611702565b611b7b611d7e565b61ffff83166000908152600760205260409020611b99908383612bce565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab838383604051611702939291906133bb565b611bd5611d7e565b6001600160a01b038116611c3a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108da565b61115a816124d8565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b03169063f5ecbdbc9060840160006040518083038186803b158015611cbe57600080fd5b505afa158015611cd2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cfa91908101906134cf565b90505b949350505050565b600080611d685a60966366ad5c8a60e01b89898989604051602401611d2d9493929190613545565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152309291906127d3565b915091508161140b5761140b868686868561285d565b6000546001600160a01b031633146114ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108da565b6000818152600360205260409020546001600160a01b031661115a5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108da565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e6c826112d7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611efb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108da565b6000818152600360205260409020546001600160a01b031615611f605760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108da565b6000818152600360205260409020546001600160a01b031615611fc55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108da565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600061203b826112d7565b9050612046826112d7565b600083815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526004845282852080546000190190558785526003909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b61ffff8616600090815260076020526040812080546120e390613260565b80601f016020809104026020016040519081016040528092919081815260200182805461210f90613260565b801561215c5780601f106121315761010080835404028352916020019161215c565b820191906000526020600020905b81548152906001019060200180831161213f57829003601f168201915b505050505090508051600014156121ce5760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b60648201526084016108da565b6121d98787516128fa565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62169063c5803100908490612230908b9086908c908c908c908c90600401613583565b6000604051808303818588803b15801561224957600080fd5b505af115801561225d573d6000803e3d6000fd5b505050505050505050505050565b600080612277836112d7565b9050806001600160a01b0316846001600160a01b031614806122be57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80611cfd5750836001600160a01b03166122d784610c04565b6001600160a01b031614949350505050565b826001600160a01b03166122fc826112d7565b6001600160a01b0316146123225760405162461bcd60e51b81526004016108da906135ea565b6001600160a01b0382166123845760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108da565b826001600160a01b0316612397826112d7565b6001600160a01b0316146123bd5760405162461bcd60e51b81526004016108da906135ea565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000601484015190506000808380602001905181019061246d919061362f565b9150915061247b8282611ea5565b600c8054600101908190556040805161ffff8a1681526001600160a01b038616602082015290810183905260608101919091527f31ae2bb20187b24b2039def7711f43f56311ec96de17b7ef01d1b1da40eb2eee90608001611ab0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608161253681601f61365d565b10156125755760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016108da565b61257f828461365d565b845110156125c35760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016108da565b6060821580156125e2576040519150600082526020820160405261262c565b6040519150601f8416801560200281840101858101878315602002848b0101015b8183101561261b578051835260209283019201612603565b5050858452601f01601f1916604052505b50949350505050565b816001600160a01b0316836001600160a01b031614156126975760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108da565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61270f8484846122e9565b61271b84848484612968565b6117415760405162461bcd60e51b81526004016108da90613675565b6060600061274483612a72565b60010190506000816001600160401b0381111561276357612763612f22565b6040519080825280601f01601f19166020018201604052801561278d576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846127c6576127cb565b612797565b509392505050565b6000606060008060008661ffff166001600160401b038111156127f8576127f8612f22565b6040519080825280601f01601f191660200182016040528015612822576020820181803683370190505b50905060008087516020890160008d8df191503d925086831115612844578692505b828152826000602083013e909890975095505050505050565b8180519060200120600b60008761ffff1661ffff1681526020019081526020016000208560405161288e91906136c7565b9081526040805191829003602090810183206001600160401b0388166000908152915220919091557fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c906128eb90879087908790879087906136e3565b60405180910390a15050505050565b61ffff82166000908152600960205260409020548061291857506127105b80821115610d3c5760405162461bcd60e51b815260206004820181905260248201527f4c7a4170703a207061796c6f61642073697a6520697320746f6f206c6172676560448201526064016108da565b60006001600160a01b0384163b15612a6a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129ac903390899088908890600401613735565b602060405180830381600087803b1580156129c657600080fd5b505af19250505080156129f6575060408051601f3d908101601f191682019092526129f391810190613772565b60015b612a50573d808015612a24576040519150601f19603f3d011682016040523d82523d6000602084013e612a29565b606091505b508051612a485760405162461bcd60e51b81526004016108da90613675565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611cfd565b506001611cfd565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612ab15772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612add576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612afb57662386f26fc10000830492506010015b6305f5e1008310612b13576305f5e100830492506008015b6127108310612b2757612710830492506004015b60648310612b39576064830492506002015b600a8310610ae35760010192915050565b828054612b5690613260565b90600052602060002090601f016020900481019282612b785760008555612bbe565b82601f10612b9157805160ff1916838001178555612bbe565b82800160010185558215612bbe579182015b82811115612bbe578251825591602001919060010190612ba3565b50612bca929150612c42565b5090565b828054612bda90613260565b90600052602060002090601f016020900481019282612bfc5760008555612bbe565b82601f10612c155782800160ff19823516178555612bbe565b82800160010185558215612bbe579182015b82811115612bbe578235825591602001919060010190612c27565b5b80821115612bca5760008155600101612c43565b803561ffff81168114612c6957600080fd5b919050565b60008083601f840112612c8057600080fd5b5081356001600160401b03811115612c9757600080fd5b602083019150836020828501011115612caf57600080fd5b9250929050565b80356001600160401b0381168114612c6957600080fd5b60008060008060008060808789031215612ce657600080fd5b612cef87612c57565b955060208701356001600160401b0380821115612d0b57600080fd5b612d178a838b01612c6e565b9097509550859150612d2b60408a01612cb6565b94506060890135915080821115612d4157600080fd5b50612d4e89828a01612c6e565b979a9699509497509295939492505050565b6001600160e01b03198116811461115a57600080fd5b600060208284031215612d8857600080fd5b813561166681612d60565b60005b83811015612dae578181015183820152602001612d96565b838111156117415750506000910152565b60008151808452612dd7816020860160208601612d93565b601f01601f19169290920160200192915050565b6020815260006116666020830184612dbf565b600060208284031215612e1057600080fd5b61166682612c57565b600060208284031215612e2b57600080fd5b5035919050565b6001600160a01b038116811461115a57600080fd5b60008060408385031215612e5a57600080fd5b8235612e6581612e32565b946020939093013593505050565b60008060408385031215612e8657600080fd5b612e6583612c57565b600080600060608486031215612ea457600080fd5b8335612eaf81612e32565b92506020840135612ebf81612e32565b929592945050506040919091013590565b600080600060408486031215612ee557600080fd5b612eee84612c57565b925060208401356001600160401b03811115612f0957600080fd5b612f1586828701612c6e565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612f6057612f60612f22565b604052919050565b60006001600160401b03821115612f8157612f81612f22565b50601f01601f191660200190565b600082601f830112612fa057600080fd5b8135612fb3612fae82612f68565b612f38565b818152846020838601011115612fc857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600060608486031215612ffa57600080fd5b61300384612c57565b925060208401356001600160401b0381111561301e57600080fd5b61302a86828701612f8f565b92505061303960408501612cb6565b90509250925092565b60006020828403121561305457600080fd5b813561166681612e32565b6000806040838503121561307257600080fd5b61307b83612c57565b915061308960208401612c57565b90509250929050565b600080604083850312156130a557600080fd5b82356130b081612e32565b9150602083013580151581146130c557600080fd5b809150509250929050565b600080600080608085870312156130e657600080fd5b84356130f181612e32565b9350602085013561310181612e32565b92506040850135915060608501356001600160401b0381111561312357600080fd5b61312f87828801612f8f565b91505092959194509250565b60008060008060006080868803121561315357600080fd5b61315c86612c57565b945061316a60208701612c57565b93506040860135925060608601356001600160401b0381111561318c57600080fd5b61319888828901612c6e565b969995985093965092949392505050565b6000806000606084860312156131be57600080fd5b6131c784612c57565b92506131d560208501612c57565b9150604084013590509250925092565b600080604083850312156131f857600080fd5b823561320381612e32565b915060208301356130c581612e32565b6000806000806080858703121561322957600080fd5b61323285612c57565b935061324060208601612c57565b9250604085013561325081612e32565b9396929550929360600135925050565b600181811c9082168061327457607f821691505b6020821081141561329557634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b6000826132c857634e487b7160e01b600052601260045260246000fd5b500690565b61ffff861681526001600160a01b038516602082015260a0604082018190526000906132fb90830186612dbf565b841515606084015282810360808401526133158185612dbf565b98975050505050505050565b6000806040838503121561333457600080fd5b505080516020909101519092909150565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff84168152604060208201526000611cfa604083018486613392565b634e487b7160e01b600052601160045260246000fd5b600082821015613401576134016133d9565b500390565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b6000835161343e818460208801612d93565b835190830190613452818360208801612d93565b01949350505050565b600061ffff808816835280871660208401525084604083015260806060830152613489608083018486613392565b979650505050505050565b61ffff861681526080602082015260006134b2608083018688613392565b6001600160401b0394909416604083015250606001529392505050565b6000602082840312156134e157600080fd5b81516001600160401b038111156134f757600080fd5b8201601f8101841361350857600080fd5b8051613516612fae82612f68565b81815285602083850101111561352b57600080fd5b61353c826020830160208601612d93565b95945050505050565b61ffff851681526080602082015260006135626080830186612dbf565b6001600160401b038516604084015282810360608401526134898185612dbf565b61ffff8716815260c0602082015260006135a060c0830188612dbf565b82810360408401526135b28188612dbf565b6001600160a01b0387811660608601528616608085015283810360a085015290506135dd8185612dbf565b9998505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6000806040838503121561364257600080fd5b825161364d81612e32565b6020939093015192949293505050565b60008219821115613670576136706133d9565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082516136d9818460208701612d93565b9190910192915050565b61ffff8616815260a06020820152600061370060a0830187612dbf565b6001600160401b038616604084015282810360608401526137218186612dbf565b905082810360808401526133158185612dbf565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061376890830184612dbf565b9695505050505050565b60006020828403121561378457600080fd5b815161166681612d6056fea2646970667358221220c3ca859bacfe90567ab803f9d418f94ae02fbf2e0bd1ce07107f058c1514ddb264736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62
-----Decoded View---------------
Arg [0] : _endpoint (address): 0x3c2269811836af69497E5F486A85D7316753cf62
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62
Deployed Bytecode Sourcemap
280:3026:15:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1195:891:13;;;;;;;;;;-1:-1:-1;1195:891:13;;;;;:::i;:::-;;:::i;:::-;;1505:300:4;;;;;;;;;;-1:-1:-1;1505:300:4;;;;;:::i;:::-;;:::i;:::-;;;2124:14:19;;2117:22;2099:41;;2087:2;2072:18;1505:300:4;;;;;;;;2406:98;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;5072:121:13:-;;;;;;;;;;-1:-1:-1;5072:121:13;;;;;:::i;:::-;;:::i;3870:167:4:-;;;;;;;;;;-1:-1:-1;3870:167:4;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3440:32:19;;;3422:51;;3410:2;3395:18;3870:167:4;3276:203:19;3403:406:4;;;;;;;;;;-1:-1:-1;3403:406:4;;;;;:::i;:::-;;:::i;7090:162:13:-;;;;;;;;;;-1:-1:-1;7090:162:13;;;;;:::i;:::-;;:::i;5199:127::-;;;;;;;;;;-1:-1:-1;5199:127:13;;;;;:::i;:::-;;:::i;739:270:15:-;;;:::i;373:31::-;;;;;;;;;;;;;;;;;;;4343:25:19;;;4331:2;4316:18;373:31:15;4197:177:19;1209:911:15;;;;;;:::i;:::-;;:::i;4547:326:4:-;;;;;;;;;;-1:-1:-1;4547:326:4;;;;;:::i;:::-;;:::i;2756:548:15:-;;;;;;;;;;-1:-1:-1;2756:548:15;;;;;:::i;:::-;;:::i;1016:187::-;;;:::i;7347:269:13:-;;;;;;;;;;-1:-1:-1;7347:269:13;;;;;:::i;:::-;;:::i;749:53::-;;;;;;;;;;-1:-1:-1;749:53:13;;;;;:::i;:::-;;;;;;;;;;;;;;4939:179:4;;;;;;;;;;-1:-1:-1;4939:179:4;;;;;:::i;:::-;;:::i;5332:198:13:-;;;;;;;;;;-1:-1:-1;5332:198:13;;;;;:::i;:::-;;:::i;658:75:15:-;;;;;;;;;;-1:-1:-1;658:75:15;;;;;:::i;:::-;;:::i;611:93:16:-;;;;;;;;;;-1:-1:-1;611:93:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;345:22:15;;;;;;;;;;;;;;;;2125:219:4;;;;;;;;;;-1:-1:-1;2125:219:4;;;;;:::i;:::-;;:::i;2224:414:16:-;;;;;;;;;;-1:-1:-1;2224:414:16;;;;;:::i;:::-;;:::i;1864:204:4:-;;;;;;;;;;-1:-1:-1;1864:204:4;;;;;:::i;:::-;;:::i;1824:101:17:-;;;;;;;;;;;;;:::i;621:51:13:-;;;;;;;;;;-1:-1:-1;621:51:13;;;;;:::i;:::-;;:::i;678:65::-;;;;;;;;;;-1:-1:-1;678:65:13;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;1194:85:17;;;;;;;;;;-1:-1:-1;1240:7:17;1266:6;-1:-1:-1;;;;;1266:6:17;1194:85;;808:23:13;;;;;;;;;;-1:-1:-1;808:23:13;;;;-1:-1:-1;;;;;808:23:13;;;2568:102:4;;;;;;;;;;;;;:::i;6236:340:13:-;;;;;;;;;;-1:-1:-1;6236:340:13;;;;;:::i;:::-;;:::i;4104:153:4:-;;;;;;;;;;-1:-1:-1;4104:153:4;;;;;:::i;:::-;;:::i;5896:334:13:-;;;;;;;;;;-1:-1:-1;5896:334:13;;;;;:::i;:::-;;:::i;569:46::-;;;;;;;;;;;;;;;5184:314:4;;;;;;;;;;-1:-1:-1;5184:314:4;;;;;:::i;:::-;;:::i;6582:133:13:-;;;;;;;;;;-1:-1:-1;6582:133:13;;;;;:::i;:::-;;:::i;507:55::-;;;;;;;;;;;;557:5;507:55;;2736:276:4;;;;;;;;;;-1:-1:-1;2736:276:4;;;;;:::i;:::-;;:::i;4826:240:13:-;;;;;;;;;;-1:-1:-1;4826:240:13;;;;;:::i;:::-;;:::i;2857:863:16:-;;;;;;:::i;:::-;;:::i;6721:310:13:-;;;;;;;;;;-1:-1:-1;6721:310:13;;;;;:::i;:::-;;:::i;4323:162:4:-;;;;;;;;;;-1:-1:-1;4323:162:4;;;;;:::i;:::-;-1:-1:-1;;;;;4443:25:4;;;4420:4;4443:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;4323:162;5673:217:13;;;;;;;;;;-1:-1:-1;5673:217:13;;;;;:::i;:::-;;:::i;2074:198:17:-;;;;;;;;;;-1:-1:-1;2074:198:17;;;;;:::i;:::-;;:::i;4430:337:13:-;;;;;;;;;;-1:-1:-1;4430:337:13;;;;;:::i;:::-;;:::i;1195:891::-;719:10:2;1484::13;-1:-1:-1;;;;;1460:35:13;;1439:112;;;;-1:-1:-1;;;1439:112:13;;11125:2:19;1439:112:13;;;11107:21:19;11164:2;11144:18;;;11137:30;11203:32;11183:18;;;11176:60;11253:18;;1439:112:13;;;;;;;;;1591:32;;;1562:26;1591:32;;;:19;:32;;;;;1562:61;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1808:13;:20;1786:11;;:18;;:42;:86;;;;;1871:1;1848:13;:20;:24;1786:86;:156;;;;-1:-1:-1;1918:24:13;;;;;;1892:22;;;;1902:11;;;;1892:22;:::i;:::-;;;;;;;;:50;1786:156;1765:241;;;;-1:-1:-1;;;1765:241:13;;12145:2:19;1765:241:13;;;12127:21:19;12184:2;12164:18;;;12157:30;12223:34;12203:18;;;12196:62;-1:-1:-1;;;12274:18:19;;;12267:36;12320:19;;1765:241:13;11943:402:19;1765:241:13;2017:62;2036:11;2049;;2017:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2017:62:13;;;;;;;;;;;;;;;;;;;;;;2062:6;;-1:-1:-1;2017:62:13;-1:-1:-1;2070:8:13;;;;;;2017:62;;2070:8;;;;2017:62;;;;;;;;;-1:-1:-1;2017:18:13;;-1:-1:-1;;;2017:62:13:i;:::-;1364:722;1195:891;;;;;;:::o;1505:300:4:-;1607:4;-1:-1:-1;;;;;;1642:40:4;;-1:-1:-1;;;1642:40:4;;:104;;-1:-1:-1;;;;;;;1698:48:4;;-1:-1:-1;;;1698:48:4;1642:104;:156;;;-1:-1:-1;;;;;;;;;;937:40:3;;;1762:36:4;1623:175;1505:300;-1:-1:-1;;1505:300:4:o;2406:98::-;2460:13;2492:5;2485:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2406:98;:::o;5072:121:13:-;1087:13:17;:11;:13::i;:::-;5151:35:13::1;::::0;-1:-1:-1;;;5151:35:13;;12524:6:19;12512:19;;5151:35:13::1;::::0;::::1;12494:38:19::0;5151:10:13::1;-1:-1:-1::0;;;;;5151:25:13::1;::::0;::::1;::::0;12467:18:19;;5151:35:13::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;5072:121:::0;:::o;3870:167:4:-;3946:7;3965:23;3980:7;3965:14;:23::i;:::-;-1:-1:-1;4006:24:4;;;;:15;:24;;;;;;-1:-1:-1;;;;;4006:24:4;;3870:167::o;3403:406::-;3483:13;3499:23;3514:7;3499:14;:23::i;:::-;3483:39;;3546:5;-1:-1:-1;;;;;3540:11:4;:2;-1:-1:-1;;;;;3540:11:4;;;3532:57;;;;-1:-1:-1;;;3532:57:4;;12745:2:19;3532:57:4;;;12727:21:19;12784:2;12764:18;;;12757:30;12823:34;12803:18;;;12796:62;-1:-1:-1;;;12874:18:19;;;12867:31;12915:19;;3532:57:4;12543:397:19;3532:57:4;719:10:2;-1:-1:-1;;;;;3621:21:4;;;;:62;;-1:-1:-1;3646:37:4;3663:5;719:10:2;4323:162:4;:::i;3646:37::-;3600:170;;;;-1:-1:-1;;;3600:170:4;;13147:2:19;3600:170:4;;;13129:21:19;13186:2;13166:18;;;13159:30;13225:34;13205:18;;;13198:62;13296:31;13276:18;;;13269:59;13345:19;;3600:170:4;12945:425:19;3600:170:4;3781:21;3790:2;3794:7;3781:8;:21::i;:::-;3473:336;3403:406;;:::o;7090:162:13:-;1087:13:17;:11;:13::i;:::-;7202:35:13::1;::::0;;::::1;;::::0;;;:22:::1;:35;::::0;;;;:43;7090:162::o;5199:127::-;1087:13:17;:11;:13::i;:::-;5281:38:13::1;::::0;-1:-1:-1;;;5281:38:13;;12524:6:19;12512:19;;5281:38:13::1;::::0;::::1;12494::19::0;5281:10:13::1;-1:-1:-1::0;;;;;5281:28:13::1;::::0;::::1;::::0;12467:18:19;;5281:38:13::1;12350:188:19::0;739:270:15;803:4;;790:9;:17;;782:51;;;;-1:-1:-1;;;782:51:15;;13577:2:19;782:51:15;;;13559:21:19;13616:2;13596:18;;;13589:30;-1:-1:-1;;;13635:18:19;;;13628:51;13696:18;;782:51:15;13375:345:19;782:51:15;892:7;;875:60;;;;;;13910:19:19;;;;901:16:15;13945:12:19;;;13938:28;919:15:15;13982:12:19;;;13975:28;843:106:15;;849:10;;940:8;;14019:12:19;;875:60:15;;;;;;;;;;;;865:71;;;;;;860:77;;:88;;;;:::i;:::-;843:5;:106::i;:::-;985:7;983:9;;;;;;739:270::o;1209:911::-;1308:16;1316:7;1308;:16::i;:::-;-1:-1:-1;;;;;1294:30:15;:10;-1:-1:-1;;;;;1294:30:15;;1290:58;;1333:15;;-1:-1:-1;;;1333:15:15;;;;;;;;;;;1290:58;1424:7;1422:9;;-1:-1:-1;;1422:9:15;;;1451:14;1457:7;1451:5;:14::i;:::-;1499:31;;;1510:10;1499:31;;;14562:51:19;14629:18;;;14622:34;;;1499:31:15;;;;;;;;;14535:18:19;;;1499:31:15;;-1:-1:-1;;;1639:42:15;;;14822:51:19;1594:6:15;14889:11:19;;;;14882:27;;;1639:42:15;;;;;;;;;;14925:12:19;;;1639:42:15;;;;-1:-1:-1;;;1717:151:15;;;1499:31;;1557:1;;-1:-1:-1;;1717:10:15;-1:-1:-1;;;;;1717:23:15;;;;:151;;1754:10;;1786:4;;1499:31;;-1:-1:-1;;1639:42:15;;1717:151;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1692:176;;;1895:10;1882:9;:23;1878:53;;1914:17;;-1:-1:-1;;;1914:17:15;;;;;;;;;;;1878:53;1942:171;1963:10;1987:7;2016:10;2049:3;2067:13;2094:9;1942:7;:171::i;4547:326:4:-;4736:41;719:10:2;4769:7:4;4736:18;:41::i;:::-;4728:99;;;;-1:-1:-1;;;4728:99:4;;;;;;;:::i;:::-;4838:28;4848:4;4854:2;4858:7;4838:9;:28::i;2756:548:15:-;2901:31;;;2912:10;2901:31;;;14562:51:19;14629:18;;;14622:34;;;2901:31:15;;;;;;;;;14535:18:19;;;2901:31:15;;-1:-1:-1;;;3041:42:15;;;14822:51:19;2996:6:15;14889:11:19;;;;14882:27;;;3041:42:15;;;;;;;;;;14925:12:19;;;3041:42:15;;;;-1:-1:-1;;;3119:151:15;;;-1:-1:-1;;2901:31:15;;2959:1;;3041:42;-1:-1:-1;;3119:10:15;-1:-1:-1;;;;;3119:23:15;;;;:151;;3156:10;;3188:4;;2901:31;;-1:-1:-1;;3041:42:15;;3119:151;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;3094:176:15;2756:548;-1:-1:-1;;;;;;;;2756:548:15:o;1016:187::-;1087:13:17;:11;:13::i;:::-;1090:80:15::1;::::0;1072:12:::1;::::0;1098:10:::1;::::0;1135:21:::1;::::0;1072:12;1090:80;1072:12;1090:80;1135:21;1098:10;1090:80:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1071:99;;;1188:7;1180:16;;;::::0;::::1;;1061:142;1016:187::o:0;7347:269:13:-;7510:32;;;7465:4;7510:32;;;:19;:32;;;;;7481:61;;7465:4;;7510:32;7481:61;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7597:11;;7587:22;;;;;;;:::i;:::-;;;;;;;;7569:13;7559:24;;;;;;:50;7552:57;;;7347:269;;;;;:::o;4939:179:4:-;5072:39;5089:4;5095:2;5099:7;5072:39;;;;;;;;;;;;:16;:39::i;5332:198:13:-;1087:13:17;:11;:13::i;:::-;5468:55:13::1;::::0;-1:-1:-1;;;5468:55:13;;-1:-1:-1;;;;;5468:10:13::1;:29;::::0;::::1;::::0;:55:::1;::::0;5498:11;;5511;;;;5468:55:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;658:75:15::0;1087:13:17;:11;:13::i;:::-;714:4:15::1;:12:::0;658:75::o;2125:219:4:-;2197:7;6865:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6865:16:4;;2259:56;;;;-1:-1:-1;;;2259:56:4;;17273:2:19;2259:56:4;;;17255:21:19;17312:2;17292:18;;;17285:30;-1:-1:-1;;;17331:18:19;;;17324:54;17395:18;;2259:56:4;17071:348:19;2224:414:16;719:10:2;2487:4:16;2463:29;2442:114;;;;-1:-1:-1;;;2442:114:16;;17626:2:19;2442:114:16;;;17608:21:19;17665:2;17645:18;;;17638:30;17704:34;17684:18;;;17677:62;-1:-1:-1;;;17755:18:19;;;17748:36;17801:19;;2442:114:16;17424:402:19;2442:114:16;2566:65;2588:11;2601;;2566:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2566:65:16;;;;;;;;;;;;;;;;;;;;;;2614:6;;-1:-1:-1;2566:65:16;-1:-1:-1;2622:8:16;;;;;;2566:65;;2622:8;;;;2566:65;;;;;;;;;-1:-1:-1;2566:21:16;;-1:-1:-1;;;2566:65:16:i;:::-;2224:414;;;;;;:::o;1864:204:4:-;1936:7;-1:-1:-1;;;;;1963:19:4;;1955:73;;;;-1:-1:-1;;;1955:73:4;;18033:2:19;1955:73:4;;;18015:21:19;18072:2;18052:18;;;18045:30;18111:34;18091:18;;;18084:62;-1:-1:-1;;;18162:18:19;;;18155:39;18211:19;;1955:73:4;17831:405:19;1955:73:4;-1:-1:-1;;;;;;2045:16:4;;;;;:9;:16;;;;;;;1864:204::o;1824:101:17:-;1087:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;:::-;1824:101::o:0;621:51:13:-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2568:102:4:-;2624:13;2656:7;2649:14;;;;;:::i;6236:340:13:-;6373:35;;;6353:17;6373:35;;;:19;:35;;;;;6353:55;;6329:12;;6353:17;6373:35;6353:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6426:4;:11;6441:1;6426:16;;6418:58;;;;-1:-1:-1;;;6418:58:13;;18443:2:19;6418:58:13;;;18425:21:19;18482:2;18462:18;;;18455:30;18521:31;18501:18;;;18494:59;18570:18;;6418:58:13;18241:353:19;6418:58:13;6493:31;6504:1;6521:2;6507:4;:11;:16;;;;:::i;:::-;6493:4;;:31;:10;:31::i;:::-;6486:38;6236:340;-1:-1:-1;;;6236:340:13:o;4104:153:4:-;4198:52;719:10:2;4231:8:4;4241;4198:18;:52::i;:::-;4104:153;;:::o;5896:334:13:-;1087:13:17;:11;:13::i;:::-;6102:14:13::1;;6138:4;6072:81;;;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;6072:81:13;;::::1;::::0;;;;;;6034:35:::1;::::0;::::1;;::::0;;;:19:::1;6072:81;6034:35:::0;;;;;;:119;;::::1;::::0;:35;;:119;;::::1;::::0;::::1;:::i;:::-;;6168:55;6192:14;6208;;6168:55;;;;;;;;:::i;:::-;;;;;;;;5896:334:::0;;;:::o;5184:314:4:-;5352:41;719:10:2;5385:7:4;5352:18;:41::i;:::-;5344:99;;;;-1:-1:-1;;;5344:99:4;;;;;;;:::i;:::-;5453:38;5467:4;5473:2;5477:7;5486:4;5453:13;:38::i;:::-;5184:314;;;;:::o;6582:133:13:-;1087:13:17;:11;:13::i;:::-;6651:8:13::1;:20:::0;;-1:-1:-1;;;;;;6651:20:13::1;-1:-1:-1::0;;;;;6651:20:13;::::1;::::0;;::::1;::::0;;;6686:22:::1;::::0;3422:51:19;;;6686:22:13::1;::::0;3410:2:19;3395:18;6686:22:13::1;;;;;;;6582:133:::0;:::o;2736:276:4:-;2809:13;2834:23;2849:7;2834:14;:23::i;:::-;2868:21;2892:10;3330:9;;;;;;;;;-1:-1:-1;3330:9:4;;;3254:92;2892:10;2868:34;;2943:1;2925:7;2919:21;:25;:86;;;;;;;;;;;;;;;;;2971:7;2980:18;:7;:16;:18::i;:::-;2954:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2912:93;2736:276;-1:-1:-1;;;2736:276:4:o;4826:240:13:-;1087:13:17;:11;:13::i;:::-;4997:62:13::1;::::0;-1:-1:-1;;;4997:62:13;;-1:-1:-1;;;;;4997:10:13::1;:20;::::0;::::1;::::0;:62:::1;::::0;5018:8;;5028;;5038:11;;5051:7;;;;4997:62:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;4826:240:::0;;;;;:::o;2857:863:16:-;3104:27;;;3082:19;3104:27;;;:14;:27;;;;;;:40;;;;3132:11;;;;3104:40;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3104:48:16;;;;;;;;;;;;-1:-1:-1;3104:48:16;3162:107;;;;-1:-1:-1;;;3162:107:16;;20428:2:19;3162:107:16;;;20410:21:19;20467:2;20447:18;;;20440:30;20506:34;20486:18;;;20479:62;-1:-1:-1;;;20557:18:19;;;20550:33;20600:19;;3162:107:16;20226:399:19;3162:107:16;3323:11;3310:8;;3300:19;;;;;;;:::i;:::-;;;;;;;;:34;3279:114;;;;-1:-1:-1;;;3279:114:16;;20832:2:19;3279:114:16;;;20814:21:19;20871:2;20851:18;;;20844:30;20910:34;20890:18;;;20883:62;-1:-1:-1;;;20961:18:19;;;20954:31;21002:19;;3279:114:16;20630:397:19;3279:114:16;3439:27;;;3498:1;3439:27;;;:14;:27;;;;;;:40;;;;3467:11;;;;3439:40;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3439:48:16;;;;;;;;;;;;:61;;;;3567:65;;;;;;;;;;;;;;;;;;;3589:11;;3602;;3567:65;;;;;;3602:11;3567:65;;3602:11;3567:65;;;;;;;;;-1:-1:-1;;3567:65:16;;;;;;;;;;;;;;;;;;;;;;3615:6;;-1:-1:-1;3567:65:16;-1:-1:-1;3623:8:16;;;;;;3567:65;;3623:8;;;;3567:65;;;;;;;;;-1:-1:-1;3567:21:16;;-1:-1:-1;;;3567:65:16:i;:::-;3647:66;3667:11;3680;;3693:6;3701:11;3647:66;;;;;;;;;;:::i;:::-;;;;;;;;3028:692;2857:863;;;;;;:::o;6721:310:13:-;1087:13:17;:11;:13::i;:::-;6874:1:13::1;6864:7;:11;6856:45;;;::::0;-1:-1:-1;;;6856:45:13;;21732:2:19;6856:45:13::1;::::0;::::1;21714:21:19::0;21771:2;21751:18;;;21744:30;-1:-1:-1;;;21790:18:19;;;21783:51;21851:18;;6856:45:13::1;21530:345:19::0;6856:45:13::1;6911:28;::::0;;::::1;;::::0;;;:15:::1;:28;::::0;;;;;;;:41;;::::1;::::0;;;;;;;;;;:51;;;6977:47;;22103:34:19;;;22153:18;;22146:43;;;;22205:18;;;22198:34;;;6977:47:13::1;::::0;22066:2:19;22051:18;6977:47:13::1;21880:358:19::0;5673:217:13;1087:13:17;:11;:13::i;:::-;5792:32:13::1;::::0;::::1;;::::0;;;:19:::1;:32;::::0;;;;:40:::1;::::0;5827:5;;5792:40:::1;:::i;:::-;;5847:36;5864:11;5877:5;;5847:36;;;;;;;;:::i;2074:198:17:-:0;1087:13;:11;:13::i;:::-;-1:-1:-1;;;;;2162:22:17;::::1;2154:73;;;::::0;-1:-1:-1;;;2154:73:17;;22445:2:19;2154:73:17::1;::::0;::::1;22427:21:19::0;22484:2;22464:18;;;22457:30;22523:34;22503:18;;;22496:62;-1:-1:-1;;;22574:18:19;;;22567:36;22620:19;;2154:73:17::1;22243:402:19::0;2154:73:17::1;2237:28;2256:8;2237:18;:28::i;4430:337:13:-:0;4614:146;;-1:-1:-1;;;4614:146:13;;22887:6:19;22920:15;;;4614:146:13;;;22902:34:19;22972:15;;22952:18;;;22945:43;4712:4:13;23004:18:19;;;22997:60;23073:18;;;23066:34;;;4571:12:13;;4614:10;-1:-1:-1;;;;;4614:20:13;;;;22849:19:19;;4614:146:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4614:146:13;;;;;;;;;;;;:::i;:::-;4595:165;;4430:337;;;;;;;:::o;1066:780:16:-;1253:12;1267:19;1290:293;1337:9;1360:3;1417:34;;;1469:11;1498;1527:6;1551:8;1377:196;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;1377:196:16;;;;;;;;;;;;;;-1:-1:-1;;;;;1377:196:16;-1:-1:-1;;;;;;1377:196:16;;;;;;;;;;1298:4;;1290:293;;:33;:293::i;:::-;1252:331;;;;1641:7;1636:204;;1664:165;1701:11;1730;1759:6;1783:8;1809:6;1664:19;:165::i;1352:130:17:-;1240:7;1266:6;-1:-1:-1;;;;;1266:6:17;719:10:2;1415:23:17;1407:68;;;;-1:-1:-1;;;1407:68:17;;24514:2:19;1407:68:17;;;24496:21:19;;;24533:18;;;24526:30;24592:34;24572:18;;;24565:62;24644:18;;1407:68:17;24312:356:19;13401:133:4;7256:4;6865:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6865:16:4;13474:53;;;;-1:-1:-1;;;13474:53:4;;17273:2:19;13474:53:4;;;17255:21:19;17312:2;17292:18;;;17285:30;-1:-1:-1;;;17331:18:19;;;17324:54;17395:18;;13474:53:4;17071:348:19;12703:171:4;12777:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;12777:29:4;-1:-1:-1;;;;;12777:29:4;;;;;;;;:24;;12830:23;12777:24;12830:14;:23::i;:::-;-1:-1:-1;;;;;12821:46:4;;;;;;;;;;;12703:171;;:::o;9026:920::-;-1:-1:-1;;;;;9105:16:4;;9097:61;;;;-1:-1:-1;;;9097:61:4;;24875:2:19;9097:61:4;;;24857:21:19;;;24894:18;;;24887:30;24953:34;24933:18;;;24926:62;25005:18;;9097:61:4;24673:356:19;9097:61:4;7256:4;6865:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6865:16:4;7279:31;9168:58;;;;-1:-1:-1;;;9168:58:4;;25236:2:19;9168:58:4;;;25218:21:19;25275:2;25255:18;;;25248:30;25314;25294:18;;;25287:58;25362:18;;9168:58:4;25034:352:19;9168:58:4;7256:4;6865:16;;;:7;:16;;;;;;-1:-1:-1;;;;;6865:16:4;7279:31;9372:58;;;;-1:-1:-1;;;9372:58:4;;25236:2:19;9372:58:4;;;25218:21:19;25275:2;25255:18;;;25248:30;25314;25294:18;;;25287:58;25362:18;;9372:58:4;25034:352:19;9372:58:4;-1:-1:-1;;;;;9772:13:4;;;;;;:9;:13;;;;;;;;:18;;9789:1;9772:18;;;9811:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9811:21:4;;;;;9848:33;9819:7;;9772:13;;9848:33;;9772:13;;9848:33;4104:153;;:::o;10272:762::-;10331:13;10347:23;10362:7;10347:14;:23::i;:::-;10331:39;;10542:23;10557:7;10542:14;:23::i;:::-;10610:24;;;;:15;:24;;;;;;;;10603:31;;-1:-1:-1;;;;;;10603:31:4;;;;;;-1:-1:-1;;;;;10850:16:4;;;;;:9;:16;;;;;:21;;-1:-1:-1;;10850:21:4;;;10898:16;;;:7;:16;;;;;;10891:23;;;;;;;10930:36;10534:31;;-1:-1:-1;10626:7:4;;10930:36;;10610:24;;10930:36;4104:153;;:::o;2408:718:13:-;2684:32;;;2655:26;2684:32;;;:19;:32;;;;;2655:61;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2747:13;:20;2771:1;2747:25;;2726:120;;;;-1:-1:-1;;;2726:120:13;;25593:2:19;2726:120:13;;;25575:21:19;25632:2;25612:18;;;25605:30;25671:34;25651:18;;;25644:62;-1:-1:-1;;;25722:18:19;;;25715:46;25778:19;;2726:120:13;25391:412:19;2726:120:13;2856:47;2874:11;2887:8;:15;2856:17;:47::i;:::-;2913:206;;-1:-1:-1;;;2913:206:13;;-1:-1:-1;;;;;2913:10:13;:15;;;;2936:10;;2913:206;;2961:11;;2986:13;;3013:8;;3035:14;;3063:18;;3095:14;;2913:206;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2645:481;2408:718;;;;;;:::o;7475:261:4:-;7568:4;7584:13;7600:23;7615:7;7600:14;:23::i;:::-;7584:39;;7652:5;-1:-1:-1;;;;;7641:16:4;:7;-1:-1:-1;;;;;7641:16:4;;:52;;;-1:-1:-1;;;;;;4443:25:4;;;4420:4;4443:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;7661:32;7641:87;;;;7721:7;-1:-1:-1;;;;;7697:31:4;:20;7709:7;7697:11;:20::i;:::-;-1:-1:-1;;;;;7697:31:4;;7633:96;7475:261;-1:-1:-1;;;;7475:261:4:o;11358:1233::-;11512:4;-1:-1:-1;;;;;11485:31:4;:23;11500:7;11485:14;:23::i;:::-;-1:-1:-1;;;;;11485:31:4;;11477:81;;;;-1:-1:-1;;;11477:81:4;;;;;;;:::i;:::-;-1:-1:-1;;;;;11576:16:4;;11568:65;;;;-1:-1:-1;;;11568:65:4;;27261:2:19;11568:65:4;;;27243:21:19;27300:2;27280:18;;;27273:30;27339:34;27319:18;;;27312:62;-1:-1:-1;;;27390:18:19;;;27383:34;27434:19;;11568:65:4;27059:400:19;11568:65:4;11813:4;-1:-1:-1;;;;;11786:31:4;:23;11801:7;11786:14;:23::i;:::-;-1:-1:-1;;;;;11786:31:4;;11778:81;;;;-1:-1:-1;;;11778:81:4;;;;;;;:::i;:::-;11928:24;;;;:15;:24;;;;;;;;11921:31;;-1:-1:-1;;;;;;11921:31:4;;;;;;-1:-1:-1;;;;;12396:15:4;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;12396:20:4;;;12430:13;;;;;;;;;:18;;11921:31;12430:18;;;12468:16;;;:7;:16;;;;;;:21;;;;;;;;;;12505:27;;11944:7;;12505:27;;;3473:336;3403:406;;:::o;2126:556:15:-;2311:12;2387:2;2374:11;2370:20;2364:27;2356:35;;2411:17;2430:15;2473:8;2449:74;;;;;;;;;;;;:::i;:::-;2410:113;;;;2534:25;2540:9;2551:7;2534:5;:25::i;:::-;2595:7;2593:9;;;;;;;;2627:48;;;28048:6:19;28036:19;;28018:38;;-1:-1:-1;;;;;28092:32:19;;28087:2;28072:18;;28065:60;28141:18;;;28134:34;;;28199:2;28184:18;;28177:34;;;;2627:48:15;;28005:3:19;27990:19;2627:48:15;27789:428:19;2426:187:17;2499:16;2518:6;;-1:-1:-1;;;;;2534:17:17;;;-1:-1:-1;;;;;;2534:17:17;;;;;;2566:40;;2518:6;;;;;;;2566:40;;2499:16;2566:40;2489:124;2426:187;:::o;9558:2986:1:-;9680:12;9728:7;9712:12;9728:7;9722:2;9712:12;:::i;:::-;:23;;9704:50;;;;-1:-1:-1;;;9704:50:1;;28557:2:19;9704:50:1;;;28539:21:19;28596:2;28576:18;;;28569:30;-1:-1:-1;;;28615:18:19;;;28608:44;28669:18;;9704:50:1;28355:338:19;9704:50:1;9789:16;9798:7;9789:6;:16;:::i;:::-;9772:6;:13;:33;;9764:63;;;;-1:-1:-1;;;9764:63:1;;28900:2:19;9764:63:1;;;28882:21:19;28939:2;28919:18;;;28912:30;-1:-1:-1;;;28958:18:19;;;28951:47;29015:18;;9764:63:1;28698:341:19;9764:63:1;9838:22;9901:15;;9929:2177;;;;12247:4;12241:11;12228:24;;12433:1;12422:9;12415:20;12481:4;12470:9;12466:20;12460:4;12453:34;9894:2607;;9929:2177;10111:4;10105:11;10092:24;;10770:2;10761:7;10757:16;11193:9;11186:17;11180:4;11176:28;11144:9;11133;11129:25;11104:118;11258:7;11254:2;11250:16;11641:6;11578:9;11571:17;11565:4;11561:28;11521:9;11513:6;11509:22;11476:139;11447:222;11284:577;11695:3;11691:2;11688:11;11284:577;;;11833:9;;11822:21;;11736:4;11728:13;;;;11768;11284:577;;;-1:-1:-1;;11879:26:1;;;12087:2;12070:11;-1:-1:-1;;12066:25:1;12060:4;12053:39;-1:-1:-1;9894:2607:1;-1:-1:-1;12528:9:1;9558:2986;-1:-1:-1;;;;9558:2986:1:o;13010:307:4:-;13160:8;-1:-1:-1;;;;;13151:17:4;:5;-1:-1:-1;;;;;13151:17:4;;;13143:55;;;;-1:-1:-1;;;13143:55:4;;29246:2:19;13143:55:4;;;29228:21:19;29285:2;29265:18;;;29258:30;29324:27;29304:18;;;29297:55;29369:18;;13143:55:4;29044:349:19;13143:55:4;-1:-1:-1;;;;;13208:25:4;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;13208:46:4;;;;;;;;;;13269:41;;2099::19;;;13269::4;;2072:18:19;13269:41:4;;;;;;;13010:307;;;:::o;6359:305::-;6509:28;6519:4;6525:2;6529:7;6509:9;:28::i;:::-;6555:47;6578:4;6584:2;6588:7;6597:4;6555:22;:47::i;:::-;6547:110;;;;-1:-1:-1;;;6547:110:4;;;;;;;:::i;410:696:18:-;466:13;515:14;532:17;543:5;532:10;:17::i;:::-;552:1;532:21;515:38;;567:20;601:6;-1:-1:-1;;;;;590:18:18;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;590:18:18;-1:-1:-1;567:41:18;-1:-1:-1;728:28:18;;;744:2;728:28;783:280;-1:-1:-1;;814:5:18;-1:-1:-1;;;948:2:18;937:14;;932:30;814:5;919:44;1007:2;998:11;;;-1:-1:-1;1031:10:18;1027:21;;1043:5;;1027:21;783:280;;;-1:-1:-1;1083:6:18;410:696;-1:-1:-1;;;410:696:18:o;1122:1280:5:-;1279:4;1285:12;1345:15;1370:13;1393:24;1430:8;1420:19;;-1:-1:-1;;;;;1420:19:5;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1420:19:5;;1393:46;;1936:1;1907;1870:9;1864:16;1832:4;1821:9;1817:20;1783:1;1745:7;1716:4;1694:267;1682:279;;2028:16;2017:27;;2072:8;2063:7;2060:21;2057:76;;;2111:8;2100:19;;2057:76;2218:7;2205:11;2198:28;2338:7;2335:1;2328:4;2315:11;2311:22;2296:50;2373:8;;;;-1:-1:-1;1122:1280:5;-1:-1:-1;;;;;;1122:1280:5:o;1852:366:16:-;2121:8;2111:19;;;;;;2060:14;:27;2075:11;2060:27;;;;;;;;;;;;;;;2088:11;2060:40;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2060:48:16;;;;;;;;;:70;;;;2145:66;;;;2159:11;;2172;;2101:6;;2193:8;;2203:7;;2145:66;:::i;:::-;;;;;;;;1852:366;;;;;:::o;3877:451:13:-;4021:35;;;3997:21;4021:35;;;:22;:35;;;;;;4070:21;4066:135;;-1:-1:-1;557:5:13;4066:135;4247:16;4231:12;:32;;4210:111;;;;-1:-1:-1;;;4210:111:13;;31022:2:19;4210:111:13;;;31004:21:19;;;31041:18;;;31034:30;31100:34;31080:18;;;31073:62;31152:18;;4210:111:13;30820:356:19;14086:831:4;14235:4;-1:-1:-1;;;;;14255:13:4;;1465:19:0;:23;14251:660:4;;14290:71;;-1:-1:-1;;;14290:71:4;;-1:-1:-1;;;;;14290:36:4;;;;;:71;;719:10:2;;14341:4:4;;14347:7;;14356:4;;14290:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14290:71:4;;;;;;;;-1:-1:-1;;14290:71:4;;;;;;;;;;;;:::i;:::-;;;14286:573;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14528:13:4;;14524:321;;14570:60;;-1:-1:-1;;;14570:60:4;;;;;;;:::i;14524:321::-;14797:6;14791:13;14782:6;14778:2;14774:15;14767:38;14286:573;-1:-1:-1;;;;;;14411:51:4;-1:-1:-1;;;14411:51:4;;-1:-1:-1;14404:58:4;;14251:660;-1:-1:-1;14896:4:4;14889:11;;9889:890:14;9942:7;;-1:-1:-1;;;10017:15:14;;10013:99;;-1:-1:-1;;;10052:15:14;;;-1:-1:-1;10095:2:14;10085:12;10013:99;10138:6;10129:5;:15;10125:99;;10173:6;10164:15;;;-1:-1:-1;10207:2:14;10197:12;10125:99;10250:6;10241:5;:15;10237:99;;10285:6;10276:15;;;-1:-1:-1;10319:2:14;10309:12;10237:99;10362:5;10353;:14;10349:96;;10396:5;10387:14;;;-1:-1:-1;10429:1:14;10419:11;10349:96;10471:5;10462;:14;10458:96;;10505:5;10496:14;;;-1:-1:-1;10538:1:14;10528:11;10458:96;10580:5;10571;:14;10567:96;;10614:5;10605:14;;;-1:-1:-1;10647:1:14;10637:11;10567:96;10689:5;10680;:14;10676:64;;10724:1;10714:11;10766:6;9889:890;-1:-1:-1;;9889:890:14:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:159:19;81:20;;141:6;130:18;;120:29;;110:57;;163:1;160;153:12;110:57;14:159;;;:::o;178:347::-;229:8;239:6;293:3;286:4;278:6;274:17;270:27;260:55;;311:1;308;301:12;260:55;-1:-1:-1;334:20:19;;-1:-1:-1;;;;;366:30:19;;363:50;;;409:1;406;399:12;363:50;446:4;438:6;434:17;422:29;;498:3;491:4;482:6;474;470:19;466:30;463:39;460:59;;;515:1;512;505:12;460:59;178:347;;;;;:::o;530:171::-;597:20;;-1:-1:-1;;;;;646:30:19;;636:41;;626:69;;691:1;688;681:12;706:862;812:6;820;828;836;844;852;905:3;893:9;884:7;880:23;876:33;873:53;;;922:1;919;912:12;873:53;945:28;963:9;945:28;:::i;:::-;935:38;;1024:2;1013:9;1009:18;996:32;-1:-1:-1;;;;;1088:2:19;1080:6;1077:14;1074:34;;;1104:1;1101;1094:12;1074:34;1143:58;1193:7;1184:6;1173:9;1169:22;1143:58;:::i;:::-;1220:8;;-1:-1:-1;1117:84:19;-1:-1:-1;1117:84:19;;-1:-1:-1;1274:37:19;1307:2;1292:18;;1274:37;:::i;:::-;1264:47;;1364:2;1353:9;1349:18;1336:32;1320:48;;1393:2;1383:8;1380:16;1377:36;;;1409:1;1406;1399:12;1377:36;;1448:60;1500:7;1489:8;1478:9;1474:24;1448:60;:::i;:::-;706:862;;;;-1:-1:-1;706:862:19;;-1:-1:-1;706:862:19;;1527:8;;706:862;-1:-1:-1;;;706:862:19:o;1573:131::-;-1:-1:-1;;;;;;1647:32:19;;1637:43;;1627:71;;1694:1;1691;1684:12;1709:245;1767:6;1820:2;1808:9;1799:7;1795:23;1791:32;1788:52;;;1836:1;1833;1826:12;1788:52;1875:9;1862:23;1894:30;1918:5;1894:30;:::i;2151:258::-;2223:1;2233:113;2247:6;2244:1;2241:13;2233:113;;;2323:11;;;2317:18;2304:11;;;2297:39;2269:2;2262:10;2233:113;;;2364:6;2361:1;2358:13;2355:48;;;-1:-1:-1;;2399:1:19;2381:16;;2374:27;2151:258::o;2414:::-;2456:3;2494:5;2488:12;2521:6;2516:3;2509:19;2537:63;2593:6;2586:4;2581:3;2577:14;2570:4;2563:5;2559:16;2537:63;:::i;:::-;2654:2;2633:15;-1:-1:-1;;2629:29:19;2620:39;;;;2661:4;2616:50;;2414:258;-1:-1:-1;;2414:258:19:o;2677:220::-;2826:2;2815:9;2808:21;2789:4;2846:45;2887:2;2876:9;2872:18;2864:6;2846:45;:::i;2902:184::-;2960:6;3013:2;3001:9;2992:7;2988:23;2984:32;2981:52;;;3029:1;3026;3019:12;2981:52;3052:28;3070:9;3052:28;:::i;3091:180::-;3150:6;3203:2;3191:9;3182:7;3178:23;3174:32;3171:52;;;3219:1;3216;3209:12;3171:52;-1:-1:-1;3242:23:19;;3091:180;-1:-1:-1;3091:180:19:o;3484:131::-;-1:-1:-1;;;;;3559:31:19;;3549:42;;3539:70;;3605:1;3602;3595:12;3620:315;3688:6;3696;3749:2;3737:9;3728:7;3724:23;3720:32;3717:52;;;3765:1;3762;3755:12;3717:52;3804:9;3791:23;3823:31;3848:5;3823:31;:::i;:::-;3873:5;3925:2;3910:18;;;;3897:32;;-1:-1:-1;;;3620:315:19:o;3940:252::-;4007:6;4015;4068:2;4056:9;4047:7;4043:23;4039:32;4036:52;;;4084:1;4081;4074:12;4036:52;4107:28;4125:9;4107:28;:::i;4379:456::-;4456:6;4464;4472;4525:2;4513:9;4504:7;4500:23;4496:32;4493:52;;;4541:1;4538;4531:12;4493:52;4580:9;4567:23;4599:31;4624:5;4599:31;:::i;:::-;4649:5;-1:-1:-1;4706:2:19;4691:18;;4678:32;4719:33;4678:32;4719:33;:::i;:::-;4379:456;;4771:7;;-1:-1:-1;;;4825:2:19;4810:18;;;;4797:32;;4379:456::o;4840:481::-;4918:6;4926;4934;4987:2;4975:9;4966:7;4962:23;4958:32;4955:52;;;5003:1;5000;4993:12;4955:52;5026:28;5044:9;5026:28;:::i;:::-;5016:38;;5105:2;5094:9;5090:18;5077:32;-1:-1:-1;;;;;5124:6:19;5121:30;5118:50;;;5164:1;5161;5154:12;5118:50;5203:58;5253:7;5244:6;5233:9;5229:22;5203:58;:::i;:::-;4840:481;;5280:8;;-1:-1:-1;5177:84:19;;-1:-1:-1;;;;4840:481:19:o;5326:127::-;5387:10;5382:3;5378:20;5375:1;5368:31;5418:4;5415:1;5408:15;5442:4;5439:1;5432:15;5458:275;5529:2;5523:9;5594:2;5575:13;;-1:-1:-1;;5571:27:19;5559:40;;-1:-1:-1;;;;;5614:34:19;;5650:22;;;5611:62;5608:88;;;5676:18;;:::i;:::-;5712:2;5705:22;5458:275;;-1:-1:-1;5458:275:19:o;5738:186::-;5786:4;-1:-1:-1;;;;;5811:6:19;5808:30;5805:56;;;5841:18;;:::i;:::-;-1:-1:-1;5907:2:19;5886:15;-1:-1:-1;;5882:29:19;5913:4;5878:40;;5738:186::o;5929:462::-;5971:5;6024:3;6017:4;6009:6;6005:17;6001:27;5991:55;;6042:1;6039;6032:12;5991:55;6078:6;6065:20;6109:48;6125:31;6153:2;6125:31;:::i;:::-;6109:48;:::i;:::-;6182:2;6173:7;6166:19;6228:3;6221:4;6216:2;6208:6;6204:15;6200:26;6197:35;6194:55;;;6245:1;6242;6235:12;6194:55;6310:2;6303:4;6295:6;6291:17;6284:4;6275:7;6271:18;6258:55;6358:1;6333:16;;;6351:4;6329:27;6322:38;;;;6337:7;5929:462;-1:-1:-1;;;5929:462:19:o;6396:464::-;6480:6;6488;6496;6549:2;6537:9;6528:7;6524:23;6520:32;6517:52;;;6565:1;6562;6555:12;6517:52;6588:28;6606:9;6588:28;:::i;:::-;6578:38;;6667:2;6656:9;6652:18;6639:32;-1:-1:-1;;;;;6686:6:19;6683:30;6680:50;;;6726:1;6723;6716:12;6680:50;6749:49;6790:7;6781:6;6770:9;6766:22;6749:49;:::i;:::-;6739:59;;;6817:37;6850:2;6839:9;6835:18;6817:37;:::i;:::-;6807:47;;6396:464;;;;;:::o;7047:247::-;7106:6;7159:2;7147:9;7138:7;7134:23;7130:32;7127:52;;;7175:1;7172;7165:12;7127:52;7214:9;7201:23;7233:31;7258:5;7233:31;:::i;7522:256::-;7588:6;7596;7649:2;7637:9;7628:7;7624:23;7620:32;7617:52;;;7665:1;7662;7655:12;7617:52;7688:28;7706:9;7688:28;:::i;:::-;7678:38;;7735:37;7768:2;7757:9;7753:18;7735:37;:::i;:::-;7725:47;;7522:256;;;;;:::o;7783:416::-;7848:6;7856;7909:2;7897:9;7888:7;7884:23;7880:32;7877:52;;;7925:1;7922;7915:12;7877:52;7964:9;7951:23;7983:31;8008:5;7983:31;:::i;:::-;8033:5;-1:-1:-1;8090:2:19;8075:18;;8062:32;8132:15;;8125:23;8113:36;;8103:64;;8163:1;8160;8153:12;8103:64;8186:7;8176:17;;;7783:416;;;;;:::o;8439:665::-;8534:6;8542;8550;8558;8611:3;8599:9;8590:7;8586:23;8582:33;8579:53;;;8628:1;8625;8618:12;8579:53;8667:9;8654:23;8686:31;8711:5;8686:31;:::i;:::-;8736:5;-1:-1:-1;8793:2:19;8778:18;;8765:32;8806:33;8765:32;8806:33;:::i;:::-;8858:7;-1:-1:-1;8912:2:19;8897:18;;8884:32;;-1:-1:-1;8967:2:19;8952:18;;8939:32;-1:-1:-1;;;;;8983:30:19;;8980:50;;;9026:1;9023;9016:12;8980:50;9049:49;9090:7;9081:6;9070:9;9066:22;9049:49;:::i;:::-;9039:59;;;8439:665;;;;;;;:::o;9109:622::-;9204:6;9212;9220;9228;9236;9289:3;9277:9;9268:7;9264:23;9260:33;9257:53;;;9306:1;9303;9296:12;9257:53;9329:28;9347:9;9329:28;:::i;:::-;9319:38;;9376:37;9409:2;9398:9;9394:18;9376:37;:::i;:::-;9366:47;;9460:2;9449:9;9445:18;9432:32;9422:42;;9515:2;9504:9;9500:18;9487:32;-1:-1:-1;;;;;9534:6:19;9531:30;9528:50;;;9574:1;9571;9564:12;9528:50;9613:58;9663:7;9654:6;9643:9;9639:22;9613:58;:::i;:::-;9109:622;;;;-1:-1:-1;9109:622:19;;-1:-1:-1;9690:8:19;;9587:84;9109:622;-1:-1:-1;;;9109:622:19:o;9736:324::-;9811:6;9819;9827;9880:2;9868:9;9859:7;9855:23;9851:32;9848:52;;;9896:1;9893;9886:12;9848:52;9919:28;9937:9;9919:28;:::i;:::-;9909:38;;9966:37;9999:2;9988:9;9984:18;9966:37;:::i;:::-;9956:47;;10050:2;10039:9;10035:18;10022:32;10012:42;;9736:324;;;;;:::o;10065:388::-;10133:6;10141;10194:2;10182:9;10173:7;10169:23;10165:32;10162:52;;;10210:1;10207;10200:12;10162:52;10249:9;10236:23;10268:31;10293:5;10268:31;:::i;:::-;10318:5;-1:-1:-1;10375:2:19;10360:18;;10347:32;10388:33;10347:32;10388:33;:::i;10458:460::-;10542:6;10550;10558;10566;10619:3;10607:9;10598:7;10594:23;10590:33;10587:53;;;10636:1;10633;10626:12;10587:53;10659:28;10677:9;10659:28;:::i;:::-;10649:38;;10706:37;10739:2;10728:9;10724:18;10706:37;:::i;:::-;10696:47;;10793:2;10782:9;10778:18;10765:32;10806:31;10831:5;10806:31;:::i;:::-;10458:460;;;;-1:-1:-1;10856:5:19;;10908:2;10893:18;10880:32;;-1:-1:-1;;10458:460:19:o;11282:380::-;11361:1;11357:12;;;;11404;;;11425:61;;11479:4;11471:6;11467:17;11457:27;;11425:61;11532:2;11524:6;11521:14;11501:18;11498:38;11495:161;;;11578:10;11573:3;11569:20;11566:1;11559:31;11613:4;11610:1;11603:15;11641:4;11638:1;11631:15;11495:161;;11282:380;;;:::o;11667:271::-;11850:6;11842;11837:3;11824:33;11806:3;11876:16;;11901:13;;;11876:16;11667:271;-1:-1:-1;11667:271:19:o;14174:209::-;14206:1;14232;14222:132;;14276:10;14271:3;14267:20;14264:1;14257:31;14311:4;14308:1;14301:15;14339:4;14336:1;14329:15;14222:132;-1:-1:-1;14368:9:19;;14174:209::o;14948:642::-;15229:6;15217:19;;15199:38;;-1:-1:-1;;;;;15273:32:19;;15268:2;15253:18;;15246:60;15293:3;15337:2;15322:18;;15315:31;;;-1:-1:-1;;15369:46:19;;15395:19;;15387:6;15369:46;:::i;:::-;15465:6;15458:14;15451:22;15446:2;15435:9;15431:18;15424:50;15523:9;15515:6;15511:22;15505:3;15494:9;15490:19;15483:51;15551:33;15577:6;15569;15551:33;:::i;:::-;15543:41;14948:642;-1:-1:-1;;;;;;;;14948:642:19:o;15595:245::-;15674:6;15682;15735:2;15723:9;15714:7;15710:23;15706:32;15703:52;;;15751:1;15748;15741:12;15703:52;-1:-1:-1;;15774:16:19;;15830:2;15815:18;;;15809:25;15774:16;;15809:25;;-1:-1:-1;15595:245:19:o;15845:409::-;16047:2;16029:21;;;16086:2;16066:18;;;16059:30;16125:34;16120:2;16105:18;;16098:62;-1:-1:-1;;;16191:2:19;16176:18;;16169:43;16244:3;16229:19;;15845:409::o;16469:266::-;16557:6;16552:3;16545:19;16609:6;16602:5;16595:4;16590:3;16586:14;16573:43;-1:-1:-1;16661:1:19;16636:16;;;16654:4;16632:27;;;16625:38;;;;16717:2;16696:15;;;-1:-1:-1;;16692:29:19;16683:39;;;16679:50;;16469:266::o;16740:326::-;16935:6;16927;16923:19;16912:9;16905:38;16979:2;16974;16963:9;16959:18;16952:30;16886:4;16999:61;17056:2;17045:9;17041:18;17033:6;17025;16999:61;:::i;18599:127::-;18660:10;18655:3;18651:20;18648:1;18641:31;18691:4;18688:1;18681:15;18715:4;18712:1;18705:15;18731:125;18771:4;18799:1;18796;18793:8;18790:34;;;18804:18;;:::i;:::-;-1:-1:-1;18841:9:19;;18731:125::o;18861:382::-;19072:6;19064;19059:3;19046:33;19164:2;19160:15;;;;-1:-1:-1;;19156:53:19;19098:16;;19145:65;;;19234:2;19226:11;;18861:382;-1:-1:-1;18861:382:19:o;19248:470::-;19427:3;19465:6;19459:13;19481:53;19527:6;19522:3;19515:4;19507:6;19503:17;19481:53;:::i;:::-;19597:13;;19556:16;;;;19619:57;19597:13;19556:16;19653:4;19641:17;;19619:57;:::i;:::-;19692:20;;19248:470;-1:-1:-1;;;;19248:470:19:o;19723:498::-;19923:4;19952:6;19997:2;19989:6;19985:15;19974:9;19967:34;20049:2;20041:6;20037:15;20032:2;20021:9;20017:18;20010:43;;20089:6;20084:2;20073:9;20069:18;20062:34;20132:3;20127:2;20116:9;20112:18;20105:31;20153:62;20210:3;20199:9;20195:19;20187:6;20179;20153:62;:::i;:::-;20145:70;19723:498;-1:-1:-1;;;;;;;19723:498:19:o;21032:493::-;21281:6;21273;21269:19;21258:9;21251:38;21325:3;21320:2;21309:9;21305:18;21298:31;21232:4;21346:62;21403:3;21392:9;21388:19;21380:6;21372;21346:62;:::i;:::-;-1:-1:-1;;;;;21444:31:19;;;;21439:2;21424:18;;21417:59;-1:-1:-1;21507:2:19;21492:18;21485:34;21338:70;21032:493;-1:-1:-1;;;21032:493:19:o;23111:634::-;23190:6;23243:2;23231:9;23222:7;23218:23;23214:32;23211:52;;;23259:1;23256;23249:12;23211:52;23292:9;23286:16;-1:-1:-1;;;;;23317:6:19;23314:30;23311:50;;;23357:1;23354;23347:12;23311:50;23380:22;;23433:4;23425:13;;23421:27;-1:-1:-1;23411:55:19;;23462:1;23459;23452:12;23411:55;23491:2;23485:9;23516:48;23532:31;23560:2;23532:31;:::i;23516:48::-;23587:2;23580:5;23573:17;23627:7;23622:2;23617;23613;23609:11;23605:20;23602:33;23599:53;;;23648:1;23645;23638:12;23599:53;23661:54;23712:2;23707;23700:5;23696:14;23691:2;23687;23683:11;23661:54;:::i;:::-;23734:5;23111:634;-1:-1:-1;;;;;23111:634:19:o;23750:557::-;24007:6;23999;23995:19;23984:9;23977:38;24051:3;24046:2;24035:9;24031:18;24024:31;23958:4;24078:46;24119:3;24108:9;24104:19;24096:6;24078:46;:::i;:::-;-1:-1:-1;;;;;24164:6:19;24160:31;24155:2;24144:9;24140:18;24133:59;24240:9;24232:6;24228:22;24223:2;24212:9;24208:18;24201:50;24268:33;24294:6;24286;24268:33;:::i;25808:840::-;26157:6;26149;26145:19;26134:9;26127:38;26201:3;26196:2;26185:9;26181:18;26174:31;26108:4;26228:46;26269:3;26258:9;26254:19;26246:6;26228:46;:::i;:::-;26322:9;26314:6;26310:22;26305:2;26294:9;26290:18;26283:50;26356:33;26382:6;26374;26356:33;:::i;:::-;-1:-1:-1;;;;;26463:15:19;;;26458:2;26443:18;;26436:43;26516:15;;26510:3;26495:19;;26488:44;26569:22;;;26416:3;26548:19;;26541:51;26342:47;-1:-1:-1;26609:33:19;26342:47;26627:6;26609:33;:::i;:::-;26601:41;25808:840;-1:-1:-1;;;;;;;;;25808:840:19:o;26653:401::-;26855:2;26837:21;;;26894:2;26874:18;;;26867:30;26933:34;26928:2;26913:18;;26906:62;-1:-1:-1;;;26999:2:19;26984:18;;26977:35;27044:3;27029:19;;26653:401::o;27464:320::-;27551:6;27559;27612:2;27600:9;27591:7;27587:23;27583:32;27580:52;;;27628:1;27625;27618:12;27580:52;27660:9;27654:16;27679:31;27704:5;27679:31;:::i;:::-;27774:2;27759:18;;;;27753:25;27729:5;;27753:25;;-1:-1:-1;;;27464:320:19:o;28222:128::-;28262:3;28293:1;28289:6;28286:1;28283:13;28280:39;;;28299:18;;:::i;:::-;-1:-1:-1;28335:9:19;;28222:128::o;29398:414::-;29600:2;29582:21;;;29639:2;29619:18;;;29612:30;29678:34;29673:2;29658:18;;29651:62;-1:-1:-1;;;29744:2:19;29729:18;;29722:48;29802:3;29787:19;;29398:414::o;29817:274::-;29946:3;29984:6;29978:13;30000:53;30046:6;30041:3;30034:4;30026:6;30022:17;30000:53;:::i;:::-;30069:16;;;;;29817:274;-1:-1:-1;;29817:274:19:o;30096:719::-;30399:6;30391;30387:19;30376:9;30369:38;30443:3;30438:2;30427:9;30423:18;30416:31;30350:4;30470:46;30511:3;30500:9;30496:19;30488:6;30470:46;:::i;:::-;-1:-1:-1;;;;;30556:6:19;30552:31;30547:2;30536:9;30532:18;30525:59;30632:9;30624:6;30620:22;30615:2;30604:9;30600:18;30593:50;30666:33;30692:6;30684;30666:33;:::i;:::-;30652:47;;30748:9;30740:6;30736:22;30730:3;30719:9;30715:19;30708:51;30776:33;30802:6;30794;30776:33;:::i;31181:489::-;-1:-1:-1;;;;;31450:15:19;;;31432:34;;31502:15;;31497:2;31482:18;;31475:43;31549:2;31534:18;;31527:34;;;31597:3;31592:2;31577:18;;31570:31;;;31375:4;;31618:46;;31644:19;;31636:6;31618:46;:::i;:::-;31610:54;31181:489;-1:-1:-1;;;;;;31181:489:19:o;31675:249::-;31744:6;31797:2;31785:9;31776:7;31772:23;31768:32;31765:52;;;31813:1;31810;31803:12;31765:52;31845:9;31839:16;31864:30;31888:5;31864:30;:::i
Swarm Source
ipfs://c3ca859bacfe90567ab803f9d418f94ae02fbf2e0bd1ce07107f058c1514ddb2
[ 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.