This token is bridged from its native chain using Stargate.
Overview
Max Total Supply
1,280.802409 crvUSD
Holders
34 (0.00%)
Total Transfers
-
Market
Price
$0.9986 @ 1.839079 FTM (-0.12%)
Onchain Market Cap
$1,278.98
Circulating Supply Market Cap
$90,339,881.00
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
crvUSD
Compiler Version
v0.8.12+commit.f00d7308
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@layerzerolabs/solidity-examples/contracts/token/oft/v2/fee/OFTWithFee.sol"; contract crvUSD is OFTWithFee { constructor(address _layerZeroEndpoint) OFTWithFee("Curve.Fi USD Stablecoin", "crvUSD", 6, _layerZeroEndpoint) {} }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "./ILayerZeroUserApplicationConfig.sol"; interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig { // @notice send a LayerZero message to the specified address at a LayerZero endpoint. // @param _dstChainId - the destination chain identifier // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains // @param _payload - a custom bytes payload to send to the destination contract // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable; // @notice used by the messaging library to publish verified payload // @param _srcChainId - the source chain identifier // @param _srcAddress - the source contract (as bytes) at the source chain // @param _dstAddress - the address on destination chain // @param _nonce - the unbound message ordering nonce // @param _gasLimit - the gas limit for external contract execution // @param _payload - verified payload to send to the destination contract function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external; // @notice get the inboundNonce of a lzApp from a source chain which could be EVM or non-EVM chain // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64); // @notice get the outboundNonce from this source chain which, consequently, is always an EVM // @param _srcAddress - the source chain contract address function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64); // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery // @param _dstChainId - the destination chain identifier // @param _userApplication - the user app address on this EVM chain // @param _payload - the custom message to send over LayerZero // @param _payInZRO - if false, user app pays the protocol fee in native token // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee); // @notice get this Endpoint's immutable source identifier function getChainId() external view returns (uint16); // @notice the interface to retry failed message on this Endpoint destination // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address // @param _payload - the payload to be retried function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external; // @notice query if any STORED payload (message blocking) at the endpoint. // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool); // @notice query if the _libraryAddress is valid for sending msgs. // @param _userApplication - the user app address on this EVM chain function getSendLibraryAddress(address _userApplication) external view returns (address); // @notice query if the _libraryAddress is valid for receiving msgs. // @param _userApplication - the user app address on this EVM chain function getReceiveLibraryAddress(address _userApplication) external view returns (address); // @notice query if the non-reentrancy guard for send() is on // @return true if the guard is on. false otherwise function isSendingPayload() external view returns (bool); // @notice query if the non-reentrancy guard for receive() is on // @return true if the guard is on. false otherwise function isReceivingPayload() external view returns (bool); // @notice get the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _userApplication - the contract address of the user application // @param _configType - type of configuration. every messaging library has its own convention. function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory); // @notice get the send() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getSendVersion(address _userApplication) external view returns (uint16); // @notice get the lzReceive() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getReceiveVersion(address _userApplication) external view returns (uint16); }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface ILayerZeroReceiver { // @notice LayerZero endpoint will invoke this function to deliver the message on the destination // @param _srcChainId - the source endpoint identifier // @param _srcAddress - the source sending contract address from the source chain // @param _nonce - the ordered message nonce // @param _payload - the signed payload is the UA bytes has encoded to be sent function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; 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 "@openzeppelin/contracts/access/Ownable.sol"; import "../interfaces/ILayerZeroReceiver.sol"; import "../interfaces/ILayerZeroUserApplicationConfig.sol"; import "../interfaces/ILayerZeroEndpoint.sol"; import "../util/BytesLib.sol"; /* * a generic LzReceiver implementation */ abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig { using BytesLib for bytes; ILayerZeroEndpoint public immutable lzEndpoint; mapping(uint16 => bytes) public trustedRemoteLookup; mapping(uint16 => mapping(uint16 => uint)) public minDstGasLookup; 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"); 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)) } } //---------------------------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); } //--------------------------- 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 pragma solidity ^0.8.0; import "./LzApp.sol"; import "../util/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 pragma solidity >=0.5.0; import "./IOFTCore.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @dev Interface of the OFT standard */ interface IOFT is IOFTCore, IERC20 { }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface of the IOFT core standard */ interface IOFTCore is IERC165 { /** * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`) * _dstChainId - L0 defined chain id to send tokens too * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain * _amount - amount of the tokens to transfer * _useZro - indicates to use zro to pay L0 fees * _adapterParam - flexible bytes array to indicate messaging adapter services in L0 */ function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee); /** * @dev send `_amount` amount of token to (`_dstChainId`, `_toAddress`) from `_from` * `_from` the owner of token * `_dstChainId` the destination chain identifier * `_toAddress` can be any size depending on the `dstChainId`. * `_amount` the quantity of tokens in wei * `_refundAddress` the address LayerZero refunds if too much message fee is sent * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token) * `_adapterParams` is a flexible bytes array to indicate messaging adapter services */ function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable; /** * @dev returns the circulating amount of tokens on current chain */ function circulatingSupply() external view returns (uint); /** * @dev returns the address of the ERC20 token */ function token() external view returns (address); /** * @dev Emitted when `_amount` tokens are moved from the `_sender` to (`_dstChainId`, `_toAddress`) * `_nonce` is the outbound nonce */ event SendToChain(uint16 indexed _dstChainId, address indexed _from, bytes _toAddress, uint _amount); /** * @dev Emitted when `_amount` tokens are received from `_srcChainId` into the `_toAddress` on the local chain. * `_nonce` is the inbound nonce. */ event ReceiveFromChain(uint16 indexed _srcChainId, address indexed _to, uint _amount); event SetUseCustomAdapterParams(bool _useCustomAdapterParams); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "./IOFT.sol"; import "./OFTCore.sol"; // override decimal() function is needed contract OFT is OFTCore, ERC20, IOFT { constructor(string memory _name, string memory _symbol, address _lzEndpoint) ERC20(_name, _symbol) OFTCore(_lzEndpoint) {} function supportsInterface(bytes4 interfaceId) public view virtual override(OFTCore, IERC165) returns (bool) { return interfaceId == type(IOFT).interfaceId || interfaceId == type(IERC20).interfaceId || super.supportsInterface(interfaceId); } function token() public view virtual override returns (address) { return address(this); } function circulatingSupply() public view virtual override returns (uint) { return totalSupply(); } function _debitFrom(address _from, uint16, bytes memory, uint _amount) internal virtual override returns(uint) { address spender = _msgSender(); if (_from != spender) _spendAllowance(_from, spender, _amount); _burn(_from, _amount); return _amount; } function _creditTo(uint16, address _toAddress, uint _amount) internal virtual override returns(uint) { _mint(_toAddress, _amount); return _amount; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../lzApp/NonblockingLzApp.sol"; import "./IOFTCore.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; abstract contract OFTCore is NonblockingLzApp, ERC165, IOFTCore { using BytesLib for bytes; uint public constant NO_EXTRA_GAS = 0; // packet type uint16 public constant PT_SEND = 0; bool public useCustomAdapterParams; constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) {} function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IOFTCore).interfaceId || super.supportsInterface(interfaceId); } function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) { // mock the payload for sendFrom() bytes memory payload = abi.encode(PT_SEND, _toAddress, _amount); return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams); } function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) public payable virtual override { _send(_from, _dstChainId, _toAddress, _amount, _refundAddress, _zroPaymentAddress, _adapterParams); } function setUseCustomAdapterParams(bool _useCustomAdapterParams) public virtual onlyOwner { useCustomAdapterParams = _useCustomAdapterParams; emit SetUseCustomAdapterParams(_useCustomAdapterParams); } function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override { uint16 packetType; assembly { packetType := mload(add(_payload, 32)) } if (packetType == PT_SEND) { _sendAck(_srcChainId, _srcAddress, _nonce, _payload); } else { revert("OFTCore: unknown packet type"); } } function _send(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual { _checkAdapterParams(_dstChainId, PT_SEND, _adapterParams, NO_EXTRA_GAS); uint amount = _debitFrom(_from, _dstChainId, _toAddress, _amount); bytes memory lzPayload = abi.encode(PT_SEND, _toAddress, amount); _lzSend(_dstChainId, lzPayload, _refundAddress, _zroPaymentAddress, _adapterParams, msg.value); emit SendToChain(_dstChainId, _from, _toAddress, amount); } function _sendAck(uint16 _srcChainId, bytes memory, uint64, bytes memory _payload) internal virtual { (, bytes memory toAddressBytes, uint amount) = abi.decode(_payload, (uint16, bytes, uint)); address to = toAddressBytes.toAddress(0); amount = _creditTo(_srcChainId, to, amount); emit ReceiveFromChain(_srcChainId, to, amount); } function _checkAdapterParams(uint16 _dstChainId, uint16 _pkType, bytes memory _adapterParams, uint _extraGas) internal virtual { if (useCustomAdapterParams) { _checkGasLimit(_dstChainId, _pkType, _adapterParams, _extraGas); } else { require(_adapterParams.length == 0, "OFTCore: _adapterParams must be empty."); } } function _debitFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount) internal virtual returns(uint); function _creditTo(uint16 _srcChainId, address _toAddress, uint _amount) internal virtual returns(uint); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./OFTCoreV2.sol"; import "./IOFTV2.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; abstract contract BaseOFTV2 is OFTCoreV2, ERC165, IOFTV2 { constructor(uint8 _sharedDecimals, address _lzEndpoint) OFTCoreV2(_sharedDecimals, _lzEndpoint) { } /************************************************************************ * public functions ************************************************************************/ function sendFrom(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, LzCallParams calldata _callParams) public payable virtual override { _send(_from, _dstChainId, _toAddress, _amount, _callParams.refundAddress, _callParams.zroPaymentAddress, _callParams.adapterParams); } function sendAndCall(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, LzCallParams calldata _callParams) public payable virtual override { _sendAndCall(_from, _dstChainId, _toAddress, _amount, _payload, _dstGasForCall, _callParams.refundAddress, _callParams.zroPaymentAddress, _callParams.adapterParams); } /************************************************************************ * public view functions ************************************************************************/ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IOFTV2).interfaceId || super.supportsInterface(interfaceId); } function estimateSendFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) { return _estimateSendFee(_dstChainId, _toAddress, _amount, _useZro, _adapterParams); } function estimateSendAndCallFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, bool _useZro, bytes calldata _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) { return _estimateSendAndCallFee(_dstChainId, _toAddress, _amount, _payload, _dstGasForCall, _useZro, _adapterParams); } function circulatingSupply() public view virtual override returns (uint); function token() public view virtual override returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../OFTCoreV2.sol"; import "./IOFTWithFee.sol"; import "./Fee.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; abstract contract BaseOFTWithFee is OFTCoreV2, Fee, ERC165, IOFTWithFee { constructor(uint8 _sharedDecimals, address _lzEndpoint) OFTCoreV2(_sharedDecimals, _lzEndpoint) { } /************************************************************************ * public functions ************************************************************************/ function sendFrom(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, uint _minAmount, LzCallParams calldata _callParams) public payable virtual override { (_amount,) = _payOFTFee(_from, _dstChainId, _amount); _amount = _send(_from, _dstChainId, _toAddress, _amount, _callParams.refundAddress, _callParams.zroPaymentAddress, _callParams.adapterParams); require(_amount >= _minAmount, "BaseOFTWithFee: amount is less than minAmount"); } function sendAndCall(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, uint _minAmount, bytes calldata _payload, uint64 _dstGasForCall, LzCallParams calldata _callParams) public payable virtual override { (_amount,) = _payOFTFee(_from, _dstChainId, _amount); _amount = _sendAndCall(_from, _dstChainId, _toAddress, _amount, _payload, _dstGasForCall, _callParams.refundAddress, _callParams.zroPaymentAddress, _callParams.adapterParams); require(_amount >= _minAmount, "BaseOFTWithFee: amount is less than minAmount"); } /************************************************************************ * public view functions ************************************************************************/ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IOFTWithFee).interfaceId || super.supportsInterface(interfaceId); } function estimateSendFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) { return _estimateSendFee(_dstChainId, _toAddress, _amount, _useZro, _adapterParams); } function estimateSendAndCallFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, bool _useZro, bytes calldata _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) { return _estimateSendAndCallFee(_dstChainId, _toAddress, _amount, _payload, _dstGasForCall, _useZro, _adapterParams); } function circulatingSupply() public view virtual override returns (uint); function token() public view virtual override returns (address); function _transferFrom(address _from, address _to, uint _amount) internal virtual override (Fee, OFTCoreV2) returns (uint); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; abstract contract Fee is Ownable { uint public constant BP_DENOMINATOR = 10000; mapping(uint16 => FeeConfig) public chainIdToFeeBps; uint16 public defaultFeeBp; address public feeOwner; // defaults to owner struct FeeConfig { uint16 feeBP; bool enabled; } event SetFeeBp(uint16 dstchainId, bool enabled, uint16 feeBp); event SetDefaultFeeBp(uint16 feeBp); event SetFeeOwner(address feeOwner); constructor(){ feeOwner = owner(); } function setDefaultFeeBp(uint16 _feeBp) public virtual onlyOwner { require(_feeBp <= BP_DENOMINATOR, "Fee: fee bp must be <= BP_DENOMINATOR"); defaultFeeBp = _feeBp; emit SetDefaultFeeBp(defaultFeeBp); } function setFeeBp(uint16 _dstChainId, bool _enabled, uint16 _feeBp) public virtual onlyOwner { require(_feeBp <= BP_DENOMINATOR, "Fee: fee bp must be <= BP_DENOMINATOR"); chainIdToFeeBps[_dstChainId] = FeeConfig(_feeBp, _enabled); emit SetFeeBp(_dstChainId, _enabled, _feeBp); } function setFeeOwner(address _feeOwner) public virtual onlyOwner { require(_feeOwner != address(0x0), "Fee: feeOwner cannot be 0x"); feeOwner = _feeOwner; emit SetFeeOwner(_feeOwner); } function quoteOFTFee(uint16 _dstChainId, uint _amount) public virtual view returns (uint fee) { FeeConfig memory config = chainIdToFeeBps[_dstChainId]; if (config.enabled) { fee = _amount * config.feeBP / BP_DENOMINATOR; } else if (defaultFeeBp > 0) { fee = _amount * defaultFeeBp / BP_DENOMINATOR; } else { fee = 0; } } function _payOFTFee(address _from, uint16 _dstChainId, uint _amount) internal virtual returns (uint amount, uint fee) { fee = quoteOFTFee(_dstChainId, _amount); amount = _amount - fee; if (fee > 0) { _transferFrom(_from, feeOwner, fee); } } function _transferFrom(address _from, address _to, uint _amount) internal virtual returns (uint); }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "../ICommonOFT.sol"; /** * @dev Interface of the IOFT core standard */ interface IOFTWithFee is ICommonOFT { /** * @dev send `_amount` amount of token to (`_dstChainId`, `_toAddress`) from `_from` * `_from` the owner of token * `_dstChainId` the destination chain identifier * `_toAddress` can be any size depending on the `dstChainId`. * `_amount` the quantity of tokens in wei * `_minAmount` the minimum amount of tokens to receive on dstChain * `_refundAddress` the address LayerZero refunds if too much message fee is sent * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token) * `_adapterParams` is a flexible bytes array to indicate messaging adapter services */ function sendFrom(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, uint _minAmount, LzCallParams calldata _callParams) external payable; function sendAndCall(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, uint _minAmount, bytes calldata _payload, uint64 _dstGasForCall, LzCallParams calldata _callParams) external payable; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./BaseOFTWithFee.sol"; contract OFTWithFee is BaseOFTWithFee, ERC20 { uint internal immutable ld2sdRate; constructor(string memory _name, string memory _symbol, uint8 _sharedDecimals, address _lzEndpoint) ERC20(_name, _symbol) BaseOFTWithFee(_sharedDecimals, _lzEndpoint) { uint8 decimals = decimals(); require(_sharedDecimals <= decimals, "OFTWithFee: sharedDecimals must be <= decimals"); ld2sdRate = 10 ** (decimals - _sharedDecimals); } /************************************************************************ * public functions ************************************************************************/ function circulatingSupply() public view virtual override returns (uint) { return totalSupply(); } function token() public view virtual override returns (address) { return address(this); } /************************************************************************ * internal functions ************************************************************************/ function _debitFrom(address _from, uint16, bytes32, uint _amount) internal virtual override returns (uint) { address spender = _msgSender(); if (_from != spender) _spendAllowance(_from, spender, _amount); _burn(_from, _amount); return _amount; } function _creditTo(uint16, address _toAddress, uint _amount) internal virtual override returns (uint) { _mint(_toAddress, _amount); return _amount; } function _transferFrom(address _from, address _to, uint _amount) internal virtual override returns (uint) { address spender = _msgSender(); // if transfer from this contract, no need to check allowance if (_from != address(this) && _from != spender) _spendAllowance(_from, spender, _amount); _transfer(_from, _to, _amount); return _amount; } function _ld2sdRate() internal view virtual override returns (uint) { return ld2sdRate; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./BaseOFTWithFee.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract ProxyOFTWithFee is BaseOFTWithFee { using SafeERC20 for IERC20; IERC20 internal immutable innerToken; uint internal immutable ld2sdRate; // total amount is transferred from this chain to other chains, ensuring the total is less than uint64.max in sd uint public outboundAmount; constructor(address _token, uint8 _sharedDecimals, address _lzEndpoint) BaseOFTWithFee(_sharedDecimals, _lzEndpoint) { innerToken = IERC20(_token); (bool success, bytes memory data) = _token.staticcall( abi.encodeWithSignature("decimals()") ); require(success, "ProxyOFTWithFee: failed to get token decimals"); uint8 decimals = abi.decode(data, (uint8)); require(_sharedDecimals <= decimals, "ProxyOFTWithFee: sharedDecimals must be <= decimals"); ld2sdRate = 10 ** (decimals - _sharedDecimals); } /************************************************************************ * public functions ************************************************************************/ function circulatingSupply() public view virtual override returns (uint) { return innerToken.totalSupply() - outboundAmount; } function token() public view virtual override returns (address) { return address(innerToken); } /************************************************************************ * internal functions ************************************************************************/ function _debitFrom(address _from, uint16, bytes32, uint _amount) internal virtual override returns (uint) { require(_from == _msgSender(), "ProxyOFTWithFee: owner is not send caller"); _amount = _transferFrom(_from, address(this), _amount); // _amount still may have dust if the token has transfer fee, then give the dust back to the sender (uint amount, uint dust) = _removeDust(_amount); if (dust > 0) innerToken.safeTransfer(_from, dust); // check total outbound amount outboundAmount += amount; uint cap = _sd2ld(type(uint64).max); require(cap >= outboundAmount, "ProxyOFTWithFee: outboundAmount overflow"); return amount; } function _creditTo(uint16, address _toAddress, uint _amount) internal virtual override returns (uint) { outboundAmount -= _amount; // tokens are already in this contract, so no need to transfer if (_toAddress == address(this)) { return _amount; } return _transferFrom(address(this), _toAddress, _amount); } function _transferFrom(address _from, address _to, uint _amount) internal virtual override returns (uint) { uint before = innerToken.balanceOf(_to); if (_from == address(this)) { innerToken.safeTransfer(_to, _amount); } else { innerToken.safeTransferFrom(_from, _to, _amount); } return innerToken.balanceOf(_to) - before; } function _ld2sdRate() internal view virtual override returns (uint) { return ld2sdRate; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface of the IOFT core standard */ interface ICommonOFT is IERC165 { struct LzCallParams { address payable refundAddress; address zroPaymentAddress; bytes adapterParams; } /** * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`) * _dstChainId - L0 defined chain id to send tokens too * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain * _amount - amount of the tokens to transfer * _useZro - indicates to use zro to pay L0 fees * _adapterParam - flexible bytes array to indicate messaging adapter services in L0 */ function estimateSendFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee); function estimateSendAndCallFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee); /** * @dev returns the circulating amount of tokens on current chain */ function circulatingSupply() external view returns (uint); /** * @dev returns the address of the ERC20 token */ function token() external view returns (address); }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.5.0; interface IOFTReceiverV2 { /** * @dev Called by the OFT contract when tokens are received from source chain. * @param _srcChainId The chain id of the source chain. * @param _srcAddress The address of the OFT token contract on the source chain. * @param _nonce The nonce of the transaction on the source chain. * @param _from The address of the account who calls the sendAndCall() on the source chain. * @param _amount The amount of tokens to transfer. * @param _payload Additional data with no specified format. */ function onOFTReceived(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes32 _from, uint _amount, bytes calldata _payload) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "./ICommonOFT.sol"; /** * @dev Interface of the IOFT core standard */ interface IOFTV2 is ICommonOFT { /** * @dev send `_amount` amount of token to (`_dstChainId`, `_toAddress`) from `_from` * `_from` the owner of token * `_dstChainId` the destination chain identifier * `_toAddress` can be any size depending on the `dstChainId`. * `_amount` the quantity of tokens in wei * `_refundAddress` the address LayerZero refunds if too much message fee is sent * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token) * `_adapterParams` is a flexible bytes array to indicate messaging adapter services */ function sendFrom(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, LzCallParams calldata _callParams) external payable; function sendAndCall(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, LzCallParams calldata _callParams) external payable; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../../lzApp/NonblockingLzApp.sol"; import "../../../util/ExcessivelySafeCall.sol"; import "./ICommonOFT.sol"; import "./IOFTReceiverV2.sol"; abstract contract OFTCoreV2 is NonblockingLzApp { using BytesLib for bytes; using ExcessivelySafeCall for address; uint public constant NO_EXTRA_GAS = 0; // packet type uint8 public constant PT_SEND = 0; uint8 public constant PT_SEND_AND_CALL = 1; uint8 public immutable sharedDecimals; bool public useCustomAdapterParams; mapping(uint16 => mapping(bytes => mapping(uint64 => bool))) public creditedPackets; /** * @dev Emitted when `_amount` tokens are moved from the `_sender` to (`_dstChainId`, `_toAddress`) * `_nonce` is the outbound nonce */ event SendToChain(uint16 indexed _dstChainId, address indexed _from, bytes32 indexed _toAddress, uint _amount); /** * @dev Emitted when `_amount` tokens are received from `_srcChainId` into the `_toAddress` on the local chain. * `_nonce` is the inbound nonce. */ event ReceiveFromChain(uint16 indexed _srcChainId, address indexed _to, uint _amount); event SetUseCustomAdapterParams(bool _useCustomAdapterParams); event CallOFTReceivedSuccess(uint16 indexed _srcChainId, bytes _srcAddress, uint64 _nonce, bytes32 _hash); event NonContractAddress(address _address); // _sharedDecimals should be the minimum decimals on all chains constructor(uint8 _sharedDecimals, address _lzEndpoint) NonblockingLzApp(_lzEndpoint) { sharedDecimals = _sharedDecimals; } /************************************************************************ * public functions ************************************************************************/ function callOnOFTReceived(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes32 _from, address _to, uint _amount, bytes calldata _payload, uint _gasForCall) public virtual { require(_msgSender() == address(this), "OFTCore: caller must be OFTCore"); // send _amount = _transferFrom(address(this), _to, _amount); emit ReceiveFromChain(_srcChainId, _to, _amount); // call IOFTReceiverV2(_to).onOFTReceived{gas: _gasForCall}(_srcChainId, _srcAddress, _nonce, _from, _amount, _payload); } function setUseCustomAdapterParams(bool _useCustomAdapterParams) public virtual onlyOwner { useCustomAdapterParams = _useCustomAdapterParams; emit SetUseCustomAdapterParams(_useCustomAdapterParams); } /************************************************************************ * internal functions ************************************************************************/ function _estimateSendFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bool _useZro, bytes memory _adapterParams) internal view virtual returns (uint nativeFee, uint zroFee) { // mock the payload for sendFrom() bytes memory payload = _encodeSendPayload(_toAddress, _ld2sd(_amount)); return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams); } function _estimateSendAndCallFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes memory _payload, uint64 _dstGasForCall, bool _useZro, bytes memory _adapterParams) internal view virtual returns (uint nativeFee, uint zroFee) { // mock the payload for sendAndCall() bytes memory payload = _encodeSendAndCallPayload(msg.sender, _toAddress, _ld2sd(_amount), _payload, _dstGasForCall); return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams); } function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override { uint8 packetType = _payload.toUint8(0); if (packetType == PT_SEND) { _sendAck(_srcChainId, _srcAddress, _nonce, _payload); } else if (packetType == PT_SEND_AND_CALL) { _sendAndCallAck(_srcChainId, _srcAddress, _nonce, _payload); } else { revert("OFTCore: unknown packet type"); } } function _send(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual returns (uint amount) { _checkAdapterParams(_dstChainId, PT_SEND, _adapterParams, NO_EXTRA_GAS); (amount,) = _removeDust(_amount); amount = _debitFrom(_from, _dstChainId, _toAddress, amount); // amount returned should not have dust require(amount > 0, "OFTCore: amount too small"); bytes memory lzPayload = _encodeSendPayload(_toAddress, _ld2sd(amount)); _lzSend(_dstChainId, lzPayload, _refundAddress, _zroPaymentAddress, _adapterParams, msg.value); emit SendToChain(_dstChainId, _from, _toAddress, amount); } function _sendAck(uint16 _srcChainId, bytes memory, uint64, bytes memory _payload) internal virtual { (address to, uint64 amountSD) = _decodeSendPayload(_payload); if (to == address(0)) { to = address(0xdead); } uint amount = _sd2ld(amountSD); amount = _creditTo(_srcChainId, to, amount); emit ReceiveFromChain(_srcChainId, to, amount); } function _sendAndCall(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes memory _payload, uint64 _dstGasForCall, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual returns (uint amount) { _checkAdapterParams(_dstChainId, PT_SEND_AND_CALL, _adapterParams, _dstGasForCall); (amount,) = _removeDust(_amount); amount = _debitFrom(_from, _dstChainId, _toAddress, amount); require(amount > 0, "OFTCore: amount too small"); // encode the msg.sender into the payload instead of _from bytes memory lzPayload = _encodeSendAndCallPayload(msg.sender, _toAddress, _ld2sd(amount), _payload, _dstGasForCall); _lzSend(_dstChainId, lzPayload, _refundAddress, _zroPaymentAddress, _adapterParams, msg.value); emit SendToChain(_dstChainId, _from, _toAddress, amount); } function _sendAndCallAck(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual { (bytes32 from, address to, uint64 amountSD, bytes memory payloadForCall, uint64 gasForCall) = _decodeSendAndCallPayload(_payload); bool credited = creditedPackets[_srcChainId][_srcAddress][_nonce]; uint amount = _sd2ld(amountSD); // credit to this contract first, and then transfer to receiver only if callOnOFTReceived() succeeds if (!credited) { amount = _creditTo(_srcChainId, address(this), amount); creditedPackets[_srcChainId][_srcAddress][_nonce] = true; } if (!_isContract(to)) { emit NonContractAddress(to); return; } // workaround for stack too deep uint16 srcChainId = _srcChainId; bytes memory srcAddress = _srcAddress; uint64 nonce = _nonce; bytes memory payload = _payload; bytes32 from_ = from; address to_ = to; uint amount_ = amount; bytes memory payloadForCall_ = payloadForCall; // no gas limit for the call if retry uint gas = credited ? gasleft() : gasForCall; (bool success, bytes memory reason) = address(this).excessivelySafeCall(gasleft(), 150, abi.encodeWithSelector(this.callOnOFTReceived.selector, srcChainId, srcAddress, nonce, from_, to_, amount_, payloadForCall_, gas)); if (success) { bytes32 hash = keccak256(payload); emit CallOFTReceivedSuccess(srcChainId, srcAddress, nonce, hash); } else { // store the failed message into the nonblockingLzApp _storeFailedMessage(srcChainId, srcAddress, nonce, payload, reason); } } function _isContract(address _account) internal view returns (bool) { return _account.code.length > 0; } function _checkAdapterParams(uint16 _dstChainId, uint16 _pkType, bytes memory _adapterParams, uint _extraGas) internal virtual { if (useCustomAdapterParams) { _checkGasLimit(_dstChainId, _pkType, _adapterParams, _extraGas); } else { require(_adapterParams.length == 0, "OFTCore: _adapterParams must be empty."); } } function _ld2sd(uint _amount) internal virtual view returns (uint64) { uint amountSD = _amount / _ld2sdRate(); require(amountSD <= type(uint64).max, "OFTCore: amountSD overflow"); return uint64(amountSD); } function _sd2ld(uint64 _amountSD) internal virtual view returns (uint) { return _amountSD * _ld2sdRate(); } function _removeDust(uint _amount) internal virtual view returns (uint amountAfter, uint dust) { dust = _amount % _ld2sdRate(); amountAfter = _amount - dust; } function _encodeSendPayload(bytes32 _toAddress, uint64 _amountSD) internal virtual view returns (bytes memory) { return abi.encodePacked(PT_SEND, _toAddress, _amountSD); } function _decodeSendPayload(bytes memory _payload) internal virtual view returns (address to, uint64 amountSD) { require(_payload.toUint8(0) == PT_SEND && _payload.length == 41, "OFTCore: invalid payload"); to = _payload.toAddress(13); // drop the first 12 bytes of bytes32 amountSD = _payload.toUint64(33); } function _encodeSendAndCallPayload(address _from, bytes32 _toAddress, uint64 _amountSD, bytes memory _payload, uint64 _dstGasForCall) internal virtual view returns (bytes memory) { return abi.encodePacked( PT_SEND_AND_CALL, _toAddress, _amountSD, _addressToBytes32(_from), _dstGasForCall, _payload ); } function _decodeSendAndCallPayload(bytes memory _payload) internal virtual view returns (bytes32 from, address to, uint64 amountSD, bytes memory payload, uint64 dstGasForCall) { require(_payload.toUint8(0) == PT_SEND_AND_CALL, "OFTCore: invalid payload"); to = _payload.toAddress(13); // drop the first 12 bytes of bytes32 amountSD = _payload.toUint64(33); from = _payload.toBytes32(41); dstGasForCall = _payload.toUint64(73); payload = _payload.slice(81, _payload.length - 81); } function _addressToBytes32(address _address) internal pure virtual returns (bytes32) { return bytes32(uint(uint160(_address))); } function _debitFrom(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount) internal virtual returns (uint); function _creditTo(uint16 _srcChainId, address _toAddress, uint _amount) internal virtual returns (uint); function _transferFrom(address _from, address _to, uint _amount) internal virtual returns (uint); function _ld2sdRate() internal view virtual returns (uint); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./BaseOFTV2.sol"; contract OFTV2 is BaseOFTV2, ERC20 { uint internal immutable ld2sdRate; constructor(string memory _name, string memory _symbol, uint8 _sharedDecimals, address _lzEndpoint) ERC20(_name, _symbol) BaseOFTV2(_sharedDecimals, _lzEndpoint) { uint8 decimals = decimals(); require(_sharedDecimals <= decimals, "OFT: sharedDecimals must be <= decimals"); ld2sdRate = 10 ** (decimals - _sharedDecimals); } /************************************************************************ * public functions ************************************************************************/ function circulatingSupply() public view virtual override returns (uint) { return totalSupply(); } function token() public view virtual override returns (address) { return address(this); } /************************************************************************ * internal functions ************************************************************************/ function _debitFrom(address _from, uint16, bytes32, uint _amount) internal virtual override returns (uint) { address spender = _msgSender(); if (_from != spender) _spendAllowance(_from, spender, _amount); _burn(_from, _amount); return _amount; } function _creditTo(uint16, address _toAddress, uint _amount) internal virtual override returns (uint) { _mint(_toAddress, _amount); return _amount; } function _transferFrom(address _from, address _to, uint _amount) internal virtual override returns (uint) { address spender = _msgSender(); // if transfer from this contract, no need to check allowance if (_from != address(this) && _from != spender) _spendAllowance(_from, spender, _amount); _transfer(_from, _to, _amount); return _amount; } function _ld2sdRate() internal view virtual override returns (uint) { return ld2sdRate; } }
// 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 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 (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// 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: 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 v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@layerzerolabs/solidity-examples/contracts/token/oft/v2/OFTV2.sol"; contract CRV is OFTV2 { constructor(address _layerZeroEndpoint) OFTV2("Curve DAO Token", "CRV", 6, _layerZeroEndpoint) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@layerzerolabs/solidity-examples/contracts/token/oft/v2/fee/ProxyOFTWithFee.sol"; contract crvUSDProxyOFTWithFee is ProxyOFTWithFee { constructor(address _token, address _layerZeroEndpoint) ProxyOFTWithFee(_token, 6, _layerZeroEndpoint){} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@layerzerolabs/solidity-examples/contracts/token/oft/OFT.sol"; contract DAI is OFT { constructor(address _layerZeroEndpoint) OFT("Dai Stablecoin", "DAI", _layerZeroEndpoint) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@layerzerolabs/solidity-examples/contracts/token/oft/v2/OFTV2.sol"; contract USDC is OFTV2 { constructor(address _layerZeroEndpoint) OFTV2("USD Coin", "USDC", 6, _layerZeroEndpoint) {} function decimals() public view virtual override returns (uint8) { return 6; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@layerzerolabs/solidity-examples/contracts/token/oft/v2/OFTV2.sol"; contract USDT is OFTV2 { constructor(address _layerZeroEndpoint) OFTV2("Tether USD", "USDT", 6, _layerZeroEndpoint) {} function decimals() public view virtual override returns (uint8) { return 6; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@layerzerolabs/solidity-examples/contracts/token/oft/v2/OFTV2.sol"; contract WBTC is OFTV2 { constructor(address _layerZeroEndpoint) OFTV2("Wrapped BTC", "WBTC", 8, _layerZeroEndpoint) {} function decimals() public view virtual override returns (uint8) { return 8; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@layerzerolabs/solidity-examples/contracts/token/oft/OFT.sol"; contract WETH is OFT { constructor(address _layerZeroEndpoint) OFT("Wrapped Ether", "WETH", _layerZeroEndpoint) {} }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_layerZeroEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"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":"_hash","type":"bytes32"}],"name":"CallOFTReceivedSuccess","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":false,"internalType":"address","name":"_address","type":"address"}],"name":"NonContractAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ReceiveFromChain","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":true,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"feeBp","type":"uint16"}],"name":"SetDefaultFeeBp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"dstchainId","type":"uint16"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"},{"indexed":false,"internalType":"uint16","name":"feeBp","type":"uint16"}],"name":"SetFeeBp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeOwner","type":"address"}],"name":"SetFeeOwner","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":false,"internalType":"bool","name":"_useCustomAdapterParams","type":"bool"}],"name":"SetUseCustomAdapterParams","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BP_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NO_EXTRA_GAS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PT_SEND","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PT_SEND_AND_CALL","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes32","name":"_from","type":"bytes32"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_payload","type":"bytes"},{"internalType":"uint256","name":"_gasForCall","type":"uint256"}],"name":"callOnOFTReceived","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"chainIdToFeeBps","outputs":[{"internalType":"uint16","name":"feeBP","type":"uint16"},{"internalType":"bool","name":"enabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"circulatingSupply","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":"creditedPackets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultFeeBp","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_payload","type":"bytes"},{"internalType":"uint64","name":"_dstGasForCall","type":"uint64"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendAndCallFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"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":[],"name":"precrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"quoteOFTFee","outputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"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":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"internalType":"bytes","name":"_payload","type":"bytes"},{"internalType":"uint64","name":"_dstGasForCall","type":"uint64"},{"components":[{"internalType":"address payable","name":"refundAddress","type":"address"},{"internalType":"address","name":"zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"adapterParams","type":"bytes"}],"internalType":"struct ICommonOFT.LzCallParams","name":"_callParams","type":"tuple"}],"name":"sendAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"components":[{"internalType":"address payable","name":"refundAddress","type":"address"},{"internalType":"address","name":"zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"adapterParams","type":"bytes"}],"internalType":"struct ICommonOFT.LzCallParams","name":"_callParams","type":"tuple"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","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":"uint16","name":"_feeBp","type":"uint16"}],"name":"setDefaultFeeBp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bool","name":"_enabled","type":"bool"},{"internalType":"uint16","name":"_feeBp","type":"uint16"}],"name":"setFeeBp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeOwner","type":"address"}],"name":"setFeeOwner","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":"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":"bool","name":"_useCustomAdapterParams","type":"bool"}],"name":"setUseCustomAdapterParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharedDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"useCustomAdapterParams","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b5060405162004ca838038062004ca88339810160408190526200003491620002dc565b6040518060400160405280601781526020017f43757276652e46692055534420537461626c65636f696e0000000000000000008152506040518060400160405280600681526020016518dc9d9554d160d21b8152506006838383838381818080620000ae620000a8620001dd60201b60201c565b620001e1565b6001600160a01b0316608052505060ff1660a052620000d56000546001600160a01b031690565b600880546001600160a01b0392909216620100000262010000600160b01b0319909216919091179055505081516200011590600c90602085019062000236565b5080516200012b90600d90602084019062000236565b5050506000620001406200023160201b60201c565b90508060ff168360ff161115620001b45760405162461bcd60e51b815260206004820152602e60248201527f4f4654576974684665653a20736861726564446563696d616c73206d7573742060448201526d6265203c3d20646563696d616c7360901b606482015260840160405180910390fd5b620001c0838262000324565b620001cd90600a62000449565b60c0525062000497945050505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b601290565b82805462000244906200045a565b90600052602060002090601f016020900481019282620002685760008555620002b3565b82601f106200028357805160ff1916838001178555620002b3565b82800160010185558215620002b3579182015b82811115620002b357825182559160200191906001019062000296565b50620002c1929150620002c5565b5090565b5b80821115620002c15760008155600101620002c6565b600060208284031215620002ef57600080fd5b81516001600160a01b03811681146200030757600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff8416808210156200034157620003416200030e565b90039392505050565b600181815b808511156200038b5781600019048211156200036f576200036f6200030e565b808516156200037d57918102915b93841c93908002906200034f565b509250929050565b600082620003a45750600162000443565b81620003b35750600062000443565b8160018114620003cc5760028114620003d757620003f7565b600191505062000443565b60ff841115620003eb57620003eb6200030e565b50506001821b62000443565b5060208310610133831016604e8410600b84101617156200041c575081810a62000443565b6200042883836200034a565b80600019048211156200043f576200043f6200030e565b0290505b92915050565b60006200030760ff84168362000393565b600181811c908216806200046f57607f821691505b602082108114156200049157634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c0516147946200051460003960008181612bf801528181612c6a015261345d015260006106da0152600081816108ca01528181610b2e01528181610e4601528181610ee7015281816111470152818161194501528181611fa1015281816125d60152818161296f0152612e0701526147946000f3fe60806040526004361061036a5760003560e01c80639358928b116101c6578063cbed8b9c116100f7578063eaffd49a11610095578063ed629c5c1161006f578063ed629c5c14610abe578063f2fde38b14610ad8578063f5ecbdbc14610af8578063fc0c546a14610b1857600080fd5b8063eaffd49a14610a5e578063eb8d72b714610a7e578063ecd8f21214610a9e57600080fd5b8063dd62ed3e116100d1578063dd62ed3e146109e9578063df2a5b3b14610a09578063e6a20ae614610a29578063eab45d9c14610a3e57600080fd5b8063cbed8b9c14610988578063d1deba1f146109a8578063d8882968146109bb57600080fd5b8063a6c3d16511610164578063b353aaa71161013e578063b353aaa7146108b8578063b9818be1146108ec578063baf3292d14610912578063c83330ce1461093257600080fd5b8063a6c3d16514610862578063a9059cbb14610882578063abe685cd146108a257600080fd5b80639bdb9812116101a05780639bdb9812146107b05780639f38369a14610802578063a457c2d714610822578063a4c51df51461084257600080fd5b80639358928b14610766578063950c8a741461077b57806395d89b411461079b57600080fd5b806344770515116102a057806370a082311161023e57806379c0ad4b1161021857806379c0ad4b146106a8578063857749b0146106c85780638cfd8f5c146106fc5780638da5cb5b1461073457600080fd5b806370a082311461063d578063715018a6146106735780637533d7881461068857600080fd5b80634c42899a1161027a5780634c42899a146105995780635a359dc5146105ae5780635b8c41e6146105ce57806366ad5c8a1461061d57600080fd5b80634477051514610551578063455ba27d146105665780634b104eff1461057957600080fd5b806323b872dd1161030d578063365260b4116102e7578063365260b4146104bc57806339509351146104f15780633d8b38f61461051157806342d65a8d1461053157600080fd5b806323b872dd146104675780632cdf0b9514610487578063313ce5671461049a57600080fd5b806307e0db171161034957806307e0db17146103e8578063095ea7b31461040857806310ddb1371461042857806318160ddd1461044857600080fd5b80621d35671461036f57806301ffc9a71461039157806306fdde03146103c6575b600080fd5b34801561037b57600080fd5b5061038f61038a36600461390e565b610b2b565b005b34801561039d57600080fd5b506103b16103ac3660046139a1565b610d5c565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103db610d93565b6040516103bd9190613a23565b3480156103f457600080fd5b5061038f610403366004613a36565b610e25565b34801561041457600080fd5b506103b1610423366004613a66565b610eae565b34801561043457600080fd5b5061038f610443366004613a36565b610ec6565b34801561045457600080fd5b50600b545b6040519081526020016103bd565b34801561047357600080fd5b506103b1610482366004613a92565b610f1e565b61038f610495366004613aeb565b610f42565b3480156104a657600080fd5b5060125b60405160ff90911681526020016103bd565b3480156104c857600080fd5b506104dc6104d7366004613b76565b610fe5565b604080519283526020830191909152016103bd565b3480156104fd57600080fd5b506103b161050c366004613a66565b61103a565b34801561051d57600080fd5b506103b161052c366004613bdb565b61105c565b34801561053d57600080fd5b5061038f61054c366004613bdb565b611128565b34801561055d57600080fd5b50610459600081565b61038f610574366004613c2d565b6111ae565b34801561058557600080fd5b5061038f610594366004613ce9565b61128f565b3480156105a557600080fd5b506104aa600081565b3480156105ba57600080fd5b5061038f6105c9366004613a36565b61134c565b3480156105da57600080fd5b506104596105e9366004613d73565b6004602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b34801561062957600080fd5b5061038f61063836600461390e565b6113be565b34801561064957600080fd5b50610459610658366004613ce9565b6001600160a01b031660009081526009602052604090205490565b34801561067f57600080fd5b5061038f611492565b34801561069457600080fd5b506103db6106a3366004613a36565b6114a6565b3480156106b457600080fd5b5061038f6106c3366004613e13565b611540565b3480156106d457600080fd5b506104aa7f000000000000000000000000000000000000000000000000000000000000000081565b34801561070857600080fd5b50610459610717366004613e4d565b600260209081526000928352604080842090915290825290205481565b34801561074057600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020016103bd565b34801561077257600080fd5b506104596115fc565b34801561078757600080fd5b5060035461074e906001600160a01b031681565b3480156107a757600080fd5b506103db61160c565b3480156107bc57600080fd5b506103b16107cb366004613d73565b6006602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205460ff1681565b34801561080e57600080fd5b506103db61081d366004613a36565b61161b565b34801561082e57600080fd5b506103b161083d366004613a66565b611732565b34801561084e57600080fd5b506104dc61085d366004613e80565b6117ad565b34801561086e57600080fd5b5061038f61087d366004613bdb565b61183c565b34801561088e57600080fd5b506103b161089d366004613a66565b6118c2565b3480156108ae57600080fd5b5061045961271081565b3480156108c457600080fd5b5061074e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156108f857600080fd5b5060085461074e906201000090046001600160a01b031681565b34801561091e57600080fd5b5061038f61092d366004613ce9565b6118d0565b34801561093e57600080fd5b5061096e61094d366004613a36565b60076020526000908152604090205461ffff81169062010000900460ff1682565b6040805161ffff90931683529015156020830152016103bd565b34801561099457600080fd5b5061038f6109a3366004613f39565b611926565b61038f6109b636600461390e565b6119b0565b3480156109c757600080fd5b506008546109d69061ffff1681565b60405161ffff90911681526020016103bd565b3480156109f557600080fd5b50610459610a04366004613fa7565b611bc6565b348015610a1557600080fd5b5061038f610a24366004613fe0565b611bf1565b348015610a3557600080fd5b506104aa600181565b348015610a4a57600080fd5b5061038f610a5936600461401c565b611ca3565b348015610a6a57600080fd5b5061038f610a79366004614037565b611cec565b348015610a8a57600080fd5b5061038f610a99366004613bdb565b611e0b565b348015610aaa57600080fd5b50610459610ab93660046140ff565b611e65565b348015610aca57600080fd5b506005546103b19060ff1681565b348015610ae457600080fd5b5061038f610af3366004613ce9565b611ef7565b348015610b0457600080fd5b506103db610b1336600461411b565b611f70565b348015610b2457600080fd5b503061074e565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610ba85760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff861660009081526001602052604081208054610bc690614168565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf290614168565b8015610c3f5780601f10610c1457610100808354040283529160200191610c3f565b820191906000526020600020905b815481529060010190602001808311610c2257829003601f168201915b50505050509050805186869050148015610c5a575060008151115b8015610c82575080516020820120604051610c78908890889061419d565b6040518091039020145b610cdd5760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608401610b9f565b610d538787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061202192505050565b50505050505050565b60006001600160e01b03198216630d30953d60e31b1480610d8d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600c8054610da290614168565b80601f0160208091040260200160405190810160405280929190818152602001828054610dce90614168565b8015610e1b5780601f10610df057610100808354040283529160200191610e1b565b820191906000526020600020905b815481529060010190602001808311610dfe57829003601f168201915b5050505050905090565b610e2d61209a565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b600060405180830381600087803b158015610e9357600080fd5b505af1158015610ea7573d6000803e3d6000fd5b5050505050565b600033610ebc8185856120f4565b5060019392505050565b610ece61209a565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb13790602401610e79565b600033610f2c858285612218565b610f37858585612292565b506001949350505050565b610f4d86868561243d565b509250610fbb86868686610f646020870187613ce9565b610f746040880160208901613ce9565b610f8160408901896141ad565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061248692505050565b925081831015610fdd5760405162461bcd60e51b8152600401610b9f906141f3565b505050505050565b60008061102b8888888888888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506125aa92505050565b91509150965096945050505050565b600033610ebc81858561104d8383611bc6565b6110579190614256565b6120f4565b61ffff83166000908152600160205260408120805482919061107d90614168565b80601f01602080910402602001604051908101604052809291908181526020018280546110a990614168565b80156110f65780601f106110cb576101008083540402835291602001916110f6565b820191906000526020600020905b8154815290600101906020018083116110d957829003601f168201915b50505050509050838360405161110d92919061419d565b60405180910390208180519060200120149150509392505050565b61113061209a565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d9061118090869086908690600401614297565b600060405180830381600087803b15801561119a57600080fd5b505af1158015610d53573d6000803e3d6000fd5b6111b989898861243d565b50809650506112628989898988888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a925061120b9150506020890189613ce9565b61121b60408a0160208b01613ce9565b61122860408b018b6141ad565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061266292505050565b9550848610156112845760405162461bcd60e51b8152600401610b9f906141f3565b505050505050505050565b61129761209a565b6001600160a01b0381166112ed5760405162461bcd60e51b815260206004820152601a60248201527f4665653a206665654f776e65722063616e6e6f742062652030780000000000006044820152606401610b9f565b6008805462010000600160b01b031916620100006001600160a01b038416908102919091179091556040519081527f047912631afa564eebd3db2efe191a0dec62da1fede6bbbc1ffc89d87845b1b5906020015b60405180910390a150565b61135461209a565b6127108161ffff16111561137a5760405162461bcd60e51b8152600401610b9f906142b5565b6008805461ffff191661ffff83169081179091556040519081527fd26030ef4a8c225ee12b646eb4466acb41fb96b6cd4660b22d0ba0124e7bdc7490602001611341565b33301461141c5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610b9f565b610fdd8686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f89018190048102820181019092528781528993509150879087908190840183828082843760009201919091525061275e92505050565b61149a61209a565b6114a460006127e5565b565b600160205260009081526040902080546114bf90614168565b80601f01602080910402602001604051908101604052809291908181526020018280546114eb90614168565b80156115385780601f1061150d57610100808354040283529160200191611538565b820191906000526020600020905b81548152906001019060200180831161151b57829003601f168201915b505050505081565b61154861209a565b6127108161ffff16111561156e5760405162461bcd60e51b8152600401610b9f906142b5565b60408051808201825261ffff83811680835285151560208085018281528985166000818152600784528890209651875492511515620100000262ffffff1990931696169590951717909455845192835292820192909252918201527fdd9c9685af3e6dcb56d8f4b88d2595d4add6837a150034e7781c46b6dcf8aaab906060015b60405180910390a1505050565b6000611607600b5490565b905090565b6060600d8054610da290614168565b61ffff811660009081526001602052604081208054606092919061163e90614168565b80601f016020809104026020016040519081016040528092919081815260200182805461166a90614168565b80156116b75780601f1061168c576101008083540402835291602001916116b7565b820191906000526020600020905b81548152906001019060200180831161169a57829003601f168201915b505050505090508051600014156117105760405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f72640000006044820152606401610b9f565b61172b60006014835161172391906142fa565b839190612835565b9392505050565b600033816117408286611bc6565b9050838110156117a05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b9f565b610f3782868684036120f4565b60008061182a8b8b8b8b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8d018190048102820181019092528b81528e93508d9250908c908c908190840183828082843760009201919091525061294292505050565b91509150995099975050505050505050565b61184461209a565b81813060405160200161185993929190614311565b60408051601f1981840301815291815261ffff8516600090815260016020908152919020825161188e9391929091019061378b565b507f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce8383836040516115ef93929190614297565b600033610ebc818585612292565b6118d861209a565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b90602001611341565b61192e61209a565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c906119829088908890889088908890600401614337565b600060405180830381600087803b15801561199c57600080fd5b505af1158015611284573d6000803e3d6000fd5b61ffff861660009081526004602052604080822090516119d3908890889061419d565b90815260408051602092819003830190206001600160401b03871660009081529252902054905080611a535760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610b9f565b808383604051611a6492919061419d565b604051809103902014611ac35760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610b9f565b61ffff87166000908152600460205260408082209051611ae6908990899061419d565b90815260408051602092819003830181206001600160401b038916600090815290845282902093909355601f88018290048202830182019052868252611b7e918991899089908190840183828082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061275e92505050565b7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e58787878785604051611bb5959493929190614370565b60405180910390a150505050505050565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b611bf961209a565b60008111611c415760405162461bcd60e51b81526020600482015260156024820152744c7a4170703a20696e76616c6964206d696e47617360581b6044820152606401610b9f565b61ffff83811660008181526002602090815260408083209487168084529482529182902085905581519283528201929092529081018290527f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac0906060016115ef565b611cab61209a565b6005805460ff19168215159081179091556040519081527f1584ad594a70cbe1e6515592e1272a987d922b097ead875069cebe8b40c004a490602001611341565b333014611d3b5760405162461bcd60e51b815260206004820152601f60248201527f4f4654436f72653a2063616c6c6572206d757374206265204f4654436f7265006044820152606401610b9f565b611d463086866129fd565b9350846001600160a01b03168a61ffff167fbf551ec93859b170f9b2141bd9298bf3f64322c6f7beb2543a0cb669834118bf86604051611d8891815260200190565b60405180910390a3604051633fe79aed60e11b81526001600160a01b03861690637fcf35da908390611dcc908e908e908e908e908e908d908d908d906004016143ab565b600060405180830381600088803b158015611de657600080fd5b5087f1158015611dfa573d6000803e3d6000fd5b505050505050505050505050505050565b611e1361209a565b61ffff83166000908152600160205260409020611e3190838361380f565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab8383836040516115ef93929190614297565b61ffff828116600090815260076020908152604080832081518083019092525493841681526201000090930460ff1615801591840191909152909190611eca57805161271090611eb99061ffff1685614406565b611ec3919061443b565b9150611ef0565b60085461ffff1615611eeb5760085461271090611eb99061ffff1685614406565b600091505b5092915050565b611eff61209a565b6001600160a01b038116611f645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b9f565b611f6d816127e5565b50565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc90608401600060405180830381865afa158015611ff0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612018919081019061444f565b95945050505050565b6000806120845a60966366ad5c8a60e01b8989898960405160240161204994939291906144bc565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915230929190612a4f565b9150915081610fdd57610fdd8686868685612ad9565b6000546001600160a01b031633146114a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9f565b6001600160a01b0383166121565760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b9f565b6001600160a01b0382166121b75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b9f565b6001600160a01b038381166000818152600a602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006122248484611bc6565b9050600019811461228c578181101561227f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b9f565b61228c84848484036120f4565b50505050565b6001600160a01b0383166122f65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b9f565b6001600160a01b0382166123585760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b9f565b6001600160a01b038316600090815260096020526040902054818110156123d05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b9f565b6001600160a01b0380851660008181526009602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906124309086815260200190565b60405180910390a361228c565b60008061244a8484611e65565b905061245681846142fa565b9150801561247e5760085461247c9086906201000090046001600160a01b0316836129fd565b505b935093915050565b600061249487828481612b76565b61249d85612bf0565b5090506124ac88888884612c30565b9050600081116124fa5760405162461bcd60e51b815260206004820152601960248201527813d19510dbdc994e88185b5bdd5b9d081d1bdbc81cdb585b1b603a1b6044820152606401610b9f565b60006125458761250984612c62565b6040805160006020820152602181019390935260c09190911b6001600160c01b0319166041830152805160298184030181526049909201905290565b9050612555888287878734612ce8565b86896001600160a01b03168961ffff167fd81fc9b8523134ed613870ed029d6170cbb73aa6a6bc311b9a642689fb9df59a8560405161259691815260200190565b60405180910390a450979650505050505050565b60008060006125bc8761250988612c62565b60405163040a7bb160e41b81529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb1090612613908b90309086908b908b906004016144fa565b6040805180830381865afa15801561262f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612653919061454e565b92509250509550959350505050565b600061267a896001846001600160401b038916612b76565b61268387612bf0565b5090506126928a8a8a84612c30565b9050600081116126e05760405162461bcd60e51b815260206004820152601960248201527813d19510dbdc994e88185b5bdd5b9d081d1bdbc81cdb585b1b603a1b6044820152606401610b9f565b60006126f7338a6126f085612c62565b8a8a612e83565b90506127078a8287878734612ce8565b888b6001600160a01b03168b61ffff167fd81fc9b8523134ed613870ed029d6170cbb73aa6a6bc311b9a642689fb9df59a8560405161274891815260200190565b60405180910390a4509998505050505050505050565b600061276a8282612ec4565b905060ff81166127855761278085858585612f20565b610ea7565b60ff81166001141561279d5761278085858585612fb0565b60405162461bcd60e51b815260206004820152601c60248201527f4f4654436f72653a20756e6b6e6f776e207061636b65742074797065000000006044820152606401610b9f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608161284381601f614256565b10156128825760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b6044820152606401610b9f565b61288c8284614256565b845110156128d05760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b6044820152606401610b9f565b6060821580156128ef5760405191506000825260208201604052612939565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015612928578051835260209283019201612910565b5050858452601f01601f1916604052505b50949350505050565b6000806000612955338a6126f08b612c62565b60405163040a7bb160e41b81529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb10906129ac908d90309086908b908b906004016144fa565b6040805180830381865afa1580156129c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ec919061454e565b925092505097509795505050505050565b600033306001600160a01b03861614801590612a2b5750806001600160a01b0316856001600160a01b031614155b15612a3b57612a3b858285612218565b612a46858585612292565b50909392505050565b6000606060008060008661ffff166001600160401b03811115612a7457612a74613d06565b6040519080825280601f01601f191660200182016040528015612a9e576020820181803683370190505b50905060008087516020890160008d8df191503d925086831115612ac0578692505b828152826000602083013e909890975095505050505050565b8180519060200120600460008761ffff1661ffff16815260200190815260200160002085604051612b0a9190614572565b9081526040805191829003602090810183206001600160401b0388166000908152915220919091557fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c90612b67908790879087908790879061458e565b60405180910390a15050505050565b60055460ff1615612b9257612b8d848484846131be565b61228c565b81511561228c5760405162461bcd60e51b815260206004820152602660248201527f4f4654436f72653a205f61646170746572506172616d73206d7573742062652060448201526532b6b83a3c9760d11b6064820152608401610b9f565b600080612c1d7f0000000000000000000000000000000000000000000000000000000000000000846145e0565b9050612c2981846142fa565b9150915091565b6000336001600160a01b0386168114612c4e57612c4e868285612218565b612c58868461329d565b5090949350505050565b600080612c8f7f00000000000000000000000000000000000000000000000000000000000000008461443b565b90506001600160401b03811115610d8d5760405162461bcd60e51b815260206004820152601a60248201527f4f4654436f72653a20616d6f756e745344206f766572666c6f770000000000006044820152606401610b9f565b61ffff861660009081526001602052604081208054612d0690614168565b80601f0160208091040260200160405190810160405280929190818152602001828054612d3290614168565b8015612d7f5780601f10612d5457610100808354040283529160200191612d7f565b820191906000526020600020905b815481529060010190602001808311612d6257829003601f168201915b50505050509050805160001415612df15760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610b9f565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c5803100908490612e48908b9086908c908c908c908c906004016145f4565b6000604051808303818588803b158015612e6157600080fd5b505af1158015612e75573d6000803e3d6000fd5b505050505050505050505050565b6060600185856001600160a01b0389168587604051602001612eaa9695949392919061465b565b604051602081830303815290604052905095945050505050565b6000612ed1826001614256565b83511015612f175760405162461bcd60e51b8152602060048201526013602482015272746f55696e74385f6f75744f66426f756e647360681b6044820152606401610b9f565b50016001015190565b600080612f2c836133d1565b90925090506001600160a01b038216612f455761dead91505b6000612f5082613456565b9050612f5d87848361348b565b9050826001600160a01b03168761ffff167fbf551ec93859b170f9b2141bd9298bf3f64322c6f7beb2543a0cb669834118bf83604051612f9f91815260200190565b60405180910390a350505050505050565b6000806000806000612fc186613497565b945094509450945094506000600660008b61ffff1661ffff16815260200190815260200160002089604051612ff69190614572565b90815260408051602092819003830190206001600160401b038b166000908152925281205460ff16915061302985613456565b9050816130975761303b8b308361348b565b61ffff8c16600090815260066020526040908190209051919250600191613063908d90614572565b90815260408051602092819003830190206001600160401b038d16600090815292529020805460ff19169115159190911790555b6001600160a01b0386163b6130ee576040516001600160a01b03871681527f9aedf5fdba8716db3b6705ca00150643309995d4f818a249ed6dde6677e7792d9060200160405180910390a15050505050505061228c565b8a8a8a8a8a8a868a60008a61310c578b6001600160401b031661310e565b5a5b90506000806131405a609663eaffd49a60e01b8e8e8e8d8d8d8d8d6040516024016120499897969594939291906146bc565b915091508115613199578751602089012060405161ffff8d16907fb8890edbfc1c74692f527444645f95489c3703cc2df42e4a366f5d06fa6cd8849061318b908e908e908690614730565b60405180910390a2506131a6565b6131a68b8b8b8b85612ad9565b50505050505050505050505050505050505050505050565b60006131c98361354e565b61ffff8087166000908152600260209081526040808320938916835292905290812054919250906131fb908490614256565b90506000811161324d5760405162461bcd60e51b815260206004820152601a60248201527f4c7a4170703a206d696e4761734c696d6974206e6f74207365740000000000006044820152606401610b9f565b80821015610fdd5760405162461bcd60e51b815260206004820152601b60248201527f4c7a4170703a20676173206c696d697420697320746f6f206c6f7700000000006044820152606401610b9f565b6001600160a01b0382166132fd5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b9f565b6001600160a01b038216600090815260096020526040902054818110156133715760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b9f565b6001600160a01b03831660008181526009602090815260408083208686039055600b80548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600080806133df8482612ec4565b60ff161480156133f0575082516029145b6134375760405162461bcd60e51b815260206004820152601860248201527713d19510dbdc994e881a5b9d985b1a59081c185e5b1bd85960421b6044820152606401610b9f565b61344283600d6135aa565b915061344f83602161360f565b9050915091565b6000610d8d7f00000000000000000000000000000000000000000000000000000000000000006001600160401b038416614406565b6000611ef0838361366c565b6000808060608160016134aa8783612ec4565b60ff16146134f55760405162461bcd60e51b815260206004820152601860248201527713d19510dbdc994e881a5b9d985b1a59081c185e5b1bd85960421b6044820152606401610b9f565b61350086600d6135aa565b935061350d86602161360f565b925061351a86602961372d565b945061352786604961360f565b9050613543605180885161353b91906142fa565b889190612835565b915091939590929450565b60006022825110156135a25760405162461bcd60e51b815260206004820152601c60248201527f4c7a4170703a20696e76616c69642061646170746572506172616d73000000006044820152606401610b9f565b506022015190565b60006135b7826014614256565b835110156135ff5760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b6044820152606401610b9f565b500160200151600160601b900490565b600061361c826008614256565b835110156136635760405162461bcd60e51b8152602060048201526014602482015273746f55696e7436345f6f75744f66426f756e647360601b6044820152606401610b9f565b50016008015190565b6001600160a01b0382166136c25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b9f565b80600b60008282546136d49190614256565b90915550506001600160a01b0382166000818152600960209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600061373a826020614256565b835110156137825760405162461bcd60e51b8152602060048201526015602482015274746f427974657333325f6f75744f66426f756e647360581b6044820152606401610b9f565b50016020015190565b82805461379790614168565b90600052602060002090601f0160209004810192826137b957600085556137ff565b82601f106137d257805160ff19168380011785556137ff565b828001600101855582156137ff579182015b828111156137ff5782518255916020019190600101906137e4565b5061380b929150613883565b5090565b82805461381b90614168565b90600052602060002090601f01602090048101928261383d57600085556137ff565b82601f106138565782800160ff198235161785556137ff565b828001600101855582156137ff579182015b828111156137ff578235825591602001919060010190613868565b5b8082111561380b5760008155600101613884565b803561ffff811681146138aa57600080fd5b919050565b60008083601f8401126138c157600080fd5b5081356001600160401b038111156138d857600080fd5b6020830191508360208285010111156138f057600080fd5b9250929050565b80356001600160401b03811681146138aa57600080fd5b6000806000806000806080878903121561392757600080fd5b61393087613898565b955060208701356001600160401b038082111561394c57600080fd5b6139588a838b016138af565b909750955085915061396c60408a016138f7565b9450606089013591508082111561398257600080fd5b5061398f89828a016138af565b979a9699509497509295939492505050565b6000602082840312156139b357600080fd5b81356001600160e01b03198116811461172b57600080fd5b60005b838110156139e65781810151838201526020016139ce565b8381111561228c5750506000910152565b60008151808452613a0f8160208601602086016139cb565b601f01601f19169290920160200192915050565b60208152600061172b60208301846139f7565b600060208284031215613a4857600080fd5b61172b82613898565b6001600160a01b0381168114611f6d57600080fd5b60008060408385031215613a7957600080fd5b8235613a8481613a51565b946020939093013593505050565b600080600060608486031215613aa757600080fd5b8335613ab281613a51565b92506020840135613ac281613a51565b929592945050506040919091013590565b600060608284031215613ae557600080fd5b50919050565b60008060008060008060c08789031215613b0457600080fd5b8635613b0f81613a51565b9550613b1d60208801613898565b945060408701359350606087013592506080870135915060a08701356001600160401b03811115613b4d57600080fd5b613b5989828a01613ad3565b9150509295509295509295565b803580151581146138aa57600080fd5b60008060008060008060a08789031215613b8f57600080fd5b613b9887613898565b95506020870135945060408701359350613bb460608801613b66565b925060808701356001600160401b03811115613bcf57600080fd5b61398f89828a016138af565b600080600060408486031215613bf057600080fd5b613bf984613898565b925060208401356001600160401b03811115613c1457600080fd5b613c20868287016138af565b9497909650939450505050565b60008060008060008060008060006101008a8c031215613c4c57600080fd5b8935613c5781613a51565b9850613c6560208b01613898565b975060408a0135965060608a0135955060808a0135945060a08a01356001600160401b0380821115613c9657600080fd5b613ca28d838e016138af565b9096509450849150613cb660c08d016138f7565b935060e08c0135915080821115613ccc57600080fd5b50613cd98c828d01613ad3565b9150509295985092959850929598565b600060208284031215613cfb57600080fd5b813561172b81613a51565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613d4457613d44613d06565b604052919050565b60006001600160401b03821115613d6557613d65613d06565b50601f01601f191660200190565b600080600060608486031215613d8857600080fd5b613d9184613898565b925060208401356001600160401b03811115613dac57600080fd5b8401601f81018613613dbd57600080fd5b8035613dd0613dcb82613d4c565b613d1c565b818152876020838501011115613de557600080fd5b81602084016020830137600060208383010152809450505050613e0a604085016138f7565b90509250925092565b600080600060608486031215613e2857600080fd5b613e3184613898565b9250613e3f60208501613b66565b9150613e0a60408501613898565b60008060408385031215613e6057600080fd5b613e6983613898565b9150613e7760208401613898565b90509250929050565b600080600080600080600080600060e08a8c031215613e9e57600080fd5b613ea78a613898565b985060208a0135975060408a0135965060608a01356001600160401b0380821115613ed157600080fd5b613edd8d838e016138af565b9098509650869150613ef160808d016138f7565b9550613eff60a08d01613b66565b945060c08c0135915080821115613f1557600080fd5b50613f228c828d016138af565b915080935050809150509295985092959850929598565b600080600080600060808688031215613f5157600080fd5b613f5a86613898565b9450613f6860208701613898565b93506040860135925060608601356001600160401b03811115613f8a57600080fd5b613f96888289016138af565b969995985093965092949392505050565b60008060408385031215613fba57600080fd5b8235613fc581613a51565b91506020830135613fd581613a51565b809150509250929050565b600080600060608486031215613ff557600080fd5b613ffe84613898565b925061400c60208501613898565b9150604084013590509250925092565b60006020828403121561402e57600080fd5b61172b82613b66565b6000806000806000806000806000806101008b8d03121561405757600080fd5b6140608b613898565b995060208b01356001600160401b038082111561407c57600080fd5b6140888e838f016138af565b909b50995089915061409c60408e016138f7565b985060608d0135975060808d013591506140b582613a51565b90955060a08c0135945060c08c013590808211156140d257600080fd5b506140df8d828e016138af565b9150809450508092505060e08b013590509295989b9194979a5092959850565b6000806040838503121561411257600080fd5b613a8483613898565b6000806000806080858703121561413157600080fd5b61413a85613898565b935061414860208601613898565b9250604085013561415881613a51565b9396929550929360600135925050565b600181811c9082168061417c57607f821691505b60208210811415613ae557634e487b7160e01b600052602260045260246000fd5b8183823760009101908152919050565b6000808335601e198436030181126141c457600080fd5b8301803591506001600160401b038211156141de57600080fd5b6020019150368190038213156138f057600080fd5b6020808252602d908201527f426173654f4654576974684665653a20616d6f756e74206973206c657373207460408201526c1a185b881b5a5b905b5bdd5b9d609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561426957614269614240565b500190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff8416815260406020820152600061201860408301848661426e565b60208082526025908201527f4665653a20666565206270206d757374206265203c3d2042505f44454e4f4d496040820152642720aa27a960d91b606082015260800190565b60008282101561430c5761430c614240565b500390565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b600061ffff80881683528087166020840152508460408301526080606083015261436560808301848661426e565b979650505050505050565b61ffff8616815260806020820152600061438e60808301868861426e565b6001600160401b0394909416604083015250606001529392505050565b61ffff8916815260c0602082015260006143c960c08301898b61426e565b6001600160401b038816604084015286606084015285608084015282810360a08401526143f781858761426e565b9b9a5050505050505050505050565b600081600019048311821515161561442057614420614240565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261444a5761444a614425565b500490565b60006020828403121561446157600080fd5b81516001600160401b0381111561447757600080fd5b8201601f8101841361448857600080fd5b8051614496613dcb82613d4c565b8181528560208385010111156144ab57600080fd5b6120188260208301602086016139cb565b61ffff851681526080602082015260006144d960808301866139f7565b6001600160401b0385166040840152828103606084015261436581856139f7565b61ffff861681526001600160a01b038516602082015260a060408201819052600090614528908301866139f7565b8415156060840152828103608084015261454281856139f7565b98975050505050505050565b6000806040838503121561456157600080fd5b505080516020909101519092909150565b600082516145848184602087016139cb565b9190910192915050565b61ffff8616815260a0602082015260006145ab60a08301876139f7565b6001600160401b038616604084015282810360608401526145cc81866139f7565b9050828103608084015261454281856139f7565b6000826145ef576145ef614425565b500690565b61ffff8716815260c06020820152600061461160c08301886139f7565b828103604084015261462381886139f7565b6001600160a01b0387811660608601528616608085015283810360a0850152905061464e81856139f7565b9998505050505050505050565b60ff60f81b8760f81b16815285600182015260006001600160401b0360c01b808760c01b166021840152856029840152808560c01b1660498401525082516146aa8160518501602087016139cb565b91909101605101979650505050505050565b600061010061ffff8b1683528060208401526146da8184018b6139f7565b6001600160401b038a166040850152606084018990526001600160a01b038816608085015260a0840187905283810360c0850152905061471a81866139f7565b9150508260e08301529998505050505050505050565b60608152600061474360608301866139f7565b6001600160401b03949094166020830152506040015291905056fea2646970667358221220154881ca2f7a7ca00b61764d226f872d8718f342acb02421b81b6b84c38c484564736f6c634300080c0033000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd7
Deployed Bytecode
0x60806040526004361061036a5760003560e01c80639358928b116101c6578063cbed8b9c116100f7578063eaffd49a11610095578063ed629c5c1161006f578063ed629c5c14610abe578063f2fde38b14610ad8578063f5ecbdbc14610af8578063fc0c546a14610b1857600080fd5b8063eaffd49a14610a5e578063eb8d72b714610a7e578063ecd8f21214610a9e57600080fd5b8063dd62ed3e116100d1578063dd62ed3e146109e9578063df2a5b3b14610a09578063e6a20ae614610a29578063eab45d9c14610a3e57600080fd5b8063cbed8b9c14610988578063d1deba1f146109a8578063d8882968146109bb57600080fd5b8063a6c3d16511610164578063b353aaa71161013e578063b353aaa7146108b8578063b9818be1146108ec578063baf3292d14610912578063c83330ce1461093257600080fd5b8063a6c3d16514610862578063a9059cbb14610882578063abe685cd146108a257600080fd5b80639bdb9812116101a05780639bdb9812146107b05780639f38369a14610802578063a457c2d714610822578063a4c51df51461084257600080fd5b80639358928b14610766578063950c8a741461077b57806395d89b411461079b57600080fd5b806344770515116102a057806370a082311161023e57806379c0ad4b1161021857806379c0ad4b146106a8578063857749b0146106c85780638cfd8f5c146106fc5780638da5cb5b1461073457600080fd5b806370a082311461063d578063715018a6146106735780637533d7881461068857600080fd5b80634c42899a1161027a5780634c42899a146105995780635a359dc5146105ae5780635b8c41e6146105ce57806366ad5c8a1461061d57600080fd5b80634477051514610551578063455ba27d146105665780634b104eff1461057957600080fd5b806323b872dd1161030d578063365260b4116102e7578063365260b4146104bc57806339509351146104f15780633d8b38f61461051157806342d65a8d1461053157600080fd5b806323b872dd146104675780632cdf0b9514610487578063313ce5671461049a57600080fd5b806307e0db171161034957806307e0db17146103e8578063095ea7b31461040857806310ddb1371461042857806318160ddd1461044857600080fd5b80621d35671461036f57806301ffc9a71461039157806306fdde03146103c6575b600080fd5b34801561037b57600080fd5b5061038f61038a36600461390e565b610b2b565b005b34801561039d57600080fd5b506103b16103ac3660046139a1565b610d5c565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103db610d93565b6040516103bd9190613a23565b3480156103f457600080fd5b5061038f610403366004613a36565b610e25565b34801561041457600080fd5b506103b1610423366004613a66565b610eae565b34801561043457600080fd5b5061038f610443366004613a36565b610ec6565b34801561045457600080fd5b50600b545b6040519081526020016103bd565b34801561047357600080fd5b506103b1610482366004613a92565b610f1e565b61038f610495366004613aeb565b610f42565b3480156104a657600080fd5b5060125b60405160ff90911681526020016103bd565b3480156104c857600080fd5b506104dc6104d7366004613b76565b610fe5565b604080519283526020830191909152016103bd565b3480156104fd57600080fd5b506103b161050c366004613a66565b61103a565b34801561051d57600080fd5b506103b161052c366004613bdb565b61105c565b34801561053d57600080fd5b5061038f61054c366004613bdb565b611128565b34801561055d57600080fd5b50610459600081565b61038f610574366004613c2d565b6111ae565b34801561058557600080fd5b5061038f610594366004613ce9565b61128f565b3480156105a557600080fd5b506104aa600081565b3480156105ba57600080fd5b5061038f6105c9366004613a36565b61134c565b3480156105da57600080fd5b506104596105e9366004613d73565b6004602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b34801561062957600080fd5b5061038f61063836600461390e565b6113be565b34801561064957600080fd5b50610459610658366004613ce9565b6001600160a01b031660009081526009602052604090205490565b34801561067f57600080fd5b5061038f611492565b34801561069457600080fd5b506103db6106a3366004613a36565b6114a6565b3480156106b457600080fd5b5061038f6106c3366004613e13565b611540565b3480156106d457600080fd5b506104aa7f000000000000000000000000000000000000000000000000000000000000000681565b34801561070857600080fd5b50610459610717366004613e4d565b600260209081526000928352604080842090915290825290205481565b34801561074057600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020016103bd565b34801561077257600080fd5b506104596115fc565b34801561078757600080fd5b5060035461074e906001600160a01b031681565b3480156107a757600080fd5b506103db61160c565b3480156107bc57600080fd5b506103b16107cb366004613d73565b6006602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205460ff1681565b34801561080e57600080fd5b506103db61081d366004613a36565b61161b565b34801561082e57600080fd5b506103b161083d366004613a66565b611732565b34801561084e57600080fd5b506104dc61085d366004613e80565b6117ad565b34801561086e57600080fd5b5061038f61087d366004613bdb565b61183c565b34801561088e57600080fd5b506103b161089d366004613a66565b6118c2565b3480156108ae57600080fd5b5061045961271081565b3480156108c457600080fd5b5061074e7f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd781565b3480156108f857600080fd5b5060085461074e906201000090046001600160a01b031681565b34801561091e57600080fd5b5061038f61092d366004613ce9565b6118d0565b34801561093e57600080fd5b5061096e61094d366004613a36565b60076020526000908152604090205461ffff81169062010000900460ff1682565b6040805161ffff90931683529015156020830152016103bd565b34801561099457600080fd5b5061038f6109a3366004613f39565b611926565b61038f6109b636600461390e565b6119b0565b3480156109c757600080fd5b506008546109d69061ffff1681565b60405161ffff90911681526020016103bd565b3480156109f557600080fd5b50610459610a04366004613fa7565b611bc6565b348015610a1557600080fd5b5061038f610a24366004613fe0565b611bf1565b348015610a3557600080fd5b506104aa600181565b348015610a4a57600080fd5b5061038f610a5936600461401c565b611ca3565b348015610a6a57600080fd5b5061038f610a79366004614037565b611cec565b348015610a8a57600080fd5b5061038f610a99366004613bdb565b611e0b565b348015610aaa57600080fd5b50610459610ab93660046140ff565b611e65565b348015610aca57600080fd5b506005546103b19060ff1681565b348015610ae457600080fd5b5061038f610af3366004613ce9565b611ef7565b348015610b0457600080fd5b506103db610b1336600461411b565b611f70565b348015610b2457600080fd5b503061074e565b337f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd76001600160a01b031614610ba85760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff861660009081526001602052604081208054610bc690614168565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf290614168565b8015610c3f5780601f10610c1457610100808354040283529160200191610c3f565b820191906000526020600020905b815481529060010190602001808311610c2257829003601f168201915b50505050509050805186869050148015610c5a575060008151115b8015610c82575080516020820120604051610c78908890889061419d565b6040518091039020145b610cdd5760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608401610b9f565b610d538787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061202192505050565b50505050505050565b60006001600160e01b03198216630d30953d60e31b1480610d8d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600c8054610da290614168565b80601f0160208091040260200160405190810160405280929190818152602001828054610dce90614168565b8015610e1b5780601f10610df057610100808354040283529160200191610e1b565b820191906000526020600020905b815481529060010190602001808311610dfe57829003601f168201915b5050505050905090565b610e2d61209a565b6040516307e0db1760e01b815261ffff821660048201527f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd76001600160a01b0316906307e0db17906024015b600060405180830381600087803b158015610e9357600080fd5b505af1158015610ea7573d6000803e3d6000fd5b5050505050565b600033610ebc8185856120f4565b5060019392505050565b610ece61209a565b6040516310ddb13760e01b815261ffff821660048201527f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd76001600160a01b0316906310ddb13790602401610e79565b600033610f2c858285612218565b610f37858585612292565b506001949350505050565b610f4d86868561243d565b509250610fbb86868686610f646020870187613ce9565b610f746040880160208901613ce9565b610f8160408901896141ad565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061248692505050565b925081831015610fdd5760405162461bcd60e51b8152600401610b9f906141f3565b505050505050565b60008061102b8888888888888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506125aa92505050565b91509150965096945050505050565b600033610ebc81858561104d8383611bc6565b6110579190614256565b6120f4565b61ffff83166000908152600160205260408120805482919061107d90614168565b80601f01602080910402602001604051908101604052809291908181526020018280546110a990614168565b80156110f65780601f106110cb576101008083540402835291602001916110f6565b820191906000526020600020905b8154815290600101906020018083116110d957829003601f168201915b50505050509050838360405161110d92919061419d565b60405180910390208180519060200120149150509392505050565b61113061209a565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd716906342d65a8d9061118090869086908690600401614297565b600060405180830381600087803b15801561119a57600080fd5b505af1158015610d53573d6000803e3d6000fd5b6111b989898861243d565b50809650506112628989898988888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a925061120b9150506020890189613ce9565b61121b60408a0160208b01613ce9565b61122860408b018b6141ad565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061266292505050565b9550848610156112845760405162461bcd60e51b8152600401610b9f906141f3565b505050505050505050565b61129761209a565b6001600160a01b0381166112ed5760405162461bcd60e51b815260206004820152601a60248201527f4665653a206665654f776e65722063616e6e6f742062652030780000000000006044820152606401610b9f565b6008805462010000600160b01b031916620100006001600160a01b038416908102919091179091556040519081527f047912631afa564eebd3db2efe191a0dec62da1fede6bbbc1ffc89d87845b1b5906020015b60405180910390a150565b61135461209a565b6127108161ffff16111561137a5760405162461bcd60e51b8152600401610b9f906142b5565b6008805461ffff191661ffff83169081179091556040519081527fd26030ef4a8c225ee12b646eb4466acb41fb96b6cd4660b22d0ba0124e7bdc7490602001611341565b33301461141c5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608401610b9f565b610fdd8686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f89018190048102820181019092528781528993509150879087908190840183828082843760009201919091525061275e92505050565b61149a61209a565b6114a460006127e5565b565b600160205260009081526040902080546114bf90614168565b80601f01602080910402602001604051908101604052809291908181526020018280546114eb90614168565b80156115385780601f1061150d57610100808354040283529160200191611538565b820191906000526020600020905b81548152906001019060200180831161151b57829003601f168201915b505050505081565b61154861209a565b6127108161ffff16111561156e5760405162461bcd60e51b8152600401610b9f906142b5565b60408051808201825261ffff83811680835285151560208085018281528985166000818152600784528890209651875492511515620100000262ffffff1990931696169590951717909455845192835292820192909252918201527fdd9c9685af3e6dcb56d8f4b88d2595d4add6837a150034e7781c46b6dcf8aaab906060015b60405180910390a1505050565b6000611607600b5490565b905090565b6060600d8054610da290614168565b61ffff811660009081526001602052604081208054606092919061163e90614168565b80601f016020809104026020016040519081016040528092919081815260200182805461166a90614168565b80156116b75780601f1061168c576101008083540402835291602001916116b7565b820191906000526020600020905b81548152906001019060200180831161169a57829003601f168201915b505050505090508051600014156117105760405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f72640000006044820152606401610b9f565b61172b60006014835161172391906142fa565b839190612835565b9392505050565b600033816117408286611bc6565b9050838110156117a05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b9f565b610f3782868684036120f4565b60008061182a8b8b8b8b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8d018190048102820181019092528b81528e93508d9250908c908c908190840183828082843760009201919091525061294292505050565b91509150995099975050505050505050565b61184461209a565b81813060405160200161185993929190614311565b60408051601f1981840301815291815261ffff8516600090815260016020908152919020825161188e9391929091019061378b565b507f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce8383836040516115ef93929190614297565b600033610ebc818585612292565b6118d861209a565b600380546001600160a01b0319166001600160a01b0383169081179091556040519081527f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b90602001611341565b61192e61209a565b6040516332fb62e760e21b81526001600160a01b037f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd7169063cbed8b9c906119829088908890889088908890600401614337565b600060405180830381600087803b15801561199c57600080fd5b505af1158015611284573d6000803e3d6000fd5b61ffff861660009081526004602052604080822090516119d3908890889061419d565b90815260408051602092819003830190206001600160401b03871660009081529252902054905080611a535760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608401610b9f565b808383604051611a6492919061419d565b604051809103902014611ac35760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608401610b9f565b61ffff87166000908152600460205260408082209051611ae6908990899061419d565b90815260408051602092819003830181206001600160401b038916600090815290845282902093909355601f88018290048202830182019052868252611b7e918991899089908190840183828082843760009201919091525050604080516020601f8a018190048102820181019092528881528a93509150889088908190840183828082843760009201919091525061275e92505050565b7fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e58787878785604051611bb5959493929190614370565b60405180910390a150505050505050565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b611bf961209a565b60008111611c415760405162461bcd60e51b81526020600482015260156024820152744c7a4170703a20696e76616c6964206d696e47617360581b6044820152606401610b9f565b61ffff83811660008181526002602090815260408083209487168084529482529182902085905581519283528201929092529081018290527f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac0906060016115ef565b611cab61209a565b6005805460ff19168215159081179091556040519081527f1584ad594a70cbe1e6515592e1272a987d922b097ead875069cebe8b40c004a490602001611341565b333014611d3b5760405162461bcd60e51b815260206004820152601f60248201527f4f4654436f72653a2063616c6c6572206d757374206265204f4654436f7265006044820152606401610b9f565b611d463086866129fd565b9350846001600160a01b03168a61ffff167fbf551ec93859b170f9b2141bd9298bf3f64322c6f7beb2543a0cb669834118bf86604051611d8891815260200190565b60405180910390a3604051633fe79aed60e11b81526001600160a01b03861690637fcf35da908390611dcc908e908e908e908e908e908d908d908d906004016143ab565b600060405180830381600088803b158015611de657600080fd5b5087f1158015611dfa573d6000803e3d6000fd5b505050505050505050505050505050565b611e1361209a565b61ffff83166000908152600160205260409020611e3190838361380f565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab8383836040516115ef93929190614297565b61ffff828116600090815260076020908152604080832081518083019092525493841681526201000090930460ff1615801591840191909152909190611eca57805161271090611eb99061ffff1685614406565b611ec3919061443b565b9150611ef0565b60085461ffff1615611eeb5760085461271090611eb99061ffff1685614406565b600091505b5092915050565b611eff61209a565b6001600160a01b038116611f645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b9f565b611f6d816127e5565b50565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd76001600160a01b03169063f5ecbdbc90608401600060405180830381865afa158015611ff0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612018919081019061444f565b95945050505050565b6000806120845a60966366ad5c8a60e01b8989898960405160240161204994939291906144bc565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915230929190612a4f565b9150915081610fdd57610fdd8686868685612ad9565b6000546001600160a01b031633146114a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9f565b6001600160a01b0383166121565760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b9f565b6001600160a01b0382166121b75760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b9f565b6001600160a01b038381166000818152600a602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006122248484611bc6565b9050600019811461228c578181101561227f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b9f565b61228c84848484036120f4565b50505050565b6001600160a01b0383166122f65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610b9f565b6001600160a01b0382166123585760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610b9f565b6001600160a01b038316600090815260096020526040902054818110156123d05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b9f565b6001600160a01b0380851660008181526009602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906124309086815260200190565b60405180910390a361228c565b60008061244a8484611e65565b905061245681846142fa565b9150801561247e5760085461247c9086906201000090046001600160a01b0316836129fd565b505b935093915050565b600061249487828481612b76565b61249d85612bf0565b5090506124ac88888884612c30565b9050600081116124fa5760405162461bcd60e51b815260206004820152601960248201527813d19510dbdc994e88185b5bdd5b9d081d1bdbc81cdb585b1b603a1b6044820152606401610b9f565b60006125458761250984612c62565b6040805160006020820152602181019390935260c09190911b6001600160c01b0319166041830152805160298184030181526049909201905290565b9050612555888287878734612ce8565b86896001600160a01b03168961ffff167fd81fc9b8523134ed613870ed029d6170cbb73aa6a6bc311b9a642689fb9df59a8560405161259691815260200190565b60405180910390a450979650505050505050565b60008060006125bc8761250988612c62565b60405163040a7bb160e41b81529091506001600160a01b037f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd716906340a7bb1090612613908b90309086908b908b906004016144fa565b6040805180830381865afa15801561262f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612653919061454e565b92509250509550959350505050565b600061267a896001846001600160401b038916612b76565b61268387612bf0565b5090506126928a8a8a84612c30565b9050600081116126e05760405162461bcd60e51b815260206004820152601960248201527813d19510dbdc994e88185b5bdd5b9d081d1bdbc81cdb585b1b603a1b6044820152606401610b9f565b60006126f7338a6126f085612c62565b8a8a612e83565b90506127078a8287878734612ce8565b888b6001600160a01b03168b61ffff167fd81fc9b8523134ed613870ed029d6170cbb73aa6a6bc311b9a642689fb9df59a8560405161274891815260200190565b60405180910390a4509998505050505050505050565b600061276a8282612ec4565b905060ff81166127855761278085858585612f20565b610ea7565b60ff81166001141561279d5761278085858585612fb0565b60405162461bcd60e51b815260206004820152601c60248201527f4f4654436f72653a20756e6b6e6f776e207061636b65742074797065000000006044820152606401610b9f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608161284381601f614256565b10156128825760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b6044820152606401610b9f565b61288c8284614256565b845110156128d05760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b6044820152606401610b9f565b6060821580156128ef5760405191506000825260208201604052612939565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015612928578051835260209283019201612910565b5050858452601f01601f1916604052505b50949350505050565b6000806000612955338a6126f08b612c62565b60405163040a7bb160e41b81529091506001600160a01b037f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd716906340a7bb10906129ac908d90309086908b908b906004016144fa565b6040805180830381865afa1580156129c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129ec919061454e565b925092505097509795505050505050565b600033306001600160a01b03861614801590612a2b5750806001600160a01b0316856001600160a01b031614155b15612a3b57612a3b858285612218565b612a46858585612292565b50909392505050565b6000606060008060008661ffff166001600160401b03811115612a7457612a74613d06565b6040519080825280601f01601f191660200182016040528015612a9e576020820181803683370190505b50905060008087516020890160008d8df191503d925086831115612ac0578692505b828152826000602083013e909890975095505050505050565b8180519060200120600460008761ffff1661ffff16815260200190815260200160002085604051612b0a9190614572565b9081526040805191829003602090810183206001600160401b0388166000908152915220919091557fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c90612b67908790879087908790879061458e565b60405180910390a15050505050565b60055460ff1615612b9257612b8d848484846131be565b61228c565b81511561228c5760405162461bcd60e51b815260206004820152602660248201527f4f4654436f72653a205f61646170746572506172616d73206d7573742062652060448201526532b6b83a3c9760d11b6064820152608401610b9f565b600080612c1d7f000000000000000000000000000000000000000000000000000000e8d4a51000846145e0565b9050612c2981846142fa565b9150915091565b6000336001600160a01b0386168114612c4e57612c4e868285612218565b612c58868461329d565b5090949350505050565b600080612c8f7f000000000000000000000000000000000000000000000000000000e8d4a510008461443b565b90506001600160401b03811115610d8d5760405162461bcd60e51b815260206004820152601a60248201527f4f4654436f72653a20616d6f756e745344206f766572666c6f770000000000006044820152606401610b9f565b61ffff861660009081526001602052604081208054612d0690614168565b80601f0160208091040260200160405190810160405280929190818152602001828054612d3290614168565b8015612d7f5780601f10612d5457610100808354040283529160200191612d7f565b820191906000526020600020905b815481529060010190602001808311612d6257829003601f168201915b50505050509050805160001415612df15760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b6064820152608401610b9f565b60405162c5803160e81b81526001600160a01b037f000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd7169063c5803100908490612e48908b9086908c908c908c908c906004016145f4565b6000604051808303818588803b158015612e6157600080fd5b505af1158015612e75573d6000803e3d6000fd5b505050505050505050505050565b6060600185856001600160a01b0389168587604051602001612eaa9695949392919061465b565b604051602081830303815290604052905095945050505050565b6000612ed1826001614256565b83511015612f175760405162461bcd60e51b8152602060048201526013602482015272746f55696e74385f6f75744f66426f756e647360681b6044820152606401610b9f565b50016001015190565b600080612f2c836133d1565b90925090506001600160a01b038216612f455761dead91505b6000612f5082613456565b9050612f5d87848361348b565b9050826001600160a01b03168761ffff167fbf551ec93859b170f9b2141bd9298bf3f64322c6f7beb2543a0cb669834118bf83604051612f9f91815260200190565b60405180910390a350505050505050565b6000806000806000612fc186613497565b945094509450945094506000600660008b61ffff1661ffff16815260200190815260200160002089604051612ff69190614572565b90815260408051602092819003830190206001600160401b038b166000908152925281205460ff16915061302985613456565b9050816130975761303b8b308361348b565b61ffff8c16600090815260066020526040908190209051919250600191613063908d90614572565b90815260408051602092819003830190206001600160401b038d16600090815292529020805460ff19169115159190911790555b6001600160a01b0386163b6130ee576040516001600160a01b03871681527f9aedf5fdba8716db3b6705ca00150643309995d4f818a249ed6dde6677e7792d9060200160405180910390a15050505050505061228c565b8a8a8a8a8a8a868a60008a61310c578b6001600160401b031661310e565b5a5b90506000806131405a609663eaffd49a60e01b8e8e8e8d8d8d8d8d6040516024016120499897969594939291906146bc565b915091508115613199578751602089012060405161ffff8d16907fb8890edbfc1c74692f527444645f95489c3703cc2df42e4a366f5d06fa6cd8849061318b908e908e908690614730565b60405180910390a2506131a6565b6131a68b8b8b8b85612ad9565b50505050505050505050505050505050505050505050565b60006131c98361354e565b61ffff8087166000908152600260209081526040808320938916835292905290812054919250906131fb908490614256565b90506000811161324d5760405162461bcd60e51b815260206004820152601a60248201527f4c7a4170703a206d696e4761734c696d6974206e6f74207365740000000000006044820152606401610b9f565b80821015610fdd5760405162461bcd60e51b815260206004820152601b60248201527f4c7a4170703a20676173206c696d697420697320746f6f206c6f7700000000006044820152606401610b9f565b6001600160a01b0382166132fd5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b9f565b6001600160a01b038216600090815260096020526040902054818110156133715760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b9f565b6001600160a01b03831660008181526009602090815260408083208686039055600b80548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600080806133df8482612ec4565b60ff161480156133f0575082516029145b6134375760405162461bcd60e51b815260206004820152601860248201527713d19510dbdc994e881a5b9d985b1a59081c185e5b1bd85960421b6044820152606401610b9f565b61344283600d6135aa565b915061344f83602161360f565b9050915091565b6000610d8d7f000000000000000000000000000000000000000000000000000000e8d4a510006001600160401b038416614406565b6000611ef0838361366c565b6000808060608160016134aa8783612ec4565b60ff16146134f55760405162461bcd60e51b815260206004820152601860248201527713d19510dbdc994e881a5b9d985b1a59081c185e5b1bd85960421b6044820152606401610b9f565b61350086600d6135aa565b935061350d86602161360f565b925061351a86602961372d565b945061352786604961360f565b9050613543605180885161353b91906142fa565b889190612835565b915091939590929450565b60006022825110156135a25760405162461bcd60e51b815260206004820152601c60248201527f4c7a4170703a20696e76616c69642061646170746572506172616d73000000006044820152606401610b9f565b506022015190565b60006135b7826014614256565b835110156135ff5760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b6044820152606401610b9f565b500160200151600160601b900490565b600061361c826008614256565b835110156136635760405162461bcd60e51b8152602060048201526014602482015273746f55696e7436345f6f75744f66426f756e647360601b6044820152606401610b9f565b50016008015190565b6001600160a01b0382166136c25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b9f565b80600b60008282546136d49190614256565b90915550506001600160a01b0382166000818152600960209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600061373a826020614256565b835110156137825760405162461bcd60e51b8152602060048201526015602482015274746f427974657333325f6f75744f66426f756e647360581b6044820152606401610b9f565b50016020015190565b82805461379790614168565b90600052602060002090601f0160209004810192826137b957600085556137ff565b82601f106137d257805160ff19168380011785556137ff565b828001600101855582156137ff579182015b828111156137ff5782518255916020019190600101906137e4565b5061380b929150613883565b5090565b82805461381b90614168565b90600052602060002090601f01602090048101928261383d57600085556137ff565b82601f106138565782800160ff198235161785556137ff565b828001600101855582156137ff579182015b828111156137ff578235825591602001919060010190613868565b5b8082111561380b5760008155600101613884565b803561ffff811681146138aa57600080fd5b919050565b60008083601f8401126138c157600080fd5b5081356001600160401b038111156138d857600080fd5b6020830191508360208285010111156138f057600080fd5b9250929050565b80356001600160401b03811681146138aa57600080fd5b6000806000806000806080878903121561392757600080fd5b61393087613898565b955060208701356001600160401b038082111561394c57600080fd5b6139588a838b016138af565b909750955085915061396c60408a016138f7565b9450606089013591508082111561398257600080fd5b5061398f89828a016138af565b979a9699509497509295939492505050565b6000602082840312156139b357600080fd5b81356001600160e01b03198116811461172b57600080fd5b60005b838110156139e65781810151838201526020016139ce565b8381111561228c5750506000910152565b60008151808452613a0f8160208601602086016139cb565b601f01601f19169290920160200192915050565b60208152600061172b60208301846139f7565b600060208284031215613a4857600080fd5b61172b82613898565b6001600160a01b0381168114611f6d57600080fd5b60008060408385031215613a7957600080fd5b8235613a8481613a51565b946020939093013593505050565b600080600060608486031215613aa757600080fd5b8335613ab281613a51565b92506020840135613ac281613a51565b929592945050506040919091013590565b600060608284031215613ae557600080fd5b50919050565b60008060008060008060c08789031215613b0457600080fd5b8635613b0f81613a51565b9550613b1d60208801613898565b945060408701359350606087013592506080870135915060a08701356001600160401b03811115613b4d57600080fd5b613b5989828a01613ad3565b9150509295509295509295565b803580151581146138aa57600080fd5b60008060008060008060a08789031215613b8f57600080fd5b613b9887613898565b95506020870135945060408701359350613bb460608801613b66565b925060808701356001600160401b03811115613bcf57600080fd5b61398f89828a016138af565b600080600060408486031215613bf057600080fd5b613bf984613898565b925060208401356001600160401b03811115613c1457600080fd5b613c20868287016138af565b9497909650939450505050565b60008060008060008060008060006101008a8c031215613c4c57600080fd5b8935613c5781613a51565b9850613c6560208b01613898565b975060408a0135965060608a0135955060808a0135945060a08a01356001600160401b0380821115613c9657600080fd5b613ca28d838e016138af565b9096509450849150613cb660c08d016138f7565b935060e08c0135915080821115613ccc57600080fd5b50613cd98c828d01613ad3565b9150509295985092959850929598565b600060208284031215613cfb57600080fd5b813561172b81613a51565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613d4457613d44613d06565b604052919050565b60006001600160401b03821115613d6557613d65613d06565b50601f01601f191660200190565b600080600060608486031215613d8857600080fd5b613d9184613898565b925060208401356001600160401b03811115613dac57600080fd5b8401601f81018613613dbd57600080fd5b8035613dd0613dcb82613d4c565b613d1c565b818152876020838501011115613de557600080fd5b81602084016020830137600060208383010152809450505050613e0a604085016138f7565b90509250925092565b600080600060608486031215613e2857600080fd5b613e3184613898565b9250613e3f60208501613b66565b9150613e0a60408501613898565b60008060408385031215613e6057600080fd5b613e6983613898565b9150613e7760208401613898565b90509250929050565b600080600080600080600080600060e08a8c031215613e9e57600080fd5b613ea78a613898565b985060208a0135975060408a0135965060608a01356001600160401b0380821115613ed157600080fd5b613edd8d838e016138af565b9098509650869150613ef160808d016138f7565b9550613eff60a08d01613b66565b945060c08c0135915080821115613f1557600080fd5b50613f228c828d016138af565b915080935050809150509295985092959850929598565b600080600080600060808688031215613f5157600080fd5b613f5a86613898565b9450613f6860208701613898565b93506040860135925060608601356001600160401b03811115613f8a57600080fd5b613f96888289016138af565b969995985093965092949392505050565b60008060408385031215613fba57600080fd5b8235613fc581613a51565b91506020830135613fd581613a51565b809150509250929050565b600080600060608486031215613ff557600080fd5b613ffe84613898565b925061400c60208501613898565b9150604084013590509250925092565b60006020828403121561402e57600080fd5b61172b82613b66565b6000806000806000806000806000806101008b8d03121561405757600080fd5b6140608b613898565b995060208b01356001600160401b038082111561407c57600080fd5b6140888e838f016138af565b909b50995089915061409c60408e016138f7565b985060608d0135975060808d013591506140b582613a51565b90955060a08c0135945060c08c013590808211156140d257600080fd5b506140df8d828e016138af565b9150809450508092505060e08b013590509295989b9194979a5092959850565b6000806040838503121561411257600080fd5b613a8483613898565b6000806000806080858703121561413157600080fd5b61413a85613898565b935061414860208601613898565b9250604085013561415881613a51565b9396929550929360600135925050565b600181811c9082168061417c57607f821691505b60208210811415613ae557634e487b7160e01b600052602260045260246000fd5b8183823760009101908152919050565b6000808335601e198436030181126141c457600080fd5b8301803591506001600160401b038211156141de57600080fd5b6020019150368190038213156138f057600080fd5b6020808252602d908201527f426173654f4654576974684665653a20616d6f756e74206973206c657373207460408201526c1a185b881b5a5b905b5bdd5b9d609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561426957614269614240565b500190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b61ffff8416815260406020820152600061201860408301848661426e565b60208082526025908201527f4665653a20666565206270206d757374206265203c3d2042505f44454e4f4d496040820152642720aa27a960d91b606082015260800190565b60008282101561430c5761430c614240565b500390565b8284823760609190911b6bffffffffffffffffffffffff19169101908152601401919050565b600061ffff80881683528087166020840152508460408301526080606083015261436560808301848661426e565b979650505050505050565b61ffff8616815260806020820152600061438e60808301868861426e565b6001600160401b0394909416604083015250606001529392505050565b61ffff8916815260c0602082015260006143c960c08301898b61426e565b6001600160401b038816604084015286606084015285608084015282810360a08401526143f781858761426e565b9b9a5050505050505050505050565b600081600019048311821515161561442057614420614240565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261444a5761444a614425565b500490565b60006020828403121561446157600080fd5b81516001600160401b0381111561447757600080fd5b8201601f8101841361448857600080fd5b8051614496613dcb82613d4c565b8181528560208385010111156144ab57600080fd5b6120188260208301602086016139cb565b61ffff851681526080602082015260006144d960808301866139f7565b6001600160401b0385166040840152828103606084015261436581856139f7565b61ffff861681526001600160a01b038516602082015260a060408201819052600090614528908301866139f7565b8415156060840152828103608084015261454281856139f7565b98975050505050505050565b6000806040838503121561456157600080fd5b505080516020909101519092909150565b600082516145848184602087016139cb565b9190910192915050565b61ffff8616815260a0602082015260006145ab60a08301876139f7565b6001600160401b038616604084015282810360608401526145cc81866139f7565b9050828103608084015261454281856139f7565b6000826145ef576145ef614425565b500690565b61ffff8716815260c06020820152600061461160c08301886139f7565b828103604084015261462381886139f7565b6001600160a01b0387811660608601528616608085015283810360a0850152905061464e81856139f7565b9998505050505050505050565b60ff60f81b8760f81b16815285600182015260006001600160401b0360c01b808760c01b166021840152856029840152808560c01b1660498401525082516146aa8160518501602087016139cb565b91909101605101979650505050505050565b600061010061ffff8b1683528060208401526146da8184018b6139f7565b6001600160401b038a166040850152606084018990526001600160a01b038816608085015260a0840187905283810360c0850152905061471a81866139f7565b9150508260e08301529998505050505050505050565b60608152600061474360608301866139f7565b6001600160401b03949094166020830152506040015291905056fea2646970667358221220154881ca2f7a7ca00b61764d226f872d8718f342acb02421b81b6b84c38c484564736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd7
-----Decoded View---------------
Arg [0] : _layerZeroEndpoint (address): 0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b6319cc6c8c27a8f5daf0dd3df91ea35c4720dd7
Deployed Bytecode Sourcemap
144:151:38:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1035:753:3;;;;;;;;;;-1:-1:-1;1035:753:3;;;;;:::i;:::-;;:::i;:::-;;1806:216:15;;;;;;;;;;-1:-1:-1;1806:216:15;;;;;:::i;:::-;;:::i;:::-;;;2029:14:40;;2022:22;2004:41;;1992:2;1977:18;1806:216:15;;;;;;;;2154:98:23;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3834:121:3:-;;;;;;;;;;-1:-1:-1;3834:121:3;;;;;:::i;:::-;;:::i;4431:197:23:-;;;;;;;;;;-1:-1:-1;4431:197:23;;;;;:::i;:::-;;:::i;3961:127:3:-;;;;;;;;;;-1:-1:-1;3961:127:3;;;;;:::i;:::-;;:::i;3242:106:23:-;;;;;;;;;;-1:-1:-1;3329:12:23;;3242:106;;;3598:25:40;;;3586:2;3571:18;3242:106:23;3452:177:40;5190:286:23;;;;;;;;;;-1:-1:-1;5190:286:23;;;;;:::i;:::-;;:::i;566:480:15:-;;;;;;:::i;:::-;;:::i;3091:91:23:-;;;;;;;;;;-1:-1:-1;3173:2:23;3091:91;;;5217:4:40;5205:17;;;5187:36;;5175:2;5160:18;3091:91:23;5045:184:40;2028:290:15;;;;;;;;;;-1:-1:-1;2028:290:15;;;;;:::i;:::-;;:::i;:::-;;;;6265:25:40;;;6321:2;6306:18;;6299:34;;;;6238:18;2028:290:15;6091:248:40;5871:234:23;;;;;;;;;;-1:-1:-1;5871:234:23;;;;;:::i;:::-;;:::i;5744:247:3:-;;;;;;;;;;-1:-1:-1;5744:247:3;;;;;:::i;:::-;;:::i;4094:176::-;;;;;;;;;;-1:-1:-1;4094:176:3;;;;;:::i;:::-;;:::i;339:37:13:-;;;;;;;;;;;;375:1;339:37;;1052:564:15;;;;;;:::i;:::-;;:::i;1168:213:16:-;;;;;;;;;;-1:-1:-1;1168:213:16;;;;;:::i;:::-;;:::i;402:33:13:-;;;;;;;;;;;;434:1;402:33;;619:231:16;;;;;;;;;;-1:-1:-1;619:231:16;;;;;:::i;:::-;;:::i;617:85:4:-;;;;;;;;;;-1:-1:-1;617:85:4;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1820:342;;;;;;;;;;-1:-1:-1;1820:342:4;;;;;:::i;:::-;;:::i;3406:125:23:-;;;;;;;;;;-1:-1:-1;3406:125:23;;;;;:::i;:::-;-1:-1:-1;;;;;3506:18:23;3480:7;3506:18;;;:9;:18;;;;;;;3406:125;1831:101:22;;;;;;;;;;;;;:::i;520:51:3:-;;;;;;;;;;-1:-1:-1;520:51:3;;;;;:::i;:::-;;:::i;856:306:16:-;;;;;;;;;;-1:-1:-1;856:306:16;;;;;:::i;:::-;;:::i;490:37:13:-;;;;;;;;;;;;;;;577:65:3;;;;;;;;;;-1:-1:-1;577:65:3;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;1201:85:22;;;;;;;;;;-1:-1:-1;1247:7:22;1273:6;-1:-1:-1;;;;;1273:6:22;1201:85;;;-1:-1:-1;;;;;10831:32:40;;;10813:51;;10801:2;10786:18;1201:85:22;10667:203:40;786:110:18;;;;;;;;;;;;;:::i;648:23:3:-;;;;;;;;;;-1:-1:-1;648:23:3;;;;-1:-1:-1;;;;;648:23:3;;;2365:102:23;;;;;;;;;;;;;:::i;574:83:13:-;;;;;;;;;;-1:-1:-1;574:83:13;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4898:326:3;;;;;;;;;;-1:-1:-1;4898:326:3;;;;;:::i;:::-;;:::i;6592:427:23:-;;;;;;;;;;-1:-1:-1;6592:427:23;;;;;:::i;:::-;;:::i;2324:378:15:-;;;;;;;;;;-1:-1:-1;2324:378:15;;;;;:::i;:::-;;:::i;4614:278:3:-;;;;;;;;;;-1:-1:-1;4614:278:3;;;;;:::i;:::-;;:::i;3727:189:23:-;;;;;;;;;;-1:-1:-1;3727:189:23;;;;;:::i;:::-;;:::i;151:43:16:-;;;;;;;;;;;;189:5;151:43;;468:46:3;;;;;;;;;;;;;;;290:23:16;;;;;;;;;;-1:-1:-1;290:23:16;;;;;;;-1:-1:-1;;;;;290:23:16;;;5230:133:3;;;;;;;;;;-1:-1:-1;5230:133:3;;;;;:::i;:::-;;:::i;201:51:16:-;;;;;;;;;;-1:-1:-1;201:51:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;12379:6:40;12367:19;;;12349:38;;12430:14;;12423:22;12418:2;12403:18;;12396:50;12322:18;201:51:16;12183:269:40;3626:202:3;;;;;;;;;;-1:-1:-1;3626:202:3;;;;;:::i;:::-;;:::i;2343:757:4:-;;;;;;:::i;:::-;;:::i;258:26:16:-;;;;;;;;;;-1:-1:-1;258:26:16;;;;;;;;;;;13258:6:40;13246:19;;;13228:38;;13216:2;13201:18;258:26:16;13084:188:40;3974:149:23;;;;;;;;;;-1:-1:-1;3974:149:23;;;;;:::i;:::-;;:::i;5369:280:3:-;;;;;;;;;;-1:-1:-1;5369:280:3;;;;;:::i;:::-;;:::i;441:42:13:-;;;;;;;;;;;;482:1;441:42;;2379:220;;;;;;;;;;-1:-1:-1;2379:220:13;;;;;:::i;:::-;;:::i;1818:555::-;;;;;;;;;;-1:-1:-1;1818:555:13;;;;;:::i;:::-;;:::i;4413:195:3:-;;;;;;;;;;-1:-1:-1;4413:195:3;;;;;:::i;:::-;;:::i;1387:400:16:-;;;;;;;;;;-1:-1:-1;1387:400:16;;;;;:::i;:::-;;:::i;534:34:13:-;;;;;;;;;;-1:-1:-1;534:34:13;;;;;;;;2081:198:22;;;;;;;;;;-1:-1:-1;2081:198:22;;;;;:::i;:::-;;:::i;3358:209:3:-;;;;;;;;;;-1:-1:-1;3358:209:3;;;;;:::i;:::-;;:::i;902:101:18:-;;;;;;;;;;-1:-1:-1;991:4:18;902:101;;1035:753:3;719:10:29;1273::3;-1:-1:-1;;;;;1249:35:3;;1241:78;;;;-1:-1:-1;;;1241:78:3;;16318:2:40;1241:78:3;;;16300:21:40;16357:2;16337:18;;;16330:30;16396:32;16376:18;;;16369:60;16446:18;;1241:78:3;;;;;;;;;1359:32;;;1330:26;1359:32;;;:19;:32;;;;;1330:61;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1563:13;:20;1541:11;;:18;;:42;:70;;;;;1610:1;1587:13;:20;:24;1541:70;:124;;;;-1:-1:-1;1641:24:3;;;;;;1615:22;;;;1625:11;;;;1615:22;:::i;:::-;;;;;;;;:50;1541:124;1533:175;;;;-1:-1:-1;;;1533:175:3;;17338:2:40;1533:175:3;;;17320:21:40;17377:2;17357:18;;;17350:30;17416:34;17396:18;;;17389:62;-1:-1:-1;;;17467:18:40;;;17460:36;17513:19;;1533:175:3;17136:402:40;1533:175:3;1719:62;1738:11;1751;;1719:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1719:62:3;;;;;;;;;;;;;;;;;;;;;;1764:6;;-1:-1:-1;1719:62:3;-1:-1:-1;1772:8:3;;;;;;1719:62;;1772:8;;;;1719:62;;;;;;;;;-1:-1:-1;1719:18:3;;-1:-1:-1;;;1719:62:3:i;:::-;1166:622;1035:753;;;;;;:::o;1806:216:15:-;1908:4;-1:-1:-1;;;;;;1931:44:15;;-1:-1:-1;;;1931:44:15;;:84;;-1:-1:-1;;;;;;;;;;937:40:30;;;1979:36:15;1924:91;1806:216;-1:-1:-1;;1806:216:15:o;2154:98:23:-;2208:13;2240:5;2233:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2154:98;:::o;3834:121:3:-;1094:13:22;:11;:13::i;:::-;3913:35:3::1;::::0;-1:-1:-1;;;3913:35:3;;13258:6:40;13246:19;;3913:35:3::1;::::0;::::1;13228:38:40::0;3913:10:3::1;-1:-1:-1::0;;;;;3913:25:3::1;::::0;::::1;::::0;13201:18:40;;3913:35:3::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;3834:121:::0;:::o;4431:197:23:-;4514:4;719:10:29;4568:32:23;719:10:29;4584:7:23;4593:6;4568:8;:32::i;:::-;-1:-1:-1;4617:4:23;;4431:197;-1:-1:-1;;;4431:197:23:o;3961:127:3:-;1094:13:22;:11;:13::i;:::-;4043:38:3::1;::::0;-1:-1:-1;;;4043:38:3;;13258:6:40;13246:19;;4043:38:3::1;::::0;::::1;13228::40::0;4043:10:3::1;-1:-1:-1::0;;;;;4043:28:3::1;::::0;::::1;::::0;13201:18:40;;4043:38:3::1;13084:188:40::0;5190:286:23;5317:4;719:10:29;5373:38:23;5389:4;719:10:29;5404:6:23;5373:15;:38::i;:::-;5421:27;5431:4;5437:2;5441:6;5421:9;:27::i;:::-;-1:-1:-1;5465:4:23;;5190:286;-1:-1:-1;;;;5190:286:23:o;566:480:15:-;760:39;771:5;778:11;791:7;760:10;:39::i;:::-;-1:-1:-1;747:52:15;-1:-1:-1;819:131:15;825:5;832:11;845:10;747:52;866:25;;;;:11;:25;:::i;:::-;893:29;;;;;;;;:::i;:::-;924:25;;;;:11;:25;:::i;:::-;819:131;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;819:5:15;;-1:-1:-1;;;819:131:15:i;:::-;809:141;;979:10;968:7;:21;;960:79;;;;-1:-1:-1;;;960:79:15;;;;;;;:::i;:::-;566:480;;;;;;:::o;2028:290::-;2190:14;2206:11;2236:75;2253:11;2266:10;2278:7;2287;2296:14;;2236:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2236:16:15;;-1:-1:-1;;;2236:75:15:i;:::-;2229:82;;;;2028:290;;;;;;;;;:::o;5871:234:23:-;5959:4;719:10:29;6013:64:23;719:10:29;6029:7:23;6066:10;6038:25;719:10:29;6029:7:23;6038:9;:25::i;:::-;:38;;;;:::i;:::-;6013:8;:64::i;5744:247:3:-;5885:32;;;5840:4;5885:32;;;:19;:32;;;;;5856:61;;5840:4;;5885:32;5856:61;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5972:11;;5962:22;;;;;;;:::i;:::-;;;;;;;;5944:13;5934:24;;;;;;:50;5927:57;;;5744:247;;;;;:::o;4094:176::-;1094:13:22;:11;:13::i;:::-;4208:55:3::1;::::0;-1:-1:-1;;;4208:55:3;;-1:-1:-1;;;;;4208:10:3::1;:29;::::0;::::1;::::0;:55:::1;::::0;4238:11;;4251;;;;4208:55:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;1052:564:15::0;1297:39;1308:5;1315:11;1328:7;1297:10;:39::i;:::-;1284:52;;;;;1356:164;1369:5;1376:11;1389:10;1401:7;1410:8;;1356:164;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1420:14:15;;-1:-1:-1;1436:25:15;;-1:-1:-1;;1436:25:15;;;:11;:25;:::i;:::-;1463:29;;;;;;;;:::i;:::-;1494:25;;;;:11;:25;:::i;:::-;1356:164;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1356:12:15;;-1:-1:-1;;;1356:164:15:i;:::-;1346:174;;1549:10;1538:7;:21;;1530:79;;;;-1:-1:-1;;;1530:79:15;;;;;;;:::i;:::-;1052:564;;;;;;;;;:::o;1168:213:16:-;1094:13:22;:11;:13::i;:::-;-1:-1:-1;;;;;1251:25:16;::::1;1243:64;;;::::0;-1:-1:-1;;;1243:64:16;;19812:2:40;1243:64:16::1;::::0;::::1;19794:21:40::0;19851:2;19831:18;;;19824:30;19890:28;19870:18;;;19863:56;19936:18;;1243:64:16::1;19610:350:40::0;1243:64:16::1;1317:8;:20:::0;;-1:-1:-1;;;;;;1317:20:16::1;::::0;-1:-1:-1;;;;;1317:20:16;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;1352:22:::1;::::0;10813:51:40;;;1352:22:16::1;::::0;10801:2:40;10786:18;1352:22:16::1;;;;;;;;1168:213:::0;:::o;619:231::-;1094:13:22;:11;:13::i;:::-;189:5:16::1;702:6;:24;;;;694:74;;;;-1:-1:-1::0;;;694:74:16::1;;;;;;;:::i;:::-;778:12;:21:::0;;-1:-1:-1;;778:21:16::1;;::::0;::::1;::::0;;::::1;::::0;;;814:29:::1;::::0;13228:38:40;;;814:29:16::1;::::0;13216:2:40;13201:18;814:29:16::1;13084:188:40::0;1820:342:4;719:10:29;2032:4:4;2008:29;2000:80;;;;-1:-1:-1;;;2000:80:4;;20573:2:40;2000:80:4;;;20555:21:40;20612:2;20592:18;;;20585:30;20651:34;20631:18;;;20624:62;-1:-1:-1;;;20702:18:40;;;20695:36;20748:19;;2000:80:4;20371:402:40;2000:80:4;2090:65;2112:11;2125;;2090:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2090:65:4;;;;;;;;;;;;;;;;;;;;;;2138:6;;-1:-1:-1;2090:65:4;-1:-1:-1;2146:8:4;;;;;;2090:65;;2146:8;;;;2090:65;;;;;;;;;-1:-1:-1;2090:21:4;;-1:-1:-1;;;2090:65:4:i;1831:101:22:-;1094:13;:11;:13::i;:::-;1895:30:::1;1922:1;1895:18;:30::i;:::-;1831:101::o:0;520:51:3:-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;856:306:16:-;1094:13:22;:11;:13::i;:::-;189:5:16::1;967:6;:24;;;;959:74;;;;-1:-1:-1::0;;;959:74:16::1;;;;;;;:::i;:::-;1074:27;::::0;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;::::1;;;::::0;;::::1;::::0;;;1043:28;;::::1;-1:-1:-1::0;1043:28:16;;;:15:::1;:28:::0;;;;;:58;;;;;;::::1;;::::0;::::1;-1:-1:-1::0;;1043:58:16;;;;::::1;::::0;;;;::::1;::::0;;;1116:39;;20995:34:40;;;21045:18;;;21038:50;;;;21104:18;;;21097:43;1116:39:16::1;::::0;20958:2:40;20943:18;1116:39:16::1;;;;;;;;856:306:::0;;;:::o;786:110:18:-;853:4;876:13;3329:12:23;;;3242:106;876:13:18;869:20;;786:110;:::o;2365:102:23:-;2421:13;2453:7;2446:14;;;;;:::i;4898:326:3:-;5021:35;;;5001:17;5021:35;;;:19;:35;;;;;5001:55;;4977:12;;5001:17;5021:35;5001:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5074:4;:11;5089:1;5074:16;;5066:58;;;;-1:-1:-1;;;5066:58:3;;21353:2:40;5066:58:3;;;21335:21:40;21392:2;21372:18;;;21365:30;21431:31;21411:18;;;21404:59;21480:18;;5066:58:3;21151:353:40;5066:58:3;5141:31;5152:1;5169:2;5155:4;:11;:16;;;;:::i;:::-;5141:4;;:31;:10;:31::i;:::-;5134:38;4898:326;-1:-1:-1;;;4898:326:3:o;6592:427:23:-;6685:4;719:10:29;6685:4:23;6766:25;719:10:29;6783:7:23;6766:9;:25::i;:::-;6739:52;;6829:15;6809:16;:35;;6801:85;;;;-1:-1:-1;;;6801:85:23;;21841:2:40;6801:85:23;;;21823:21:40;21880:2;21860:18;;;21853:30;21919:34;21899:18;;;21892:62;-1:-1:-1;;;21970:18:40;;;21963:35;22015:19;;6801:85:23;21639:401:40;6801:85:23;6920:60;6929:5;6936:7;6964:15;6945:16;:34;6920:8;:60::i;2324:378:15:-;2541:14;2557:11;2587:108;2611:11;2624:10;2636:7;2645:8;;2587:108;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2587:108:15;;;;;;;;;;;;;;;;;;;;;;2655:14;;-1:-1:-1;2671:7:15;;-1:-1:-1;2587:108:15;2680:14;;;;;;2587:108;;2680:14;;;;2587:108;;;;;;;;;-1:-1:-1;2587:23:15;;-1:-1:-1;;;2587:108:15:i;:::-;2580:115;;;;2324:378;;;;;;;;;;;;:::o;4614:278:3:-;1094:13:22;:11;:13::i;:::-;4785:14:3::1;;4809:4;4768:47;;;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;4768:47:3;;::::1;::::0;;;;;;4730:35:::1;::::0;::::1;;::::0;;;:19:::1;4768:47;4730:35:::0;;;;;;:85;;::::1;::::0;:35;;:85;;::::1;::::0;::::1;:::i;:::-;;4830:55;4854:14;4870;;4830:55;;;;;;;;:::i;3727:189:23:-:0;3806:4;719:10:29;3860:28:23;719:10:29;3877:2:23;3881:6;3860:9;:28::i;5230:133:3:-;1094:13:22;:11;:13::i;:::-;5299:8:3::1;:20:::0;;-1:-1:-1;;;;;;5299:20:3::1;-1:-1:-1::0;;;;;5299:20:3;::::1;::::0;;::::1;::::0;;;5334:22:::1;::::0;10813:51:40;;;5334:22:3::1;::::0;10801:2:40;10786:18;5334:22:3::1;10667:203:40::0;3626:202:3;1094:13:22;:11;:13::i;:::-;3759:62:3::1;::::0;-1:-1:-1;;;3759:62:3;;-1:-1:-1;;;;;3759:10:3::1;:20;::::0;::::1;::::0;:62:::1;::::0;3780:8;;3790;;3800:11;;3813:7;;;;3759:62:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;2343:757:4::0;2552:27;;;2530:19;2552:27;;;:14;:27;;;;;;:40;;;;2580:11;;;;2552:40;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2552:48:4;;;;;;;;;;;;-1:-1:-1;2552:48:4;2610:73;;;;-1:-1:-1;;;2610:73:4;;23137:2:40;2610:73:4;;;23119:21:40;23176:2;23156:18;;;23149:30;23215:34;23195:18;;;23188:62;-1:-1:-1;;;23266:18:40;;;23259:33;23309:19;;2610:73:4;22935:399:40;2610:73:4;2724:11;2711:8;;2701:19;;;;;;;:::i;:::-;;;;;;;;:34;2693:80;;;;-1:-1:-1;;;2693:80:4;;23541:2:40;2693:80:4;;;23523:21:40;23580:2;23560:18;;;23553:30;23619:34;23599:18;;;23592:62;-1:-1:-1;;;23670:18:40;;;23663:31;23711:19;;2693:80:4;23339:397:40;2693:80:4;2819:27;;;2878:1;2819:27;;;:14;:27;;;;;;:40;;;;2847:11;;;;2819:40;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2819:48:4;;;;;;;;;;;;:61;;;;2947:65;;;;;;;;;;;;;;;;;;;2969:11;;2982;;2947:65;;;;;;2982:11;2947:65;;2982:11;2947:65;;;;;;;;;-1:-1:-1;;2947:65:4;;;;;;;;;;;;;;;;;;;;;;2995:6;;-1:-1:-1;2947:65:4;-1:-1:-1;3003:8:4;;;;;;2947:65;;3003:8;;;;2947:65;;;;;;;;;-1:-1:-1;2947:21:4;;-1:-1:-1;;;2947:65:4:i;:::-;3027:66;3047:11;3060;;3073:6;3081:11;3027:66;;;;;;;;;;:::i;:::-;;;;;;;;2476:624;2343:757;;;;;;:::o;3974:149:23:-;-1:-1:-1;;;;;4089:18:23;;;4063:7;4089:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3974:149::o;5369:280:3:-;1094:13:22;:11;:13::i;:::-;5492:1:3::1;5482:7;:11;5474:45;;;::::0;-1:-1:-1;;;5474:45:3;;24441:2:40;5474:45:3::1;::::0;::::1;24423:21:40::0;24480:2;24460:18;;;24453:30;-1:-1:-1;;;24499:18:40;;;24492:51;24560:18;;5474:45:3::1;24239:345:40::0;5474:45:3::1;5529:28;::::0;;::::1;;::::0;;;:15:::1;:28;::::0;;;;;;;:41;;::::1;::::0;;;;;;;;;;:51;;;5595:47;;24812:34:40;;;24862:18;;24855:43;;;;24914:18;;;24907:34;;;5595:47:3::1;::::0;24775:2:40;24760:18;5595:47:3::1;24589:358:40::0;2379:220:13;1094:13:22;:11;:13::i;:::-;2479:22:13::1;:48:::0;;-1:-1:-1;;2479:48:13::1;::::0;::::1;;::::0;;::::1;::::0;;;2542:50:::1;::::0;2004:41:40;;;2542:50:13::1;::::0;1992:2:40;1977:18;2542:50:13::1;1864:187:40::0;1818:555:13;719:10:29;2050:4:13;2026:29;2018:73;;;;-1:-1:-1;;;2018:73:13;;25154:2:40;2018:73:13;;;25136:21:40;25193:2;25173:18;;;25166:30;25232:33;25212:18;;;25205:61;25283:18;;2018:73:13;24952:355:40;2018:73:13;2128:42;2150:4;2157:3;2162:7;2128:13;:42::i;:::-;2118:52;;2215:3;-1:-1:-1;;;;;2185:43:13;2202:11;2185:43;;;2220:7;2185:43;;;;3598:25:40;;3586:2;3571:18;;3452:177;2185:43:13;;;;;;;;2255:111;;-1:-1:-1;;;2255:111:13;;-1:-1:-1;;;;;2255:33:13;;;;;2294:11;;2255:111;;2307:11;;2320;;;;2333:6;;2341:5;;2348:7;;2357:8;;;;2255:111;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1818:555;;;;;;;;;;:::o;4413:195:3:-;1094:13:22;:11;:13::i;:::-;4510:32:3::1;::::0;::::1;;::::0;;;:19:::1;:32;::::0;;;;:40:::1;::::0;4545:5;;4510:40:::1;:::i;:::-;;4565:36;4582:11;4595:5;;4565:36;;;;;;;;:::i;1387:400:16:-:0;1517:28;;;;1471:8;1517:28;;;:15;:28;;;;;;;;1491:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1471:8;;1491:54;1555:226;;1605:12;;189:5;;1595:22;;;;:7;:22;:::i;:::-;:39;;;;:::i;:::-;1589:45;;1555:226;;;1655:12;;;;:16;1651:130;;1703:12;;189:5;;1693:22;;1703:12;;1693:7;:22;:::i;1651:130::-;1769:1;1763:7;;1651:130;1481:306;1387:400;;;;:::o;2081:198:22:-;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2169:22:22;::::1;2161:73;;;::::0;-1:-1:-1;;;2161:73:22;;26702:2:40;2161:73:22::1;::::0;::::1;26684:21:40::0;26741:2;26721:18;;;26714:30;26780:34;26760:18;;;26753:62;-1:-1:-1;;;26831:18:40;;;26824:36;26877:19;;2161:73:22::1;26500:402:40::0;2161:73:22::1;2244:28;2263:8;2244:18;:28::i;:::-;2081:198:::0;:::o;3358:209:3:-;3492:68;;-1:-1:-1;;;3492:68:3;;27144:6:40;27177:15;;;3492:68:3;;;27159:34:40;27229:15;;27209:18;;;27202:43;3541:4:3;27261:18:40;;;27254:60;27330:18;;;27323:34;;;3461:12:3;;3492:10;-1:-1:-1;;;;;3492:20:3;;;;27106:19:40;;3492:68:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3492:68:3;;;;;;;;;;;;:::i;:::-;3485:75;3358:209;-1:-1:-1;;;;;3358:209:3:o;980:508:4:-;1129:12;1143:19;1166:153;1200:9;1211:3;1239:34;;;1275:11;1288;1301:6;1309:8;1216:102;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;1216:102:4;;;;;;;;;;;;;;-1:-1:-1;;;;;1216:102:4;-1:-1:-1;;;;;;1216:102:4;;;;;;;;;;1174:4;;1166:153;;:33;:153::i;:::-;1128:191;;;;1377:7;1372:110;;1400:71;1420:11;1433;1446:6;1454:8;1464:6;1400:19;:71::i;1359:130:22:-;1247:7;1273:6;-1:-1:-1;;;;;1273:6:22;719:10:29;1422:23:22;1414:68;;;;-1:-1:-1;;;1414:68:22;;28771:2:40;1414:68:22;;;28753:21:40;;;28790:18;;;28783:30;28849:34;28829:18;;;28822:62;28901:18;;1414:68:22;28569:356:40;10504:370:23;-1:-1:-1;;;;;10635:19:23;;10627:68;;;;-1:-1:-1;;;10627:68:23;;29132:2:40;10627:68:23;;;29114:21:40;29171:2;29151:18;;;29144:30;29210:34;29190:18;;;29183:62;-1:-1:-1;;;29261:18:40;;;29254:34;29305:19;;10627:68:23;28930:400:40;10627:68:23;-1:-1:-1;;;;;10713:21:23;;10705:68;;;;-1:-1:-1;;;10705:68:23;;29537:2:40;10705:68:23;;;29519:21:40;29576:2;29556:18;;;29549:30;29615:34;29595:18;;;29588:62;-1:-1:-1;;;29666:18:40;;;29659:32;29708:19;;10705:68:23;29335:398:40;10705:68:23;-1:-1:-1;;;;;10784:18:23;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;10835:32;;3598:25:40;;;10835:32:23;;3571:18:40;10835:32:23;;;;;;;10504:370;;;:::o;11155:441::-;11285:24;11312:25;11322:5;11329:7;11312:9;:25::i;:::-;11285:52;;-1:-1:-1;;11351:16:23;:37;11347:243;;11432:6;11412:16;:26;;11404:68;;;;-1:-1:-1;;;11404:68:23;;29940:2:40;11404:68:23;;;29922:21:40;29979:2;29959:18;;;29952:30;30018:31;29998:18;;;29991:59;30067:18;;11404:68:23;29738:353:40;11404:68:23;11514:51;11523:5;11530:7;11558:6;11539:16;:25;11514:8;:51::i;:::-;11275:321;11155:441;;;:::o;7473:818::-;-1:-1:-1;;;;;7599:18:23;;7591:68;;;;-1:-1:-1;;;7591:68:23;;30298:2:40;7591:68:23;;;30280:21:40;30337:2;30317:18;;;30310:30;30376:34;30356:18;;;30349:62;-1:-1:-1;;;30427:18:40;;;30420:35;30472:19;;7591:68:23;30096:401:40;7591:68:23;-1:-1:-1;;;;;7677:16:23;;7669:64;;;;-1:-1:-1;;;7669:64:23;;30704:2:40;7669:64:23;;;30686:21:40;30743:2;30723:18;;;30716:30;30782:34;30762:18;;;30755:62;-1:-1:-1;;;30833:18:40;;;30826:33;30876:19;;7669:64:23;30502:399:40;7669:64:23;-1:-1:-1;;;;;7815:15:23;;7793:19;7815:15;;;:9;:15;;;;;;7848:21;;;;7840:72;;;;-1:-1:-1;;;7840:72:23;;31108:2:40;7840:72:23;;;31090:21:40;31147:2;31127:18;;;31120:30;31186:34;31166:18;;;31159:62;-1:-1:-1;;;31237:18:40;;;31230:36;31283:19;;7840:72:23;30906:402:40;7840:72:23;-1:-1:-1;;;;;7946:15:23;;;;;;;:9;:15;;;;;;7964:20;;;7946:38;;8161:13;;;;;;;;;;:23;;;;;;8210:26;;;;;;7978:6;3598:25:40;;3586:2;3571:18;;3452:177;8210:26:23;;;;;;;;8247:37;12180:121;1793:288:16;1888:11;1901:8;1927:33;1939:11;1952:7;1927:11;:33::i;:::-;1921:39;-1:-1:-1;1979:13:16;1921:39;1979:7;:13;:::i;:::-;1970:22;-1:-1:-1;2006:7:16;;2002:73;;2050:8;;2029:35;;2043:5;;2050:8;;;-1:-1:-1;;;;;2050:8:16;2060:3;2029:13;:35::i;:::-;;2002:73;1793:288;;;;;;:::o;4240:763:13:-;4439:11;4462:71;4482:11;4439;4504:14;4439:11;4462:19;:71::i;:::-;4556:20;4568:7;4556:11;:20::i;:::-;-1:-1:-1;4544:32:13;-1:-1:-1;4595:50:13;4606:5;4613:11;4626:10;4544:32;4595:10;:50::i;:::-;4586:59;;4712:1;4703:6;:10;4695:48;;;;-1:-1:-1;;;4695:48:13;;31515:2:40;4695:48:13;;;31497:21:40;31554:2;31534:18;;;31527:30;-1:-1:-1;;;31573:18:40;;;31566:55;31638:18;;4695:48:13;31313:349:40;4695:48:13;4754:22;4779:46;4798:10;4810:14;4817:6;4810;:14::i;:::-;9274:48;;;434:1;9274:48;;;35671:49:40;35736:11;;;35729:27;;;;35812:3;35790:16;;;;-1:-1:-1;;;;;;35786:51:40;35772:12;;;35765:73;9274:48:13;;;;;;;;;35854:12:40;;;;9274:48:13;;;9146:183;4779:46;4754:71;;4835:94;4843:11;4856:9;4867:14;4883:18;4903:14;4919:9;4835:7;:94::i;:::-;4977:10;4970:5;-1:-1:-1;;;;;4945:51:13;4957:11;4945:51;;;4989:6;4945:51;;;;3598:25:40;;3586:2;3571:18;;3452:177;4945:51:13;;;;;;;;4452:551;4240:763;;;;;;;;;:::o;2786:415::-;2940:14;2956:11;3022:20;3045:47;3064:10;3076:15;3083:7;3076:6;:15::i;3045:47::-;3109:85;;-1:-1:-1;;;3109:85:13;;3022:70;;-1:-1:-1;;;;;;3109:10:13;:23;;;;:85;;3133:11;;3154:4;;3022:70;;3170:7;;3179:14;;3109:85;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3102:92;;;;;2786:415;;;;;;;;:::o;5419:899::-;5671:11;5694:82;5714:11;482:1;5745:14;-1:-1:-1;;;;;5694:82:13;;:19;:82::i;:::-;5799:20;5811:7;5799:11;:20::i;:::-;-1:-1:-1;5787:32:13;-1:-1:-1;5838:50:13;5849:5;5856:11;5869:10;5787:32;5838:10;:50::i;:::-;5829:59;;5915:1;5906:6;:10;5898:48;;;;-1:-1:-1;;;5898:48:13;;31515:2:40;5898:48:13;;;31497:21:40;31554:2;31534:18;;;31527:30;-1:-1:-1;;;31573:18:40;;;31566:55;31638:18;;5898:48:13;31313:349:40;5898:48:13;6024:22;6049:91;6075:10;6087;6099:14;6106:6;6099;:14::i;:::-;6115:8;6125:14;6049:25;:91::i;:::-;6024:116;;6150:94;6158:11;6171:9;6182:14;6198:18;6218:14;6234:9;6150:7;:94::i;:::-;6292:10;6285:5;-1:-1:-1;;;;;6260:51:13;6272:11;6260:51;;;6304:6;6260:51;;;;3598:25:40;;3586:2;3571:18;;3452:177;6260:51:13;;;;;;;;5684:634;5419:899;;;;;;;;;;;:::o;3729:505::-;3880:16;3899:19;:8;3880:16;3899;:19::i;:::-;3880:38;-1:-1:-1;3933:21:13;;;3929:299;;3970:52;3979:11;3992;4005:6;4013:8;3970;:52::i;:::-;3929:299;;;4043:30;;;482:1;4043:30;4039:189;;;4089:59;4105:11;4118;4131:6;4139:8;4089:15;:59::i;4039:189::-;4179:38;;-1:-1:-1;;;4179:38:13;;32766:2:40;4179:38:13;;;32748:21:40;32805:2;32785:18;;;32778:30;32844;32824:18;;;32817:58;32892:18;;4179:38:13;32564:352:40;2433:187:22;2506:16;2525:6;;-1:-1:-1;;;;;2541:17:22;;;-1:-1:-1;;;;;;2541:17:22;;;;;;2573:40;;2525:6;;;;;;;2573:40;;2506:16;2573:40;2496:124;2433:187;:::o;8865:2712:20:-;8999:12;9051:7;9035:12;9051:7;9045:2;9035:12;:::i;:::-;:23;;9027:50;;;;-1:-1:-1;;;9027:50:20;;33123:2:40;9027:50:20;;;33105:21:40;33162:2;33142:18;;;33135:30;-1:-1:-1;;;33181:18:40;;;33174:44;33235:18;;9027:50:20;32921:338:40;9027:50:20;9112:16;9121:7;9112:6;:16;:::i;:::-;9095:6;:13;:33;;9087:63;;;;-1:-1:-1;;;9087:63:20;;33466:2:40;9087:63:20;;;33448:21:40;33505:2;33485:18;;;33478:30;-1:-1:-1;;;33524:18:40;;;33517:47;33581:18;;9087:63:20;33264:341:40;9087:63:20;9161:22;9224:15;;9252:1895;;;;11288:4;11282:11;11269:24;;11466:1;11455:9;11448:20;11514:4;11503:9;11499:20;11493:4;11486:34;9217:2317;;9252:1895;9426:4;9420:11;9407:24;;10053:2;10044:7;10040:16;10419:9;10412:17;10406:4;10402:28;10390:9;10379;10375:25;10371:60;10467:7;10463:2;10459:16;10711:6;10697:9;10690:17;10684:4;10680:28;10668:9;10660:6;10656:22;10652:57;10648:70;10493:417;10744:3;10740:2;10737:11;10493:417;;;10882:9;;10871:21;;10785:4;10777:13;;;;10817;10493:417;;;-1:-1:-1;;10928:26:20;;;11128:2;11111:11;-1:-1:-1;;11107:25:20;11101:4;11094:39;-1:-1:-1;9217:2317:20;-1:-1:-1;11561:9:20;8865:2712;-1:-1:-1;;;;8865:2712:20:o;3207:516:13:-;3414:14;3430:11;3499:20;3522:92;3548:10;3560;3572:15;3579:7;3572:6;:15::i;3522:92::-;3631:85;;-1:-1:-1;;;3631:85:13;;3499:115;;-1:-1:-1;;;;;;3631:10:13;:23;;;;:85;;3655:11;;3676:4;;3499:115;;3692:7;;3701:14;;3631:85;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3624:92;;;;;3207:516;;;;;;;;;;:::o;1652:385:18:-;1752:4;719:10:29;1899:4:18;-1:-1:-1;;;;;1882:22:18;;;;;;:42;;;1917:7;-1:-1:-1;;;;;1908:16:18;:5;-1:-1:-1;;;;;1908:16:18;;;1882:42;1878:88;;;1926:40;1942:5;1949:7;1958;1926:15;:40::i;:::-;1976:30;1986:5;1993:3;1998:7;1976:9;:30::i;:::-;-1:-1:-1;2023:7:18;;1652:385;-1:-1:-1;;;1652:385:18:o;1118:1240:21:-;1275:4;1281:12;1341:15;1366:13;1389:24;1426:8;1416:19;;-1:-1:-1;;;;;1416:19:21;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1416:19:21;;1389:46;;1904:1;1879;1846:9;1840:16;1812:4;1801:9;1797:20;1767:1;1733:7;1708:4;1690:239;1678:251;;1992:16;1981:27;;2036:8;2027:7;2024:21;2021:76;;;2075:8;2064:19;;2021:76;2178:7;2165:11;2158:28;2294:7;2291:1;2284:4;2271:11;2267:22;2252:50;2329:8;;;;-1:-1:-1;1118:1240:21;-1:-1:-1;;;;;;1118:1240:21:o;1494:320:4:-;1717:8;1707:19;;;;;;1656:14;:27;1671:11;1656:27;;;;;;;;;;;;;;;1684:11;1656:40;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1656:48:4;;;;;;;;;:70;;;;1741:66;;;;1755:11;;1768;;1697:6;;1789:8;;1799:7;;1741:66;:::i;:::-;;;;;;;;1494:320;;;;;:::o;8223:367:13:-;8364:22;;;;8360:224;;;8402:63;8417:11;8430:7;8439:14;8455:9;8402:14;:63::i;:::-;8360:224;;;8504:21;;:26;8496:77;;;;-1:-1:-1;;;8496:77:13;;34815:2:40;8496:77:13;;;34797:21:40;34854:2;34834:18;;;34827:30;34893:34;34873:18;;;34866:62;-1:-1:-1;;;34944:18:40;;;34937:36;34990:19;;8496:77:13;34613:402:40;8961:179:13;9027:16;;9073:22;2128:9:18;9073:7:13;:22;:::i;:::-;9066:29;-1:-1:-1;9119:14:13;9066:29;9119:7;:14;:::i;:::-;9105:28;;8961:179;;;:::o;1190:281:18:-;1291:4;719:10:29;-1:-1:-1;;;;;1351:16:18;;;;1347:62;;1369:40;1385:5;1392:7;1401;1369:15;:40::i;:::-;1419:21;1425:5;1432:7;1419:5;:21::i;:::-;-1:-1:-1;1457:7:18;;1190:281;-1:-1:-1;;;;1190:281:18:o;8596:234:13:-;8657:6;;8691:22;2128:9:18;8691:7:13;:22;:::i;:::-;8675:38;-1:-1:-1;;;;;;8731:28:13;;;8723:67;;;;-1:-1:-1;;;8723:67:13;;35339:2:40;8723:67:13;;;35321:21:40;35378:2;35358:18;;;35351:30;35417:28;35397:18;;;35390:56;35463:18;;8723:67:13;35137:350:40;2072:491:3;2294:32;;;2265:26;2294:32;;;:19;:32;;;;;2265:61;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2344:13;:20;2368:1;2344:25;;2336:86;;;;-1:-1:-1;;;2336:86:3;;36079:2:40;2336:86:3;;;36061:21:40;36118:2;36098:18;;;36091:30;36157:34;36137:18;;;36130:62;-1:-1:-1;;;36208:18:40;;;36201:46;36264:19;;2336:86:3;35877:412:40;2336:86:3;2432:124;;-1:-1:-1;;;2432:124:3;;-1:-1:-1;;;;;2432:10:3;:15;;;;2455:10;;2432:124;;2467:11;;2480:13;;2495:8;;2505:14;;2521:18;;2541:14;;2432:124;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2255:308;2072:491;;;;;;:::o;9679:394:13:-;9844:12;482:1;9935:10;9959:9;-1:-1:-1;;;;;10728:23:13;;10020:14;10048:8;9875:191;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;9868:198;;9679:394;;;;;;;:::o;11943:302:20:-;12020:5;12062:10;:6;12071:1;12062:10;:::i;:::-;12045:6;:13;:27;;12037:60;;;;-1:-1:-1;;;12037:60:20;;38060:2:40;12037:60:20;;;38042:21:40;38099:2;38079:18;;;38072:30;-1:-1:-1;;;38118:18:40;;;38111:49;38177:18;;12037:60:20;37858:343:40;12037:60:20;-1:-1:-1;12173:29:20;12189:3;12173:29;12167:36;;11943:302::o;5009:404:13:-;5120:10;5132:15;5151:28;5170:8;5151:18;:28::i;:::-;5119:60;;-1:-1:-1;5119:60:13;-1:-1:-1;;;;;;5193:16:13;;5189:67;;5238:6;5225:20;;5189:67;5266:11;5280:16;5287:8;5280:6;:16::i;:::-;5266:30;;5315:34;5325:11;5338:2;5342:6;5315:9;:34::i;:::-;5306:43;;5395:2;-1:-1:-1;;;;;5365:41:13;5382:11;5365:41;;;5399:6;5365:41;;;;3598:25:40;;3586:2;3571:18;;3452:177;5365:41:13;;;;;;;;5109:304;;;5009:404;;;;:::o;6324:1771::-;6461:12;6475:10;6487:15;6504:27;6533:17;6554:35;6580:8;6554:25;:35::i;:::-;6460:129;;;;;;;;;;6600:13;6616:15;:28;6632:11;6616:28;;;;;;;;;;;;;;;6645:11;6616:41;;;;;;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6616:49:13;;;;;;;;;;;;;;-1:-1:-1;6689:16:13;6696:8;6689:6;:16::i;:::-;6675:30;;6830:8;6825:164;;6863:45;6873:11;6894:4;6901:6;6863:9;:45::i;:::-;6922:28;;;;;;;:15;:28;;;;;;;:41;;6854:54;;-1:-1:-1;6974:4:13;;6922:41;;6951:11;;6922:41;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6922:49:13;;;;;;;;;;:56;;-1:-1:-1;;6922:56:13;;;;;;;;;;6825:164;-1:-1:-1;;;;;8186:20:13;;;6999:94;;7040:22;;-1:-1:-1;;;;;10831:32:40;;10813:51;;7040:22:13;;10801:2:40;10786:18;7040:22:13;;;;;;;7076:7;;;;;;;;;6999:94;7164:11;7211;7247:6;7286:8;7320:4;7348:2;7375:6;7422:14;7144:17;7504:8;:33;;7527:10;-1:-1:-1;;;;;7504:33:13;;;;7515:9;7504:33;7493:44;;7548:12;7562:19;7585:180;7619:9;7630:3;7658:31;;;7691:10;7703;7715:5;7722;7729:3;7734:7;7743:15;7760:3;7635:129;;;;;;;;;;;;;;;:::i;7585:180::-;7547:218;;;;7780:7;7776:313;;;7818:18;;;;;;7855:59;;;;;;;;;;7890:10;;7902:5;;7818:18;;7855:59;:::i;:::-;;;;;;;;7789:136;7776:313;;;8011:67;8031:10;8043;8055:5;8062:7;8071:6;8011:19;:67::i;:::-;6450:1645;;;;;;;;;;;;;;;;;;6324:1771;;;;:::o;2569:415:3:-;2704:21;2728:28;2741:14;2728:12;:28::i;:::-;2785;;;;2766:16;2785:28;;;:15;:28;;;;;;;;:35;;;;;;;;;;;;2704:52;;-1:-1:-1;2766:16:3;2785:47;;2823:9;;2785:47;:::i;:::-;2766:66;;2864:1;2850:11;:15;2842:54;;;;-1:-1:-1;;;2842:54:3;;39692:2:40;2842:54:3;;;39674:21:40;39731:2;39711:18;;;39704:30;39770:28;39750:18;;;39743:56;39816:18;;2842:54:3;39490:350:40;2842:54:3;2934:11;2914:16;:31;;2906:71;;;;-1:-1:-1;;;2906:71:3;;40047:2:40;2906:71:3;;;40029:21:40;40086:2;40066:18;;;40059:30;40125:29;40105:18;;;40098:57;40172:18;;2906:71:3;39845:351:40;9422:659:23;-1:-1:-1;;;;;9505:21:23;;9497:67;;;;-1:-1:-1;;;9497:67:23;;40403:2:40;9497:67:23;;;40385:21:40;40442:2;40422:18;;;40415:30;40481:34;40461:18;;;40454:62;-1:-1:-1;;;40532:18:40;;;40525:31;40573:19;;9497:67:23;40201:397:40;9497:67:23;-1:-1:-1;;;;;9660:18:23;;9635:22;9660:18;;;:9;:18;;;;;;9696:24;;;;9688:71;;;;-1:-1:-1;;;9688:71:23;;40805:2:40;9688:71:23;;;40787:21:40;40844:2;40824:18;;;40817:30;40883:34;40863:18;;;40856:62;-1:-1:-1;;;40934:18:40;;;40927:32;40976:19;;9688:71:23;40603:398:40;9688:71:23;-1:-1:-1;;;;;9793:18:23;;;;;;:9;:18;;;;;;;;9814:23;;;9793:44;;9930:12;:22;;;;;;;9978:37;3598:25:40;;;9793:18:23;;;9978:37;;3571:18:40;9978:37:23;;;;;;;12180:121;;;:::o;9335:338:13:-;9417:10;;;9464:19;:8;9417:10;9464:16;:19::i;:::-;:30;;;:55;;;;;9498:8;:15;9517:2;9498:21;9464:55;9456:92;;;;-1:-1:-1;;;9456:92:13;;41208:2:40;9456:92:13;;;41190:21:40;41247:2;41227:18;;;41220:30;-1:-1:-1;;;41266:18:40;;;41259:54;41330:18;;9456:92:13;41006:348:40;9456:92:13;9564:22;:8;9583:2;9564:18;:22::i;:::-;9559:27;-1:-1:-1;9645:21:13;:8;9663:2;9645:17;:21::i;:::-;9634:32;;9335:338;;;:::o;8836:119::-;8901:4;8924:24;2128:9:18;-1:-1:-1;;;;;8924:24:13;;;:::i;1477:169:18:-;1573:4;1589:26;1595:10;1607:7;1589:5;:26::i;10079:533:13:-;10168:12;;;10211:20;10168:12;482:1;10273:19;:8;10168:12;10273:16;:19::i;:::-;:39;;;10265:76;;;;-1:-1:-1;;;10265:76:13;;41208:2:40;10265:76:13;;;41190:21:40;41247:2;41227:18;;;41220:30;-1:-1:-1;;;41266:18:40;;;41259:54;41330:18;;10265:76:13;41006:348:40;10265:76:13;10357:22;:8;10376:2;10357:18;:22::i;:::-;10352:27;-1:-1:-1;10438:21:13;:8;10456:2;10438:17;:21::i;:::-;10427:32;-1:-1:-1;10476:22:13;:8;10495:2;10476:18;:22::i;:::-;10469:29;-1:-1:-1;10524:21:13;:8;10542:2;10524:17;:21::i;:::-;10508:37;;10565:40;10580:2;10602;10584:8;:15;:20;;;;:::i;:::-;10565:8;;:40;:14;:40::i;:::-;10555:50;;10079:533;;;;;;;:::o;2990:266:3:-;3072:13;3130:2;3105:14;:21;:27;;3097:68;;;;-1:-1:-1;;;3097:68:3;;41561:2:40;3097:68:3;;;41543:21:40;41600:2;41580:18;;;41573:30;41639;41619:18;;;41612:58;41687:18;;3097:68:3;41359:352:40;3097:68:3;-1:-1:-1;3236:2:3;3216:23;3210:30;;2990:266::o;11583:354:20:-;11662:7;11706:11;:6;11715:2;11706:11;:::i;:::-;11689:6;:13;:28;;11681:62;;;;-1:-1:-1;;;11681:62:20;;41918:2:40;11681:62:20;;;41900:21:40;41957:2;41937:18;;;41930:30;-1:-1:-1;;;41976:18:40;;;41969:51;42037:18;;11681:62:20;41716:345:40;11681:62:20;-1:-1:-1;11831:30:20;11847:4;11831:30;11825:37;-1:-1:-1;;;11821:71:20;;;11583:354::o;12873:305::-;12951:6;12994:10;:6;13003:1;12994:10;:::i;:::-;12977:6;:13;:27;;12969:60;;;;-1:-1:-1;;;12969:60:20;;42268:2:40;12969:60:20;;;42250:21:40;42307:2;42287:18;;;42280:30;-1:-1:-1;;;42326:18:40;;;42319:50;42386:18;;12969:60:20;42066:344:40;12969:60:20;-1:-1:-1;13106:29:20;13122:3;13106:29;13100:36;;12873:305::o;8567:535:23:-;-1:-1:-1;;;;;8650:21:23;;8642:65;;;;-1:-1:-1;;;8642:65:23;;42617:2:40;8642:65:23;;;42599:21:40;42656:2;42636:18;;;42629:30;42695:33;42675:18;;;42668:61;42746:18;;8642:65:23;42415:355:40;8642:65:23;8794:6;8778:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;8946:18:23;;;;;;:9;:18;;;;;;;;:28;;;;;;8999:37;3598:25:40;;;8999:37:23;;3571:18:40;8999:37:23;;;;;;;8567:535;;:::o;14130:320:20:-;14209:7;14253:11;:6;14262:2;14253:11;:::i;:::-;14236:6;:13;:28;;14228:62;;;;-1:-1:-1;;;14228:62:20;;42977:2:40;14228:62:20;;;42959:21:40;43016:2;42996:18;;;42989:30;-1:-1:-1;;;43035:18:40;;;43028:51;43096:18;;14228:62:20;42775:345:40;14228:62:20;-1:-1:-1;14374:30:20;14390:4;14374:30;14368:37;;14130:320::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:159:40;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:40;;-1:-1:-1;;;;;366:30:40;;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:40;;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:40;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:40;-1:-1:-1;1117:84:40;;-1:-1:-1;1274:37:40;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:40;;-1:-1:-1;706:862:40;;1527:8;;706:862;-1:-1:-1;;;706:862:40:o;1573:286::-;1631:6;1684:2;1672:9;1663:7;1659:23;1655:32;1652:52;;;1700:1;1697;1690:12;1652:52;1726:23;;-1:-1:-1;;;;;;1778:32:40;;1768:43;;1758:71;;1825:1;1822;1815:12;2056:258;2128:1;2138:113;2152:6;2149:1;2146:13;2138:113;;;2228:11;;;2222:18;2209:11;;;2202:39;2174:2;2167:10;2138:113;;;2269:6;2266:1;2263:13;2260:48;;;-1:-1:-1;;2304:1:40;2286:16;;2279:27;2056:258::o;2319:::-;2361:3;2399:5;2393:12;2426:6;2421:3;2414:19;2442:63;2498:6;2491:4;2486:3;2482:14;2475:4;2468:5;2464:16;2442:63;:::i;:::-;2559:2;2538:15;-1:-1:-1;;2534:29:40;2525:39;;;;2566:4;2521:50;;2319:258;-1:-1:-1;;2319:258:40:o;2582:220::-;2731:2;2720:9;2713:21;2694:4;2751:45;2792:2;2781:9;2777:18;2769:6;2751:45;:::i;2807:184::-;2865:6;2918:2;2906:9;2897:7;2893:23;2889:32;2886:52;;;2934:1;2931;2924:12;2886:52;2957:28;2975:9;2957:28;:::i;2996:131::-;-1:-1:-1;;;;;3071:31:40;;3061:42;;3051:70;;3117:1;3114;3107:12;3132:315;3200:6;3208;3261:2;3249:9;3240:7;3236:23;3232:32;3229:52;;;3277:1;3274;3267:12;3229:52;3316:9;3303:23;3335:31;3360:5;3335:31;:::i;:::-;3385:5;3437:2;3422:18;;;;3409:32;;-1:-1:-1;;;3132:315:40:o;3634:456::-;3711:6;3719;3727;3780:2;3768:9;3759:7;3755:23;3751:32;3748:52;;;3796:1;3793;3786:12;3748:52;3835:9;3822:23;3854:31;3879:5;3854:31;:::i;:::-;3904:5;-1:-1:-1;3961:2:40;3946:18;;3933:32;3974:33;3933:32;3974:33;:::i;:::-;3634:456;;4026:7;;-1:-1:-1;;;4080:2:40;4065:18;;;;4052:32;;3634:456::o;4095:160::-;4160:5;4205:2;4196:6;4191:3;4187:16;4183:25;4180:45;;;4221:1;4218;4211:12;4180:45;-1:-1:-1;4243:6:40;4095:160;-1:-1:-1;4095:160:40:o;4260:780::-;4395:6;4403;4411;4419;4427;4435;4488:3;4476:9;4467:7;4463:23;4459:33;4456:53;;;4505:1;4502;4495:12;4456:53;4544:9;4531:23;4563:31;4588:5;4563:31;:::i;:::-;4613:5;-1:-1:-1;4637:37:40;4670:2;4655:18;;4637:37;:::i;:::-;4627:47;;4721:2;4710:9;4706:18;4693:32;4683:42;;4772:2;4761:9;4757:18;4744:32;4734:42;;4823:3;4812:9;4808:19;4795:33;4785:43;;4879:3;4868:9;4864:19;4851:33;-1:-1:-1;;;;;4899:6:40;4896:30;4893:50;;;4939:1;4936;4929:12;4893:50;4962:72;5026:7;5017:6;5006:9;5002:22;4962:72;:::i;:::-;4952:82;;;4260:780;;;;;;;;:::o;5234:160::-;5299:20;;5355:13;;5348:21;5338:32;;5328:60;;5384:1;5381;5374:12;5399:687;5501:6;5509;5517;5525;5533;5541;5594:3;5582:9;5573:7;5569:23;5565:33;5562:53;;;5611:1;5608;5601:12;5562:53;5634:28;5652:9;5634:28;:::i;:::-;5624:38;;5709:2;5698:9;5694:18;5681:32;5671:42;;5760:2;5749:9;5745:18;5732:32;5722:42;;5783:35;5814:2;5803:9;5799:18;5783:35;:::i;:::-;5773:45;;5869:3;5858:9;5854:19;5841:33;-1:-1:-1;;;;;5889:6:40;5886:30;5883:50;;;5929:1;5926;5919:12;5883:50;5968:58;6018:7;6009:6;5998:9;5994:22;5968:58;:::i;6344:481::-;6422:6;6430;6438;6491:2;6479:9;6470:7;6466:23;6462:32;6459:52;;;6507:1;6504;6497:12;6459:52;6530:28;6548:9;6530:28;:::i;:::-;6520:38;;6609:2;6598:9;6594:18;6581:32;-1:-1:-1;;;;;6628:6:40;6625:30;6622:50;;;6668:1;6665;6658:12;6622:50;6707:58;6757:7;6748:6;6737:9;6733:22;6707:58;:::i;:::-;6344:481;;6784:8;;-1:-1:-1;6681:84:40;;-1:-1:-1;;;;6344:481:40:o;6830:1162::-;6993:6;7001;7009;7017;7025;7033;7041;7049;7057;7110:3;7098:9;7089:7;7085:23;7081:33;7078:53;;;7127:1;7124;7117:12;7078:53;7166:9;7153:23;7185:31;7210:5;7185:31;:::i;:::-;7235:5;-1:-1:-1;7259:37:40;7292:2;7277:18;;7259:37;:::i;:::-;7249:47;;7343:2;7332:9;7328:18;7315:32;7305:42;;7394:2;7383:9;7379:18;7366:32;7356:42;;7445:3;7434:9;7430:19;7417:33;7407:43;;7501:3;7490:9;7486:19;7473:33;-1:-1:-1;;;;;7566:2:40;7558:6;7555:14;7552:34;;;7582:1;7579;7572:12;7552:34;7621:58;7671:7;7662:6;7651:9;7647:22;7621:58;:::i;:::-;7698:8;;-1:-1:-1;7595:84:40;-1:-1:-1;7595:84:40;;-1:-1:-1;7752:38:40;7785:3;7770:19;;7752:38;:::i;:::-;7742:48;;7843:3;7832:9;7828:19;7815:33;7799:49;;7873:2;7863:8;7860:16;7857:36;;;7889:1;7886;7879:12;7857:36;;7912:74;7978:7;7967:8;7956:9;7952:24;7912:74;:::i;:::-;7902:84;;;6830:1162;;;;;;;;;;;:::o;7997:247::-;8056:6;8109:2;8097:9;8088:7;8084:23;8080:32;8077:52;;;8125:1;8122;8115:12;8077:52;8164:9;8151:23;8183:31;8208:5;8183:31;:::i;8249:127::-;8310:10;8305:3;8301:20;8298:1;8291:31;8341:4;8338:1;8331:15;8365:4;8362:1;8355:15;8381:275;8452:2;8446:9;8517:2;8498:13;;-1:-1:-1;;8494:27:40;8482:40;;-1:-1:-1;;;;;8537:34:40;;8573:22;;;8534:62;8531:88;;;8599:18;;:::i;:::-;8635:2;8628:22;8381:275;;-1:-1:-1;8381:275:40:o;8661:186::-;8709:4;-1:-1:-1;;;;;8734:6:40;8731:30;8728:56;;;8764:18;;:::i;:::-;-1:-1:-1;8830:2:40;8809:15;-1:-1:-1;;8805:29:40;8836:4;8801:40;;8661:186::o;8852:815::-;8936:6;8944;8952;9005:2;8993:9;8984:7;8980:23;8976:32;8973:52;;;9021:1;9018;9011:12;8973:52;9044:28;9062:9;9044:28;:::i;:::-;9034:38;;9123:2;9112:9;9108:18;9095:32;-1:-1:-1;;;;;9142:6:40;9139:30;9136:50;;;9182:1;9179;9172:12;9136:50;9205:22;;9258:4;9250:13;;9246:27;-1:-1:-1;9236:55:40;;9287:1;9284;9277:12;9236:55;9323:2;9310:16;9348:48;9364:31;9392:2;9364:31;:::i;:::-;9348:48;:::i;:::-;9419:2;9412:5;9405:17;9459:7;9454:2;9449;9445;9441:11;9437:20;9434:33;9431:53;;;9480:1;9477;9470:12;9431:53;9535:2;9530;9526;9522:11;9517:2;9510:5;9506:14;9493:45;9579:1;9574:2;9569;9562:5;9558:14;9554:23;9547:34;9600:5;9590:15;;;;;9624:37;9657:2;9646:9;9642:18;9624:37;:::i;:::-;9614:47;;8852:815;;;;;:::o;10077:324::-;10149:6;10157;10165;10218:2;10206:9;10197:7;10193:23;10189:32;10186:52;;;10234:1;10231;10224:12;10186:52;10257:28;10275:9;10257:28;:::i;:::-;10247:38;;10304:35;10335:2;10324:9;10320:18;10304:35;:::i;:::-;10294:45;;10358:37;10391:2;10380:9;10376:18;10358:37;:::i;10406:256::-;10472:6;10480;10533:2;10521:9;10512:7;10508:23;10504:32;10501:52;;;10549:1;10546;10539:12;10501:52;10572:28;10590:9;10572:28;:::i;:::-;10562:38;;10619:37;10652:2;10641:9;10637:18;10619:37;:::i;:::-;10609:47;;10406:256;;;;;:::o;10875:1069::-;11005:6;11013;11021;11029;11037;11045;11053;11061;11069;11122:3;11110:9;11101:7;11097:23;11093:33;11090:53;;;11139:1;11136;11129:12;11090:53;11162:28;11180:9;11162:28;:::i;:::-;11152:38;;11237:2;11226:9;11222:18;11209:32;11199:42;;11288:2;11277:9;11273:18;11260:32;11250:42;;11343:2;11332:9;11328:18;11315:32;-1:-1:-1;;;;;11407:2:40;11399:6;11396:14;11393:34;;;11423:1;11420;11413:12;11393:34;11462:58;11512:7;11503:6;11492:9;11488:22;11462:58;:::i;:::-;11539:8;;-1:-1:-1;11436:84:40;-1:-1:-1;11436:84:40;;-1:-1:-1;11593:38:40;11626:3;11611:19;;11593:38;:::i;:::-;11583:48;;11650:36;11681:3;11670:9;11666:19;11650:36;:::i;:::-;11640:46;;11739:3;11728:9;11724:19;11711:33;11695:49;;11769:2;11759:8;11756:16;11753:36;;;11785:1;11782;11775:12;11753:36;;11824:60;11876:7;11865:8;11854:9;11850:24;11824:60;:::i;:::-;11798:86;;11903:8;11893:18;;;11930:8;11920:18;;;10875:1069;;;;;;;;;;;:::o;12457:622::-;12552:6;12560;12568;12576;12584;12637:3;12625:9;12616:7;12612:23;12608:33;12605:53;;;12654:1;12651;12644:12;12605:53;12677:28;12695:9;12677:28;:::i;:::-;12667:38;;12724:37;12757:2;12746:9;12742:18;12724:37;:::i;:::-;12714:47;;12808:2;12797:9;12793:18;12780:32;12770:42;;12863:2;12852:9;12848:18;12835:32;-1:-1:-1;;;;;12882:6:40;12879:30;12876:50;;;12922:1;12919;12912:12;12876:50;12961:58;13011:7;13002:6;12991:9;12987:22;12961:58;:::i;:::-;12457:622;;;;-1:-1:-1;12457:622:40;;-1:-1:-1;13038:8:40;;12935:84;12457:622;-1:-1:-1;;;12457:622:40:o;13277:388::-;13345:6;13353;13406:2;13394:9;13385:7;13381:23;13377:32;13374:52;;;13422:1;13419;13412:12;13374:52;13461:9;13448:23;13480:31;13505:5;13480:31;:::i;:::-;13530:5;-1:-1:-1;13587:2:40;13572:18;;13559:32;13600:33;13559:32;13600:33;:::i;:::-;13652:7;13642:17;;;13277:388;;;;;:::o;13670:324::-;13745:6;13753;13761;13814:2;13802:9;13793:7;13789:23;13785:32;13782:52;;;13830:1;13827;13820:12;13782:52;13853:28;13871:9;13853:28;:::i;:::-;13843:38;;13900:37;13933:2;13922:9;13918:18;13900:37;:::i;:::-;13890:47;;13984:2;13973:9;13969:18;13956:32;13946:42;;13670:324;;;;;:::o;13999:180::-;14055:6;14108:2;14096:9;14087:7;14083:23;14079:32;14076:52;;;14124:1;14121;14114:12;14076:52;14147:26;14163:9;14147:26;:::i;14184:1205::-;14326:6;14334;14342;14350;14358;14366;14374;14382;14390;14398;14451:3;14439:9;14430:7;14426:23;14422:33;14419:53;;;14468:1;14465;14458:12;14419:53;14491:28;14509:9;14491:28;:::i;:::-;14481:38;;14570:2;14559:9;14555:18;14542:32;-1:-1:-1;;;;;14634:2:40;14626:6;14623:14;14620:34;;;14650:1;14647;14640:12;14620:34;14689:58;14739:7;14730:6;14719:9;14715:22;14689:58;:::i;:::-;14766:8;;-1:-1:-1;14663:84:40;-1:-1:-1;14663:84:40;;-1:-1:-1;14820:37:40;14853:2;14838:18;;14820:37;:::i;:::-;14810:47;;14904:2;14893:9;14889:18;14876:32;14866:42;;14958:3;14947:9;14943:19;14930:33;14917:46;;14972:31;14997:5;14972:31;:::i;:::-;15022:5;;-1:-1:-1;15074:3:40;15059:19;;15046:33;;-1:-1:-1;15132:3:40;15117:19;;15104:33;;15149:16;;;15146:36;;;15178:1;15175;15168:12;15146:36;;15217:60;15269:7;15258:8;15247:9;15243:24;15217:60;:::i;:::-;15191:86;;15296:8;15286:18;;;15323:8;15313:18;;;15378:3;15367:9;15363:19;15350:33;15340:43;;14184:1205;;;;;;;;;;;;;:::o;15394:252::-;15461:6;15469;15522:2;15510:9;15501:7;15497:23;15493:32;15490:52;;;15538:1;15535;15528:12;15490:52;15561:28;15579:9;15561:28;:::i;15651:460::-;15735:6;15743;15751;15759;15812:3;15800:9;15791:7;15787:23;15783:33;15780:53;;;15829:1;15826;15819:12;15780:53;15852:28;15870:9;15852:28;:::i;:::-;15842:38;;15899:37;15932:2;15921:9;15917:18;15899:37;:::i;:::-;15889:47;;15986:2;15975:9;15971:18;15958:32;15999:31;16024:5;15999:31;:::i;:::-;15651:460;;;;-1:-1:-1;16049:5:40;;16101:2;16086:18;16073:32;;-1:-1:-1;;15651:460:40:o;16475:380::-;16554:1;16550:12;;;;16597;;;16618:61;;16672:4;16664:6;16660:17;16650:27;;16618:61;16725:2;16717:6;16714:14;16694:18;16691:38;16688:161;;;16771:10;16766:3;16762:20;16759:1;16752:31;16806:4;16803:1;16796:15;16834:4;16831:1;16824:15;16860:271;17043:6;17035;17030:3;17017:33;16999:3;17069:16;;17094:13;;;17069:16;16860:271;-1:-1:-1;16860:271:40:o;17803:521::-;17880:4;17886:6;17946:11;17933:25;18040:2;18036:7;18025:8;18009:14;18005:29;18001:43;17981:18;17977:68;17967:96;;18059:1;18056;18049:12;17967:96;18086:33;;18138:20;;;-1:-1:-1;;;;;;18170:30:40;;18167:50;;;18213:1;18210;18203:12;18167:50;18246:4;18234:17;;-1:-1:-1;18277:14:40;18273:27;;;18263:38;;18260:58;;;18314:1;18311;18304:12;18329:409;18531:2;18513:21;;;18570:2;18550:18;;;18543:30;18609:34;18604:2;18589:18;;18582:62;-1:-1:-1;;;18675:2:40;18660:18;;18653:43;18728:3;18713:19;;18329:409::o;18743:127::-;18804:10;18799:3;18795:20;18792:1;18785:31;18835:4;18832:1;18825:15;18859:4;18856:1;18849:15;18875:128;18915:3;18946:1;18942:6;18939:1;18936:13;18933:39;;;18952:18;;:::i;:::-;-1:-1:-1;18988:9:40;;18875:128::o;19008:266::-;19096:6;19091:3;19084:19;19148:6;19141:5;19134:4;19129:3;19125:14;19112:43;-1:-1:-1;19200:1:40;19175:16;;;19193:4;19171:27;;;19164:38;;;;19256:2;19235:15;;;-1:-1:-1;;19231:29:40;19222:39;;;19218:50;;19008:266::o;19279:326::-;19474:6;19466;19462:19;19451:9;19444:38;19518:2;19513;19502:9;19498:18;19491:30;19425:4;19538:61;19595:2;19584:9;19580:18;19572:6;19564;19538:61;:::i;19965:401::-;20167:2;20149:21;;;20206:2;20186:18;;;20179:30;20245:34;20240:2;20225:18;;20218:62;-1:-1:-1;;;20311:2:40;20296:18;;20289:35;20356:3;20341:19;;19965:401::o;21509:125::-;21549:4;21577:1;21574;21571:8;21568:34;;;21582:18;;:::i;:::-;-1:-1:-1;21619:9:40;;21509:125::o;22045:382::-;22256:6;22248;22243:3;22230:33;22348:2;22344:15;;;;-1:-1:-1;;22340:53:40;22282:16;;22329:65;;;22418:2;22410:11;;22045:382;-1:-1:-1;22045:382:40:o;22432:498::-;22632:4;22661:6;22706:2;22698:6;22694:15;22683:9;22676:34;22758:2;22750:6;22746:15;22741:2;22730:9;22726:18;22719:43;;22798:6;22793:2;22782:9;22778:18;22771:34;22841:3;22836:2;22825:9;22821:18;22814:31;22862:62;22919:3;22908:9;22904:19;22896:6;22888;22862:62;:::i;:::-;22854:70;22432:498;-1:-1:-1;;;;;;;22432:498:40:o;23741:493::-;23990:6;23982;23978:19;23967:9;23960:38;24034:3;24029:2;24018:9;24014:18;24007:31;23941:4;24055:62;24112:3;24101:9;24097:19;24089:6;24081;24055:62;:::i;:::-;-1:-1:-1;;;;;24153:31:40;;;;24148:2;24133:18;;24126:59;-1:-1:-1;24216:2:40;24201:18;24194:34;24047:70;23741:493;-1:-1:-1;;;23741:493:40:o;25312:753::-;25645:6;25637;25633:19;25622:9;25615:38;25689:3;25684:2;25673:9;25669:18;25662:31;25596:4;25716:62;25773:3;25762:9;25758:19;25750:6;25742;25716:62;:::i;:::-;-1:-1:-1;;;;;25818:6:40;25814:31;25809:2;25798:9;25794:18;25787:59;25882:6;25877:2;25866:9;25862:18;25855:34;25926:6;25920:3;25909:9;25905:19;25898:35;25982:9;25974:6;25970:22;25964:3;25953:9;25949:19;25942:51;26010:49;26052:6;26044;26036;26010:49;:::i;:::-;26002:57;25312:753;-1:-1:-1;;;;;;;;;;;25312:753:40:o;26070:168::-;26110:7;26176:1;26172;26168:6;26164:14;26161:1;26158:21;26153:1;26146:9;26139:17;26135:45;26132:71;;;26183:18;;:::i;:::-;-1:-1:-1;26223:9:40;;26070:168::o;26243:127::-;26304:10;26299:3;26295:20;26292:1;26285:31;26335:4;26332:1;26325:15;26359:4;26356:1;26349:15;26375:120;26415:1;26441;26431:35;;26446:18;;:::i;:::-;-1:-1:-1;26480:9:40;;26375:120::o;27368:634::-;27447:6;27500:2;27488:9;27479:7;27475:23;27471:32;27468:52;;;27516:1;27513;27506:12;27468:52;27549:9;27543:16;-1:-1:-1;;;;;27574:6:40;27571:30;27568:50;;;27614:1;27611;27604:12;27568:50;27637:22;;27690:4;27682:13;;27678:27;-1:-1:-1;27668:55:40;;27719:1;27716;27709:12;27668:55;27748:2;27742:9;27773:48;27789:31;27817:2;27789:31;:::i;27773:48::-;27844:2;27837:5;27830:17;27884:7;27879:2;27874;27870;27866:11;27862:20;27859:33;27856:53;;;27905:1;27902;27895:12;27856:53;27918:54;27969:2;27964;27957:5;27953:14;27948:2;27944;27940:11;27918:54;:::i;28007:557::-;28264:6;28256;28252:19;28241:9;28234:38;28308:3;28303:2;28292:9;28288:18;28281:31;28215:4;28335:46;28376:3;28365:9;28361:19;28353:6;28335:46;:::i;:::-;-1:-1:-1;;;;;28421:6:40;28417:31;28412:2;28401:9;28397:18;28390:59;28497:9;28489:6;28485:22;28480:2;28469:9;28465:18;28458:50;28525:33;28551:6;28543;28525:33;:::i;31667:642::-;31948:6;31936:19;;31918:38;;-1:-1:-1;;;;;31992:32:40;;31987:2;31972:18;;31965:60;32012:3;32056:2;32041:18;;32034:31;;;-1:-1:-1;;32088:46:40;;32114:19;;32106:6;32088:46;:::i;:::-;32184:6;32177:14;32170:22;32165:2;32154:9;32150:18;32143:50;32242:9;32234:6;32230:22;32224:3;32213:9;32209:19;32202:51;32270:33;32296:6;32288;32270:33;:::i;:::-;32262:41;31667:642;-1:-1:-1;;;;;;;;31667:642:40:o;32314:245::-;32393:6;32401;32454:2;32442:9;32433:7;32429:23;32425:32;32422:52;;;32470:1;32467;32460:12;32422:52;-1:-1:-1;;32493:16:40;;32549:2;32534:18;;;32528:25;32493:16;;32528:25;;-1:-1:-1;32314:245:40:o;33610:274::-;33739:3;33777:6;33771:13;33793:53;33839:6;33834:3;33827:4;33819:6;33815:17;33793:53;:::i;:::-;33862:16;;;;;33610:274;-1:-1:-1;;33610:274:40:o;33889:719::-;34192:6;34184;34180:19;34169:9;34162:38;34236:3;34231:2;34220:9;34216:18;34209:31;34143:4;34263:46;34304:3;34293:9;34289:19;34281:6;34263:46;:::i;:::-;-1:-1:-1;;;;;34349:6:40;34345:31;34340:2;34329:9;34325:18;34318:59;34425:9;34417:6;34413:22;34408:2;34397:9;34393:18;34386:50;34459:33;34485:6;34477;34459:33;:::i;:::-;34445:47;;34541:9;34533:6;34529:22;34523:3;34512:9;34508:19;34501:51;34569:33;34595:6;34587;34569:33;:::i;35020:112::-;35052:1;35078;35068:35;;35083:18;;:::i;:::-;-1:-1:-1;35117:9:40;;35020:112::o;36294:840::-;36643:6;36635;36631:19;36620:9;36613:38;36687:3;36682:2;36671:9;36667:18;36660:31;36594:4;36714:46;36755:3;36744:9;36740:19;36732:6;36714:46;:::i;:::-;36808:9;36800:6;36796:22;36791:2;36780:9;36776:18;36769:50;36842:33;36868:6;36860;36842:33;:::i;:::-;-1:-1:-1;;;;;36949:15:40;;;36944:2;36929:18;;36922:43;37002:15;;36996:3;36981:19;;36974:44;37055:22;;;36902:3;37034:19;;37027:51;36828:47;-1:-1:-1;37095:33:40;36828:47;37113:6;37095:33;:::i;:::-;37087:41;36294:840;-1:-1:-1;;;;;;;;;36294:840:40:o;37139:714::-;37461:3;37456;37452:13;37443:6;37438:3;37434:16;37430:36;37425:3;37418:49;37496:6;37492:1;37487:3;37483:11;37476:27;37400:3;-1:-1:-1;;;;;37526:3:40;37522:28;37602:2;37593:6;37588:3;37584:16;37580:25;37575:2;37570:3;37566:12;37559:47;37636:6;37631:2;37626:3;37622:12;37615:28;37695:2;37686:6;37681:3;37677:16;37673:25;37668:2;37663:3;37659:12;37652:47;;37728:6;37722:13;37744:62;37799:6;37794:2;37789:3;37785:12;37778:4;37770:6;37766:17;37744:62;:::i;:::-;37826:16;;;;37844:2;37822:25;;37139:714;-1:-1:-1;;;;;;;37139:714:40:o;38206:891::-;38526:4;38555:3;38597:6;38589;38585:19;38574:9;38567:38;38641:2;38636;38625:9;38621:18;38614:30;38667:45;38708:2;38697:9;38693:18;38685:6;38667:45;:::i;:::-;-1:-1:-1;;;;;38748:31:40;;38743:2;38728:18;;38721:59;38811:2;38796:18;;38789:34;;;-1:-1:-1;;;;;38860:32:40;;38854:3;38839:19;;38832:61;38880:3;38909:19;;38902:35;;;38974:22;;;38968:3;38953:19;;38946:51;38653:59;-1:-1:-1;39014:33:40;38653:59;39032:6;39014:33;:::i;:::-;39006:41;;;39084:6;39078:3;39067:9;39063:19;39056:35;38206:891;;;;;;;;;;;:::o;39102:383::-;39303:2;39292:9;39285:21;39266:4;39323:45;39364:2;39353:9;39349:18;39341:6;39323:45;:::i;:::-;-1:-1:-1;;;;;39404:31:40;;;;39399:2;39384:18;;39377:59;-1:-1:-1;39467:2:40;39452:18;39445:34;39315:53;39102:383;-1:-1:-1;39102:383:40:o
Swarm Source
ipfs://154881ca2f7a7ca00b61764d226f872d8718f342acb02421b81b6b84c38c4845
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.