Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FrxUSDOFTUpgradeable
Compiler Version
v0.8.22+commit.4fc1097e
Contract Source Code (Solidity)
/**
*Submitted for verification at KatanaScan.com on 2025-11-06
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0 ^0.8.0 ^0.8.1 ^0.8.2 ^0.8.20 ^0.8.22;
// node_modules/@openzeppelin/contracts/utils/Address.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
/**
* @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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [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://consensys.net/diligence/blog/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.8.0/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);
}
}
}
// node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/libs/AddressCast.sol
library AddressCast {
error AddressCast_InvalidSizeForAddress();
error AddressCast_InvalidAddress();
function toBytes32(bytes calldata _addressBytes) internal pure returns (bytes32 result) {
if (_addressBytes.length > 32) revert AddressCast_InvalidAddress();
result = bytes32(_addressBytes);
unchecked {
uint256 offset = 32 - _addressBytes.length;
result = result >> (offset * 8);
}
}
function toBytes32(address _address) internal pure returns (bytes32 result) {
result = bytes32(uint256(uint160(_address)));
}
function toBytes(bytes32 _addressBytes32, uint256 _size) internal pure returns (bytes memory result) {
if (_size == 0 || _size > 32) revert AddressCast_InvalidSizeForAddress();
result = new bytes(_size);
unchecked {
uint256 offset = 256 - _size * 8;
assembly {
mstore(add(result, 32), shl(offset, _addressBytes32))
}
}
}
function toAddress(bytes32 _addressBytes32) internal pure returns (address result) {
result = address(uint160(uint256(_addressBytes32)));
}
function toAddress(bytes calldata _addressBytes) internal pure returns (address result) {
if (_addressBytes.length != 20) revert AddressCast_InvalidAddress();
result = address(bytes20(_addressBytes));
}
}
// node_modules/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [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://consensys.net/diligence/blog/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.8.0/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);
}
}
}
// node_modules/@openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}
// node_modules/@openzeppelin/contracts/utils/structs/EnumerableSet.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value
set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}
// node_modules/@openzeppelin/contracts/interfaces/IERC1271.sol
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)
/**
* @dev Interface of the ERC1271 standard signature validation method for
* contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
*
* _Available since v4.1._
*/
interface IERC1271 {
/**
* @dev Should return whether the signature provided is valid for the provided data
* @param hash Hash of the data to be signed
* @param signature Signature byte array associated with _data
*/
function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}
// node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
/**
* @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);
}
// node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
/**
* @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);
}
// node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)
/**
* @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.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
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].
*
* CAUTION: See Security Considerations above.
*/
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);
}
// node_modules/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @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);
}
// node_modules/@openzeppelin/contracts/interfaces/IERC5267.sol
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)
interface IERC5267 {
/**
* @dev MAY be emitted to signal that the domain could have changed.
*/
event EIP712DomainChanged();
/**
* @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
* signature.
*/
function eip712Domain()
external
view
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
);
}
// node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol
struct SetConfigParam {
uint32 eid;
uint32 configType;
bytes config;
}
interface IMessageLibManager {
struct Timeout {
address lib;
uint256 expiry;
}
event LibraryRegistered(address newLib);
event DefaultSendLibrarySet(uint32 eid, address newLib);
event DefaultReceiveLibrarySet(uint32 eid, address newLib);
event DefaultReceiveLibraryTimeoutSet(uint32 eid, address oldLib, uint256 expiry);
event SendLibrarySet(address sender, uint32 eid, address newLib);
event ReceiveLibrarySet(address receiver, uint32 eid, address newLib);
event ReceiveLibraryTimeoutSet(address receiver, uint32 eid, address oldLib, uint256 timeout);
function registerLibrary(address _lib) external;
function isRegisteredLibrary(address _lib) external view returns (bool);
function getRegisteredLibraries() external view returns (address[] memory);
function setDefaultSendLibrary(uint32 _eid, address _newLib) external;
function defaultSendLibrary(uint32 _eid) external view returns (address);
function setDefaultReceiveLibrary(uint32 _eid, address _newLib, uint256 _gracePeriod) external;
function defaultReceiveLibrary(uint32 _eid) external view returns (address);
function setDefaultReceiveLibraryTimeout(uint32 _eid, address _lib, uint256 _expiry) external;
function defaultReceiveLibraryTimeout(uint32 _eid) external view returns (address lib, uint256 expiry);
function isSupportedEid(uint32 _eid) external view returns (bool);
function isValidReceiveLibrary(address _receiver, uint32 _eid, address _lib) external view returns (bool);
/// ------------------- OApp interfaces -------------------
function setSendLibrary(address _oapp, uint32 _eid, address _newLib) external;
function getSendLibrary(address _sender, uint32 _eid) external view returns (address lib);
function isDefaultSendLibrary(address _sender, uint32 _eid) external view returns (bool);
function setReceiveLibrary(address _oapp, uint32 _eid, address _newLib, uint256 _gracePeriod) external;
function getReceiveLibrary(address _receiver, uint32 _eid) external view returns (address lib, bool isDefault);
function setReceiveLibraryTimeout(address _oapp, uint32 _eid, address _lib, uint256 _expiry) external;
function receiveLibraryTimeout(address _receiver, uint32 _eid) external view returns (address lib, uint256 expiry);
function setConfig(address _oapp, address _lib, SetConfigParam[] calldata _params) external;
function getConfig(
address _oapp,
address _lib,
uint32 _eid,
uint32 _configType
) external view returns (bytes memory config);
}
// node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol
interface IMessagingChannel {
event InboundNonceSkipped(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce);
event PacketNilified(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce, bytes32 payloadHash);
event PacketBurnt(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce, bytes32 payloadHash);
function eid() external view returns (uint32);
// this is an emergency function if a message cannot be verified for some reasons
// required to provide _nextNonce to avoid race condition
function skip(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce) external;
function nilify(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce, bytes32 _payloadHash) external;
function burn(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce, bytes32 _payloadHash) external;
function nextGuid(address _sender, uint32 _dstEid, bytes32 _receiver) external view returns (bytes32);
function inboundNonce(address _receiver, uint32 _srcEid, bytes32 _sender) external view returns (uint64);
function outboundNonce(address _sender, uint32 _dstEid, bytes32 _receiver) external view returns (uint64);
function inboundPayloadHash(
address _receiver,
uint32 _srcEid,
bytes32 _sender,
uint64 _nonce
) external view returns (bytes32);
function lazyInboundNonce(address _receiver, uint32 _srcEid, bytes32 _sender) external view returns (uint64);
}
// node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol
interface IMessagingComposer {
event ComposeSent(address from, address to, bytes32 guid, uint16 index, bytes message);
event ComposeDelivered(address from, address to, bytes32 guid, uint16 index);
event LzComposeAlert(
address indexed from,
address indexed to,
address indexed executor,
bytes32 guid,
uint16 index,
uint256 gas,
uint256 value,
bytes message,
bytes extraData,
bytes reason
);
function composeQueue(
address _from,
address _to,
bytes32 _guid,
uint16 _index
) external view returns (bytes32 messageHash);
function sendCompose(address _to, bytes32 _guid, uint16 _index, bytes calldata _message) external;
function lzCompose(
address _from,
address _to,
bytes32 _guid,
uint16 _index,
bytes calldata _message,
bytes calldata _extraData
) external payable;
}
// node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol
interface IMessagingContext {
function isSendingMessage() external view returns (bool);
function getSendContext() external view returns (uint32 dstEid, address sender);
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oapp/interfaces/IOAppMsgInspector.sol
/**
* @title IOAppMsgInspector
* @dev Interface for the OApp Message Inspector, allowing examination of message and options contents.
*/
interface IOAppMsgInspector {
// Custom error message for inspection failure
error InspectionFailed(bytes message, bytes options);
/**
* @notice Allows the inspector to examine LayerZero message contents and optionally throw a revert if invalid.
* @param _message The message payload to be inspected.
* @param _options Additional options or parameters for inspection.
* @return valid A boolean indicating whether the inspection passed (true) or failed (false).
*
* @dev Optionally done as a revert, OR use the boolean provided to handle the failure.
*/
function inspect(bytes calldata _message, bytes calldata _options) external view returns (bool valid);
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oapp/interfaces/IOAppOptionsType3.sol
/**
* @dev Struct representing enforced option parameters.
*/
struct EnforcedOptionParam {
uint32 eid; // Endpoint ID
uint16 msgType; // Message Type
bytes options; // Additional options
}
/**
* @title IOAppOptionsType3
* @dev Interface for the OApp with Type 3 Options, allowing the setting and combining of enforced options.
*/
interface IOAppOptionsType3 {
// Custom error message for invalid options
error InvalidOptions(bytes options);
// Event emitted when enforced options are set
event EnforcedOptionSet(EnforcedOptionParam[] _enforcedOptions);
/**
* @notice Sets enforced options for specific endpoint and message type combinations.
* @param _enforcedOptions An array of EnforcedOptionParam structures specifying enforced options.
*/
function setEnforcedOptions(EnforcedOptionParam[] calldata _enforcedOptions) external;
/**
* @notice Combines options for a given endpoint and message type.
* @param _eid The endpoint ID.
* @param _msgType The OApp message type.
* @param _extraOptions Additional options passed by the caller.
* @return options The combination of caller specified options AND enforced options.
*/
function combineOptions(
uint32 _eid,
uint16 _msgType,
bytes calldata _extraOptions
) external view returns (bytes memory options);
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/precrime/interfaces/IPreCrime.sol
struct PreCrimePeer {
uint32 eid;
bytes32 preCrime;
bytes32 oApp;
}
// TODO not done yet
interface IPreCrime {
error OnlyOffChain();
// for simulate()
error PacketOversize(uint256 max, uint256 actual);
error PacketUnsorted();
error SimulationFailed(bytes reason);
// for preCrime()
error SimulationResultNotFound(uint32 eid);
error InvalidSimulationResult(uint32 eid, bytes reason);
error CrimeFound(bytes crime);
function getConfig(bytes[] calldata _packets, uint256[] calldata _packetMsgValues) external returns (bytes memory);
function simulate(
bytes[] calldata _packets,
uint256[] calldata _packetMsgValues
) external payable returns (bytes memory);
function buildSimulationResult() external view returns (bytes memory);
function preCrime(
bytes[] calldata _packets,
uint256[] calldata _packetMsgValues,
bytes[] calldata _simulations
) external;
function version() external view returns (uint64 major, uint8 minor);
}
// node_modules/@openzeppelin/contracts/utils/math/Math.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1, "Math: mulDiv overflow");
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
}
}
}
// node_modules/@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library MathUpgradeable {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1, "Math: mulDiv overflow");
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
}
}
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oft/libs/OFTComposeMsgCodec.sol
library OFTComposeMsgCodec {
// Offset constants for decoding composed messages
uint8 private constant NONCE_OFFSET = 8;
uint8 private constant SRC_EID_OFFSET = 12;
uint8 private constant AMOUNT_LD_OFFSET = 44;
uint8 private constant COMPOSE_FROM_OFFSET = 76;
/**
* @dev Encodes a OFT composed message.
* @param _nonce The nonce value.
* @param _srcEid The source endpoint ID.
* @param _amountLD The amount in local decimals.
* @param _composeMsg The composed message.
* @return _msg The encoded Composed message.
*/
function encode(
uint64 _nonce,
uint32 _srcEid,
uint256 _amountLD,
bytes memory _composeMsg // 0x[composeFrom][composeMsg]
) internal pure returns (bytes memory _msg) {
_msg = abi.encodePacked(_nonce, _srcEid, _amountLD, _composeMsg);
}
/**
* @dev Retrieves the nonce from the composed message.
* @param _msg The message.
* @return The nonce value.
*/
function nonce(bytes calldata _msg) internal pure returns (uint64) {
return uint64(bytes8(_msg[:NONCE_OFFSET]));
}
/**
* @dev Retrieves the source endpoint ID from the composed message.
* @param _msg The message.
* @return The source endpoint ID.
*/
function srcEid(bytes calldata _msg) internal pure returns (uint32) {
return uint32(bytes4(_msg[NONCE_OFFSET:SRC_EID_OFFSET]));
}
/**
* @dev Retrieves the amount in local decimals from the composed message.
* @param _msg The message.
* @return The amount in local decimals.
*/
function amountLD(bytes calldata _msg) internal pure returns (uint256) {
return uint256(bytes32(_msg[SRC_EID_OFFSET:AMOUNT_LD_OFFSET]));
}
/**
* @dev Retrieves the composeFrom value from the composed message.
* @param _msg The message.
* @return The composeFrom value.
*/
function composeFrom(bytes calldata _msg) internal pure returns (bytes32) {
return bytes32(_msg[AMOUNT_LD_OFFSET:COMPOSE_FROM_OFFSET]);
}
/**
* @dev Retrieves the composed message.
* @param _msg The message.
* @return The composed message.
*/
function composeMsg(bytes calldata _msg) internal pure returns (bytes memory) {
return _msg[COMPOSE_FROM_OFFSET:];
}
/**
* @dev Converts an address to bytes32.
* @param _addr The address to convert.
* @return The bytes32 representation of the address.
*/
function addressToBytes32(address _addr) internal pure returns (bytes32) {
return bytes32(uint256(uint160(_addr)));
}
/**
* @dev Converts bytes32 to an address.
* @param _b The bytes32 value to convert.
* @return The address representation of bytes32.
*/
function bytes32ToAddress(bytes32 _b) internal pure returns (address) {
return address(uint160(uint256(_b)));
}
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oft/libs/OFTMsgCodec.sol
library OFTMsgCodec {
// Offset constants for encoding and decoding OFT messages
uint8 private constant SEND_TO_OFFSET = 32;
uint8 private constant SEND_AMOUNT_SD_OFFSET = 40;
/**
* @dev Encodes an OFT LayerZero message.
* @param _sendTo The recipient address.
* @param _amountShared The amount in shared decimals.
* @param _composeMsg The composed message.
* @return _msg The encoded message.
* @return hasCompose A boolean indicating whether the message has a composed payload.
*/
function encode(
bytes32 _sendTo,
uint64 _amountShared,
bytes memory _composeMsg
) internal view returns (bytes memory _msg, bool hasCompose) {
hasCompose = _composeMsg.length > 0;
// @dev Remote chains will want to know the composed function caller ie. msg.sender on the src.
_msg = hasCompose
? abi.encodePacked(_sendTo, _amountShared, addressToBytes32(msg.sender), _composeMsg)
: abi.encodePacked(_sendTo, _amountShared);
}
/**
* @dev Checks if the OFT message is composed.
* @param _msg The OFT message.
* @return A boolean indicating whether the message is composed.
*/
function isComposed(bytes calldata _msg) internal pure returns (bool) {
return _msg.length > SEND_AMOUNT_SD_OFFSET;
}
/**
* @dev Retrieves the recipient address from the OFT message.
* @param _msg The OFT message.
* @return The recipient address.
*/
function sendTo(bytes calldata _msg) internal pure returns (bytes32) {
return bytes32(_msg[:SEND_TO_OFFSET]);
}
/**
* @dev Retrieves the amount in shared decimals from the OFT message.
* @param _msg The OFT message.
* @return The amount in shared decimals.
*/
function amountSD(bytes calldata _msg) internal pure returns (uint64) {
return uint64(bytes8(_msg[SEND_TO_OFFSET:SEND_AMOUNT_SD_OFFSET]));
}
/**
* @dev Retrieves the composed message from the OFT message.
* @param _msg The OFT message.
* @return The composed message.
*/
function composeMsg(bytes calldata _msg) internal pure returns (bytes memory) {
return _msg[SEND_AMOUNT_SD_OFFSET:];
}
/**
* @dev Converts an address to bytes32.
* @param _addr The address to convert.
* @return The bytes32 representation of the address.
*/
function addressToBytes32(address _addr) internal pure returns (bytes32) {
return bytes32(uint256(uint160(_addr)));
}
/**
* @dev Converts bytes32 to an address.
* @param _b The bytes32 value to convert.
* @return The address representation of bytes32.
*/
function bytes32ToAddress(bytes32 _b) internal pure returns (address) {
return address(uint160(uint256(_b)));
}
}
// contracts/modules/PauseModule.sol
/*
* @title PauseModule
* @dev Contract module that allows pausing and unpausing of the contract.
*/
abstract contract PauseModule {
struct PauseStorage {
bool isPaused;
}
/// @dev keccak256(abi.encode(uint256(keccak256("frax.storage.PauseModule")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant PauseStorageLocation = 0x242e96562e738afaa26e2a4eb34bb6ab09c26cd11226ccf8fbc02da32756d300;
function _getPauseStorage() private pure returns (PauseStorage storage $) {
assembly {
$.slot := PauseStorageLocation
}
}
function _pause() internal virtual {
PauseStorage storage $ =_getPauseStorage();
if ($.isPaused) revert IsPaused();
$.isPaused = true;
emit Paused();
}
function _unpause() internal virtual {
PauseStorage storage $ = _getPauseStorage();
if (!$.isPaused) revert NotPaused();
$.isPaused = false;
emit Unpaused();
}
/// @notice Return whether the contract is paused
/// @return bool True if paused, false otherwise
function isPaused() public view virtual returns (bool) {
PauseStorage storage $ = _getPauseStorage();
return $.isPaused;
}
/* ========== EVENTS ========== */
/// @notice Event Emitted when the contract is paused
event Paused();
/// @notice Event Emitted when the contract is unpaused
event Unpaused();
/* ========== ERRORS ========== */
error IsPaused();
error NotPaused();
}
// node_modules/@openzeppelin/contracts/utils/math/SignedMath.sol
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}
// node_modules/@openzeppelin/contracts-upgradeable/utils/math/SignedMathUpgradeable.sol
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMathUpgradeable {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}
// contracts/modules/FreezeThawModule.sol
/**
* @title FreezeThawModule
* @dev Contract module that allows freezing and thawing of accounts.
*/
abstract contract FreezeThawModule {
using EnumerableSet for EnumerableSet.AddressSet;
struct FreezeThawStorage {
EnumerableSet.AddressSet freezers;
EnumerableSet.AddressSet frozen;
}
/// @dev keccak256(abi.encode(uint256(keccak256("frax.storage.FreezeThawModule")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant FreezeThawStorageLocation = 0xf6192aebe04228448ed4fd2802d59c009f5324cdd6a110c65bd318373b6e1d00;
function _getFreezeThawStorage() private pure returns (FreezeThawStorage storage $) {
assembly {
$.slot := FreezeThawStorageLocation
}
}
/// @notice Internal helper function to freeze an account
/// @param account The account to freeze
/// @dev To be called externally by admin
/// @dev Does not revert if the account is already frozen so that freezing always succeeds
function _freeze(address account) internal virtual {
FreezeThawStorage storage $ = _getFreezeThawStorage();
$.frozen.add(account);
emit AccountFrozen(account);
}
/// @notice Internal helper function to unfreeze an account
/// @param account The account to unfreeze
/// @dev To be called externally by admin
/// @dev Does not revert if the account is not frozen so that thawing always succeeds
function _thaw(address account) internal virtual {
FreezeThawStorage storage $ = _getFreezeThawStorage();
$.frozen.remove(account);
emit AccountThawed(account);
}
/// @notice Internal helper function to freeze an array of accounts
/// @param accounts The accounts to freeze
/// @dev To be called externally by admin
function _freezeMany(address[] memory accounts) internal virtual {
uint256 len = accounts.length;
for (uint256 i; i < len; ++i) {
_freeze(accounts[i]);
}
}
/// @notice Internal helper function to unfreeze an array of accounts
/// @param accounts The accounts to be unfrozen
/// @dev To be called externally by admin
function _thawMany(address[] memory accounts) internal virtual {
uint256 len = accounts.length;
for (uint256 i; i < len; ++i) {
_thaw(accounts[i]);
}
}
/// @notice Add a freezer role to an account
/// @param account The account to add as a freezer
/// @dev To be called externally by admin
/// @dev Reverts if the account is already a freezer
function _addFreezer(address account) internal virtual {
FreezeThawStorage storage $ = _getFreezeThawStorage();
if (!$.freezers.add(account)) revert AlreadyFreezer();
emit AddFreezer(account);
}
/// @notice Remove a freezer role from an account
/// @param account The account to remove as a freezer
/// @dev To be called externally by admin
/// @dev Reverts if the account is not a freezer
function _removeFreezer(address account) internal virtual {
FreezeThawStorage storage $ = _getFreezeThawStorage();
if (!$.freezers.remove(account)) revert NotFreezer();
emit RemoveFreezer(account);
}
/// @notice Check if an account is frozen
/// @param account The account to check
/// @return bool True if the account is frozen, false otherwise
function isFrozen(address account) public view virtual returns (bool) {
FreezeThawStorage storage $ = _getFreezeThawStorage();
return $.frozen.contains(account);
}
/// @notice Check if an account is an authorized freezer
/// @param account The account to check
/// @return bool True if the account is a freezer, false otherwise
function isFreezer(address account) public view virtual returns (bool) {
FreezeThawStorage storage $ =_getFreezeThawStorage();
return $.freezers.contains(account);
}
/// @notice Get the list of all frozen accounts
/// @return addres[] An array set of all frozen accounts
function frozen() external view virtual returns (address[] memory) {
FreezeThawStorage storage $ = _getFreezeThawStorage();
return $.frozen.values();
}
/// @notice Get the list of all freezer accounts
/// @return address[] An array set of all freezer accounts
function freezers() external view virtual returns (address[] memory) {
FreezeThawStorage storage $ = _getFreezeThawStorage();
return $.freezers.values();
}
/* ========== EVENTS ========== */
/// @notice Event Emitted when a freezer is aded
/// @param account The account being added as a freezre
event AddFreezer(address indexed account);
/// @notice Event Emitted when a freezer is removed
/// @param account The account being removed as a freezer
event RemoveFreezer(address indexed account);
/// @notice Event Emitted when an address is frozen
/// @param account The account being frozen
event AccountFrozen(address account);
/// @notice Event Emitted when an address is unfrozen
/// @param account The account being thawed
event AccountThawed(address account);
/* ========== ERRORS ========== */
error AlreadyFreezer();
error NotFreezer();
}
// node_modules/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
/**
* @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);
}
// node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized != type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}
// node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
/**
* @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 ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}
// node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLib.sol
enum MessageLibType {
Send,
Receive,
SendAndReceive
}
interface IMessageLib is IERC165 {
function setConfig(address _oapp, SetConfigParam[] calldata _config) external;
function getConfig(uint32 _eid, address _oapp, uint32 _configType) external view returns (bytes memory config);
function isSupportedEid(uint32 _eid) external view returns (bool);
// message libs of same major version are compatible
function version() external view returns (uint64 major, uint8 minor, uint8 endpointVersion);
function messageLibType() external view returns (MessageLibType);
}
// node_modules/@openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toString(int256 value) internal pure returns (string memory) {
return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return keccak256(bytes(a)) == keccak256(bytes(b));
}
}
// node_modules/@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)
/**
* @dev String operations.
*/
library StringsUpgradeable {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = MathUpgradeable.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toString(int256 value) internal pure returns (string memory) {
return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMathUpgradeable.abs(value))));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, MathUpgradeable.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return keccak256(bytes(a)) == keccak256(bytes(b));
}
}
// node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV // Deprecated in v4.8
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, "\x19Ethereum Signed Message:\n32")
mstore(0x1c, hash)
message := keccak256(0x00, 0x3c)
}
}
/**
* @dev Returns an Ethereum Signed Message, created from `s`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
mstore(ptr, "\x19\x01")
mstore(add(ptr, 0x02), domainSeparator)
mstore(add(ptr, 0x22), structHash)
data := keccak256(ptr, 0x42)
}
}
/**
* @dev Returns an Ethereum Signed Data with intended validator, created from a
* `validator` and `data` according to the version 0 of EIP-191.
*
* See {recover}.
*/
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x00", validator, data));
}
}
// node_modules/@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSAUpgradeable {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV // Deprecated in v4.8
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, "\x19Ethereum Signed Message:\n32")
mstore(0x1c, hash)
message := keccak256(0x00, 0x3c)
}
}
/**
* @dev Returns an Ethereum Signed Message, created from `s`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", StringsUpgradeable.toString(s.length), s));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
mstore(ptr, "\x19\x01")
mstore(add(ptr, 0x02), domainSeparator)
mstore(add(ptr, 0x22), structHash)
data := keccak256(ptr, 0x42)
}
}
/**
* @dev Returns an Ethereum Signed Data with intended validator, created from a
* `validator` and `data` according to the version 0 of EIP-191.
*
* See {recover}.
*/
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x00", validator, data));
}
}
// node_modules/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_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. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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);
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}
// node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.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;
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
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));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
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");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
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");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// 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 cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}
// node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol
struct MessagingParams {
uint32 dstEid;
bytes32 receiver;
bytes message;
bytes options;
bool payInLzToken;
}
struct MessagingReceipt {
bytes32 guid;
uint64 nonce;
MessagingFee fee;
}
struct MessagingFee {
uint256 nativeFee;
uint256 lzTokenFee;
}
struct Origin {
uint32 srcEid;
bytes32 sender;
uint64 nonce;
}
interface ILayerZeroEndpointV2 is IMessageLibManager, IMessagingComposer, IMessagingChannel, IMessagingContext {
event PacketSent(bytes encodedPayload, bytes options, address sendLibrary);
event PacketVerified(Origin origin, address receiver, bytes32 payloadHash);
event PacketDelivered(Origin origin, address receiver);
event LzReceiveAlert(
address indexed receiver,
address indexed executor,
Origin origin,
bytes32 guid,
uint256 gas,
uint256 value,
bytes message,
bytes extraData,
bytes reason
);
event LzTokenSet(address token);
event DelegateSet(address sender, address delegate);
function quote(MessagingParams calldata _params, address _sender) external view returns (MessagingFee memory);
function send(
MessagingParams calldata _params,
address _refundAddress
) external payable returns (MessagingReceipt memory);
function verify(Origin calldata _origin, address _receiver, bytes32 _payloadHash) external;
function verifiable(Origin calldata _origin, address _receiver) external view returns (bool);
function initializable(Origin calldata _origin, address _receiver) external view returns (bool);
function lzReceive(
Origin calldata _origin,
address _receiver,
bytes32 _guid,
bytes calldata _message,
bytes calldata _extraData
) external payable;
// oapp can burn messages partially by calling this function with its own business logic if messages are verified in order
function clear(address _oapp, Origin calldata _origin, bytes32 _guid, bytes calldata _message) external;
function setLzToken(address _lzToken) external;
function lzToken() external view returns (address);
function nativeToken() external view returns (address);
function setDelegate(address _delegate) external;
}
// contracts/modules/signatureModule/EIP712Upgradeable.sol
// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/EIP712.sol)
/**
@notice This contract is a blend of OZ 4 and 5 to
- Utilize 4.x, as utilized by LZ
- Utilize 5.x namespaced storage, protecting from storage clashes
@dev Starting at OZ 5.3, key changes are
- Initializable removed
- MessageHashUtils (5.x) replaced with ECDSAUpgradeable (4.x)
*/
/**
* @dev https://eips.ethereum.org/EIPS/eip-712[EIP-712] is a standard for hashing and signing of typed structured data.
*
* The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
* encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
* does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
* produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
*
* This contract implements the EIP-712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
* scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
* ({_hashTypedDataV4}).
*
* The implementation of the domain separator was designed to be as efficient as possible while still properly updating
* the chain id to protect against replay attacks on an eventual fork of the chain.
*
* NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
*
* NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
* separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
* separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
*/
abstract contract EIP712Upgradeable is IERC5267 {
bytes32 private constant TYPE_HASH =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
/// @custom:storage-location erc7201:openzeppelin.storage.EIP712
struct EIP712Storage {
/// @custom:oz-renamed-from _HASHED_NAME
bytes32 _hashedName;
/// @custom:oz-renamed-from _HASHED_VERSION
bytes32 _hashedVersion;
string _name;
string _version;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.EIP712")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;
function _getEIP712Storage() private pure returns (EIP712Storage storage $) {
assembly {
$.slot := EIP712StorageLocation
}
}
/**
* @dev Initializes the domain separator and parameter caches.
*
* The meaning of `name` and `version` is specified in
* https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP-712]:
*
* - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
* - `version`: the current major version of the signing domain.
*
* NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
* contract upgrade].
*/
function __EIP712_init(string memory name, string memory version) internal {
__EIP712_init_unchained(name, version);
}
function __EIP712_init_unchained(string memory name, string memory version) internal {
EIP712Storage storage $ = _getEIP712Storage();
$._name = name;
$._version = version;
// Reset prior values in storage if upgrading
$._hashedName = 0;
$._hashedVersion = 0;
}
/**
* @dev Returns the domain separator for the current chain.
*/
function _domainSeparatorV4() internal view returns (bytes32) {
return _buildDomainSeparator();
}
function _buildDomainSeparator() private view returns (bytes32) {
return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), block.chainid, address(this)));
}
/**
* @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
* function returns the hash of the fully encoded EIP712 message for this domain.
*
* This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
*
* ```solidity
* bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
* keccak256("Mail(address to,strAing contents)"),
* mailTo,
* keccak256(bytes(mailContents))
* )));
* address signer = ECDSA.recover(digest, signature);
* ```
*/
function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
return ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash);
}
/**
* @inheritdoc IERC5267
*/
function eip712Domain()
public
view
virtual
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
)
{
EIP712Storage storage $ = _getEIP712Storage();
// If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized
// and the EIP712 domain is not reliable, as it will be missing name and version.
require($._hashedName == 0 && $._hashedVersion == 0, "EIP712: Uninitialized");
return (
hex"0f", // 01111
_EIP712Name(),
_EIP712Version(),
block.chainid,
address(this),
bytes32(0),
new uint256[](0)
);
}
/**
* @dev The name parameter for the EIP712 domain.
*
* NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
* are a concern.
*/
function _EIP712Name() internal view virtual returns (string memory) {
EIP712Storage storage $ = _getEIP712Storage();
return $._name;
}
/**
* @dev The version parameter for the EIP712 domain.
*
* NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
* are a concern.
*/
function _EIP712Version() internal view virtual returns (string memory) {
EIP712Storage storage $ = _getEIP712Storage();
return $._version;
}
/**
* @dev The hash of the name parameter for the EIP712 domain.
*
* NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.
*/
function _EIP712NameHash() internal view returns (bytes32) {
EIP712Storage storage $ = _getEIP712Storage();
string memory name = _EIP712Name();
if (bytes(name).length > 0) {
return keccak256(bytes(name));
} else {
// If the name is empty, the contract may have been upgraded without initializing the new storage.
// We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.
bytes32 hashedName = $._hashedName;
if (hashedName != 0) {
return hashedName;
} else {
return keccak256("");
}
}
}
/**
* @dev The hash of the version parameter for the EIP712 domain.
*
* NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.
*/
function _EIP712VersionHash() internal view returns (bytes32) {
EIP712Storage storage $ = _getEIP712Storage();
string memory version = _EIP712Version();
if (bytes(version).length > 0) {
return keccak256(bytes(version));
} else {
// If the version is empty, the contract may have been upgraded without initializing the new storage.
// We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.
bytes32 hashedVersion = $._hashedVersion;
if (hashedVersion != 0) {
return hashedVersion;
} else {
return keccak256("");
}
}
}
}
// node_modules/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.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].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* 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 ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {
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}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {
__ERC20_init_unchained(name_, symbol_);
}
function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
_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 default value returned by this function, unless
* it's 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 {}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[45] private __gap;
}
// node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol
interface ILayerZeroReceiver {
function allowInitializePath(Origin calldata _origin) external view returns (bool);
function nextNonce(uint32 _eid, bytes32 _sender) external view returns (uint64);
function lzReceive(
Origin calldata _origin,
bytes32 _guid,
bytes calldata _message,
address _executor,
bytes calldata _extraData
) external payable;
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oapp/interfaces/IOAppCore.sol
/**
* @title IOAppCore
*/
interface IOAppCore {
// Custom error messages
error OnlyPeer(uint32 eid, bytes32 sender);
error NoPeer(uint32 eid);
error InvalidEndpointCall();
error InvalidDelegate();
// Event emitted when a peer (OApp) is set for a corresponding endpoint
event PeerSet(uint32 eid, bytes32 peer);
/**
* @notice Retrieves the OApp version information.
* @return senderVersion The version of the OAppSender.sol contract.
* @return receiverVersion The version of the OAppReceiver.sol contract.
*/
function oAppVersion() external view returns (uint64 senderVersion, uint64 receiverVersion);
/**
* @notice Retrieves the LayerZero endpoint associated with the OApp.
* @return iEndpoint The LayerZero endpoint as an interface.
*/
function endpoint() external view returns (ILayerZeroEndpointV2 iEndpoint);
/**
* @notice Retrieves the peer (OApp) associated with a corresponding endpoint.
* @param _eid The endpoint ID.
* @return peer The peer address (OApp instance) associated with the corresponding endpoint.
*/
function peers(uint32 _eid) external view returns (bytes32 peer);
/**
* @notice Sets the peer address (OApp instance) for a corresponding endpoint.
* @param _eid The endpoint ID.
* @param _peer The address of the peer to be associated with the corresponding endpoint.
*/
function setPeer(uint32 _eid, bytes32 _peer) external;
/**
* @notice Sets the delegate address for the OApp Core.
* @param _delegate The address of the delegate to be set.
*/
function setDelegate(address _delegate) external;
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oapp/libs/OAppOptionsType3Upgradeable.sol
/**
* @title OAppOptionsType3
* @dev Abstract contract implementing the IOAppOptionsType3 interface with type 3 options.
*/
abstract contract OAppOptionsType3Upgradeable is IOAppOptionsType3, OwnableUpgradeable {
struct OAppOptionsType3Storage {
// @dev The "msgType" should be defined in the child contract.
mapping(uint32 => mapping(uint16 => bytes)) enforcedOptions;
}
// keccak256(abi.encode(uint256(keccak256("layerzerov2.storage.oappoptionstype3")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant OAppOptionsType3StorageLocation =
0x8d2bda5d9f6ffb5796910376005392955773acee5548d0fcdb10e7c264ea0000;
uint16 internal constant OPTION_TYPE_3 = 3;
function _getOAppOptionsType3Storage() internal pure returns (OAppOptionsType3Storage storage $) {
assembly {
$.slot := OAppOptionsType3StorageLocation
}
}
/**
* @dev Ownable is not initialized here on purpose. It should be initialized in the child contract to
* accommodate the different version of Ownable.
*/
function __OAppOptionsType3_init() internal onlyInitializing {}
function __OAppOptionsType3_init_unchained() internal onlyInitializing {}
function enforcedOptions(uint32 _eid, uint16 _msgType) public view returns (bytes memory) {
OAppOptionsType3Storage storage $ = _getOAppOptionsType3Storage();
return $.enforcedOptions[_eid][_msgType];
}
/**
* @dev Sets the enforced options for specific endpoint and message type combinations.
* @param _enforcedOptions An array of EnforcedOptionParam structures specifying enforced options.
*
* @dev Only the owner/admin of the OApp can call this function.
* @dev Provides a way for the OApp to enforce things like paying for PreCrime, AND/OR minimum dst lzReceive gas amounts etc.
* @dev These enforced options can vary as the potential options/execution on the remote may differ as per the msgType.
* eg. Amount of lzReceive() gas necessary to deliver a lzCompose() message adds overhead you dont want to pay
* if you are only making a standard LayerZero message ie. lzReceive() WITHOUT sendCompose().
*/
function setEnforcedOptions(EnforcedOptionParam[] calldata _enforcedOptions) public virtual onlyOwner {
OAppOptionsType3Storage storage $ = _getOAppOptionsType3Storage();
for (uint256 i = 0; i < _enforcedOptions.length; i++) {
// @dev Enforced options are only available for optionType 3, as type 1 and 2 dont support combining.
_assertOptionsType3(_enforcedOptions[i].options);
$.enforcedOptions[_enforcedOptions[i].eid][_enforcedOptions[i].msgType] = _enforcedOptions[i].options;
}
emit EnforcedOptionSet(_enforcedOptions);
}
/**
* @notice Combines options for a given endpoint and message type.
* @param _eid The endpoint ID.
* @param _msgType The OAPP message type.
* @param _extraOptions Additional options passed by the caller.
* @return options The combination of caller specified options AND enforced options.
*
* @dev If there is an enforced lzReceive option:
* - {gasLimit: 200k, msg.value: 1 ether} AND a caller supplies a lzReceive option: {gasLimit: 100k, msg.value: 0.5 ether}
* - The resulting options will be {gasLimit: 300k, msg.value: 1.5 ether} when the message is executed on the remote lzReceive() function.
* @dev This presence of duplicated options is handled off-chain in the verifier/executor.
*/
function combineOptions(
uint32 _eid,
uint16 _msgType,
bytes calldata _extraOptions
) public view virtual returns (bytes memory) {
OAppOptionsType3Storage storage $ = _getOAppOptionsType3Storage();
bytes memory enforced = $.enforcedOptions[_eid][_msgType];
// No enforced options, pass whatever the caller supplied, even if it's empty or legacy type 1/2 options.
if (enforced.length == 0) return _extraOptions;
// No caller options, return enforced
if (_extraOptions.length == 0) return enforced;
// @dev If caller provided _extraOptions, must be type 3 as its the ONLY type that can be combined.
if (_extraOptions.length >= 2) {
_assertOptionsType3(_extraOptions);
// @dev Remove the first 2 bytes containing the type from the _extraOptions and combine with enforced.
return bytes.concat(enforced, _extraOptions[2:]);
}
// No valid set of options was found.
revert InvalidOptions(_extraOptions);
}
/**
* @dev Internal function to assert that options are of type 3.
* @param _options The options to be checked.
*/
function _assertOptionsType3(bytes calldata _options) internal pure virtual {
uint16 optionsType = uint16(bytes2(_options[0:2]));
if (optionsType != OPTION_TYPE_3) revert InvalidOptions(_options);
}
}
// node_modules/@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/SignatureChecker.sol)
/**
* @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
* signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
* Argent and Gnosis Safe.
*
* _Available since v4.1._
*/
library SignatureChecker {
/**
* @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
* signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
*
* NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
* change through time. It could return true at block N and false at block N+1 (or the opposite).
*/
function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) {
(address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
return
(error == ECDSA.RecoverError.NoError && recovered == signer) ||
isValidERC1271SignatureNow(signer, hash, signature);
}
/**
* @dev Checks if a signature is valid for a given signer and data hash. The signature is validated
* against the signer smart contract using ERC1271.
*
* NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
* change through time. It could return true at block N and false at block N+1 (or the opposite).
*/
function isValidERC1271SignatureNow(
address signer,
bytes32 hash,
bytes memory signature
) internal view returns (bool) {
(bool success, bytes memory result) = signer.staticcall(
abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
);
return (success &&
result.length >= 32 &&
abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
}
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oapp/interfaces/IOAppReceiver.sol
interface IOAppReceiver is ILayerZeroReceiver {
/**
* @notice Retrieves the address responsible for 'sending' composeMsg's to the Endpoint.
* @return sender The address responsible for 'sending' composeMsg's to the Endpoint.
*
* @dev Applications can optionally choose to implement a separate composeMsg sender that is NOT the bridging layer.
* @dev The default sender IS the OApp implementer.
*/
function composeMsgSender() external view returns (address sender);
}
// node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ISendLib.sol
struct Packet {
uint64 nonce;
uint32 srcEid;
address sender;
uint32 dstEid;
bytes32 receiver;
bytes32 guid;
bytes message;
}
interface ISendLib is IMessageLib {
function send(
Packet calldata _packet,
bytes calldata _options,
bool _payInLzToken
) external returns (MessagingFee memory, bytes memory encodedPacket);
function quote(
Packet calldata _packet,
bytes calldata _options,
bool _payInLzToken
) external view returns (MessagingFee memory);
function setTreasury(address _treasury) external;
function withdrawFee(address _to, uint256 _amount) external;
function withdrawLzTokenFee(address _lzToken, address _to, uint256 _amount) external;
}
// node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/PacketV1Codec.sol
library PacketV1Codec {
using AddressCast for address;
using AddressCast for bytes32;
uint8 internal constant PACKET_VERSION = 1;
// header (version + nonce + path)
// version
uint256 private constant PACKET_VERSION_OFFSET = 0;
// nonce
uint256 private constant NONCE_OFFSET = 1;
// path
uint256 private constant SRC_EID_OFFSET = 9;
uint256 private constant SENDER_OFFSET = 13;
uint256 private constant DST_EID_OFFSET = 45;
uint256 private constant RECEIVER_OFFSET = 49;
// payload (guid + message)
uint256 private constant GUID_OFFSET = 81; // keccak256(nonce + path)
uint256 private constant MESSAGE_OFFSET = 113;
function encode(Packet memory _packet) internal pure returns (bytes memory encodedPacket) {
encodedPacket = abi.encodePacked(
PACKET_VERSION,
_packet.nonce,
_packet.srcEid,
_packet.sender.toBytes32(),
_packet.dstEid,
_packet.receiver,
_packet.guid,
_packet.message
);
}
function encodePacketHeader(Packet memory _packet) internal pure returns (bytes memory) {
return
abi.encodePacked(
PACKET_VERSION,
_packet.nonce,
_packet.srcEid,
_packet.sender.toBytes32(),
_packet.dstEid,
_packet.receiver
);
}
function encodePayload(Packet memory _packet) internal pure returns (bytes memory) {
return abi.encodePacked(_packet.guid, _packet.message);
}
function header(bytes calldata _packet) internal pure returns (bytes calldata) {
return _packet[0:GUID_OFFSET];
}
function version(bytes calldata _packet) internal pure returns (uint8) {
return uint8(bytes1(_packet[PACKET_VERSION_OFFSET:NONCE_OFFSET]));
}
function nonce(bytes calldata _packet) internal pure returns (uint64) {
return uint64(bytes8(_packet[NONCE_OFFSET:SRC_EID_OFFSET]));
}
function srcEid(bytes calldata _packet) internal pure returns (uint32) {
return uint32(bytes4(_packet[SRC_EID_OFFSET:SENDER_OFFSET]));
}
function sender(bytes calldata _packet) internal pure returns (bytes32) {
return bytes32(_packet[SENDER_OFFSET:DST_EID_OFFSET]);
}
function senderAddressB20(bytes calldata _packet) internal pure returns (address) {
return sender(_packet).toAddress();
}
function dstEid(bytes calldata _packet) internal pure returns (uint32) {
return uint32(bytes4(_packet[DST_EID_OFFSET:RECEIVER_OFFSET]));
}
function receiver(bytes calldata _packet) internal pure returns (bytes32) {
return bytes32(_packet[RECEIVER_OFFSET:GUID_OFFSET]);
}
function receiverB20(bytes calldata _packet) internal pure returns (address) {
return receiver(_packet).toAddress();
}
function guid(bytes calldata _packet) internal pure returns (bytes32) {
return bytes32(_packet[GUID_OFFSET:MESSAGE_OFFSET]);
}
function message(bytes calldata _packet) internal pure returns (bytes calldata) {
return bytes(_packet[MESSAGE_OFFSET:]);
}
function payload(bytes calldata _packet) internal pure returns (bytes calldata) {
return bytes(_packet[GUID_OFFSET:]);
}
function payloadHash(bytes calldata _packet) internal pure returns (bytes32) {
return keccak256(payload(_packet));
}
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oapp/OAppCoreUpgradeable.sol
/**
* @title OAppCore
* @dev Abstract contract implementing the IOAppCore interface with basic OApp configurations.
*/
abstract contract OAppCoreUpgradeable is IOAppCore, OwnableUpgradeable {
struct OAppCoreStorage {
mapping(uint32 => bytes32) peers;
}
// keccak256(abi.encode(uint256(keccak256("layerzerov2.storage.oappcore")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant OAppCoreStorageLocation =
0x72ab1bc1039b79dc4724ffca13de82c96834302d3c7e0d4252232d4b2dd8f900;
function _getOAppCoreStorage() internal pure returns (OAppCoreStorage storage $) {
assembly {
$.slot := OAppCoreStorageLocation
}
}
// The LayerZero endpoint associated with the given OApp
ILayerZeroEndpointV2 public immutable endpoint;
/**
* @dev Constructor to initialize the OAppCore with the provided endpoint and delegate.
* @param _endpoint The address of the LOCAL Layer Zero endpoint.
*/
constructor(address _endpoint) {
endpoint = ILayerZeroEndpointV2(_endpoint);
}
/**
* @dev Initializes the OAppCore with the provided delegate.
* @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
*
* @dev The delegate typically should be set as the owner of the contract.
* @dev Ownable is not initialized here on purpose. It should be initialized in the child contract to
* accommodate the different version of Ownable.
*/
function __OAppCore_init(address _delegate) internal onlyInitializing {
__OAppCore_init_unchained(_delegate);
}
function __OAppCore_init_unchained(address _delegate) internal onlyInitializing {
if (_delegate == address(0)) revert InvalidDelegate();
endpoint.setDelegate(_delegate);
}
/**
* @notice Returns the peer address (OApp instance) associated with a specific endpoint.
* @param _eid The endpoint ID.
* @return peer The address of the peer associated with the specified endpoint.
*/
function peers(uint32 _eid) public view override returns (bytes32) {
OAppCoreStorage storage $ = _getOAppCoreStorage();
return $.peers[_eid];
}
/**
* @notice Sets the peer address (OApp instance) for a corresponding endpoint.
* @param _eid The endpoint ID.
* @param _peer The address of the peer to be associated with the corresponding endpoint.
*
* @dev Only the owner/admin of the OApp can call this function.
* @dev Indicates that the peer is trusted to send LayerZero messages to this OApp.
* @dev Set this to bytes32(0) to remove the peer address.
* @dev Peer is a bytes32 to accommodate non-evm chains.
*/
function setPeer(uint32 _eid, bytes32 _peer) public virtual onlyOwner {
OAppCoreStorage storage $ = _getOAppCoreStorage();
$.peers[_eid] = _peer;
emit PeerSet(_eid, _peer);
}
/**
* @notice Internal function to get the peer address associated with a specific endpoint; reverts if NOT set.
* ie. the peer is set to bytes32(0).
* @param _eid The endpoint ID.
* @return peer The address of the peer associated with the specified endpoint.
*/
function _getPeerOrRevert(uint32 _eid) internal view virtual returns (bytes32) {
OAppCoreStorage storage $ = _getOAppCoreStorage();
bytes32 peer = $.peers[_eid];
if (peer == bytes32(0)) revert NoPeer(_eid);
return peer;
}
/**
* @notice Sets the delegate address for the OApp.
* @param _delegate The address of the delegate to be set.
*
* @dev Only the owner/admin of the OApp can call this function.
* @dev Provides the ability for a delegate to set configs, on behalf of the OApp, directly on the Endpoint contract.
*/
function setDelegate(address _delegate) public onlyOwner {
endpoint.setDelegate(_delegate);
}
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/precrime/libs/Packet.sol
/**
* @title InboundPacket
* @dev Structure representing an inbound packet received by the contract.
*/
struct InboundPacket {
Origin origin; // Origin information of the packet.
uint32 dstEid; // Destination endpointId of the packet.
address receiver; // Receiver address for the packet.
bytes32 guid; // Unique identifier of the packet.
uint256 value; // msg.value of the packet.
address executor; // Executor address for the packet.
bytes message; // Message payload of the packet.
bytes extraData; // Additional arbitrary data for the packet.
}
/**
* @title PacketDecoder
* @dev Library for decoding LayerZero packets.
*/
library PacketDecoder {
using PacketV1Codec for bytes;
/**
* @dev Decode an inbound packet from the given packet data.
* @param _packet The packet data to decode.
* @return packet An InboundPacket struct representing the decoded packet.
*/
function decode(bytes calldata _packet) internal pure returns (InboundPacket memory packet) {
packet.origin = Origin(_packet.srcEid(), _packet.sender(), _packet.nonce());
packet.dstEid = _packet.dstEid();
packet.receiver = _packet.receiverB20();
packet.guid = _packet.guid();
packet.message = _packet.message();
}
/**
* @dev Decode multiple inbound packets from the given packet data and associated message values.
* @param _packets An array of packet data to decode.
* @param _packetMsgValues An array of associated message values for each packet.
* @return packets An array of InboundPacket structs representing the decoded packets.
*/
function decode(
bytes[] calldata _packets,
uint256[] memory _packetMsgValues
) internal pure returns (InboundPacket[] memory packets) {
packets = new InboundPacket[](_packets.length);
for (uint256 i = 0; i < _packets.length; i++) {
bytes calldata packet = _packets[i];
packets[i] = PacketDecoder.decode(packet);
// @dev Allows the verifier to specify the msg.value that gets passed in lzReceive.
packets[i].value = _packetMsgValues[i];
}
}
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol
// @dev Import the Origin so it's exposed to OAppPreCrimeSimulator implementers.
// solhint-disable-next-line no-unused-import
/**
* @title IOAppPreCrimeSimulator Interface
* @dev Interface for the preCrime simulation functionality in an OApp.
*/
interface IOAppPreCrimeSimulator {
// @dev simulation result used in PreCrime implementation
error SimulationResult(bytes result);
error OnlySelf();
/**
* @dev Emitted when the preCrime contract address is set.
* @param preCrimeAddress The address of the preCrime contract.
*/
event PreCrimeSet(address preCrimeAddress);
/**
* @dev Retrieves the address of the preCrime contract implementation.
* @return The address of the preCrime contract.
*/
function preCrime() external view returns (address);
/**
* @dev Retrieves the address of the OApp contract.
* @return The address of the OApp contract.
*/
function oApp() external view returns (address);
/**
* @dev Sets the preCrime contract address.
* @param _preCrime The address of the preCrime contract.
*/
function setPreCrime(address _preCrime) external;
/**
* @dev Mocks receiving a packet, then reverts with a series of data to infer the state/result.
* @param _packets An array of LayerZero InboundPacket objects representing received packets.
*/
function lzReceiveAndRevert(InboundPacket[] calldata _packets) external payable;
/**
* @dev checks if the specified peer is considered 'trusted' by the OApp.
* @param _eid The endpoint Id to check.
* @param _peer The peer to check.
* @return Whether the peer passed is considered 'trusted' by the OApp.
*/
function isPeer(uint32 _eid, bytes32 _peer) external view returns (bool);
}
// contracts/modules/signatureModule/SignatureModule.sol
abstract contract SignatureModule is EIP712Upgradeable {
/// @notice Error thrown when a signature is invalid
error InvalidSignature();
/// @dev Added supportive function to check if the signature is valid
function _requireIsValidSignatureNow(address signer, bytes32 structHash, bytes memory signature) internal view {
if (
!SignatureChecker.isValidSignatureNow({
signer: signer,
hash: _hashTypedDataV4({structHash: structHash}),
signature: signature
}) || signer == address(0)
) revert InvalidSignature();
}
}
// contracts/modules/EIP3009Module.sol
/// @title Eip3009
/// @notice Eip3009 provides internal implementations for gas-abstracted transfers under Eip3009 guidelines
/// @author Frax Finance, inspired by Agora (thanks Drake)
abstract contract EIP3009Module is SignatureModule {
/// @notice keccak256("TransferWithAuthorization(address from,address to,uint256 value,uint256 validAfter,uint256 validBefore,bytes32 nonce)")
bytes32 internal constant TRANSFER_WITH_AUTHORIZATION_TYPEHASH =
0x7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a2267;
/// @notice keccak256("ReceiveWithAuthorization(address from,address to,uint256 value,uint256 validAfter,uint256 validBefore,bytes32 nonce)")
bytes32 internal constant RECEIVE_WITH_AUTHORIZATION_TYPEHASH =
0xd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de8;
/// @notice keccak256("CancelAuthorization(address authorizer,bytes32 nonce)")
bytes32 internal constant CANCEL_AUTHORIZATION_TYPEHASH =
0x158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a1597429;
//==============================================================================
// Storage
//==============================================================================
struct EIP3009ModuleStorage {
mapping(address authorizer => mapping(bytes32 nonce => bool used)) isAuthorizationUsed;
}
// keccak256(abi.encode(uint256(keccak256("frax.storage.EIP3009Module")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant EIP3009ModuleStorageLocation = 0x6607eb842e76408d8b3956685dc6b9da5897a1d9b47edcc993ce266e603fa500;
function _getEIP3009ModuleStorage() private pure returns (EIP3009ModuleStorage storage $) {
assembly {
$.slot := EIP3009ModuleStorageLocation
}
}
//==============================================================================
// Functions
//==============================================================================
/// @notice The ```transferWithAuthorization``` function executes a transfer with a signed authorization according to Eip3009
/// @dev EOA wallet signatures should be packed in the order of r, s, v
/// @dev added in v1.1.0
/// @param from Payer's address (Authorizer)
/// @param to Payee's address
/// @param value Amount to be transferred
/// @param validAfter The block.timestamp after which the authorization is valid
/// @param validBefore The block.timestamp before which the authorization is valid
/// @param nonce Unique nonce
/// @param v ECDSA signature parameter v
/// @param r ECDSA signature parameters r
/// @param s ECDSA signature parameters s
function transferWithAuthorization(
address from,
address to,
uint256 value,
uint256 validAfter,
uint256 validBefore,
bytes32 nonce,
uint8 v,
bytes32 r,
bytes32 s
) external {
// Packs signature pieces into bytes
transferWithAuthorization({
from: from,
to: to,
value: value,
validAfter: validAfter,
validBefore: validBefore,
nonce: nonce,
signature: abi.encodePacked(r, s, v)
});
}
/// @notice The ```transferWithAuthorization``` function executes a transfer with a signed authorization
/// @dev EOA wallet signatures should be packed in the order of r, s, v
/// @param from Payer's address (Authorizer)
/// @param to Payee's address
/// @param value Amount to be transferred
/// @param validAfter The time after which this is valid (unix time)
/// @param validBefore The time before which this is valid (unix time)
/// @param nonce Unique nonce
/// @param signature Signature byte array produced by an EOA wallet or a contract wallet
function transferWithAuthorization(
address from,
address to,
uint256 value,
uint256 validAfter,
uint256 validBefore,
bytes32 nonce,
bytes memory signature
) public {
// Checks: authorization validity
if (block.timestamp <= validAfter) revert InvalidAuthorization();
if (block.timestamp >= validBefore) revert ExpiredAuthorization();
_requireUnusedAuthorization({ authorizer: from, nonce: nonce });
// Checks: valid signature
_requireIsValidSignatureNow({
signer: from,
structHash: keccak256(
abi.encode(TRANSFER_WITH_AUTHORIZATION_TYPEHASH, from, to, value, validAfter, validBefore, nonce)
),
signature: signature
});
// Effects: mark authorization as used and transfer
_markAuthorizationAsUsed({ authorizer: from, nonce: nonce });
_transfer({ from: from, to: to, amount: value });
}
/// @notice The ```receiveWithAuthorization``` function receives a transfer with a signed authorization from the payer
/// @dev This has an additional check to ensure that the payee's address matches the caller of this function to prevent front-running attacks
/// @dev EOA wallet signatures should be packed in the order of r, s, v
/// @param from Payer's address (Authorizer)
/// @param to Payee's address
/// @param value Amount to be transferred
/// @param validAfter The block.timestamp after which the authorization is valid
/// @param validBefore The block.timestamp before which the authorization is valid
/// @param nonce Unique nonce
/// @param v ECDSA signature parameter v
/// @param r ECDSA signature parameters r
/// @param s ECDSA signature parameters s
function receiveWithAuthorization(
address from,
address to,
uint256 value,
uint256 validAfter,
uint256 validBefore,
bytes32 nonce,
uint8 v,
bytes32 r,
bytes32 s
) external {
// Packs signature pieces into bytes
receiveWithAuthorization({
from: from,
to: to,
value: value,
validAfter: validAfter,
validBefore: validBefore,
nonce: nonce,
signature: abi.encodePacked(r, s, v)
});
}
/// @notice The ```receiveWithAuthorization``` function receives a transfer with a signed authorization from the payer
/// @dev This has an additional check to ensure that the payee's address matches the caller of this function to prevent front-running attacks
/// @dev EOA wallet signatures should be packed in the order of r, s, v
/// @param from Payer's address (Authorizer)
/// @param to Payee's address
/// @param value Amount to be transferred
/// @param validAfter The block.timestamp after which the authorization is valid
/// @param validBefore The block.timestamp before which the authorization is valid
/// @param nonce Unique nonce
/// @param signature Signature byte array produced by an EOA wallet or a contract wallet
function receiveWithAuthorization(
address from,
address to,
uint256 value,
uint256 validAfter,
uint256 validBefore,
bytes32 nonce,
bytes memory signature
) public {
// Checks: authorization validity
if (to != msg.sender) revert InvalidPayee({ caller: msg.sender, payee: to });
if (block.timestamp <= validAfter) revert InvalidAuthorization();
if (block.timestamp >= validBefore) revert ExpiredAuthorization();
_requireUnusedAuthorization({ authorizer: from, nonce: nonce });
// Checks: valid signature
_requireIsValidSignatureNow({
signer: from,
structHash: keccak256(
abi.encode(RECEIVE_WITH_AUTHORIZATION_TYPEHASH, from, to, value, validAfter, validBefore, nonce)
),
signature: signature
});
// Effects: mark authorization as used and transfer
_markAuthorizationAsUsed({ authorizer: from, nonce: nonce });
_transfer({ from: from, to: to, amount: value });
}
/// @notice The ```cancelAuthorization``` function cancels an authorization nonce
/// @dev EOA wallet signatures should be packed in the order of r, s, v
/// @param authorizer Authorizer's address
/// @param nonce Nonce of the authorization
/// @param v ECDSA signature v value
/// @param r ECDSA signature r value
/// @param s ECDSA signature s value
function cancelAuthorization(address authorizer, bytes32 nonce, uint8 v, bytes32 r, bytes32 s) external {
cancelAuthorization({ authorizer: authorizer, nonce: nonce, signature: abi.encodePacked(r, s, v) });
}
/// @notice The ```cancelAuthorization``` function cancels an authorization nonce
/// @dev EOA wallet signatures should be packed in the order of r, s, v
/// @param authorizer Authorizer's address
/// @param nonce Nonce of the authorization
/// @param signature Signature byte array produced by an EOA wallet or a contract wallet
function cancelAuthorization(address authorizer, bytes32 nonce, bytes memory signature) public {
_requireUnusedAuthorization({ authorizer: authorizer, nonce: nonce });
_requireIsValidSignatureNow({
signer: authorizer,
structHash: keccak256(abi.encode(CANCEL_AUTHORIZATION_TYPEHASH, authorizer, nonce)),
signature: signature
});
_getEIP3009ModuleStorage().isAuthorizationUsed[authorizer][nonce] = true;
emit AuthorizationCanceled({ authorizer: authorizer, nonce: nonce });
}
//==============================================================================
// Internal Checks Functions
//==============================================================================
/// @notice The ```_requireUnusedAuthorization``` checks that an authorization nonce is unused
/// @param authorizer Authorizer's address
/// @param nonce Nonce of the authorization
function _requireUnusedAuthorization(address authorizer, bytes32 nonce) private view {
if (_getEIP3009ModuleStorage().isAuthorizationUsed[authorizer][nonce])
revert UsedOrCanceledAuthorization();
}
//==============================================================================
// Internal Effects Functions
//==============================================================================
/// @notice The ```_markAuthorizationAsUsed``` function marks an authorization nonce as used
/// @param authorizer Authorizer's address
/// @param nonce Nonce of the authorization
function _markAuthorizationAsUsed(address authorizer, bytes32 nonce) private {
_getEIP3009ModuleStorage().isAuthorizationUsed[authorizer][nonce] = true;
emit AuthorizationUsed({ authorizer: authorizer, nonce: nonce });
}
//==============================================================================
// Views
//==============================================================================
/**
* @notice Returns the state of an authorization
* @dev Nonces are randomly generated 32-byte data unique to the authorizer's
* address
* @param authorizer Authorizer's address
* @param nonce Nonce of the authorization
* @return True if the nonce is used
*/
function authorizationState(
address authorizer,
bytes32 nonce
) external view returns (bool) {
return _getEIP3009ModuleStorage().isAuthorizationUsed[authorizer][nonce];
}
//==============================================================================
// Overridden methods
//==============================================================================
function _transfer(address from, address to, uint256 amount) internal virtual {}
//==============================================================================
// Events
//==============================================================================
/// @notice ```AuthorizationUsed``` event is emitted when an authorization is used
/// @param authorizer Authorizer's address
/// @param nonce Nonce of the authorization
event AuthorizationUsed(address indexed authorizer, bytes32 indexed nonce);
/// @notice ```AuthorizationCanceled``` event is emitted when an authorization is canceled
/// @param authorizer Authorizer's address
/// @param nonce Nonce of the authorization
event AuthorizationCanceled(address indexed authorizer, bytes32 indexed nonce);
//==============================================================================
// Errors
//==============================================================================
/// @notice The ```InvalidPayee``` error is emitted when the payee does not match sender in receiveWithAuthorization
/// @param caller The caller of the function
/// @param payee The expected payee in the function
error InvalidPayee(address caller, address payee);
/// @notice The ```InvalidAuthorization``` error is emitted when the authorization is invalid because its too early
error InvalidAuthorization();
/// @notice The ```ExpiredAuthorization``` error is emitted when the authorization is expired
error ExpiredAuthorization();
/// @notice The ```UsedOrCanceledAuthorization``` error is emitted when the authorization nonce is already used or canceled
error UsedOrCanceledAuthorization();
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oapp/OAppReceiverUpgradeable.sol
/**
* @title OAppReceiver
* @dev Abstract contract implementing the ILayerZeroReceiver interface and extending OAppCore for OApp receivers.
*/
abstract contract OAppReceiverUpgradeable is IOAppReceiver, OAppCoreUpgradeable {
// Custom error message for when the caller is not the registered endpoint/
error OnlyEndpoint(address addr);
// @dev The version of the OAppReceiver implementation.
// @dev Version is bumped when changes are made to this contract.
uint64 internal constant RECEIVER_VERSION = 1;
/**
* @dev Ownable is not initialized here on purpose. It should be initialized in the child contract to
* accommodate the different version of Ownable.
*/
function __OAppReceiver_init() internal onlyInitializing {}
function __OAppReceiver_init_unchained() internal onlyInitializing {}
/**
* @notice Retrieves the OApp version information.
* @return senderVersion The version of the OAppSender.sol contract.
* @return receiverVersion The version of the OAppReceiver.sol contract.
*
* @dev Providing 0 as the default for OAppSender version. Indicates that the OAppSender is not implemented.
* ie. this is a RECEIVE only OApp.
* @dev If the OApp uses both OAppSender and OAppReceiver, then this needs to be override returning the correct versions.
*/
function oAppVersion() public view virtual returns (uint64 senderVersion, uint64 receiverVersion) {
return (0, RECEIVER_VERSION);
}
/**
* @notice Retrieves the address responsible for 'sending' composeMsg's to the Endpoint.
* @return sender The address responsible for 'sending' composeMsg's to the Endpoint.
*
* @dev Applications can optionally choose to implement a separate composeMsg sender that is NOT the bridging layer.
* @dev The default sender IS the OApp implementer.
*/
function composeMsgSender() public view virtual returns (address sender) {
return address(this);
}
/**
* @notice Checks if the path initialization is allowed based on the provided origin.
* @param origin The origin information containing the source endpoint and sender address.
* @return Whether the path has been initialized.
*
* @dev This indicates to the endpoint that the OApp has enabled msgs for this particular path to be received.
* @dev This defaults to assuming if a peer has been set, its initialized.
* Can be overridden by the OApp if there is other logic to determine this.
*/
function allowInitializePath(Origin calldata origin) public view virtual returns (bool) {
return peers(origin.srcEid) == origin.sender;
}
/**
* @notice Retrieves the next nonce for a given source endpoint and sender address.
* @dev _srcEid The source endpoint ID.
* @dev _sender The sender address.
* @return nonce The next nonce.
*
* @dev The path nonce starts from 1. If 0 is returned it means that there is NO nonce ordered enforcement.
* @dev Is required by the off-chain executor to determine the OApp expects msg execution is ordered.
* @dev This is also enforced by the OApp.
* @dev By default this is NOT enabled. ie. nextNonce is hardcoded to return 0.
*/
function nextNonce(uint32, /*_srcEid*/ bytes32 /*_sender*/) public view virtual returns (uint64 nonce) {
return 0;
}
/**
* @dev Entry point for receiving messages or packets from the endpoint.
* @param _origin The origin information containing the source endpoint and sender address.
* - srcEid: The source chain endpoint ID.
* - sender: The sender address on the src chain.
* - nonce: The nonce of the message.
* @param _guid The unique identifier for the received LayerZero message.
* @param _message The payload of the received message.
* @param _executor The address of the executor for the received message.
* @param _extraData Additional arbitrary data provided by the corresponding executor.
*
* @dev Entry point for receiving msg/packet from the LayerZero endpoint.
*/
function lzReceive(
Origin calldata _origin,
bytes32 _guid,
bytes calldata _message,
address _executor,
bytes calldata _extraData
) public payable virtual {
// Ensures that only the endpoint can attempt to lzReceive() messages to this OApp.
if (address(endpoint) != msg.sender) revert OnlyEndpoint(msg.sender);
// Ensure that the sender matches the expected peer for the source endpoint.
if (_getPeerOrRevert(_origin.srcEid) != _origin.sender) revert OnlyPeer(_origin.srcEid, _origin.sender);
// Call the internal OApp implementation of lzReceive.
_lzReceive(_origin, _guid, _message, _executor, _extraData);
}
/**
* @dev Internal function to implement lzReceive logic without needing to copy the basic parameter validation.
*/
function _lzReceive(
Origin calldata _origin,
bytes32 _guid,
bytes calldata _message,
address _executor,
bytes calldata _extraData
) internal virtual;
}
// contracts/modules/PermitModule.sol
/// @dev Ripped from OZ 4.9.4 ERC20Permit.sol with namespaced storage and support of ERC1271 signatures
abstract contract PermitModule is SignatureModule {
using Counters for Counters.Counter;
//==============================================================================
// Storage
//==============================================================================
bytes32 private constant PERMIT_TYPEHASH =
keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
struct PermitModuleStorage {
mapping(address => Counters.Counter) nonces;
}
// keccak256(abi.encode(uint256(keccak256("frax.storage.PermitModule")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant PermitModuleStorageLocation = 0xb39b43abb0b115e0a59dece28477e279ee5f8e2fd55fbe200557c3ab864a0300;
function _getPermitModuleStorage() private pure returns (PermitModuleStorage storage $) {
assembly {
$.slot := PermitModuleStorageLocation
}
}
//==============================================================================
// Functions
//==============================================================================
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external virtual {
permit({
owner: owner,
spender: spender,
value: value,
deadline: deadline,
signature: abi.encodePacked(r, s, v)
});
}
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
bytes memory signature
) public virtual {
require(block.timestamp <= deadline, "ERC20Permit: expired deadline");
_requireIsValidSignatureNow({
signer: owner,
structHash: keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)),
signature: signature
});
_approve(owner, spender, value);
}
function nonces(address owner) public view virtual returns (uint256) {
PermitModuleStorage storage $ = _getPermitModuleStorage();
return $.nonces[owner].current();
}
function DOMAIN_SEPARATOR() external view returns (bytes32) {
return _domainSeparatorV4();
}
function _useNonce(address owner) internal virtual returns (uint256 current) {
PermitModuleStorage storage $ = _getPermitModuleStorage();
current = $.nonces[owner].current();
$.nonces[owner].increment();
}
//==============================================================================
// Virtual overriden methods
//==============================================================================
function _approve(address owner, address spender, uint256 amount) internal virtual {}
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oapp/OAppSenderUpgradeable.sol
/**
* @title OAppSender
* @dev Abstract contract implementing the OAppSender functionality for sending messages to a LayerZero endpoint.
*/
abstract contract OAppSenderUpgradeable is OAppCoreUpgradeable {
using SafeERC20 for IERC20;
// Custom error messages
error NotEnoughNative(uint256 msgValue);
error LzTokenUnavailable();
// @dev The version of the OAppSender implementation.
// @dev Version is bumped when changes are made to this contract.
uint64 internal constant SENDER_VERSION = 1;
/**
* @dev Ownable is not initialized here on purpose. It should be initialized in the child contract to
* accommodate the different version of Ownable.
*/
function __OAppSender_init() internal onlyInitializing {}
function __OAppSender_init_unchained() internal onlyInitializing {}
/**
* @notice Retrieves the OApp version information.
* @return senderVersion The version of the OAppSender.sol contract.
* @return receiverVersion The version of the OAppReceiver.sol contract.
*
* @dev Providing 0 as the default for OAppReceiver version. Indicates that the OAppReceiver is not implemented.
* ie. this is a SEND only OApp.
* @dev If the OApp uses both OAppSender and OAppReceiver, then this needs to be override returning the correct versions
*/
function oAppVersion() public view virtual returns (uint64 senderVersion, uint64 receiverVersion) {
return (SENDER_VERSION, 0);
}
/**
* @dev Internal function to interact with the LayerZero EndpointV2.quote() for fee calculation.
* @param _dstEid The destination endpoint ID.
* @param _message The message payload.
* @param _options Additional options for the message.
* @param _payInLzToken Flag indicating whether to pay the fee in LZ tokens.
* @return fee The calculated MessagingFee for the message.
* - nativeFee: The native fee for the message.
* - lzTokenFee: The LZ token fee for the message.
*/
function _quote(
uint32 _dstEid,
bytes memory _message,
bytes memory _options,
bool _payInLzToken
) internal view virtual returns (MessagingFee memory fee) {
return
endpoint.quote(
MessagingParams(_dstEid, _getPeerOrRevert(_dstEid), _message, _options, _payInLzToken),
address(this)
);
}
/**
* @dev Internal function to interact with the LayerZero EndpointV2.send() for sending a message.
* @param _dstEid The destination endpoint ID.
* @param _message The message payload.
* @param _options Additional options for the message.
* @param _fee The calculated LayerZero fee for the message.
* - nativeFee: The native fee.
* - lzTokenFee: The lzToken fee.
* @param _refundAddress The address to receive any excess fee values sent to the endpoint.
* @return receipt The receipt for the sent message.
* - guid: The unique identifier for the sent message.
* - nonce: The nonce of the sent message.
* - fee: The LayerZero fee incurred for the message.
*/
function _lzSend(
uint32 _dstEid,
bytes memory _message,
bytes memory _options,
MessagingFee memory _fee,
address _refundAddress
) internal virtual returns (MessagingReceipt memory receipt) {
// @dev Push corresponding fees to the endpoint, any excess is sent back to the _refundAddress from the endpoint.
uint256 messageValue = _payNative(_fee.nativeFee);
if (_fee.lzTokenFee > 0) _payLzToken(_fee.lzTokenFee);
return
endpoint.send{ value: messageValue }(
// solhint-disable-next-line check-send-result
MessagingParams(_dstEid, _getPeerOrRevert(_dstEid), _message, _options, _fee.lzTokenFee > 0),
_refundAddress
);
}
/**
* @dev Internal function to pay the native fee associated with the message.
* @param _nativeFee The native fee to be paid.
* @return nativeFee The amount of native currency paid.
*
* @dev If the OApp needs to initiate MULTIPLE LayerZero messages in a single transaction,
* this will need to be overridden because msg.value would contain multiple lzFees.
* @dev Should be overridden in the event the LayerZero endpoint requires a different native currency.
* @dev Some EVMs use an ERC20 as a method for paying transactions/gasFees.
* @dev The endpoint is EITHER/OR, ie. it will NOT support both types of native payment at a time.
*/
function _payNative(uint256 _nativeFee) internal virtual returns (uint256 nativeFee) {
if (msg.value != _nativeFee) revert NotEnoughNative(msg.value);
return _nativeFee;
}
/**
* @dev Internal function to pay the LZ token fee associated with the message.
* @param _lzTokenFee The LZ token fee to be paid.
*
* @dev If the caller is trying to pay in the specified lzToken, then the lzTokenFee is passed to the endpoint.
* @dev Any excess sent, is passed back to the specified _refundAddress in the _lzSend().
*/
function _payLzToken(uint256 _lzTokenFee) internal virtual {
// @dev Cannot cache the token because it is not immutable in the endpoint.
address lzToken = endpoint.lzToken();
if (lzToken == address(0)) revert LzTokenUnavailable();
// Pay LZ token fee by sending tokens to the endpoint.
IERC20(lzToken).safeTransferFrom(msg.sender, address(endpoint), _lzTokenFee);
}
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oft/interfaces/IOFT.sol
/**
* @dev Struct representing token parameters for the OFT send() operation.
*/
struct SendParam {
uint32 dstEid; // Destination endpoint ID.
bytes32 to; // Recipient address.
uint256 amountLD; // Amount to send in local decimals.
uint256 minAmountLD; // Minimum amount to send in local decimals.
bytes extraOptions; // Additional options supplied by the caller to be used in the LayerZero message.
bytes composeMsg; // The composed message for the send() operation.
bytes oftCmd; // The OFT command to be executed, unused in default OFT implementations.
}
/**
* @dev Struct representing OFT limit information.
* @dev These amounts can change dynamically and are up the the specific oft implementation.
*/
struct OFTLimit {
uint256 minAmountLD; // Minimum amount in local decimals that can be sent to the recipient.
uint256 maxAmountLD; // Maximum amount in local decimals that can be sent to the recipient.
}
/**
* @dev Struct representing OFT receipt information.
*/
struct OFTReceipt {
uint256 amountSentLD; // Amount of tokens ACTUALLY debited from the sender in local decimals.
// @dev In non-default implementations, the amountReceivedLD COULD differ from this value.
uint256 amountReceivedLD; // Amount of tokens to be received on the remote side.
}
/**
* @dev Struct representing OFT fee details.
* @dev Future proof mechanism to provide a standardized way to communicate fees to things like a UI.
*/
struct OFTFeeDetail {
int256 feeAmountLD; // Amount of the fee in local decimals.
string description; // Description of the fee.
}
/**
* @title IOFT
* @dev Interface for the OftChain (OFT) token.
* @dev Does not inherit ERC20 to accommodate usage by OFTAdapter as well.
* @dev This specific interface ID is '0x02e49c2c'.
*/
interface IOFT {
// Custom error messages
error InvalidLocalDecimals();
error SlippageExceeded(uint256 amountLD, uint256 minAmountLD);
// Events
event OFTSent(
// GUID of the OFT message.
// Destination Endpoint ID.
// Address of the sender on the src chain.
// Amount of tokens sent in local decimals.
// Amount of tokens received in local decimals.
bytes32 indexed guid,
uint32 dstEid,
address indexed fromAddress,
uint256 amountSentLD,
uint256 amountReceivedLD
);
event OFTReceived(
// GUID of the OFT message.
// Source Endpoint ID.
// Address of the recipient on the dst chain.
// Amount of tokens received in local decimals.
bytes32 indexed guid,
uint32 srcEid,
address indexed toAddress,
uint256 amountReceivedLD
);
/**
* @notice Retrieves interfaceID and the version of the OFT.
* @return interfaceId The interface ID.
* @return version The version.
*
* @dev interfaceId: This specific interface ID is '0x02e49c2c'.
* @dev version: Indicates a cross-chain compatible msg encoding with other OFTs.
* @dev If a new feature is added to the OFT cross-chain msg encoding, the version will be incremented.
* ie. localOFT version(x,1) CAN send messages to remoteOFT version(x,1)
*/
function oftVersion() external view returns (bytes4 interfaceId, uint64 version);
/**
* @notice Retrieves the address of the token associated with the OFT.
* @return token The address of the ERC20 token implementation.
*/
function token() external view returns (address);
/**
* @notice Indicates whether the OFT contract requires approval of the 'token()' to send.
* @return requiresApproval Needs approval of the underlying token implementation.
*
* @dev Allows things like wallet implementers to determine integration requirements,
* without understanding the underlying token implementation.
*/
function approvalRequired() external view returns (bool);
/**
* @notice Retrieves the shared decimals of the OFT.
* @return sharedDecimals The shared decimals of the OFT.
*/
function sharedDecimals() external view returns (uint8);
/**
* @notice Provides a quote for OFT-related operations.
* @param _sendParam The parameters for the send operation.
* @return limit The OFT limit information.
* @return oftFeeDetails The details of OFT fees.
* @return receipt The OFT receipt information.
*/
function quoteOFT(
SendParam calldata _sendParam
) external view returns (OFTLimit memory, OFTFeeDetail[] memory oftFeeDetails, OFTReceipt memory);
/**
* @notice Provides a quote for the send() operation.
* @param _sendParam The parameters for the send() operation.
* @param _payInLzToken Flag indicating whether the caller is paying in the LZ token.
* @return fee The calculated LayerZero messaging fee from the send() operation.
*
* @dev MessagingFee: LayerZero msg fee
* - nativeFee: The native fee.
* - lzTokenFee: The lzToken fee.
*/
function quoteSend(SendParam calldata _sendParam, bool _payInLzToken) external view returns (MessagingFee memory);
/**
* @notice Executes the send() operation.
* @param _sendParam The parameters for the send operation.
* @param _fee The fee information supplied by the caller.
* - nativeFee: The native fee.
* - lzTokenFee: The lzToken fee.
* @param _refundAddress The address to receive any excess funds from fees etc. on the src.
* @return receipt The LayerZero messaging receipt from the send() operation.
* @return oftReceipt The OFT receipt information.
*
* @dev MessagingReceipt: LayerZero msg receipt
* - guid: The unique identifier for the sent message.
* - nonce: The nonce of the sent message.
* - fee: The LayerZero fee incurred for the message.
*/
function send(
SendParam calldata _sendParam,
MessagingFee calldata _fee,
address _refundAddress
) external payable returns (MessagingReceipt memory, OFTReceipt memory);
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/precrime/OAppPreCrimeSimulatorUpgradeable.sol
/**
* @title OAppPreCrimeSimulator
* @dev Abstract contract serving as the base for preCrime simulation functionality in an OApp.
*/
abstract contract OAppPreCrimeSimulatorUpgradeable is IOAppPreCrimeSimulator, OwnableUpgradeable {
struct OAppPreCrimeSimulatorStorage {
// The address of the preCrime implementation.
address preCrime;
}
// keccak256(abi.encode(uint256(keccak256("layerzerov2.storage.oappprecrimesimulator")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant OAppPreCrimeSimulatorStorageLocation =
0xefb041d771d6daaa55702fff6eb740d63ba559a75d2d1d3e151c78ff2480b600;
function _getOAppPreCrimeSimulatorStorage() internal pure returns (OAppPreCrimeSimulatorStorage storage $) {
assembly {
$.slot := OAppPreCrimeSimulatorStorageLocation
}
}
/**
* @dev Ownable is not initialized here on purpose. It should be initialized in the child contract to
* accommodate the different version of Ownable.
*/
function __OAppPreCrimeSimulator_init() internal onlyInitializing {}
function __OAppPreCrimeSimulator_init_unchained() internal onlyInitializing {}
function preCrime() external view override returns (address) {
OAppPreCrimeSimulatorStorage storage $ = _getOAppPreCrimeSimulatorStorage();
return $.preCrime;
}
/**
* @dev Retrieves the address of the OApp contract.
* @return The address of the OApp contract.
*
* @dev The simulator contract is the base contract for the OApp by default.
* @dev If the simulator is a separate contract, override this function.
*/
function oApp() external view virtual returns (address) {
return address(this);
}
/**
* @dev Sets the preCrime contract address.
* @param _preCrime The address of the preCrime contract.
*/
function setPreCrime(address _preCrime) public virtual onlyOwner {
OAppPreCrimeSimulatorStorage storage $ = _getOAppPreCrimeSimulatorStorage();
$.preCrime = _preCrime;
emit PreCrimeSet(_preCrime);
}
/**
* @dev Interface for pre-crime simulations. Always reverts at the end with the simulation results.
* @param _packets An array of InboundPacket objects representing received packets to be delivered.
*
* @dev WARNING: MUST revert at the end with the simulation results.
* @dev Gives the preCrime implementation the ability to mock sending packets to the lzReceive function,
* WITHOUT actually executing them.
*/
function lzReceiveAndRevert(InboundPacket[] calldata _packets) public payable virtual {
for (uint256 i = 0; i < _packets.length; i++) {
InboundPacket calldata packet = _packets[i];
// Ignore packets that are not from trusted peers.
if (!isPeer(packet.origin.srcEid, packet.origin.sender)) continue;
// @dev Because a verifier is calling this function, it doesnt have access to executor params:
// - address _executor
// - bytes calldata _extraData
// preCrime will NOT work for OApps that rely on these two parameters inside of their _lzReceive().
// They are instead stubbed to default values, address(0) and bytes("")
// @dev Calling this.lzReceiveSimulate removes ability for assembly return 0 callstack exit,
// which would cause the revert to be ignored.
this.lzReceiveSimulate{ value: packet.value }(
packet.origin,
packet.guid,
packet.message,
packet.executor,
packet.extraData
);
}
// @dev Revert with the simulation results. msg.sender must implement IPreCrime.buildSimulationResult().
revert SimulationResult(IPreCrime(msg.sender).buildSimulationResult());
}
/**
* @dev Is effectively an internal function because msg.sender must be address(this).
* Allows resetting the call stack for 'internal' calls.
* @param _origin The origin information containing the source endpoint and sender address.
* - srcEid: The source chain endpoint ID.
* - sender: The sender address on the src chain.
* - nonce: The nonce of the message.
* @param _guid The unique identifier of the packet.
* @param _message The message payload of the packet.
* @param _executor The executor address for the packet.
* @param _extraData Additional data for the packet.
*/
function lzReceiveSimulate(
Origin calldata _origin,
bytes32 _guid,
bytes calldata _message,
address _executor,
bytes calldata _extraData
) external payable virtual {
// @dev Ensure ONLY can be called 'internally'.
if (msg.sender != address(this)) revert OnlySelf();
_lzReceiveSimulate(_origin, _guid, _message, _executor, _extraData);
}
/**
* @dev Internal function to handle the OAppPreCrimeSimulator simulated receive.
* @param _origin The origin information.
* - srcEid: The source chain endpoint ID.
* - sender: The sender address from the src chain.
* - nonce: The nonce of the LayerZero message.
* @param _guid The GUID of the LayerZero message.
* @param _message The LayerZero message.
* @param _executor The address of the off-chain executor.
* @param _extraData Arbitrary data passed by the msg executor.
*
* @dev Enables the preCrime simulator to mock sending lzReceive() messages,
* routes the msg down from the OAppPreCrimeSimulator, and back up to the OAppReceiver.
*/
function _lzReceiveSimulate(
Origin calldata _origin,
bytes32 _guid,
bytes calldata _message,
address _executor,
bytes calldata _extraData
) internal virtual;
/**
* @dev checks if the specified peer is considered 'trusted' by the OApp.
* @param _eid The endpoint Id to check.
* @param _peer The peer to check.
* @return Whether the peer passed is considered 'trusted' by the OApp.
*/
function isPeer(uint32 _eid, bytes32 _peer) public view virtual returns (bool);
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oapp/OAppUpgradeable.sol
// @dev Import the 'MessagingFee' and 'MessagingReceipt' so it's exposed to OApp implementers
// solhint-disable-next-line no-unused-import
// @dev Import the 'Origin' so it's exposed to OApp implementers
// solhint-disable-next-line no-unused-import
/**
* @title OApp
* @dev Abstract contract serving as the base for OApp implementation, combining OAppSender and OAppReceiver functionality.
*/
abstract contract OAppUpgradeable is OAppSenderUpgradeable, OAppReceiverUpgradeable {
/**
* @dev Constructor to initialize the OApp with the provided endpoint and owner.
* @param _endpoint The address of the LOCAL LayerZero endpoint.
*/
constructor(address _endpoint) OAppCoreUpgradeable(_endpoint) {}
/**
* @dev Initializes the OApp with the provided delegate.
* @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
*
* @dev The delegate typically should be set as the owner of the contract.
* @dev Ownable is not initialized here on purpose. It should be initialized in the child contract to
* accommodate the different version of Ownable.
*/
function __OApp_init(address _delegate) internal onlyInitializing {
__OAppCore_init(_delegate);
}
function __OApp_init_unchained() internal onlyInitializing {}
/**
* @notice Retrieves the OApp version information.
* @return senderVersion The version of the OAppSender.sol implementation.
* @return receiverVersion The version of the OAppReceiver.sol implementation.
*/
function oAppVersion()
public
pure
virtual
override(OAppSenderUpgradeable, OAppReceiverUpgradeable)
returns (uint64 senderVersion, uint64 receiverVersion)
{
return (SENDER_VERSION, RECEIVER_VERSION);
}
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oft/OFTCoreUpgradeable.sol
/**
* @title OFTCore
* @dev Abstract contract for the OftChain (OFT) token.
*/
abstract contract OFTCoreUpgradeable is
IOFT,
OAppUpgradeable,
OAppPreCrimeSimulatorUpgradeable,
OAppOptionsType3Upgradeable
{
using OFTMsgCodec for bytes;
using OFTMsgCodec for bytes32;
struct OFTCoreStorage {
// Address of an optional contract to inspect both 'message' and 'options'
address msgInspector;
}
// keccak256(abi.encode(uint256(keccak256("layerzerov2.storage.oftcore")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant OFTCoreStorageLocation =
0x41db8a78b0206aba5c54bcbfc2bda0d84082a84eb88e680379a57b9e9f653c00;
// @notice Provides a conversion rate when swapping between denominations of SD and LD
// - shareDecimals == SD == shared Decimals
// - localDecimals == LD == local decimals
// @dev Considers that tokens have different decimal amounts on various chains.
// @dev eg.
// For a token
// - locally with 4 decimals --> 1.2345 => uint(12345)
// - remotely with 2 decimals --> 1.23 => uint(123)
// - The conversion rate would be 10 ** (4 - 2) = 100
// @dev If you want to send 1.2345 -> (uint 12345), you CANNOT represent that value on the remote,
// you can only display 1.23 -> uint(123).
// @dev To preserve the dust that would otherwise be lost on that conversion,
// we need to unify a denomination that can be represented on ALL chains inside of the OFT mesh
uint256 public immutable decimalConversionRate;
// @notice Msg types that are used to identify the various OFT operations.
// @dev This can be extended in child contracts for non-default oft operations
// @dev These values are used in things like combineOptions() in OAppOptionsType3.sol.
uint16 public constant SEND = 1;
uint16 public constant SEND_AND_CALL = 2;
event MsgInspectorSet(address inspector);
function _getOFTCoreStorage() internal pure returns (OFTCoreStorage storage $) {
assembly {
$.slot := OFTCoreStorageLocation
}
}
/**
* @dev Constructor.
* @param _localDecimals The decimals of the token on the local chain (this chain).
* @param _endpoint The address of the LayerZero endpoint.
*/
constructor(uint8 _localDecimals, address _endpoint) OAppUpgradeable(_endpoint) {
if (_localDecimals < sharedDecimals()) revert InvalidLocalDecimals();
decimalConversionRate = 10 ** (_localDecimals - sharedDecimals());
}
/**
* @dev Initializes the OFTCore contract.
* @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
*
* @dev The delegate typically should be set as the owner of the contract.
* @dev Ownable is not initialized here on purpose. It should be initialized in the child contract to
* accommodate the different version of Ownable.
*/
function __OFTCore_init(address _delegate) internal onlyInitializing {
__OAppCore_init(_delegate);
}
function __OFTCore_init_unchained() internal onlyInitializing {}
function msgInspector() public view returns (address) {
OFTCoreStorage storage $ = _getOFTCoreStorage();
return $.msgInspector;
}
/**
* @dev Retrieves the shared decimals of the OFT.
* @return The shared decimals of the OFT.
*
* @dev Sets an implicit cap on the amount of tokens, over uint64.max() will need some sort of outbound cap / totalSupply cap
* Lowest common decimal denominator between chains.
* Defaults to 6 decimal places to provide up to 18,446,744,073,709.551615 units (max uint64).
* For tokens exceeding this totalSupply(), they will need to override the sharedDecimals function with something smaller.
* ie. 4 sharedDecimals would be 1,844,674,407,370,955.1615
*/
function sharedDecimals() public pure virtual returns (uint8) {
return 6;
}
/**
* @dev Sets the message inspector address for the OFT.
* @param _msgInspector The address of the message inspector.
*
* @dev This is an optional contract that can be used to inspect both 'message' and 'options'.
* @dev Set it to address(0) to disable it, or set it to a contract address to enable it.
*/
function setMsgInspector(address _msgInspector) public virtual onlyOwner {
OFTCoreStorage storage $ = _getOFTCoreStorage();
$.msgInspector = _msgInspector;
emit MsgInspectorSet(_msgInspector);
}
/**
* @notice Provides a quote for OFT-related operations.
* @param _sendParam The parameters for the send operation.
* @return oftLimit The OFT limit information.
* @return oftFeeDetails The details of OFT fees.
* @return oftReceipt The OFT receipt information.
*/
function quoteOFT(
SendParam calldata _sendParam
)
external
view
virtual
returns (OFTLimit memory oftLimit, OFTFeeDetail[] memory oftFeeDetails, OFTReceipt memory oftReceipt)
{
uint256 minAmountLD = 0; // Unused in the default implementation.
uint256 maxAmountLD = type(uint64).max; // Unused in the default implementation.
oftLimit = OFTLimit(minAmountLD, maxAmountLD);
// Unused in the default implementation; reserved for future complex fee details.
oftFeeDetails = new OFTFeeDetail[](0);
// @dev This is the same as the send() operation, but without the actual send.
// - amountSentLD is the amount in local decimals that would be sent from the sender.
// - amountReceivedLD is the amount in local decimals that will be credited to the recipient on the remote OFT instance.
// @dev The amountSentLD MIGHT not equal the amount the user actually receives. HOWEVER, the default does.
(uint256 amountSentLD, uint256 amountReceivedLD) = _debitView(
_sendParam.amountLD,
_sendParam.minAmountLD,
_sendParam.dstEid
);
oftReceipt = OFTReceipt(amountSentLD, amountReceivedLD);
}
/**
* @notice Provides a quote for the send() operation.
* @param _sendParam The parameters for the send() operation.
* @param _payInLzToken Flag indicating whether the caller is paying in the LZ token.
* @return msgFee The calculated LayerZero messaging fee from the send() operation.
*
* @dev MessagingFee: LayerZero msg fee
* - nativeFee: The native fee.
* - lzTokenFee: The lzToken fee.
*/
function quoteSend(
SendParam calldata _sendParam,
bool _payInLzToken
) external view virtual returns (MessagingFee memory msgFee) {
// @dev mock the amount to receive, this is the same operation used in the send().
// The quote is as similar as possible to the actual send() operation.
(, uint256 amountReceivedLD) = _debitView(_sendParam.amountLD, _sendParam.minAmountLD, _sendParam.dstEid);
// @dev Builds the options and OFT message to quote in the endpoint.
(bytes memory message, bytes memory options) = _buildMsgAndOptions(_sendParam, amountReceivedLD);
// @dev Calculates the LayerZero fee for the send() operation.
return _quote(_sendParam.dstEid, message, options, _payInLzToken);
}
/**
* @dev Executes the send operation.
* @param _sendParam The parameters for the send operation.
* @param _fee The calculated fee for the send() operation.
* - nativeFee: The native fee.
* - lzTokenFee: The lzToken fee.
* @param _refundAddress The address to receive any excess funds.
* @return msgReceipt The receipt for the send operation.
* @return oftReceipt The OFT receipt information.
*
* @dev MessagingReceipt: LayerZero msg receipt
* - guid: The unique identifier for the sent message.
* - nonce: The nonce of the sent message.
* - fee: The LayerZero fee incurred for the message.
*/
function send(
SendParam calldata _sendParam,
MessagingFee calldata _fee,
address _refundAddress
) external payable virtual returns (MessagingReceipt memory msgReceipt, OFTReceipt memory oftReceipt) {
// @dev Applies the token transfers regarding this send() operation.
// - amountSentLD is the amount in local decimals that was ACTUALLY sent/debited from the sender.
// - amountReceivedLD is the amount in local decimals that will be received/credited to the recipient on the remote OFT instance.
(uint256 amountSentLD, uint256 amountReceivedLD) = _debit(
_sendParam.amountLD,
_sendParam.minAmountLD,
_sendParam.dstEid
);
// @dev Builds the options and OFT message to quote in the endpoint.
(bytes memory message, bytes memory options) = _buildMsgAndOptions(_sendParam, amountReceivedLD);
// @dev Sends the message to the LayerZero endpoint and returns the LayerZero msg receipt.
msgReceipt = _lzSend(_sendParam.dstEid, message, options, _fee, _refundAddress);
// @dev Formulate the OFT receipt.
oftReceipt = OFTReceipt(amountSentLD, amountReceivedLD);
emit OFTSent(msgReceipt.guid, _sendParam.dstEid, msg.sender, amountSentLD, amountReceivedLD);
}
/**
* @dev Internal function to build the message and options.
* @param _sendParam The parameters for the send() operation.
* @param _amountLD The amount in local decimals.
* @return message The encoded message.
* @return options The encoded options.
*/
function _buildMsgAndOptions(
SendParam calldata _sendParam,
uint256 _amountLD
) internal view virtual returns (bytes memory message, bytes memory options) {
bool hasCompose;
// @dev This generated message has the msg.sender encoded into the payload so the remote knows who the caller is.
(message, hasCompose) = OFTMsgCodec.encode(
_sendParam.to,
_toSD(_amountLD),
// @dev Must be include a non empty bytes if you want to compose, EVEN if you dont need it on the remote.
// EVEN if you dont require an arbitrary payload to be sent... eg. '0x01'
_sendParam.composeMsg
);
// @dev Change the msg type depending if its composed or not.
uint16 msgType = hasCompose ? SEND_AND_CALL : SEND;
// @dev Combine the callers _extraOptions with the enforced options via the OAppOptionsType3.
options = combineOptions(_sendParam.dstEid, msgType, _sendParam.extraOptions);
OFTCoreStorage storage $ = _getOFTCoreStorage();
// @dev Optionally inspect the message and options depending if the OApp owner has set a msg inspector.
// @dev If it fails inspection, needs to revert in the implementation. ie. does not rely on return boolean
if ($.msgInspector != address(0)) IOAppMsgInspector($.msgInspector).inspect(message, options);
}
/**
* @dev Internal function to handle the receive on the LayerZero endpoint.
* @param _origin The origin information.
* - srcEid: The source chain endpoint ID.
* - sender: The sender address from the src chain.
* - nonce: The nonce of the LayerZero message.
* @param _guid The unique identifier for the received LayerZero message.
* @param _message The encoded message.
* @dev _executor The address of the executor.
* @dev _extraData Additional data.
*/
function _lzReceive(
Origin calldata _origin,
bytes32 _guid,
bytes calldata _message,
address /*_executor*/, // @dev unused in the default implementation.
bytes calldata /*_extraData*/ // @dev unused in the default implementation.
) internal virtual override {
// @dev The src sending chain doesnt know the address length on this chain (potentially non-evm)
// Thus everything is bytes32() encoded in flight.
address toAddress = _message.sendTo().bytes32ToAddress();
// @dev Credit the amountLD to the recipient and return the ACTUAL amount the recipient received in local decimals
uint256 amountReceivedLD = _credit(toAddress, _toLD(_message.amountSD()), _origin.srcEid);
if (_message.isComposed()) {
// @dev Proprietary composeMsg format for the OFT.
bytes memory composeMsg = OFTComposeMsgCodec.encode(
_origin.nonce,
_origin.srcEid,
amountReceivedLD,
_message.composeMsg()
);
// @dev Stores the lzCompose payload that will be executed in a separate tx.
// Standardizes functionality for executing arbitrary contract invocation on some non-evm chains.
// @dev The off-chain executor will listen and process the msg based on the src-chain-callers compose options passed.
// @dev The index is used when a OApp needs to compose multiple msgs on lzReceive.
// For default OFT implementation there is only 1 compose msg per lzReceive, thus its always 0.
endpoint.sendCompose(toAddress, _guid, 0, /* the index of the composed message*/ composeMsg);
}
emit OFTReceived(_guid, _origin.srcEid, toAddress, amountReceivedLD);
}
/**
* @dev Internal function to handle the OAppPreCrimeSimulator simulated receive.
* @param _origin The origin information.
* - srcEid: The source chain endpoint ID.
* - sender: The sender address from the src chain.
* - nonce: The nonce of the LayerZero message.
* @param _guid The unique identifier for the received LayerZero message.
* @param _message The LayerZero message.
* @param _executor The address of the off-chain executor.
* @param _extraData Arbitrary data passed by the msg executor.
*
* @dev Enables the preCrime simulator to mock sending lzReceive() messages,
* routes the msg down from the OAppPreCrimeSimulator, and back up to the OAppReceiver.
*/
function _lzReceiveSimulate(
Origin calldata _origin,
bytes32 _guid,
bytes calldata _message,
address _executor,
bytes calldata _extraData
) internal virtual override {
_lzReceive(_origin, _guid, _message, _executor, _extraData);
}
/**
* @dev Check if the peer is considered 'trusted' by the OApp.
* @param _eid The endpoint ID to check.
* @param _peer The peer to check.
* @return Whether the peer passed is considered 'trusted' by the OApp.
*
* @dev Enables OAppPreCrimeSimulator to check whether a potential Inbound Packet is from a trusted source.
*/
function isPeer(uint32 _eid, bytes32 _peer) public view virtual override returns (bool) {
return peers(_eid) == _peer;
}
/**
* @dev Internal function to remove dust from the given local decimal amount.
* @param _amountLD The amount in local decimals.
* @return amountLD The amount after removing dust.
*
* @dev Prevents the loss of dust when moving amounts between chains with different decimals.
* @dev eg. uint(123) with a conversion rate of 100 becomes uint(100).
*/
function _removeDust(uint256 _amountLD) internal view virtual returns (uint256 amountLD) {
return (_amountLD / decimalConversionRate) * decimalConversionRate;
}
/**
* @dev Internal function to convert an amount from shared decimals into local decimals.
* @param _amountSD The amount in shared decimals.
* @return amountLD The amount in local decimals.
*/
function _toLD(uint64 _amountSD) internal view virtual returns (uint256 amountLD) {
return _amountSD * decimalConversionRate;
}
/**
* @dev Internal function to convert an amount from local decimals into shared decimals.
* @param _amountLD The amount in local decimals.
* @return amountSD The amount in shared decimals.
*/
function _toSD(uint256 _amountLD) internal view virtual returns (uint64 amountSD) {
return uint64(_amountLD / decimalConversionRate);
}
/**
* @dev Internal function to mock the amount mutation from a OFT debit() operation.
* @param _amountLD The amount to send in local decimals.
* @param _minAmountLD The minimum amount to send in local decimals.
* @dev _dstEid The destination endpoint ID.
* @return amountSentLD The amount sent, in local decimals.
* @return amountReceivedLD The amount to be received on the remote chain, in local decimals.
*
* @dev This is where things like fees would be calculated and deducted from the amount to be received on the remote.
*/
function _debitView(
uint256 _amountLD,
uint256 _minAmountLD,
uint32 /*_dstEid*/
) internal view virtual returns (uint256 amountSentLD, uint256 amountReceivedLD) {
// @dev Remove the dust so nothing is lost on the conversion between chains with different decimals for the token.
amountSentLD = _removeDust(_amountLD);
// @dev The amount to send is the same as amount received in the default implementation.
amountReceivedLD = amountSentLD;
// @dev Check for slippage.
if (amountReceivedLD < _minAmountLD) {
revert SlippageExceeded(amountReceivedLD, _minAmountLD);
}
}
/**
* @dev Internal function to perform a debit operation.
* @param _amountLD The amount to send in local decimals.
* @param _minAmountLD The minimum amount to send in local decimals.
* @param _dstEid The destination endpoint ID.
* @return amountSentLD The amount sent in local decimals.
* @return amountReceivedLD The amount received in local decimals on the remote.
*
* @dev Defined here but are intended to be overriden depending on the OFT implementation.
* @dev Depending on OFT implementation the _amountLD could differ from the amountReceivedLD.
*/
function _debit(
uint256 _amountLD,
uint256 _minAmountLD,
uint32 _dstEid
) internal virtual returns (uint256 amountSentLD, uint256 amountReceivedLD);
/**
* @dev Internal function to perform a credit operation.
* @param _to The address to credit.
* @param _amountLD The amount to credit in local decimals.
* @param _srcEid The source endpoint ID.
* @return amountReceivedLD The amount ACTUALLY received in local decimals.
*
* @dev Defined here but are intended to be overriden depending on the OFT implementation.
* @dev Depending on OFT implementation the _amountLD could differ from the amountReceivedLD.
*/
function _credit(
address _to,
uint256 _amountLD,
uint32 _srcEid
) internal virtual returns (uint256 amountReceivedLD);
}
// node_modules/@fraxfinance/layerzero-v2-upgradeable/oapp/contracts/oft/OFTUpgradeable.sol
/**
* @title OFT Contract
* @dev OFT is an ERC-20 token that extends the functionality of the OFTCore contract.
*/
abstract contract OFTUpgradeable is OFTCoreUpgradeable, ERC20Upgradeable {
/**
* @dev Constructor for the OFT contract.
* @param _lzEndpoint The LayerZero endpoint address.
*/
constructor(address _lzEndpoint) OFTCoreUpgradeable(decimals(), _lzEndpoint) {}
/**
* @dev Initializes the OFT with the provided name, symbol, and delegate.
* @param _name The name of the OFT.
* @param _symbol The symbol of the OFT.
* @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
*
* @dev The delegate typically should be set as the owner of the contract.
* @dev Ownable is not initialized here on purpose. It should be initialized in the child contract to
* accommodate the different version of Ownable.
*/
function __OFT_init(string memory _name, string memory _symbol, address _delegate) internal onlyInitializing {
__ERC20_init(_name, _symbol);
__OFTCore_init(_delegate);
}
function __OFT_init_unchained() internal onlyInitializing {}
/**
* @notice Retrieves interfaceID and the version of the OFT.
* @return interfaceId The interface ID.
* @return version The version.
*
* @dev interfaceId: This specific interface ID is '0x02e49c2c'.
* @dev version: Indicates a cross-chain compatible msg encoding with other OFTs.
* @dev If a new feature is added to the OFT cross-chain msg encoding, the version will be incremented.
* ie. localOFT version(x,1) CAN send messages to remoteOFT version(x,1)
*/
function oftVersion() external pure virtual returns (bytes4 interfaceId, uint64 version) {
return (type(IOFT).interfaceId, 1);
}
/**
* @dev Retrieves the address of the underlying ERC20 implementation.
* @return The address of the OFT token.
*
* @dev In the case of OFT, address(this) and erc20 are the same contract.
*/
function token() external view returns (address) {
return address(this);
}
/**
* @notice Indicates whether the OFT contract requires approval of the 'token()' to send.
* @return requiresApproval Needs approval of the underlying token implementation.
*
* @dev In the case of OFT where the contract IS the token, approval is NOT required.
*/
function approvalRequired() external pure virtual returns (bool) {
return false;
}
/**
* @dev Burns tokens from the sender's specified balance.
* @param _amountLD The amount of tokens to send in local decimals.
* @param _minAmountLD The minimum amount to send in local decimals.
* @param _dstEid The destination chain ID.
* @return amountSentLD The amount sent in local decimals.
* @return amountReceivedLD The amount received in local decimals on the remote.
*/
function _debit(
uint256 _amountLD,
uint256 _minAmountLD,
uint32 _dstEid
) internal virtual override returns (uint256 amountSentLD, uint256 amountReceivedLD) {
(amountSentLD, amountReceivedLD) = _debitView(_amountLD, _minAmountLD, _dstEid);
// @dev In NON-default OFT, amountSentLD could be 100, with a 10% fee, the amountReceivedLD amount is 90,
// therefore amountSentLD CAN differ from amountReceivedLD.
// @dev Default OFT burns on src.
_burn(msg.sender, amountSentLD);
}
/**
* @dev Credits tokens to the specified address.
* @param _to The address to credit the tokens to.
* @param _amountLD The amount of tokens to credit in local decimals.
* @dev _srcEid The source chain ID.
* @return amountReceivedLD The amount of tokens ACTUALLY received in local decimals.
*/
function _credit(
address _to,
uint256 _amountLD,
uint32 /*_srcEid*/
) internal virtual override returns (uint256 amountReceivedLD) {
// @dev Default OFT mints on dst.
_mint(_to, _amountLD);
// @dev In the case of NON-default OFT, the _amountLD MIGHT not be == amountReceivedLD.
return _amountLD;
}
}
// contracts/frxUsd/FrxUSDOFTUpgradeable.sol
contract FrxUSDOFTUpgradeable is OFTUpgradeable, EIP3009Module, PermitModule, FreezeThawModule, PauseModule {
constructor(address _lzEndpoint) OFTUpgradeable(_lzEndpoint) {
_disableInitializers();
}
function version() public pure returns (string memory) {
return "1.1.0";
}
/// @dev overrides state where previous OFT versions were named the legacy "FRAX"
function name() public pure override returns (string memory) {
return "Frax USD";
}
/// @dev overrides state where previous OFT versions were named the legacy "FRAX"
function symbol() public pure override returns (string memory) {
return "frxUSD";
}
// Admin
/// @dev This method is called specifically when deploying a new OFT
function initialize(address _delegate) external reinitializer(3) {
__OFT_init(name(), symbol(), _delegate);
__EIP712_init(name(), version());
__Ownable_init();
_transferOwnership(_delegate);
}
/// @dev This method is called specifically when upgrading an existing OFT
function initializeV110() external reinitializer(3) {
__EIP712_init(name(), version());
}
/// @notice External admin gated function to add a freezer role to an account
/// @param account The account to be added as a freezer
/// @dev Added in v1.1.0
function addFreezer(address account) external onlyOwner {
_addFreezer(account);
}
/// @notice External admin gated function to remove a freezer role from an account
/// @param account The account to be removed as a freezer
/// @dev Added in v1.1.0
function removeFreezer(address account) external onlyOwner {
_removeFreezer(account);
}
/// @notice External admin gated function to unfreeze a set of accounts
/// @param accounts Array of accounts to be unfrozen
/// @dev Added in v1.1.0
function thawMany(address[] memory accounts) external onlyOwner {
_thawMany(accounts);
}
/// @notice External admin gated function to unfreeze an account
/// @param account The account to be unfrozen
/// @dev Added in v1.1.0
function thaw(address account) external onlyOwner {
_thaw(account);
}
/// @notice External admin gated function to batch freeze a set of accounts
/// @param accounts Array of accounts to be frozen
/// @dev Added in v1.1.0
function freezeMany(address[] memory accounts) external {
if (!isFreezer(msg.sender) && msg.sender != owner()) revert NotFreezer();
_freezeMany(accounts);
}
/// @notice External admin gated function to freeze a given account
/// @param account The account to be
/// @dev Added in v1.1.0
function freeze(address account) external {
if (!isFreezer(msg.sender) && msg.sender != owner()) revert NotFreezer();
_freeze(account);
}
/// @notice External admin gated function to batch burn balance from a set of accounts
/// @param accounts Array of accounts whose balances will be burned
/// @param amounts Array of amounts corresponding to the balances to be burned
/// @dev Added in v1.1.0
/// @dev if `amount` == 0, entire balance will be burned
function burnMany(address[] memory accounts, uint256[] memory amounts) external onlyOwner {
uint lenOwner = accounts.length;
if (accounts.length != amounts.length) revert ArrayMisMatch();
for (uint i; i < lenOwner; ++i) {
if (amounts[i] == 0) amounts[i] = balanceOf(accounts[i]);
_burn(accounts[i], amounts[i]);
}
}
/// @notice External admin gated function to burn balance from a given account
/// @param account The account whose balance will be burned
/// @param amount The amount of balance to burn
/// @dev Added in v1.1.0
/// @dev if `amount` == 0, entire balance will be burned
function burn(address account, uint256 amount) external onlyOwner {
if (amount == 0) amount = balanceOf(account);
_burn(account, amount);
}
/// @notice External admin gated pause function
/// @dev Added in v1.1.0
function pause() external onlyOwner {
_pause();
}
/// @notice External admin gated unpause function
/// @dev Added in v1.1.0
function unpause() external onlyOwner {
_unpause();
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal override {
if (msg.sender != owner()) {
if (
isPaused() ||
isFrozen(to) || isFrozen(from) || isFrozen(msg.sender)
) revert BeforeTokenTransferBlocked();
}
super._beforeTokenTransfer(from, to, amount);
}
// Helper views
function toLD(uint64 _amountSD) external view returns (uint256 amountLD) {
return _toLD(_amountSD);
}
function toSD(uint256 _amountLD) external view returns (uint64 amountSD) {
return _toSD(_amountLD);
}
function removeDust(uint256 _amountLD) public view returns (uint256 amountLD) {
return _removeDust(_amountLD);
}
function debitView(uint256 _amountLD, uint256 _minAmountLD, uint32 _dstEid) external view returns (uint256 amountSentLD, uint256 amountReceivedLD) {
/// @dev: _dstEid is unused in _debitView
return _debitView(_amountLD, _minAmountLD, _dstEid);
}
function buildMsgAndOptions(
SendParam calldata _sendParam,
uint256 _amountLD
) external view returns (bytes memory message, bytes memory options) {
return _buildMsgAndOptions(_sendParam, _amountLD);
}
//==============================================================================
// Overrides
//==============================================================================
/// @dev supports EIP3009
function _transfer(address from, address to, uint256 amount) internal override(EIP3009Module, ERC20Upgradeable) {
return ERC20Upgradeable._transfer(from, to, amount);
}
/// @dev supports EIP2612
function _approve(address owner, address spender, uint256 amount) internal override(PermitModule, ERC20Upgradeable) {
return ERC20Upgradeable._approve(owner, spender, amount);
}
/* ========== ERRORS ========== */
error ArrayMisMatch();
error BeforeTokenTransferBlocked();
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_lzEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyFreezer","type":"error"},{"inputs":[],"name":"ArrayMisMatch","type":"error"},{"inputs":[],"name":"BeforeTokenTransferBlocked","type":"error"},{"inputs":[],"name":"ExpiredAuthorization","type":"error"},{"inputs":[],"name":"InvalidAuthorization","type":"error"},{"inputs":[],"name":"InvalidDelegate","type":"error"},{"inputs":[],"name":"InvalidEndpointCall","type":"error"},{"inputs":[],"name":"InvalidLocalDecimals","type":"error"},{"inputs":[{"internalType":"bytes","name":"options","type":"bytes"}],"name":"InvalidOptions","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"address","name":"payee","type":"address"}],"name":"InvalidPayee","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"IsPaused","type":"error"},{"inputs":[],"name":"LzTokenUnavailable","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"NoPeer","type":"error"},{"inputs":[{"internalType":"uint256","name":"msgValue","type":"uint256"}],"name":"NotEnoughNative","type":"error"},{"inputs":[],"name":"NotFreezer","type":"error"},{"inputs":[],"name":"NotPaused","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"OnlyEndpoint","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"}],"name":"OnlyPeer","type":"error"},{"inputs":[],"name":"OnlySelf","type":"error"},{"inputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"name":"SimulationResult","type":"error"},{"inputs":[{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"}],"name":"SlippageExceeded","type":"error"},{"inputs":[],"name":"UsedOrCanceledAuthorization","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"AccountFrozen","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"AccountThawed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"AddFreezer","type":"event"},{"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":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationUsed","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"indexed":false,"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"EnforcedOptionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"inspector","type":"address"}],"name":"MsgInspectorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"srcEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"dstEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTSent","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":[],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"eid","type":"uint32"},{"indexed":false,"internalType":"bytes32","name":"peer","type":"bytes32"}],"name":"PeerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"preCrimeAddress","type":"address"}],"name":"PreCrimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"RemoveFreezer","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"},{"anonymous":false,"inputs":[],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEND","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEND_AND_CALL","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addFreezer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"}],"name":"allowInitializePath","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"approvalRequired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"authorizationState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"internalType":"uint256","name":"_amountLD","type":"uint256"}],"name":"buildMsgAndOptions","outputs":[{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes","name":"options","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"burnMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"cancelAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"cancelAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"uint16","name":"_msgType","type":"uint16"},{"internalType":"bytes","name":"_extraOptions","type":"bytes"}],"name":"combineOptions","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"composeMsgSender","outputs":[{"internalType":"address","name":"sender","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountLD","type":"uint256"},{"internalType":"uint256","name":"_minAmountLD","type":"uint256"},{"internalType":"uint32","name":"_dstEid","type":"uint32"}],"name":"debitView","outputs":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimalConversionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpointV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"uint16","name":"_msgType","type":"uint16"}],"name":"enforcedOptions","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"freezeMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"frozen","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"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":"address","name":"_delegate","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializeV110","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isFreezer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"isPeer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"},{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct InboundPacket[]","name":"_packets","type":"tuple[]"}],"name":"lzReceiveAndRevert","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceiveSimulate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"msgInspector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nextNonce","outputs":[{"internalType":"uint64","name":"nonce","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oApp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oAppVersion","outputs":[{"internalType":"uint64","name":"senderVersion","type":"uint64"},{"internalType":"uint64","name":"receiverVersion","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"oftVersion","outputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"},{"internalType":"uint64","name":"version","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"}],"name":"peers","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"preCrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"}],"name":"quoteOFT","outputs":[{"components":[{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"uint256","name":"maxAmountLD","type":"uint256"}],"internalType":"struct OFTLimit","name":"oftLimit","type":"tuple"},{"components":[{"internalType":"int256","name":"feeAmountLD","type":"int256"},{"internalType":"string","name":"description","type":"string"}],"internalType":"struct OFTFeeDetail[]","name":"oftFeeDetails","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"internalType":"bool","name":"_payInLzToken","type":"bool"}],"name":"quoteSend","outputs":[{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"msgFee","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"receiveWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"receiveWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountLD","type":"uint256"}],"name":"removeDust","outputs":[{"internalType":"uint256","name":"amountLD","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeFreezer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"_fee","type":"tuple"},{"internalType":"address","name":"_refundAddress","type":"address"}],"name":"send","outputs":[{"components":[{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"fee","type":"tuple"}],"internalType":"struct MessagingReceipt","name":"msgReceipt","type":"tuple"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegate","type":"address"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"setEnforcedOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_msgInspector","type":"address"}],"name":"setMsgInspector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"setPeer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_preCrime","type":"address"}],"name":"setPreCrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharedDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"thaw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"thawMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_amountSD","type":"uint64"}],"name":"toLD","outputs":[{"internalType":"uint256","name":"amountLD","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountLD","type":"uint256"}],"name":"toSD","outputs":[{"internalType":"uint64","name":"amountSD","type":"uint64"}],"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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"transferWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"transferWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]Contract Creation Code
60c060405234801562000010575f80fd5b5060405162005beb38038062005beb833981016040819052620000339162000134565b6001600160a01b038116608052806012816200005160068362000177565b6200005e90600a62000292565b60a052506200006f91505062000076565b50620002a2565b5f54610100900460ff1615620000e25760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b5f5460ff9081161462000132575f805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b5f6020828403121562000145575f80fd5b81516001600160a01b03811681146200015c575f80fd5b9392505050565b634e487b7160e01b5f52601160045260245ffd5b60ff828116828216039081111562000193576200019362000163565b92915050565b600181815b80851115620001d957815f1904821115620001bd57620001bd62000163565b80851615620001cb57918102915b93841c93908002906200019e565b509250929050565b5f82620001f15750600162000193565b81620001ff57505f62000193565b8160018114620002185760028114620002235762000243565b600191505062000193565b60ff84111562000237576200023762000163565b50506001821b62000193565b5060208310610133831016604e8410600b841016171562000268575081810a62000193565b62000274838362000199565b805f19048211156200028a576200028a62000163565b029392505050565b5f6200015c60ff841683620001e1565b60805160a0516158e16200030a5f395f8181610a3e0152818161261c0152818161303b01526130e301525f818161083b015281816110050152818161215f0152818161271c01528181612953015281816131ca015281816139aa0152613a6101526158e15ff3fe608060405260043610610458575f3560e01c8063857749b011610241578063bb0b6a5311610134578063d505accf116100b3578063ef55bec611610078578063ef55bec614610de9578063f016302314610e08578063f2fde38b14610e3c578063fc0c546a1461076c578063ff7bd03d14610e5b575f80fd5b8063d505accf14610d1d578063dd62ed3e14610d3c578063e3ee160e14610d5b578063e583983614610d7a578063e94a010214610d99575f80fd5b8063c7c7f5b3116100f9578063c7c7f5b314610c8c578063ca5eb5e114610cad578063cf09299514610ccc578063d045a0dc14610ceb578063d424388514610cfe575f80fd5b8063bb0b6a5314610bdf578063bc70b35414610c1c578063bd815db014610c3b578063c077998814610c4e578063c4d66de814610c6d575f80fd5b8063a457c2d7116101c0578063b3b20e7411610185578063b3b20e7414610b6e578063b731ea0a14610b8d578063b7b7289914610ba1578063b92d0eff1461076c578063b98bd07014610bc0575f80fd5b8063a457c2d714610acf578063a9059cbb14610aee578063afe1522714610b0d578063b187bd2614610b2c578063b3a5abeb14610b4f575f80fd5b8063963efcaa11610206578063963efcaa14610a2d5780639954baf214610a605780639dc29fac14610a7f5780639f68b96414610a9e5780639fd5a6cf14610ab0575f80fd5b8063857749b01461099157806388b7ab63146109a45780638d1fdf2f146109c35780638da5cb5b146109e257806395d89b41146109ff575f80fd5b806339509351116103595780635ea20216116102d857806372be3d2d1161029d57806372be3d2d146109025780637d25a05e146109165780637ecebe00146109375780638456cb591461095657806384b0196e1461096a575f80fd5b80635ea202161461085d5780636c65fd6a1461087c5780636fc1b31e1461089b57806370a08231146108ba578063715018a6146108ee575f80fd5b806354fd4d501161031e57806354fd4d501461077e5780635535d461146107ab5780635a049a70146107ca5780635a0dfe4d146107e95780635e280f111461082a575f80fd5b806339509351146106ee5780633b6f743b1461070d5780633f4ba83a14610739578063526606c91461074d57806352ae28791461076c575f80fd5b8063156a0d0f116103e55780632acd2000116103aa5780632acd200014610667578063313ce567146106865780633400288b146106a75780633644e515146106c65780633714fffa146106da575f80fd5b8063156a0d0f146105d057806317442b70146105f657806318160ddd146106165780631f5e13341461063457806323b872dd14610648575f80fd5b80630d35b4151161042b5780630d35b415146105035780630e78842c14610531578063111ecdad1461056857806313137d6514610594578063134d4f25146105a9575f80fd5b8063054f7d9c1461045c578063056d62de1461048657806306fdde03146104b3578063095ea7b3146104d4575b5f80fd5b348015610467575f80fd5b50610470610e7a565b60405161047d9190614244565b60405180910390f35b348015610491575f80fd5b506104a56104a03660046142a0565b610ea6565b60405161047d92919061432e565b3480156104be575f80fd5b506104c7610ebf565b60405161047d9190614352565b3480156104df575f80fd5b506104f36104ee366004614378565b610ee1565b604051901515815260200161047d565b34801561050e575f80fd5b5061052261051d3660046143a2565b610efa565b60405161047d939291906143d3565b34801561053c575f80fd5b5061055061054b36600461446a565b610fc5565b6040516001600160401b03909116815260200161047d565b348015610573575f80fd5b5061057c610fcf565b6040516001600160a01b03909116815260200161047d565b6105a76105a23660046144ce565b611003565b005b3480156105b4575f80fd5b506105bd600281565b60405161ffff909116815260200161047d565b3480156105db575f80fd5b506040805162b9270b60e21b8152600160208201520161047d565b348015610601575f80fd5b5060408051600180825260208201520161047d565b348015610621575f80fd5b506067545b60405190815260200161047d565b34801561063f575f80fd5b506105bd600181565b348015610653575f80fd5b506104f3610662366004614566565b6110c3565b348015610672575f80fd5b506105a76106813660046145a4565b6110e8565b348015610691575f80fd5b5060125b60405160ff909116815260200161047d565b3480156106b2575f80fd5b506105a76106c13660046145d7565b6110fc565b3480156106d1575f80fd5b50610626611167565b3480156106e5575f80fd5b506105a7611175565b3480156106f9575f80fd5b506104f3610708366004614378565b611233565b348015610718575f80fd5b5061072c6107273660046145fe565b611254565b60405161047d919061464c565b348015610744575f80fd5b506105a76112b8565b348015610758575f80fd5b506105a76107673660046145a4565b6112ca565b348015610777575f80fd5b503061057c565b348015610789575f80fd5b506040805180820190915260058152640312e312e360dc1b60208201526104c7565b3480156107b6575f80fd5b506104c76107c5366004614674565b6112db565b3480156107d5575f80fd5b506105a76107e43660046146b5565b6113b3565b3480156107f4575f80fd5b506104f36108033660046145d7565b63ffffffff919091165f9081525f805160206157ec83398151915260205260409020541490565b348015610835575f80fd5b5061057c7f000000000000000000000000000000000000000000000000000000000000000081565b348015610868575f80fd5b506105a76108773660046145a4565b6113e8565b348015610887575f80fd5b506104f36108963660046145a4565b6113f9565b3480156108a6575f80fd5b506105a76108b53660046145a4565b611412565b3480156108c5575f80fd5b506106266108d43660046145a4565b6001600160a01b03165f9081526065602052604090205490565b3480156108f9575f80fd5b506105a761148e565b34801561090d575f80fd5b5061047061149f565b348015610921575f80fd5b506105506109303660046145d7565b5f92915050565b348015610942575f80fd5b506106266109513660046145a4565b6114b8565b348015610961575f80fd5b506105a76114f6565b348015610975575f80fd5b5061097e611506565b60405161047d9796959493929190614701565b34801561099c575f80fd5b506006610695565b3480156109af575f80fd5b506105a76109be36600461487c565b6115af565b3480156109ce575f80fd5b506105a76109dd3660046145a4565b6116a7565b3480156109ed575f80fd5b506033546001600160a01b031661057c565b348015610a0a575f80fd5b50604080518082019091526006815265199c9e1554d160d21b60208201526104c7565b348015610a38575f80fd5b506106267f000000000000000000000000000000000000000000000000000000000000000081565b348015610a6b575f80fd5b506105a7610a7a366004614990565b6116ef565b348015610a8a575f80fd5b506105a7610a99366004614378565b611700565b348015610aa9575f80fd5b505f6104f3565b348015610abb575f80fd5b506105a7610aca3660046149c1565b611737565b348015610ada575f80fd5b506104f3610ae9366004614378565b611800565b348015610af9575f80fd5b506104f3610b08366004614378565b611885565b348015610b18575f80fd5b506105a7610b27366004614a31565b611892565b348015610b37575f80fd5b505f8051602061580c8339815191525460ff166104f3565b348015610b5a575f80fd5b50610626610b69366004614af9565b611987565b348015610b79575f80fd5b506105a7610b88366004614990565b611991565b348015610b98575f80fd5b5061057c6119d9565b348015610bac575f80fd5b506105a7610bbb366004614b14565b611a01565b348015610bcb575f80fd5b506105a7610bda366004614ba8565b611ac1565b348015610bea575f80fd5b50610626610bf9366004614be6565b63ffffffff165f9081525f805160206157ec833981519152602052604090205490565b348015610c27575f80fd5b506104c7610c36366004614bff565b611c3d565b6105a7610c49366004614ba8565b611dd5565b348015610c59575f80fd5b50610626610c6836600461446a565b611f61565b348015610c78575f80fd5b506105a7610c873660046145a4565b611f6b565b610c9f610c9a366004614c5b565b612041565b60405161047d929190614cc3565b348015610cb8575f80fd5b506105a7610cc73660046145a4565b612138565b348015610cd7575f80fd5b506105a7610ce636600461487c565b6121b2565b6105a7610cf93660046144ce565b61223f565b348015610d09575f80fd5b506105a7610d183660046145a4565b61226e565b348015610d28575f80fd5b506105a7610d37366004614d14565b6122e2565b348015610d47575f80fd5b50610626610d56366004614d7d565b612312565b348015610d66575f80fd5b506105a7610d75366004614da9565b61233c565b348015610d85575f80fd5b506104f3610d943660046145a4565b612379565b348015610da4575f80fd5b506104f3610db3366004614378565b6001600160a01b03919091165f9081525f8051602061582c83398151915260209081526040808320938352929052205460ff1690565b348015610df4575f80fd5b506105a7610e03366004614da9565b61239f565b348015610e13575f80fd5b50610e27610e22366004614e25565b6123d1565b6040805192835260208301919091520161047d565b348015610e47575f80fd5b506105a7610e563660046145a4565b6123eb565b348015610e66575f80fd5b506104f3610e75366004614e57565b612461565b60605f8051602061588c833981519152610ea05f8051602061586c83398151915261247e565b91505090565b606080610eb3848461248a565b915091505b9250929050565b604080518082019091526008815267119c985e081554d160c21b602082015290565b5f33610eee8185856125cb565b60019150505b92915050565b604080518082019091525f80825260208201526060610f2a60405180604001604052805f81526020015f81525090565b6040805180820182525f8082526001600160401b03602080840182905284518381529081019094529195509182610f83565b604080518082019091525f815260606020820152815260200190600190039081610f5c5790505b5093505f80610fa7604089013560608a0135610fa260208c018c614be6565b6125db565b60408051808201909152918252602082015296989597505050505050565b5f610ef482612616565b5f807f41db8a78b0206aba5c54bcbfc2bda0d84082a84eb88e680379a57b9e9f653c005b546001600160a01b031692915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314611053576040516391ac5e4f60e01b81523360048201526024015b60405180910390fd5b6020870180359061106d90611068908a614be6565b612641565b146110ab5761107f6020880188614be6565b60405163309afaf360e21b815263ffffffff90911660048201526020880135602482015260440161104a565b6110ba8787878787878761268a565b50505050505050565b5f336110d08582856127e8565b6110db85858561285a565b60019150505b9392505050565b6110f0612865565b6110f9816128bf565b50565b611104612865565b63ffffffff82165f8181525f805160206157ec833981519152602081815260409283902085905582519384528301849052917f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b91015b60405180910390a1505050565b5f61117061292b565b905090565b5f54600390610100900460ff1615801561119557505f5460ff8083169116105b6111b15760405162461bcd60e51b815260040161104a90614e71565b5f805461ffff191660ff8316176101001790556111f06111cf610ebf565b6040805180820190915260058152640312e312e360dc1b6020820152612934565b5f805461ff001916905560405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b5f33610eee8185856112458383612312565b61124f9190614ed3565b6125cb565b604080518082019091525f80825260208201525f61128260408501356060860135610fa26020880188614be6565b9150505f80611291868461248a565b90925090506112ae6112a66020880188614be6565b83838861293e565b9695505050505050565b6112c0612865565b6112c8612a1c565b565b6112d2612865565b6110f981612a7f565b63ffffffff82165f9081527f8d2bda5d9f6ffb5796910376005392955773acee5548d0fcdb10e7c264ea00006020818152604080842061ffff861685529091529091208054606092919061132e90614ee6565b80601f016020809104026020016040519081016040528092919081815260200182805461135a90614ee6565b80156113a55780601f1061137c576101008083540402835291602001916113a5565b820191905f5260205f20905b81548152906001019060200180831161138857829003601f168201915b505050505091505092915050565b6113e185858484876040516020016113cd93929190614f18565b604051602081830303815290604052611a01565b5050505050565b6113f0612865565b6110f981612aeb565b5f5f8051602061588c8339815191526110e18184612b4a565b61141a612865565b7f41db8a78b0206aba5c54bcbfc2bda0d84082a84eb88e680379a57b9e9f653c0080546001600160a01b0319166001600160a01b03831690811782556040519081527ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d4414197906020015b60405180910390a15050565b611496612865565b6112c85f612b6b565b60605f8051602061588c833981519152610ea08161247e565b6001600160a01b0381165f9081527fb39b43abb0b115e0a59dece28477e279ee5f8e2fd55fbe200557c3ab864a0300602081905260408220546110e1565b6114fe612865565b6112c8612bbc565b5f60608082808083815f8051602061584c833981519152805490915015801561153157506001810154155b6115755760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161104a565b61157d612c23565b611585612ce3565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b6001600160a01b03861633146115e957604051637f54a22160e11b81523360048201526001600160a01b038716602482015260440161104a565b83421161160957604051632ce87eeb60e01b815260040160405180910390fd5b8242106116295760405163a899ef9360e01b815260040160405180910390fd5b6116338783612d21565b611692877fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de85f1b8989898989896040516020016116769796959493929190614f3b565b6040516020818303038152906040528051906020012083612d70565b61169c8783612db4565b6110ba87878761285a565b6116b0336113f9565b1580156116c857506033546001600160a01b03163314155b156116e657604051632afd2d5760e11b815260040160405180910390fd5b6110f981612e19565b6116f7612865565b6110f981612e78565b611708612865565b805f0361172957506001600160a01b0381165f908152606560205260409020545b6117338282612eae565b5050565b814211156117875760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161104a565b6117f5857f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98787876117b88b612feb565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810185905260e001611676565b6113e18585856125cb565b5f338161180d8286612312565b90508381101561186d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161104a565b61187a82868684036125cb565b506001949350505050565b5f33610eee81858561285a565b61189a612865565b8151815181146118bd576040516307d1a55160e31b815260040160405180910390fd5b5f5b81811015611981578281815181106118d9576118d9614f77565b60200260200101515f0361193d5761191e8482815181106118fc576118fc614f77565b60200260200101516001600160a01b03165f9081526065602052604090205490565b83828151811061193057611930614f77565b6020026020010181815250505b61197984828151811061195257611952614f77565b602002602001015184838151811061196c5761196c614f77565b6020026020010151612eae565b6001016118bf565b50505050565b5f610ef482613035565b61199a336113f9565b1580156119b257506033546001600160a01b03163314155b156119d057604051632afd2d5760e11b815260040160405180910390fd5b6110f981613069565b5f807fefb041d771d6daaa55702fff6eb740d63ba559a75d2d1d3e151c78ff2480b600610ff3565b611a0b8383612d21565b604080517f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742960208201526001600160a01b0385169181019190915260608101839052611a5b908490608001611676565b6001600160a01b0383165f8181525f8051602061582c83398151915260209081526040808320868452909152808220805460ff19166001179055518492917f1cdd46ff242716cdaa72d159d339a485b3438398348d68f09d7c8c0a59353d8191a3505050565b611ac9612865565b7f8d2bda5d9f6ffb5796910376005392955773acee5548d0fcdb10e7c264ea00005f5b82811015611c0b57611b2e848483818110611b0957611b09614f77565b9050602002810190611b1b9190614f8b565b611b29906040810190614fa9565b61309f565b838382818110611b4057611b40614f77565b9050602002810190611b529190614f8b565b611b60906040810190614fa9565b835f878786818110611b7457611b74614f77565b9050602002810190611b869190614f8b565b611b94906020810190614be6565b63ffffffff1663ffffffff1681526020019081526020015f205f878786818110611bc057611bc0614f77565b9050602002810190611bd29190614f8b565b611be3906040810190602001614feb565b61ffff16815260208101919091526040015f2091611c02919083615048565b50600101611aec565b507fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b674838360405161115a929190615129565b63ffffffff84165f9081527f8d2bda5d9f6ffb5796910376005392955773acee5548d0fcdb10e7c264ea00006020818152604080842061ffff88168552909152822080546060939190611c8f90614ee6565b80601f0160208091040260200160405190810160405280929190818152602001828054611cbb90614ee6565b8015611d065780601f10611cdd57610100808354040283529160200191611d06565b820191905f5260205f20905b815481529060010190602001808311611ce957829003601f168201915b5050505050905080515f03611d555784848080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250929550611dcd945050505050565b5f849003611d66579150611dcd9050565b60028410611db057611d78858561309f565b80611d868560028189615208565b604051602001611d989392919061522f565b60405160208183030381529060405292505050611dcd565b8484604051639a6d49cd60e01b815260040161104a929190615255565b949350505050565b5f5b81811015611ee45736838383818110611df257611df2614f77565b9050602002810190611e049190615268565b9050611e42611e166020830183614be6565b602083013563ffffffff919091165f9081525f805160206157ec83398151915260205260409020541490565b611e4c5750611edc565b3063d045a0dc60c08301358360a0810135611e6b610100830183614fa9565b611e7c610100890160e08a016145a4565b611e8a6101208a018a614fa9565b6040518963ffffffff1660e01b8152600401611eac979695949392919061527d565b5f604051808303818588803b158015611ec3575f80fd5b505af1158015611ed5573d5f803e3d5ffd5b5050505050505b600101611dd7565b50336001600160a01b0316638e9e70996040518163ffffffff1660e01b81526004015f60405180830381865afa158015611f20573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052611f479190810190615302565b604051638351eea760e01b815260040161104a9190614352565b5f610ef4826130e0565b5f54600390610100900460ff16158015611f8b57505f5460ff8083169116105b611fa75760405162461bcd60e51b815260040161104a90614e71565b5f805461ffff191660ff831617610100179055611fe8611fc5610ebf565b604080518082019091526006815265199c9e1554d160d21b602082015284613116565b611ff36111cf610ebf565b611ffb61314f565b61200482612b6b565b5f805461ff001916905560405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001611482565b612049614201565b604080518082019091525f80825260208201525f8061207d6040880135606089013561207860208b018b614be6565b61317d565b915091505f8061208d898461248a565b90925090506120b96120a260208b018b614be6565b83836120b3368d90038d018d61536a565b8b613199565b60408051808201909152858152602080820186905282519298509096503391907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a90612107908d018d614be6565b6040805163ffffffff909216825260208201899052810187905260600160405180910390a350505050935093915050565b612140612865565b60405163ca5eb5e160e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063ca5eb5e1906024015f604051808303815f87803b1580156121a0575f80fd5b505af11580156113e1573d5f803e3d5ffd5b8342116121d257604051632ce87eeb60e01b815260040160405180910390fd5b8242106121f25760405163a899ef9360e01b815260040160405180910390fd5b6121fc8783612d21565b611692877f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a22675f1b8989898989896040516020016116769796959493929190614f3b565b33301461225f5760405163029a949d60e31b815260040160405180910390fd5b6110ba878787878787876110ab565b612276612865565b7fefb041d771d6daaa55702fff6eb740d63ba559a75d2d1d3e151c78ff2480b60080546001600160a01b0319166001600160a01b03831690811782556040519081527fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c242776090602001611482565b6110ba878787878686896040516020016122fe93929190614f18565b604051602081830303815290604052611737565b6001600160a01b039182165f90815260666020908152604080832093909416825291909152205490565b61236e89898989898988888b60405160200161235a93929190614f18565b6040516020818303038152906040526121b2565b505050505050505050565b5f5f8051602061588c8339815191526110e15f8051602061586c83398151915284612b4a565b61236e89898989898988888b6040516020016123bd93929190614f18565b6040516020818303038152906040526115af565b5f806123de8585856125db565b915091505b935093915050565b6123f3612865565b6001600160a01b0381166124585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161104a565b6110f981612b6b565b5f6020820180359061247790610bf99085614be6565b1492915050565b60605f6110e18361329f565b6060805f6124e5856020013561249f86612616565b6124ac60a0890189614fa9565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506132f892505050565b90935090505f816124f75760016124fa565b60025b905061251a61250c6020880188614be6565b82610c3660808a018a614fa9565b7f41db8a78b0206aba5c54bcbfc2bda0d84082a84eb88e680379a57b9e9f653c008054919450906001600160a01b0316156125c157805460405163043a78eb60e01b81526001600160a01b039091169063043a78eb90612580908890889060040161432e565b602060405180830381865afa15801561259b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125bf919061539a565b505b5050509250929050565b6125d6838383613372565b505050565b5f806125e6856130e0565b9150819050838110156123e3576040516371c4efed60e01b8152600481018290526024810185905260440161104a565b5f610ef47f0000000000000000000000000000000000000000000000000000000000000000836153b5565b63ffffffff81165f9081525f805160206157ec83398151915260208190526040822054806110e15760405163f6ff4fb760e01b815263ffffffff8516600482015260240161104a565b5f61269b6126988787613495565b90565b90505f6126c6826126b46126af8a8a6134ac565b613035565b6126c160208d018d614be6565b6134ce565b90506028861115612786575f6127026126e560608c0160408d01614af9565b6126f260208d018d614be6565b846126fd8c8c6134e1565b61352b565b604051633e5ac80960e11b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637cb59012906127579086908d905f9087906004016153d4565b5f604051808303815f87803b15801561276e575f80fd5b505af1158015612780573d5f803e3d5ffd5b50505050505b6001600160a01b038216887fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c6127bf60208d018d614be6565b6040805163ffffffff9092168252602082018690520160405180910390a3505050505050505050565b5f6127f38484612312565b90505f198114611981578181101561284d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161104a565b61198184848484036125cb565b6125d683838361355d565b6033546001600160a01b031633146112c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161104a565b5f8051602061588c8339815191526128d78183613711565b6128f457604051632afd2d5760e11b815260040160405180910390fd5b6040516001600160a01b038316907f9897b394a6b591cfc037421a7ded37d10c937d559efc566379996935ca7e8cb3905f90a25050565b5f611170613725565b6117338282613798565b604080518082019091525f80825260208201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ddc28c586040518060a001604052808863ffffffff1681526020016129a089612641565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b81526004016129d5929190615404565b6040805180830381865afa1580156129ef573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a1391906154aa565b95945050505050565b5f8051602061580c833981519152805460ff16612a4c57604051636cd6020160e01b815260040160405180910390fd5b805460ff191681556040517fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d16933905f90a150565b5f8051602061588c833981519152612a9781836137ef565b612ab457604051631c0bb04560e31b815260040160405180910390fd5b6040516001600160a01b038316907f8be40cc857dac82fa5df8b4151dce647ff88a95dcbc51a85bf863880ab67c3d2905f90a25050565b5f8051602061588c833981519152612b105f8051602061586c83398151915283613711565b506040516001600160a01b03831681527f74bb8c2778db9c683c274e7bfdcb56dba4f1c737411c8182363097eec281eea490602001611482565b6001600160a01b0381165f90815260018301602052604081205415156110e1565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f8051602061580c833981519152805460ff1615612bed57604051631309a56360e01b815260040160405180910390fd5b805460ff191660011781556040517f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e752905f90a150565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f8051602061584c83398151915291612c6190614ee6565b80601f0160208091040260200160405190810160405280929190818152602001828054612c8d90614ee6565b8015612cd85780601f10612caf57610100808354040283529160200191612cd8565b820191905f5260205f20905b815481529060010190602001808311612cbb57829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f8051602061584c83398151915291612c6190614ee6565b5f8051602061582c8339815191526001600160a01b0383165f90815260209182526040808220848352909252205460ff16156117335760405163076f007560e21b815260040160405180910390fd5b612d8383612d7d84613803565b8361382f565b1580612d9657506001600160a01b038316155b156125d657604051638baa579f60e01b815260040160405180910390fd5b6001600160a01b0382165f8181525f8051602061582c83398151915260209081526040808320858452909152808220805460ff19166001179055518392917f98de503528ee59b575ef0c0a2576a82497bfc029a5685b209e9ec333479b10a591a35050565b5f8051602061588c833981519152612e3e5f8051602061586c833981519152836137ef565b506040516001600160a01b03831681527f4f2a367e694e71282f29ab5eaa04c4c0be45ac5bf2ca74fb67068b98bdc2887d90602001611482565b80515f5b818110156125d657612ea6838281518110612e9957612e99614f77565b6020026020010151612aeb565b600101612e7c565b6001600160a01b038216612f0e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161104a565b612f19825f83613883565b6001600160a01b0382165f9081526065602052604090205481811015612f8c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161104a565b6001600160a01b0383165f8181526065602090815260408083208686039055606780548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b0381165f9081527fb39b43abb0b115e0a59dece28477e279ee5f8e2fd55fbe200557c3ab864a030060208190526040909120805460018101909155905b50919050565b5f610ef47f00000000000000000000000000000000000000000000000000000000000000006001600160401b0384166154c4565b80515f5b818110156125d65761309783828151811061308a5761308a614f77565b6020026020010151612e19565b60010161306d565b5f6130ad6002828486615208565b6130b6916154db565b60f01c9050600381146125d6578282604051639a6d49cd60e01b815260040161104a929190615255565b5f7f000000000000000000000000000000000000000000000000000000000000000061310c81846153b5565b610ef491906154c4565b5f54610100900460ff1661313c5760405162461bcd60e51b815260040161104a9061550b565b61314683836138f2565b6125d681613922565b5f54610100900460ff166131755760405162461bcd60e51b815260040161104a9061550b565b6112c8613951565b5f8061318a8585856125db565b90925090506123e33383612eae565b6131a1614201565b5f6131ae845f0151613980565b6020850151909150156131c8576131c884602001516139a7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632637a450826040518060a001604052808b63ffffffff1681526020016132188c612641565b81526020018a81526020018981526020015f8960200151111515815250866040518463ffffffff1660e01b8152600401613253929190615404565b60806040518083038185885af115801561326f573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906132949190615556565b979650505050505050565b6060815f018054806020026020016040519081016040528092919081815260200182805480156132ec57602002820191905f5260205f20905b8154815260200190600101908083116132d8575b50505050509050919050565b805160609015158061334157848460405160200161332d92919091825260c01b6001600160c01b031916602082015260280190565b604051602081830303815290604052613368565b8484338560405160200161335894939291906155bb565b6040516020818303038152906040525b9150935093915050565b6001600160a01b0383166133d45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161104a565b6001600160a01b0382166134355760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161104a565b6001600160a01b038381165f8181526066602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f6134a36020828486615208565b6110e1916155fd565b5f6134bb602860208486615208565b6134c49161561a565b60c01c9392505050565b5f6134d98484613a86565b509092915050565b60606134f08260288186615208565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250929695505050505050565b6060848484846040516020016135449493929190615648565b6040516020818303038152906040529050949350505050565b6001600160a01b0383166135c15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161104a565b6001600160a01b0382166136235760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161104a565b61362e838383613883565b6001600160a01b0383165f90815260656020526040902054818110156136a55760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161104a565b6001600160a01b038085165f8181526065602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906137049086815260200190565b60405180910390a3611981565b5f6110e1836001600160a01b038416613b50565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61374f613c33565b613757613c9b565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f8051602061584c8339815191527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026137d18482615696565b50600381016137e08382615696565b505f8082556001909101555050565b5f6110e1836001600160a01b038416613cdd565b5f610ef461380f61292b565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f61383c8585613d29565b90925090505f81600481111561385457613854615755565b1480156138725750856001600160a01b0316826001600160a01b0316145b806112ae57506112ae868686613d68565b6033546001600160a01b031633146125d6575f8051602061580c8339815191525460ff16806138b657506138b682612379565b806138c557506138c583612379565b806138d457506138d433612379565b156125d6576040516340f95ec760e11b815260040160405180910390fd5b5f54610100900460ff166139185760405162461bcd60e51b815260040161104a9061550b565b6117338282613e4f565b5f54610100900460ff166139485760405162461bcd60e51b815260040161104a9061550b565b6110f981613e8e565b5f54610100900460ff166139775760405162461bcd60e51b815260040161104a9061550b565b6112c833612b6b565b5f8134146139a3576040516304fb820960e51b815234600482015260240161104a565b5090565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa158015613a04573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613a289190615769565b90506001600160a01b038116613a51576040516329b99a9560e11b815260040160405180910390fd5b6117336001600160a01b038216337f000000000000000000000000000000000000000000000000000000000000000085613ebd565b6001600160a01b038216613adc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161104a565b613ae75f8383613883565b8060675f828254613af89190614ed3565b90915550506001600160a01b0382165f818152606560209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b5f8181526001830160205260408120548015613c2a575f613b72600183615784565b85549091505f90613b8590600190615784565b9050818114613be4575f865f018281548110613ba357613ba3614f77565b905f5260205f200154905080875f018481548110613bc357613bc3614f77565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080613bf557613bf5615797565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610ef4565b5f915050610ef4565b5f5f8051602061584c83398151915281613c4b612c23565b805190915015613c6357805160209091012092915050565b81548015613c72579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f8051602061584c83398151915281613cb3612ce3565b805190915015613ccb57805160209091012092915050565b60018201548015613c72579392505050565b5f818152600183016020526040812054613d2257508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610ef4565b505f610ef4565b5f808251604103613d5d576020830151604084015160608501515f1a613d5187828585613f17565b94509450505050610eb8565b505f90506002610eb8565b5f805f856001600160a01b0316631626ba7e60e01b8686604051602401613d909291906157ab565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051613dce91906157c3565b5f60405180830381855afa9150503d805f8114613e06576040519150601f19603f3d011682016040523d82523d5f602084013e613e0b565b606091505b5091509150818015613e1f57506020815110155b80156112ae57508051630b135d3f60e11b90613e4490830160209081019084016157d4565b149695505050505050565b5f54610100900460ff16613e755760405162461bcd60e51b815260040161104a9061550b565b6068613e818382615696565b5060696125d68282615696565b5f54610100900460ff16613eb45760405162461bcd60e51b815260040161104a9061550b565b6110f981613fd4565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611981908590614021565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613f4c57505f90506003613fcb565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613f9d573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116613fc5575f60019250925050613fcb565b91505f90505b94509492505050565b5f54610100900460ff16613ffa5760405162461bcd60e51b815260040161104a9061550b565b6001600160a01b03811661214057604051632d618d8160e21b815260040160405180910390fd5b5f614075826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166140f49092919063ffffffff16565b905080515f1480614095575080806020019051810190614095919061539a565b6125d65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161104a565b6060611dcd84845f85855f80866001600160a01b0316858760405161411991906157c3565b5f6040518083038185875af1925050503d805f8114614153576040519150601f19603f3d011682016040523d82523d5f602084013e614158565b606091505b509150915061329487838387606083156141d25782515f036141cb576001600160a01b0385163b6141cb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161104a565b5081611dcd565b611dcd83838151156141e75781518083602001fd5b8060405162461bcd60e51b815260040161104a9190614352565b60405180606001604052805f80191681526020015f6001600160401b0316815260200161423f60405180604001604052805f81526020015f81525090565b905290565b602080825282518282018190525f9190848201906040850190845b818110156142845783516001600160a01b03168352928401929184019160010161425f565b50909695505050505050565b5f60e0828403121561302f575f80fd5b5f80604083850312156142b1575f80fd5b82356001600160401b038111156142c6575f80fd5b6142d285828601614290565b95602094909401359450505050565b5f5b838110156142fb5781810151838201526020016142e3565b50505f910152565b5f815180845261431a8160208601602086016142e1565b601f01601f19169290920160200192915050565b604081525f6143406040830185614303565b8281036020840152612a138185614303565b602081525f6110e16020830184614303565b6001600160a01b03811681146110f9575f80fd5b5f8060408385031215614389575f80fd5b823561439481614364565b946020939093013593505050565b5f602082840312156143b2575f80fd5b81356001600160401b038111156143c7575f80fd5b611dcd84828501614290565b83518152602080850151908201525f60a08201604060a0604085015281865180845260c08601915060c08160051b870101935060208089015f5b8381101561444c5788870360bf1901855281518051885283015183880187905261443987890182614303565b975050938201939082019060010161440d565b50508751606088015250505060208501516080850152509050611dcd565b5f6020828403121561447a575f80fd5b5035919050565b5f6060828403121561302f575f80fd5b5f8083601f8401126144a1575f80fd5b5081356001600160401b038111156144b7575f80fd5b602083019150836020828501011115610eb8575f80fd5b5f805f805f805f60e0888a0312156144e4575f80fd5b6144ee8989614481565b96506060880135955060808801356001600160401b0380821115614510575f80fd5b61451c8b838c01614491565b909750955060a08a0135915061453182614364565b90935060c08901359080821115614546575f80fd5b506145538a828b01614491565b989b979a50959850939692959293505050565b5f805f60608486031215614578575f80fd5b833561458381614364565b9250602084013561459381614364565b929592945050506040919091013590565b5f602082840312156145b4575f80fd5b81356110e181614364565b803563ffffffff811681146145d2575f80fd5b919050565b5f80604083850312156145e8575f80fd5b614394836145bf565b80151581146110f9575f80fd5b5f806040838503121561460f575f80fd5b82356001600160401b03811115614624575f80fd5b61463085828601614290565b9250506020830135614641816145f1565b809150509250929050565b815181526020808301519082015260408101610ef4565b803561ffff811681146145d2575f80fd5b5f8060408385031215614685575f80fd5b61468e836145bf565b915061469c60208401614663565b90509250929050565b803560ff811681146145d2575f80fd5b5f805f805f60a086880312156146c9575f80fd5b85356146d481614364565b9450602086013593506146e9604087016146a5565b94979396509394606081013594506080013592915050565b60ff60f81b881681525f602060e0602084015261472160e084018a614303565b8381036040850152614733818a614303565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825260208088019350909101905f5b818110156147865783518352928401929184019160010161476a565b50909c9b505050505050505050505050565b634e487b7160e01b5f52604160045260245ffd5b604080519081016001600160401b03811182821017156147ce576147ce614798565b60405290565b604051601f8201601f191681016001600160401b03811182821017156147fc576147fc614798565b604052919050565b5f6001600160401b0382111561481c5761481c614798565b50601f01601f191660200190565b5f82601f830112614839575f80fd5b813561484c61484782614804565b6147d4565b818152846020838601011115614860575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f805f805f60e0888a031215614892575f80fd5b873561489d81614364565b965060208801356148ad81614364565b955060408801359450606088013593506080880135925060a0880135915060c08801356001600160401b038111156148e3575f80fd5b6148ef8a828b0161482a565b91505092959891949750929550565b5f6001600160401b0382111561491657614916614798565b5060051b60200190565b5f82601f83011261492f575f80fd5b8135602061493f614847836148fe565b8083825260208201915060208460051b870101935086841115614960575f80fd5b602086015b8481101561498557803561497881614364565b8352918301918301614965565b509695505050505050565b5f602082840312156149a0575f80fd5b81356001600160401b038111156149b5575f80fd5b611dcd84828501614920565b5f805f805f60a086880312156149d5575f80fd5b85356149e081614364565b945060208601356149f081614364565b9350604086013592506060860135915060808601356001600160401b03811115614a18575f80fd5b614a248882890161482a565b9150509295509295909350565b5f8060408385031215614a42575f80fd5b82356001600160401b0380821115614a58575f80fd5b614a6486838701614920565b9350602091508185013581811115614a7a575f80fd5b85019050601f81018613614a8c575f80fd5b8035614a9a614847826148fe565b81815260059190911b82018301908381019088831115614ab8575f80fd5b928401925b82841015614ad657833582529284019290840190614abd565b80955050505050509250929050565b6001600160401b03811681146110f9575f80fd5b5f60208284031215614b09575f80fd5b81356110e181614ae5565b5f805f60608486031215614b26575f80fd5b8335614b3181614364565b92506020840135915060408401356001600160401b03811115614b52575f80fd5b614b5e8682870161482a565b9150509250925092565b5f8083601f840112614b78575f80fd5b5081356001600160401b03811115614b8e575f80fd5b6020830191508360208260051b8501011115610eb8575f80fd5b5f8060208385031215614bb9575f80fd5b82356001600160401b03811115614bce575f80fd5b614bda85828601614b68565b90969095509350505050565b5f60208284031215614bf6575f80fd5b6110e1826145bf565b5f805f8060608587031215614c12575f80fd5b614c1b856145bf565b9350614c2960208601614663565b925060408501356001600160401b03811115614c43575f80fd5b614c4f87828801614491565b95989497509550505050565b5f805f8385036080811215614c6e575f80fd5b84356001600160401b03811115614c83575f80fd5b614c8f87828801614290565b9450506040601f1982011215614ca3575f80fd5b506020840191506060840135614cb881614364565b809150509250925092565b5f60c082019050835182526001600160401b0360208501511660208301526040840151614cfd604084018280518252602090810151910152565b5082516080830152602083015160a08301526110e1565b5f805f805f805f60e0888a031215614d2a575f80fd5b8735614d3581614364565b96506020880135614d4581614364565b95506040880135945060608801359350614d61608089016146a5565b925060a0880135915060c0880135905092959891949750929550565b5f8060408385031215614d8e575f80fd5b8235614d9981614364565b9150602083013561464181614364565b5f805f805f805f805f6101208a8c031215614dc2575f80fd5b8935614dcd81614364565b985060208a0135614ddd81614364565b975060408a0135965060608a0135955060808a0135945060a08a01359350614e0760c08b016146a5565b925060e08a013591506101008a013590509295985092959850929598565b5f805f60608486031215614e37575f80fd5b8335925060208401359150614e4e604085016145bf565b90509250925092565b5f60608284031215614e67575f80fd5b6110e18383614481565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ef457610ef4614ebf565b600181811c90821680614efa57607f821691505b60208210810361302f57634e487b7160e01b5f52602260045260245ffd5b928352602083019190915260f81b6001600160f81b031916604082015260410190565b9687526001600160a01b0395861660208801529390941660408601526060850191909152608084015260a083019190915260c082015260e00190565b634e487b7160e01b5f52603260045260245ffd5b5f8235605e19833603018112614f9f575f80fd5b9190910192915050565b5f808335601e19843603018112614fbe575f80fd5b8301803591506001600160401b03821115614fd7575f80fd5b602001915036819003821315610eb8575f80fd5b5f60208284031215614ffb575f80fd5b6110e182614663565b601f8211156125d657805f5260205f20601f840160051c810160208510156150295750805b601f840160051c820191505b818110156113e1575f8155600101615035565b6001600160401b0383111561505f5761505f614798565b6150738361506d8354614ee6565b83615004565b5f601f8411600181146150a4575f851561508d5750838201355b5f19600387901b1c1916600186901b1783556113e1565b5f83815260208120601f198716915b828110156150d357868501358255602094850194600190920191016150b3565b50868210156150ef575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b60208082528181018390525f906040808401600586901b8501820187855b888110156151fa57878303603f190184528135368b9003605e1901811261516c575f80fd5b8a01606063ffffffff61517e836145bf565b16855261ffff61518f898401614663565b168886015286820135601e198336030181126151a9575f80fd5b9091018781019190356001600160401b038111156151c5575f80fd5b8036038313156151d3575f80fd5b81888701526151e58287018285615101565b96890196955050509186019150600101615147565b509098975050505050505050565b5f8085851115615216575f80fd5b83861115615222575f80fd5b5050820193919092039150565b5f84516152408184602089016142e1565b8201838582375f930192835250909392505050565b602081525f611dcd602083018486615101565b5f823561013e19833603018112614f9f575f80fd5b63ffffffff61528b896145bf565b168152602088013560208201525f60408901356152a781614ae5565b6001600160401b03811660408401525087606083015260e060808301526152d260e083018789615101565b6001600160a01b03861660a084015282810360c08401526152f4818587615101565b9a9950505050505050505050565b5f60208284031215615312575f80fd5b81516001600160401b03811115615327575f80fd5b8201601f81018413615337575f80fd5b805161534561484782614804565b818152856020838501011115615359575f80fd5b612a138260208301602086016142e1565b5f6040828403121561537a575f80fd5b6153826147ac565b82358152602083013560208201528091505092915050565b5f602082840312156153aa575f80fd5b81516110e1816145f1565b5f826153cf57634e487b7160e01b5f52601260045260245ffd5b500490565b60018060a01b038516815283602082015261ffff83166040820152608060608201525f6112ae6080830184614303565b6040815263ffffffff8351166040820152602083015160608201525f604084015160a0608084015261543960e0840182614303565b90506060850151603f198483030160a08501526154568282614303565b60809690960151151560c08501525050506001600160a01b039190911660209091015290565b5f6040828403121561548c575f80fd5b6154946147ac565b9050815181526020820151602082015292915050565b5f604082840312156154ba575f80fd5b6110e1838361547c565b8082028115828204841417610ef457610ef4614ebf565b6001600160f01b031981358181169160028510156155035780818660020360031b1b83161692505b505092915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b5f60808284031215615566575f80fd5b604051606081018181106001600160401b038211171561558857615588614798565b60405282518152602083015161559d81614ae5565b60208201526155af846040850161547c565b60408201529392505050565b8481526001600160401b0360c01b8460c01b1660208201528260288201525f82516155ed8160488501602087016142e1565b9190910160480195945050505050565b80356020831015610ef4575f19602084900360031b1b1692915050565b6001600160c01b031981358181169160088510156155035760089490940360031b84901b1690921692915050565b6001600160401b0360c01b8560c01b16815263ffffffff60e01b8460e01b16600882015282600c8201525f825161568681602c8501602087016142e1565b91909101602c0195945050505050565b81516001600160401b038111156156af576156af614798565b6156c3816156bd8454614ee6565b84615004565b602080601f8311600181146156f6575f84156156df5750858301515b5f19600386901b1c1916600185901b17855561574d565b5f85815260208120601f198616915b8281101561572457888601518255948401946001909101908401615705565b508582101561574157878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52602160045260245ffd5b5f60208284031215615779575f80fd5b81516110e181614364565b81810381811115610ef457610ef4614ebf565b634e487b7160e01b5f52603160045260245ffd5b828152604060208201525f611dcd6040830184614303565b5f8251614f9f8184602087016142e1565b5f602082840312156157e4575f80fd5b505191905056fe72ab1bc1039b79dc4724ffca13de82c96834302d3c7e0d4252232d4b2dd8f900242e96562e738afaa26e2a4eb34bb6ab09c26cd11226ccf8fbc02da32756d3006607eb842e76408d8b3956685dc6b9da5897a1d9b47edcc993ce266e603fa500a16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100f6192aebe04228448ed4fd2802d59c009f5324cdd6a110c65bd318373b6e1d02f6192aebe04228448ed4fd2802d59c009f5324cdd6a110c65bd318373b6e1d00a2646970667358221220618850618b887b1d51cd2c6ce6ee6ff5483c1f8a888898e3d2e32ebeadcef7a464736f6c634300081600330000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b
Deployed Bytecode
0x608060405260043610610458575f3560e01c8063857749b011610241578063bb0b6a5311610134578063d505accf116100b3578063ef55bec611610078578063ef55bec614610de9578063f016302314610e08578063f2fde38b14610e3c578063fc0c546a1461076c578063ff7bd03d14610e5b575f80fd5b8063d505accf14610d1d578063dd62ed3e14610d3c578063e3ee160e14610d5b578063e583983614610d7a578063e94a010214610d99575f80fd5b8063c7c7f5b3116100f9578063c7c7f5b314610c8c578063ca5eb5e114610cad578063cf09299514610ccc578063d045a0dc14610ceb578063d424388514610cfe575f80fd5b8063bb0b6a5314610bdf578063bc70b35414610c1c578063bd815db014610c3b578063c077998814610c4e578063c4d66de814610c6d575f80fd5b8063a457c2d7116101c0578063b3b20e7411610185578063b3b20e7414610b6e578063b731ea0a14610b8d578063b7b7289914610ba1578063b92d0eff1461076c578063b98bd07014610bc0575f80fd5b8063a457c2d714610acf578063a9059cbb14610aee578063afe1522714610b0d578063b187bd2614610b2c578063b3a5abeb14610b4f575f80fd5b8063963efcaa11610206578063963efcaa14610a2d5780639954baf214610a605780639dc29fac14610a7f5780639f68b96414610a9e5780639fd5a6cf14610ab0575f80fd5b8063857749b01461099157806388b7ab63146109a45780638d1fdf2f146109c35780638da5cb5b146109e257806395d89b41146109ff575f80fd5b806339509351116103595780635ea20216116102d857806372be3d2d1161029d57806372be3d2d146109025780637d25a05e146109165780637ecebe00146109375780638456cb591461095657806384b0196e1461096a575f80fd5b80635ea202161461085d5780636c65fd6a1461087c5780636fc1b31e1461089b57806370a08231146108ba578063715018a6146108ee575f80fd5b806354fd4d501161031e57806354fd4d501461077e5780635535d461146107ab5780635a049a70146107ca5780635a0dfe4d146107e95780635e280f111461082a575f80fd5b806339509351146106ee5780633b6f743b1461070d5780633f4ba83a14610739578063526606c91461074d57806352ae28791461076c575f80fd5b8063156a0d0f116103e55780632acd2000116103aa5780632acd200014610667578063313ce567146106865780633400288b146106a75780633644e515146106c65780633714fffa146106da575f80fd5b8063156a0d0f146105d057806317442b70146105f657806318160ddd146106165780631f5e13341461063457806323b872dd14610648575f80fd5b80630d35b4151161042b5780630d35b415146105035780630e78842c14610531578063111ecdad1461056857806313137d6514610594578063134d4f25146105a9575f80fd5b8063054f7d9c1461045c578063056d62de1461048657806306fdde03146104b3578063095ea7b3146104d4575b5f80fd5b348015610467575f80fd5b50610470610e7a565b60405161047d9190614244565b60405180910390f35b348015610491575f80fd5b506104a56104a03660046142a0565b610ea6565b60405161047d92919061432e565b3480156104be575f80fd5b506104c7610ebf565b60405161047d9190614352565b3480156104df575f80fd5b506104f36104ee366004614378565b610ee1565b604051901515815260200161047d565b34801561050e575f80fd5b5061052261051d3660046143a2565b610efa565b60405161047d939291906143d3565b34801561053c575f80fd5b5061055061054b36600461446a565b610fc5565b6040516001600160401b03909116815260200161047d565b348015610573575f80fd5b5061057c610fcf565b6040516001600160a01b03909116815260200161047d565b6105a76105a23660046144ce565b611003565b005b3480156105b4575f80fd5b506105bd600281565b60405161ffff909116815260200161047d565b3480156105db575f80fd5b506040805162b9270b60e21b8152600160208201520161047d565b348015610601575f80fd5b5060408051600180825260208201520161047d565b348015610621575f80fd5b506067545b60405190815260200161047d565b34801561063f575f80fd5b506105bd600181565b348015610653575f80fd5b506104f3610662366004614566565b6110c3565b348015610672575f80fd5b506105a76106813660046145a4565b6110e8565b348015610691575f80fd5b5060125b60405160ff909116815260200161047d565b3480156106b2575f80fd5b506105a76106c13660046145d7565b6110fc565b3480156106d1575f80fd5b50610626611167565b3480156106e5575f80fd5b506105a7611175565b3480156106f9575f80fd5b506104f3610708366004614378565b611233565b348015610718575f80fd5b5061072c6107273660046145fe565b611254565b60405161047d919061464c565b348015610744575f80fd5b506105a76112b8565b348015610758575f80fd5b506105a76107673660046145a4565b6112ca565b348015610777575f80fd5b503061057c565b348015610789575f80fd5b506040805180820190915260058152640312e312e360dc1b60208201526104c7565b3480156107b6575f80fd5b506104c76107c5366004614674565b6112db565b3480156107d5575f80fd5b506105a76107e43660046146b5565b6113b3565b3480156107f4575f80fd5b506104f36108033660046145d7565b63ffffffff919091165f9081525f805160206157ec83398151915260205260409020541490565b348015610835575f80fd5b5061057c7f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b81565b348015610868575f80fd5b506105a76108773660046145a4565b6113e8565b348015610887575f80fd5b506104f36108963660046145a4565b6113f9565b3480156108a6575f80fd5b506105a76108b53660046145a4565b611412565b3480156108c5575f80fd5b506106266108d43660046145a4565b6001600160a01b03165f9081526065602052604090205490565b3480156108f9575f80fd5b506105a761148e565b34801561090d575f80fd5b5061047061149f565b348015610921575f80fd5b506105506109303660046145d7565b5f92915050565b348015610942575f80fd5b506106266109513660046145a4565b6114b8565b348015610961575f80fd5b506105a76114f6565b348015610975575f80fd5b5061097e611506565b60405161047d9796959493929190614701565b34801561099c575f80fd5b506006610695565b3480156109af575f80fd5b506105a76109be36600461487c565b6115af565b3480156109ce575f80fd5b506105a76109dd3660046145a4565b6116a7565b3480156109ed575f80fd5b506033546001600160a01b031661057c565b348015610a0a575f80fd5b50604080518082019091526006815265199c9e1554d160d21b60208201526104c7565b348015610a38575f80fd5b506106267f000000000000000000000000000000000000000000000000000000e8d4a5100081565b348015610a6b575f80fd5b506105a7610a7a366004614990565b6116ef565b348015610a8a575f80fd5b506105a7610a99366004614378565b611700565b348015610aa9575f80fd5b505f6104f3565b348015610abb575f80fd5b506105a7610aca3660046149c1565b611737565b348015610ada575f80fd5b506104f3610ae9366004614378565b611800565b348015610af9575f80fd5b506104f3610b08366004614378565b611885565b348015610b18575f80fd5b506105a7610b27366004614a31565b611892565b348015610b37575f80fd5b505f8051602061580c8339815191525460ff166104f3565b348015610b5a575f80fd5b50610626610b69366004614af9565b611987565b348015610b79575f80fd5b506105a7610b88366004614990565b611991565b348015610b98575f80fd5b5061057c6119d9565b348015610bac575f80fd5b506105a7610bbb366004614b14565b611a01565b348015610bcb575f80fd5b506105a7610bda366004614ba8565b611ac1565b348015610bea575f80fd5b50610626610bf9366004614be6565b63ffffffff165f9081525f805160206157ec833981519152602052604090205490565b348015610c27575f80fd5b506104c7610c36366004614bff565b611c3d565b6105a7610c49366004614ba8565b611dd5565b348015610c59575f80fd5b50610626610c6836600461446a565b611f61565b348015610c78575f80fd5b506105a7610c873660046145a4565b611f6b565b610c9f610c9a366004614c5b565b612041565b60405161047d929190614cc3565b348015610cb8575f80fd5b506105a7610cc73660046145a4565b612138565b348015610cd7575f80fd5b506105a7610ce636600461487c565b6121b2565b6105a7610cf93660046144ce565b61223f565b348015610d09575f80fd5b506105a7610d183660046145a4565b61226e565b348015610d28575f80fd5b506105a7610d37366004614d14565b6122e2565b348015610d47575f80fd5b50610626610d56366004614d7d565b612312565b348015610d66575f80fd5b506105a7610d75366004614da9565b61233c565b348015610d85575f80fd5b506104f3610d943660046145a4565b612379565b348015610da4575f80fd5b506104f3610db3366004614378565b6001600160a01b03919091165f9081525f8051602061582c83398151915260209081526040808320938352929052205460ff1690565b348015610df4575f80fd5b506105a7610e03366004614da9565b61239f565b348015610e13575f80fd5b50610e27610e22366004614e25565b6123d1565b6040805192835260208301919091520161047d565b348015610e47575f80fd5b506105a7610e563660046145a4565b6123eb565b348015610e66575f80fd5b506104f3610e75366004614e57565b612461565b60605f8051602061588c833981519152610ea05f8051602061586c83398151915261247e565b91505090565b606080610eb3848461248a565b915091505b9250929050565b604080518082019091526008815267119c985e081554d160c21b602082015290565b5f33610eee8185856125cb565b60019150505b92915050565b604080518082019091525f80825260208201526060610f2a60405180604001604052805f81526020015f81525090565b6040805180820182525f8082526001600160401b03602080840182905284518381529081019094529195509182610f83565b604080518082019091525f815260606020820152815260200190600190039081610f5c5790505b5093505f80610fa7604089013560608a0135610fa260208c018c614be6565b6125db565b60408051808201909152918252602082015296989597505050505050565b5f610ef482612616565b5f807f41db8a78b0206aba5c54bcbfc2bda0d84082a84eb88e680379a57b9e9f653c005b546001600160a01b031692915050565b7f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b03163314611053576040516391ac5e4f60e01b81523360048201526024015b60405180910390fd5b6020870180359061106d90611068908a614be6565b612641565b146110ab5761107f6020880188614be6565b60405163309afaf360e21b815263ffffffff90911660048201526020880135602482015260440161104a565b6110ba8787878787878761268a565b50505050505050565b5f336110d08582856127e8565b6110db85858561285a565b60019150505b9392505050565b6110f0612865565b6110f9816128bf565b50565b611104612865565b63ffffffff82165f8181525f805160206157ec833981519152602081815260409283902085905582519384528301849052917f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b91015b60405180910390a1505050565b5f61117061292b565b905090565b5f54600390610100900460ff1615801561119557505f5460ff8083169116105b6111b15760405162461bcd60e51b815260040161104a90614e71565b5f805461ffff191660ff8316176101001790556111f06111cf610ebf565b6040805180820190915260058152640312e312e360dc1b6020820152612934565b5f805461ff001916905560405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b5f33610eee8185856112458383612312565b61124f9190614ed3565b6125cb565b604080518082019091525f80825260208201525f61128260408501356060860135610fa26020880188614be6565b9150505f80611291868461248a565b90925090506112ae6112a66020880188614be6565b83838861293e565b9695505050505050565b6112c0612865565b6112c8612a1c565b565b6112d2612865565b6110f981612a7f565b63ffffffff82165f9081527f8d2bda5d9f6ffb5796910376005392955773acee5548d0fcdb10e7c264ea00006020818152604080842061ffff861685529091529091208054606092919061132e90614ee6565b80601f016020809104026020016040519081016040528092919081815260200182805461135a90614ee6565b80156113a55780601f1061137c576101008083540402835291602001916113a5565b820191905f5260205f20905b81548152906001019060200180831161138857829003601f168201915b505050505091505092915050565b6113e185858484876040516020016113cd93929190614f18565b604051602081830303815290604052611a01565b5050505050565b6113f0612865565b6110f981612aeb565b5f5f8051602061588c8339815191526110e18184612b4a565b61141a612865565b7f41db8a78b0206aba5c54bcbfc2bda0d84082a84eb88e680379a57b9e9f653c0080546001600160a01b0319166001600160a01b03831690811782556040519081527ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d4414197906020015b60405180910390a15050565b611496612865565b6112c85f612b6b565b60605f8051602061588c833981519152610ea08161247e565b6001600160a01b0381165f9081527fb39b43abb0b115e0a59dece28477e279ee5f8e2fd55fbe200557c3ab864a0300602081905260408220546110e1565b6114fe612865565b6112c8612bbc565b5f60608082808083815f8051602061584c833981519152805490915015801561153157506001810154155b6115755760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161104a565b61157d612c23565b611585612ce3565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b6001600160a01b03861633146115e957604051637f54a22160e11b81523360048201526001600160a01b038716602482015260440161104a565b83421161160957604051632ce87eeb60e01b815260040160405180910390fd5b8242106116295760405163a899ef9360e01b815260040160405180910390fd5b6116338783612d21565b611692877fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de85f1b8989898989896040516020016116769796959493929190614f3b565b6040516020818303038152906040528051906020012083612d70565b61169c8783612db4565b6110ba87878761285a565b6116b0336113f9565b1580156116c857506033546001600160a01b03163314155b156116e657604051632afd2d5760e11b815260040160405180910390fd5b6110f981612e19565b6116f7612865565b6110f981612e78565b611708612865565b805f0361172957506001600160a01b0381165f908152606560205260409020545b6117338282612eae565b5050565b814211156117875760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161104a565b6117f5857f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98787876117b88b612feb565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810185905260e001611676565b6113e18585856125cb565b5f338161180d8286612312565b90508381101561186d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161104a565b61187a82868684036125cb565b506001949350505050565b5f33610eee81858561285a565b61189a612865565b8151815181146118bd576040516307d1a55160e31b815260040160405180910390fd5b5f5b81811015611981578281815181106118d9576118d9614f77565b60200260200101515f0361193d5761191e8482815181106118fc576118fc614f77565b60200260200101516001600160a01b03165f9081526065602052604090205490565b83828151811061193057611930614f77565b6020026020010181815250505b61197984828151811061195257611952614f77565b602002602001015184838151811061196c5761196c614f77565b6020026020010151612eae565b6001016118bf565b50505050565b5f610ef482613035565b61199a336113f9565b1580156119b257506033546001600160a01b03163314155b156119d057604051632afd2d5760e11b815260040160405180910390fd5b6110f981613069565b5f807fefb041d771d6daaa55702fff6eb740d63ba559a75d2d1d3e151c78ff2480b600610ff3565b611a0b8383612d21565b604080517f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742960208201526001600160a01b0385169181019190915260608101839052611a5b908490608001611676565b6001600160a01b0383165f8181525f8051602061582c83398151915260209081526040808320868452909152808220805460ff19166001179055518492917f1cdd46ff242716cdaa72d159d339a485b3438398348d68f09d7c8c0a59353d8191a3505050565b611ac9612865565b7f8d2bda5d9f6ffb5796910376005392955773acee5548d0fcdb10e7c264ea00005f5b82811015611c0b57611b2e848483818110611b0957611b09614f77565b9050602002810190611b1b9190614f8b565b611b29906040810190614fa9565b61309f565b838382818110611b4057611b40614f77565b9050602002810190611b529190614f8b565b611b60906040810190614fa9565b835f878786818110611b7457611b74614f77565b9050602002810190611b869190614f8b565b611b94906020810190614be6565b63ffffffff1663ffffffff1681526020019081526020015f205f878786818110611bc057611bc0614f77565b9050602002810190611bd29190614f8b565b611be3906040810190602001614feb565b61ffff16815260208101919091526040015f2091611c02919083615048565b50600101611aec565b507fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b674838360405161115a929190615129565b63ffffffff84165f9081527f8d2bda5d9f6ffb5796910376005392955773acee5548d0fcdb10e7c264ea00006020818152604080842061ffff88168552909152822080546060939190611c8f90614ee6565b80601f0160208091040260200160405190810160405280929190818152602001828054611cbb90614ee6565b8015611d065780601f10611cdd57610100808354040283529160200191611d06565b820191905f5260205f20905b815481529060010190602001808311611ce957829003601f168201915b5050505050905080515f03611d555784848080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250929550611dcd945050505050565b5f849003611d66579150611dcd9050565b60028410611db057611d78858561309f565b80611d868560028189615208565b604051602001611d989392919061522f565b60405160208183030381529060405292505050611dcd565b8484604051639a6d49cd60e01b815260040161104a929190615255565b949350505050565b5f5b81811015611ee45736838383818110611df257611df2614f77565b9050602002810190611e049190615268565b9050611e42611e166020830183614be6565b602083013563ffffffff919091165f9081525f805160206157ec83398151915260205260409020541490565b611e4c5750611edc565b3063d045a0dc60c08301358360a0810135611e6b610100830183614fa9565b611e7c610100890160e08a016145a4565b611e8a6101208a018a614fa9565b6040518963ffffffff1660e01b8152600401611eac979695949392919061527d565b5f604051808303818588803b158015611ec3575f80fd5b505af1158015611ed5573d5f803e3d5ffd5b5050505050505b600101611dd7565b50336001600160a01b0316638e9e70996040518163ffffffff1660e01b81526004015f60405180830381865afa158015611f20573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052611f479190810190615302565b604051638351eea760e01b815260040161104a9190614352565b5f610ef4826130e0565b5f54600390610100900460ff16158015611f8b57505f5460ff8083169116105b611fa75760405162461bcd60e51b815260040161104a90614e71565b5f805461ffff191660ff831617610100179055611fe8611fc5610ebf565b604080518082019091526006815265199c9e1554d160d21b602082015284613116565b611ff36111cf610ebf565b611ffb61314f565b61200482612b6b565b5f805461ff001916905560405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001611482565b612049614201565b604080518082019091525f80825260208201525f8061207d6040880135606089013561207860208b018b614be6565b61317d565b915091505f8061208d898461248a565b90925090506120b96120a260208b018b614be6565b83836120b3368d90038d018d61536a565b8b613199565b60408051808201909152858152602080820186905282519298509096503391907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a90612107908d018d614be6565b6040805163ffffffff909216825260208201899052810187905260600160405180910390a350505050935093915050565b612140612865565b60405163ca5eb5e160e01b81526001600160a01b0382811660048301527f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b169063ca5eb5e1906024015f604051808303815f87803b1580156121a0575f80fd5b505af11580156113e1573d5f803e3d5ffd5b8342116121d257604051632ce87eeb60e01b815260040160405180910390fd5b8242106121f25760405163a899ef9360e01b815260040160405180910390fd5b6121fc8783612d21565b611692877f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a22675f1b8989898989896040516020016116769796959493929190614f3b565b33301461225f5760405163029a949d60e31b815260040160405180910390fd5b6110ba878787878787876110ab565b612276612865565b7fefb041d771d6daaa55702fff6eb740d63ba559a75d2d1d3e151c78ff2480b60080546001600160a01b0319166001600160a01b03831690811782556040519081527fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c242776090602001611482565b6110ba878787878686896040516020016122fe93929190614f18565b604051602081830303815290604052611737565b6001600160a01b039182165f90815260666020908152604080832093909416825291909152205490565b61236e89898989898988888b60405160200161235a93929190614f18565b6040516020818303038152906040526121b2565b505050505050505050565b5f5f8051602061588c8339815191526110e15f8051602061586c83398151915284612b4a565b61236e89898989898988888b6040516020016123bd93929190614f18565b6040516020818303038152906040526115af565b5f806123de8585856125db565b915091505b935093915050565b6123f3612865565b6001600160a01b0381166124585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161104a565b6110f981612b6b565b5f6020820180359061247790610bf99085614be6565b1492915050565b60605f6110e18361329f565b6060805f6124e5856020013561249f86612616565b6124ac60a0890189614fa9565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506132f892505050565b90935090505f816124f75760016124fa565b60025b905061251a61250c6020880188614be6565b82610c3660808a018a614fa9565b7f41db8a78b0206aba5c54bcbfc2bda0d84082a84eb88e680379a57b9e9f653c008054919450906001600160a01b0316156125c157805460405163043a78eb60e01b81526001600160a01b039091169063043a78eb90612580908890889060040161432e565b602060405180830381865afa15801561259b573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125bf919061539a565b505b5050509250929050565b6125d6838383613372565b505050565b5f806125e6856130e0565b9150819050838110156123e3576040516371c4efed60e01b8152600481018290526024810185905260440161104a565b5f610ef47f000000000000000000000000000000000000000000000000000000e8d4a51000836153b5565b63ffffffff81165f9081525f805160206157ec83398151915260208190526040822054806110e15760405163f6ff4fb760e01b815263ffffffff8516600482015260240161104a565b5f61269b6126988787613495565b90565b90505f6126c6826126b46126af8a8a6134ac565b613035565b6126c160208d018d614be6565b6134ce565b90506028861115612786575f6127026126e560608c0160408d01614af9565b6126f260208d018d614be6565b846126fd8c8c6134e1565b61352b565b604051633e5ac80960e11b81529091506001600160a01b037f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b1690637cb59012906127579086908d905f9087906004016153d4565b5f604051808303815f87803b15801561276e575f80fd5b505af1158015612780573d5f803e3d5ffd5b50505050505b6001600160a01b038216887fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c6127bf60208d018d614be6565b6040805163ffffffff9092168252602082018690520160405180910390a3505050505050505050565b5f6127f38484612312565b90505f198114611981578181101561284d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161104a565b61198184848484036125cb565b6125d683838361355d565b6033546001600160a01b031633146112c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161104a565b5f8051602061588c8339815191526128d78183613711565b6128f457604051632afd2d5760e11b815260040160405180910390fd5b6040516001600160a01b038316907f9897b394a6b591cfc037421a7ded37d10c937d559efc566379996935ca7e8cb3905f90a25050565b5f611170613725565b6117338282613798565b604080518082019091525f80825260208201527f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b031663ddc28c586040518060a001604052808863ffffffff1681526020016129a089612641565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b81526004016129d5929190615404565b6040805180830381865afa1580156129ef573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a1391906154aa565b95945050505050565b5f8051602061580c833981519152805460ff16612a4c57604051636cd6020160e01b815260040160405180910390fd5b805460ff191681556040517fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d16933905f90a150565b5f8051602061588c833981519152612a9781836137ef565b612ab457604051631c0bb04560e31b815260040160405180910390fd5b6040516001600160a01b038316907f8be40cc857dac82fa5df8b4151dce647ff88a95dcbc51a85bf863880ab67c3d2905f90a25050565b5f8051602061588c833981519152612b105f8051602061586c83398151915283613711565b506040516001600160a01b03831681527f74bb8c2778db9c683c274e7bfdcb56dba4f1c737411c8182363097eec281eea490602001611482565b6001600160a01b0381165f90815260018301602052604081205415156110e1565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f8051602061580c833981519152805460ff1615612bed57604051631309a56360e01b815260040160405180910390fd5b805460ff191660011781556040517f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e752905f90a150565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f8051602061584c83398151915291612c6190614ee6565b80601f0160208091040260200160405190810160405280929190818152602001828054612c8d90614ee6565b8015612cd85780601f10612caf57610100808354040283529160200191612cd8565b820191905f5260205f20905b815481529060010190602001808311612cbb57829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f8051602061584c83398151915291612c6190614ee6565b5f8051602061582c8339815191526001600160a01b0383165f90815260209182526040808220848352909252205460ff16156117335760405163076f007560e21b815260040160405180910390fd5b612d8383612d7d84613803565b8361382f565b1580612d9657506001600160a01b038316155b156125d657604051638baa579f60e01b815260040160405180910390fd5b6001600160a01b0382165f8181525f8051602061582c83398151915260209081526040808320858452909152808220805460ff19166001179055518392917f98de503528ee59b575ef0c0a2576a82497bfc029a5685b209e9ec333479b10a591a35050565b5f8051602061588c833981519152612e3e5f8051602061586c833981519152836137ef565b506040516001600160a01b03831681527f4f2a367e694e71282f29ab5eaa04c4c0be45ac5bf2ca74fb67068b98bdc2887d90602001611482565b80515f5b818110156125d657612ea6838281518110612e9957612e99614f77565b6020026020010151612aeb565b600101612e7c565b6001600160a01b038216612f0e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161104a565b612f19825f83613883565b6001600160a01b0382165f9081526065602052604090205481811015612f8c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161104a565b6001600160a01b0383165f8181526065602090815260408083208686039055606780548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6001600160a01b0381165f9081527fb39b43abb0b115e0a59dece28477e279ee5f8e2fd55fbe200557c3ab864a030060208190526040909120805460018101909155905b50919050565b5f610ef47f000000000000000000000000000000000000000000000000000000e8d4a510006001600160401b0384166154c4565b80515f5b818110156125d65761309783828151811061308a5761308a614f77565b6020026020010151612e19565b60010161306d565b5f6130ad6002828486615208565b6130b6916154db565b60f01c9050600381146125d6578282604051639a6d49cd60e01b815260040161104a929190615255565b5f7f000000000000000000000000000000000000000000000000000000e8d4a5100061310c81846153b5565b610ef491906154c4565b5f54610100900460ff1661313c5760405162461bcd60e51b815260040161104a9061550b565b61314683836138f2565b6125d681613922565b5f54610100900460ff166131755760405162461bcd60e51b815260040161104a9061550b565b6112c8613951565b5f8061318a8585856125db565b90925090506123e33383612eae565b6131a1614201565b5f6131ae845f0151613980565b6020850151909150156131c8576131c884602001516139a7565b7f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b0316632637a450826040518060a001604052808b63ffffffff1681526020016132188c612641565b81526020018a81526020018981526020015f8960200151111515815250866040518463ffffffff1660e01b8152600401613253929190615404565b60806040518083038185885af115801561326f573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906132949190615556565b979650505050505050565b6060815f018054806020026020016040519081016040528092919081815260200182805480156132ec57602002820191905f5260205f20905b8154815260200190600101908083116132d8575b50505050509050919050565b805160609015158061334157848460405160200161332d92919091825260c01b6001600160c01b031916602082015260280190565b604051602081830303815290604052613368565b8484338560405160200161335894939291906155bb565b6040516020818303038152906040525b9150935093915050565b6001600160a01b0383166133d45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161104a565b6001600160a01b0382166134355760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161104a565b6001600160a01b038381165f8181526066602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f6134a36020828486615208565b6110e1916155fd565b5f6134bb602860208486615208565b6134c49161561a565b60c01c9392505050565b5f6134d98484613a86565b509092915050565b60606134f08260288186615208565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250929695505050505050565b6060848484846040516020016135449493929190615648565b6040516020818303038152906040529050949350505050565b6001600160a01b0383166135c15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161104a565b6001600160a01b0382166136235760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161104a565b61362e838383613883565b6001600160a01b0383165f90815260656020526040902054818110156136a55760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161104a565b6001600160a01b038085165f8181526065602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906137049086815260200190565b60405180910390a3611981565b5f6110e1836001600160a01b038416613b50565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61374f613c33565b613757613c9b565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f8051602061584c8339815191527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026137d18482615696565b50600381016137e08382615696565b505f8082556001909101555050565b5f6110e1836001600160a01b038416613cdd565b5f610ef461380f61292b565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f61383c8585613d29565b90925090505f81600481111561385457613854615755565b1480156138725750856001600160a01b0316826001600160a01b0316145b806112ae57506112ae868686613d68565b6033546001600160a01b031633146125d6575f8051602061580c8339815191525460ff16806138b657506138b682612379565b806138c557506138c583612379565b806138d457506138d433612379565b156125d6576040516340f95ec760e11b815260040160405180910390fd5b5f54610100900460ff166139185760405162461bcd60e51b815260040161104a9061550b565b6117338282613e4f565b5f54610100900460ff166139485760405162461bcd60e51b815260040161104a9061550b565b6110f981613e8e565b5f54610100900460ff166139775760405162461bcd60e51b815260040161104a9061550b565b6112c833612b6b565b5f8134146139a3576040516304fb820960e51b815234600482015260240161104a565b5090565b5f7f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b031663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa158015613a04573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613a289190615769565b90506001600160a01b038116613a51576040516329b99a9560e11b815260040160405180910390fd5b6117336001600160a01b038216337f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b85613ebd565b6001600160a01b038216613adc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161104a565b613ae75f8383613883565b8060675f828254613af89190614ed3565b90915550506001600160a01b0382165f818152606560209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b5f8181526001830160205260408120548015613c2a575f613b72600183615784565b85549091505f90613b8590600190615784565b9050818114613be4575f865f018281548110613ba357613ba3614f77565b905f5260205f200154905080875f018481548110613bc357613bc3614f77565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080613bf557613bf5615797565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050610ef4565b5f915050610ef4565b5f5f8051602061584c83398151915281613c4b612c23565b805190915015613c6357805160209091012092915050565b81548015613c72579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f8051602061584c83398151915281613cb3612ce3565b805190915015613ccb57805160209091012092915050565b60018201548015613c72579392505050565b5f818152600183016020526040812054613d2257508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155610ef4565b505f610ef4565b5f808251604103613d5d576020830151604084015160608501515f1a613d5187828585613f17565b94509450505050610eb8565b505f90506002610eb8565b5f805f856001600160a01b0316631626ba7e60e01b8686604051602401613d909291906157ab565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051613dce91906157c3565b5f60405180830381855afa9150503d805f8114613e06576040519150601f19603f3d011682016040523d82523d5f602084013e613e0b565b606091505b5091509150818015613e1f57506020815110155b80156112ae57508051630b135d3f60e11b90613e4490830160209081019084016157d4565b149695505050505050565b5f54610100900460ff16613e755760405162461bcd60e51b815260040161104a9061550b565b6068613e818382615696565b5060696125d68282615696565b5f54610100900460ff16613eb45760405162461bcd60e51b815260040161104a9061550b565b6110f981613fd4565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611981908590614021565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613f4c57505f90506003613fcb565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613f9d573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116613fc5575f60019250925050613fcb565b91505f90505b94509492505050565b5f54610100900460ff16613ffa5760405162461bcd60e51b815260040161104a9061550b565b6001600160a01b03811661214057604051632d618d8160e21b815260040160405180910390fd5b5f614075826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166140f49092919063ffffffff16565b905080515f1480614095575080806020019051810190614095919061539a565b6125d65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161104a565b6060611dcd84845f85855f80866001600160a01b0316858760405161411991906157c3565b5f6040518083038185875af1925050503d805f8114614153576040519150601f19603f3d011682016040523d82523d5f602084013e614158565b606091505b509150915061329487838387606083156141d25782515f036141cb576001600160a01b0385163b6141cb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161104a565b5081611dcd565b611dcd83838151156141e75781518083602001fd5b8060405162461bcd60e51b815260040161104a9190614352565b60405180606001604052805f80191681526020015f6001600160401b0316815260200161423f60405180604001604052805f81526020015f81525090565b905290565b602080825282518282018190525f9190848201906040850190845b818110156142845783516001600160a01b03168352928401929184019160010161425f565b50909695505050505050565b5f60e0828403121561302f575f80fd5b5f80604083850312156142b1575f80fd5b82356001600160401b038111156142c6575f80fd5b6142d285828601614290565b95602094909401359450505050565b5f5b838110156142fb5781810151838201526020016142e3565b50505f910152565b5f815180845261431a8160208601602086016142e1565b601f01601f19169290920160200192915050565b604081525f6143406040830185614303565b8281036020840152612a138185614303565b602081525f6110e16020830184614303565b6001600160a01b03811681146110f9575f80fd5b5f8060408385031215614389575f80fd5b823561439481614364565b946020939093013593505050565b5f602082840312156143b2575f80fd5b81356001600160401b038111156143c7575f80fd5b611dcd84828501614290565b83518152602080850151908201525f60a08201604060a0604085015281865180845260c08601915060c08160051b870101935060208089015f5b8381101561444c5788870360bf1901855281518051885283015183880187905261443987890182614303565b975050938201939082019060010161440d565b50508751606088015250505060208501516080850152509050611dcd565b5f6020828403121561447a575f80fd5b5035919050565b5f6060828403121561302f575f80fd5b5f8083601f8401126144a1575f80fd5b5081356001600160401b038111156144b7575f80fd5b602083019150836020828501011115610eb8575f80fd5b5f805f805f805f60e0888a0312156144e4575f80fd5b6144ee8989614481565b96506060880135955060808801356001600160401b0380821115614510575f80fd5b61451c8b838c01614491565b909750955060a08a0135915061453182614364565b90935060c08901359080821115614546575f80fd5b506145538a828b01614491565b989b979a50959850939692959293505050565b5f805f60608486031215614578575f80fd5b833561458381614364565b9250602084013561459381614364565b929592945050506040919091013590565b5f602082840312156145b4575f80fd5b81356110e181614364565b803563ffffffff811681146145d2575f80fd5b919050565b5f80604083850312156145e8575f80fd5b614394836145bf565b80151581146110f9575f80fd5b5f806040838503121561460f575f80fd5b82356001600160401b03811115614624575f80fd5b61463085828601614290565b9250506020830135614641816145f1565b809150509250929050565b815181526020808301519082015260408101610ef4565b803561ffff811681146145d2575f80fd5b5f8060408385031215614685575f80fd5b61468e836145bf565b915061469c60208401614663565b90509250929050565b803560ff811681146145d2575f80fd5b5f805f805f60a086880312156146c9575f80fd5b85356146d481614364565b9450602086013593506146e9604087016146a5565b94979396509394606081013594506080013592915050565b60ff60f81b881681525f602060e0602084015261472160e084018a614303565b8381036040850152614733818a614303565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825260208088019350909101905f5b818110156147865783518352928401929184019160010161476a565b50909c9b505050505050505050505050565b634e487b7160e01b5f52604160045260245ffd5b604080519081016001600160401b03811182821017156147ce576147ce614798565b60405290565b604051601f8201601f191681016001600160401b03811182821017156147fc576147fc614798565b604052919050565b5f6001600160401b0382111561481c5761481c614798565b50601f01601f191660200190565b5f82601f830112614839575f80fd5b813561484c61484782614804565b6147d4565b818152846020838601011115614860575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f805f805f60e0888a031215614892575f80fd5b873561489d81614364565b965060208801356148ad81614364565b955060408801359450606088013593506080880135925060a0880135915060c08801356001600160401b038111156148e3575f80fd5b6148ef8a828b0161482a565b91505092959891949750929550565b5f6001600160401b0382111561491657614916614798565b5060051b60200190565b5f82601f83011261492f575f80fd5b8135602061493f614847836148fe565b8083825260208201915060208460051b870101935086841115614960575f80fd5b602086015b8481101561498557803561497881614364565b8352918301918301614965565b509695505050505050565b5f602082840312156149a0575f80fd5b81356001600160401b038111156149b5575f80fd5b611dcd84828501614920565b5f805f805f60a086880312156149d5575f80fd5b85356149e081614364565b945060208601356149f081614364565b9350604086013592506060860135915060808601356001600160401b03811115614a18575f80fd5b614a248882890161482a565b9150509295509295909350565b5f8060408385031215614a42575f80fd5b82356001600160401b0380821115614a58575f80fd5b614a6486838701614920565b9350602091508185013581811115614a7a575f80fd5b85019050601f81018613614a8c575f80fd5b8035614a9a614847826148fe565b81815260059190911b82018301908381019088831115614ab8575f80fd5b928401925b82841015614ad657833582529284019290840190614abd565b80955050505050509250929050565b6001600160401b03811681146110f9575f80fd5b5f60208284031215614b09575f80fd5b81356110e181614ae5565b5f805f60608486031215614b26575f80fd5b8335614b3181614364565b92506020840135915060408401356001600160401b03811115614b52575f80fd5b614b5e8682870161482a565b9150509250925092565b5f8083601f840112614b78575f80fd5b5081356001600160401b03811115614b8e575f80fd5b6020830191508360208260051b8501011115610eb8575f80fd5b5f8060208385031215614bb9575f80fd5b82356001600160401b03811115614bce575f80fd5b614bda85828601614b68565b90969095509350505050565b5f60208284031215614bf6575f80fd5b6110e1826145bf565b5f805f8060608587031215614c12575f80fd5b614c1b856145bf565b9350614c2960208601614663565b925060408501356001600160401b03811115614c43575f80fd5b614c4f87828801614491565b95989497509550505050565b5f805f8385036080811215614c6e575f80fd5b84356001600160401b03811115614c83575f80fd5b614c8f87828801614290565b9450506040601f1982011215614ca3575f80fd5b506020840191506060840135614cb881614364565b809150509250925092565b5f60c082019050835182526001600160401b0360208501511660208301526040840151614cfd604084018280518252602090810151910152565b5082516080830152602083015160a08301526110e1565b5f805f805f805f60e0888a031215614d2a575f80fd5b8735614d3581614364565b96506020880135614d4581614364565b95506040880135945060608801359350614d61608089016146a5565b925060a0880135915060c0880135905092959891949750929550565b5f8060408385031215614d8e575f80fd5b8235614d9981614364565b9150602083013561464181614364565b5f805f805f805f805f6101208a8c031215614dc2575f80fd5b8935614dcd81614364565b985060208a0135614ddd81614364565b975060408a0135965060608a0135955060808a0135945060a08a01359350614e0760c08b016146a5565b925060e08a013591506101008a013590509295985092959850929598565b5f805f60608486031215614e37575f80fd5b8335925060208401359150614e4e604085016145bf565b90509250925092565b5f60608284031215614e67575f80fd5b6110e18383614481565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610ef457610ef4614ebf565b600181811c90821680614efa57607f821691505b60208210810361302f57634e487b7160e01b5f52602260045260245ffd5b928352602083019190915260f81b6001600160f81b031916604082015260410190565b9687526001600160a01b0395861660208801529390941660408601526060850191909152608084015260a083019190915260c082015260e00190565b634e487b7160e01b5f52603260045260245ffd5b5f8235605e19833603018112614f9f575f80fd5b9190910192915050565b5f808335601e19843603018112614fbe575f80fd5b8301803591506001600160401b03821115614fd7575f80fd5b602001915036819003821315610eb8575f80fd5b5f60208284031215614ffb575f80fd5b6110e182614663565b601f8211156125d657805f5260205f20601f840160051c810160208510156150295750805b601f840160051c820191505b818110156113e1575f8155600101615035565b6001600160401b0383111561505f5761505f614798565b6150738361506d8354614ee6565b83615004565b5f601f8411600181146150a4575f851561508d5750838201355b5f19600387901b1c1916600186901b1783556113e1565b5f83815260208120601f198716915b828110156150d357868501358255602094850194600190920191016150b3565b50868210156150ef575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b60208082528181018390525f906040808401600586901b8501820187855b888110156151fa57878303603f190184528135368b9003605e1901811261516c575f80fd5b8a01606063ffffffff61517e836145bf565b16855261ffff61518f898401614663565b168886015286820135601e198336030181126151a9575f80fd5b9091018781019190356001600160401b038111156151c5575f80fd5b8036038313156151d3575f80fd5b81888701526151e58287018285615101565b96890196955050509186019150600101615147565b509098975050505050505050565b5f8085851115615216575f80fd5b83861115615222575f80fd5b5050820193919092039150565b5f84516152408184602089016142e1565b8201838582375f930192835250909392505050565b602081525f611dcd602083018486615101565b5f823561013e19833603018112614f9f575f80fd5b63ffffffff61528b896145bf565b168152602088013560208201525f60408901356152a781614ae5565b6001600160401b03811660408401525087606083015260e060808301526152d260e083018789615101565b6001600160a01b03861660a084015282810360c08401526152f4818587615101565b9a9950505050505050505050565b5f60208284031215615312575f80fd5b81516001600160401b03811115615327575f80fd5b8201601f81018413615337575f80fd5b805161534561484782614804565b818152856020838501011115615359575f80fd5b612a138260208301602086016142e1565b5f6040828403121561537a575f80fd5b6153826147ac565b82358152602083013560208201528091505092915050565b5f602082840312156153aa575f80fd5b81516110e1816145f1565b5f826153cf57634e487b7160e01b5f52601260045260245ffd5b500490565b60018060a01b038516815283602082015261ffff83166040820152608060608201525f6112ae6080830184614303565b6040815263ffffffff8351166040820152602083015160608201525f604084015160a0608084015261543960e0840182614303565b90506060850151603f198483030160a08501526154568282614303565b60809690960151151560c08501525050506001600160a01b039190911660209091015290565b5f6040828403121561548c575f80fd5b6154946147ac565b9050815181526020820151602082015292915050565b5f604082840312156154ba575f80fd5b6110e1838361547c565b8082028115828204841417610ef457610ef4614ebf565b6001600160f01b031981358181169160028510156155035780818660020360031b1b83161692505b505092915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b5f60808284031215615566575f80fd5b604051606081018181106001600160401b038211171561558857615588614798565b60405282518152602083015161559d81614ae5565b60208201526155af846040850161547c565b60408201529392505050565b8481526001600160401b0360c01b8460c01b1660208201528260288201525f82516155ed8160488501602087016142e1565b9190910160480195945050505050565b80356020831015610ef4575f19602084900360031b1b1692915050565b6001600160c01b031981358181169160088510156155035760089490940360031b84901b1690921692915050565b6001600160401b0360c01b8560c01b16815263ffffffff60e01b8460e01b16600882015282600c8201525f825161568681602c8501602087016142e1565b91909101602c0195945050505050565b81516001600160401b038111156156af576156af614798565b6156c3816156bd8454614ee6565b84615004565b602080601f8311600181146156f6575f84156156df5750858301515b5f19600386901b1c1916600185901b17855561574d565b5f85815260208120601f198616915b8281101561572457888601518255948401946001909101908401615705565b508582101561574157878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52602160045260245ffd5b5f60208284031215615779575f80fd5b81516110e181614364565b81810381811115610ef457610ef4614ebf565b634e487b7160e01b5f52603160045260245ffd5b828152604060208201525f611dcd6040830184614303565b5f8251614f9f8184602087016142e1565b5f602082840312156157e4575f80fd5b505191905056fe72ab1bc1039b79dc4724ffca13de82c96834302d3c7e0d4252232d4b2dd8f900242e96562e738afaa26e2a4eb34bb6ab09c26cd11226ccf8fbc02da32756d3006607eb842e76408d8b3956685dc6b9da5897a1d9b47edcc993ce266e603fa500a16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100f6192aebe04228448ed4fd2802d59c009f5324cdd6a110c65bd318373b6e1d02f6192aebe04228448ed4fd2802d59c009f5324cdd6a110c65bd318373b6e1d00a2646970667358221220618850618b887b1d51cd2c6ce6ee6ff5483c1f8a888898e3d2e32ebeadcef7a464736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b
-----Decoded View---------------
Arg [0] : _lzEndpoint (address): 0x6F475642a6e85809B1c36Fa62763669b1b48DD5B
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b
Deployed Bytecode Sourcemap
259967:6605:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98147:174;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;265573:238;;;;;;;;;;-1:-1:-1;265573:238:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;260379:97::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;159869:201::-;;;;;;;;;;-1:-1:-1;159869:201:0;;;;;:::i;:::-;;:::i;:::-;;;3031:14:1;;3024:22;3006:41;;2994:2;2979:18;159869:201:0;2866:187:1;241164:1283:0;;;;;;;;;;-1:-1:-1;241164:1283:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;265040:115::-;;;;;;;;;;-1:-1:-1;265040:115:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;5271:31:1;;;5253:50;;5241:2;5226:18;265040:115:0;5109:200:1;239406:152:0;;;;;;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;5478:32:1;;;5460:51;;5448:2;5433:18;239406:152:0;5314:203:1;211223:723:0;;;;;;:::i;:::-;;:::i;:::-;;238080:40;;;;;;;;;;;;238119:1;238080:40;;;;;7260:6:1;7248:19;;;7230:38;;7218:2;7203:18;238080:40:0;7086:188:1;257332:142:0;;;;;;;;;;-1:-1:-1;257332:142:0;;;-1:-1:-1;;;7449:52:1;;257464:1:0;7532:2:1;7517:18;;7510:59;7422:18;257332:142:0;7279:296:1;235798:265:0;;;;;;;;;;-1:-1:-1;235798:265:0;;;216059:1;7787:34:1;;;7852:2;7837:18;;7830:43;7723:18;235798:265:0;7580:299:1;158638:108:0;;;;;;;;;;-1:-1:-1;158726:12:0;;158638:108;;;8030:25:1;;;8018:2;8003:18;158638:108:0;7884:177:1;238042:31:0;;;;;;;;;;;;238072:1;238042:31;;160650:261;;;;;;;;;;-1:-1:-1;160650:261:0;;;;;:::i;:::-;;:::i;261674:101::-;;;;;;;;;;-1:-1:-1;261674:101:0;;;;;:::i;:::-;;:::i;158480:93::-;;;;;;;;;;-1:-1:-1;158563:2:0;158480:93;;;8951:4:1;8939:17;;;8921:36;;8909:2;8894:18;158480:93:0;8779:184:1;186722:206:0;;;;;;;;;;-1:-1:-1;186722:206:0;;;;;:::i;:::-;;:::i;214762:106::-;;;;;;;;;;;;;:::i;261105:103::-;;;;;;;;;;;;;:::i;161320:238::-;;;;;;;;;;-1:-1:-1;161320:238:0;;;;;:::i;:::-;;:::i;242910:787::-;;;;;;;;;;-1:-1:-1;242910:787:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;264402:67::-;;;;;;;;;;;;;:::i;261390:95::-;;;;;;;;;;-1:-1:-1;261390:95:0;;;;;:::i;:::-;;:::i;229427:::-;;;;;;;;;;-1:-1:-1;229509:4:0;229427:95;;260192:88;;;;;;;;;;-1:-1:-1;260258:14:0;;;;;;;;;;;;-1:-1:-1;;;260258:14:0;;;;260192:88;;172524:225;;;;;;;;;;-1:-1:-1;172524:225:0;;;;;:::i;:::-;;:::i;201727:222::-;;;;;;;;;;-1:-1:-1;201727:222:0;;;;;:::i;:::-;;:::i;251266:134::-;;;;;;;;;;-1:-1:-1;251266:134:0;;;;;:::i;:::-;186166:13;;;;;251348:4;186166:13;;;-1:-1:-1;;;;;;;;;;;186166:13:0;;;;;;251372:20;;251266:134;184682:46;;;;;;;;;;;;;;;262209:83;;;;;;;;;;-1:-1:-1;262209:83:0;;;;;:::i;:::-;;:::i;97836:188::-;;;;;;;;;;-1:-1:-1;97836:188:0;;;;;:::i;:::-;;:::i;240623:226::-;;;;;;;;;;-1:-1:-1;240623:226:0;;;;;:::i;:::-;;:::i;158809:127::-;;;;;;;;;;-1:-1:-1;158809:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;158910:18:0;158883:7;158910:18;;;:9;:18;;;;;;;158809:127;135607:103;;;;;;;;;;;;;:::i;98447:178::-;;;;;;;;;;;;;:::i;210345:130::-;;;;;;;;;;-1:-1:-1;210345:130:0;;;;;:::i;:::-;210434:12;210345:130;;;;;214566:188;;;;;;;;;;-1:-1:-1;214566:188:0;;;;;:::i;:::-;;:::i;264246:63::-;;;;;;;;;;;;;:::i;151487:931::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:::i;240177:89::-;;;;;;;;;;-1:-1:-1;240257:1:0;240177:89;;200185:1105;;;;;;;;;;-1:-1:-1;200185:1105:0;;;;;:::i;:::-;;:::i;262799:160::-;;;;;;;;;;-1:-1:-1;262799:160:0;;;;;:::i;:::-;;:::i;134966:87::-;;;;;;;;;;-1:-1:-1;135039:6:0;;-1:-1:-1;;;;;135039:6:0;134966:87;;260571:97;;;;;;;;;;-1:-1:-1;260645:15:0;;;;;;;;;;;;-1:-1:-1;;;260645:15:0;;;;260571:97;;237731:46;;;;;;;;;;;;;;;261948:102;;;;;;;;;;-1:-1:-1;261948:102:0;;;;;:::i;:::-;;:::i;263993:162::-;;;;;;;;;;-1:-1:-1;263993:162:0;;;;;:::i;:::-;;:::i;258105:96::-;;;;;;;;;;-1:-1:-1;258164:4:0;258105:96;;214022:536;;;;;;;;;;-1:-1:-1;214022:536:0;;;;;:::i;:::-;;:::i;162061:436::-;;;;;;;;;;-1:-1:-1;162061:436:0;;;;;:::i;:::-;;:::i;159142:193::-;;;;;;;;;;-1:-1:-1;159142:193:0;;;;;:::i;:::-;;:::i;263308:382::-;;;;;;;;;;-1:-1:-1;263308:382:0;;;;;:::i;:::-;;:::i;90816:145::-;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;90943:10:0;;;90816:145;;264917:115;;;;;;;;;;-1:-1:-1;264917:115:0;;;;;:::i;:::-;;:::i;262467:179::-;;;;;;;;;;-1:-1:-1;262467:179:0;;;;;:::i;:::-;;:::i;228943:183::-;;;;;;;;;;;;;:::i;202327:564::-;;;;;;;;;;-1:-1:-1;202327:564:0;;;;;:::i;:::-;;:::i;173520:609::-;;;;;;;;;;-1:-1:-1;173520:609:0;;;;;:::i;:::-;;:::i;186021:166::-;;;;;;;;;;-1:-1:-1;186021:166:0;;;;;:::i;:::-;186166:13;;186079:7;186166:13;;;-1:-1:-1;;;;;;;;;;;186166:13:0;;;;;;;186021:166;174902:1081;;;;;;;;;;-1:-1:-1;174902:1081:0;;;;;:::i;:::-;;:::i;230359:1358::-;;;;;;:::i;:::-;;:::i;265163:126::-;;;;;;;;;;-1:-1:-1;265163:126:0;;;;;:::i;:::-;;:::i;260766:243::-;;;;;;;;;;-1:-1:-1;260766:243:0;;;;;:::i;:::-;;:::i;244402:1339::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;187843:107::-;;;;;;;;;;-1:-1:-1;187843:107:0;;;;;:::i;:::-;;:::i;196949:1020::-;;;;;;;;;;-1:-1:-1;196949:1020:0;;;;;:::i;:::-;;:::i;232379:419::-;;;;;;:::i;:::-;;:::i;229660:230::-;;;;;;;;;;-1:-1:-1;229660:230:0;;;;;:::i;:::-;;:::i;213608:406::-;;;;;;;;;;-1:-1:-1;213608:406:0;;;;;:::i;:::-;;:::i;159398:151::-;;;;;;;;;;-1:-1:-1;159398:151:0;;;;;:::i;:::-;;:::i;195753:590::-;;;;;;;;;;-1:-1:-1;195753:590:0;;;;;:::i;:::-;;:::i;97463:186::-;;;;;;;;;;-1:-1:-1;97463:186:0;;;;;:::i;:::-;;:::i;204713:208::-;;;;;;;;;;-1:-1:-1;204713:208:0;;;;;:::i;:::-;-1:-1:-1;;;;;204848:58:0;;;;204824:4;204848:58;;;-1:-1:-1;;;;;;;;;;;204848:58:0;;;;;;;;:65;;;;;;;;;;;204713:208;198806:588;;;;;;;;;;-1:-1:-1;198806:588:0;;;;;:::i;:::-;;:::i;265297:268::-;;;;;;;;;;-1:-1:-1;265297:268:0;;;;;:::i;:::-;;:::i;:::-;;;;25846:25:1;;;25902:2;25887:18;;25880:34;;;;25819:18;265297:268:0;25672:248:1;135865:201:0;;;;;;;;;;-1:-1:-1;135865:201:0;;;;;:::i;:::-;;:::i;209594:151::-;;;;;;;;;;-1:-1:-1;209594:151:0;;;;;:::i;:::-;;:::i;98147:174::-;98196:16;-1:-1:-1;;;;;;;;;;;98296:17:0;-1:-1:-1;;;;;;;;;;;98296:15:0;:17::i;:::-;98289:24;;;98147:174;:::o;265573:238::-;265699:20;265721;265761:42;265781:10;265793:9;265761:19;:42::i;:::-;265754:49;;;;265573:238;;;;;;:::o;260379:97::-;260451:17;;;;;;;;;;;;-1:-1:-1;;;260451:17:0;;;;;260379:97::o;159869:201::-;159952:4;107899:10;160008:32;107899:10;160024:7;160033:6;160008:8;:32::i;:::-;160058:4;160051:11;;;159869:201;;;;;:::o;241164:1283::-;-1:-1:-1;;;;;;;;;;;;;;;;;241322:35:0;241359:28;-1:-1:-1;;;;;;;;;;;;;;;;;;;241359:28:0;241581:34;;;;;;;;-1:-1:-1;241581:34:0;;;-1:-1:-1;;;;;241581:34:0;;;;;;;241735:21;;;;;;;;;;;241581:34;;-1:-1:-1;;;241735:21:0;;;-1:-1:-1;;;;;;;;;;;;;;;;;241735:21:0;;;;;;;;;;;;;;;-1:-1:-1;241719:37:0;-1:-1:-1;242199:20:0;;242249:124;242274:19;;;;242308:22;;;;242345:17;;;;242274:10;242345:17;:::i;:::-;242249:10;:124::i;:::-;242397:42;;;;;;;;;;;;;;;;241164:1283;;;;-1:-1:-1;;;;;;241164:1283:0:o;265040:115::-;265096:15;265131:16;265137:9;265131:5;:16::i;239406:152::-;239451:7;;238302:22;239498:20;239536:14;-1:-1:-1;;;;;239536:14:0;;239406:152;-1:-1:-1;;239406:152:0:o;211223:723::-;211544:8;-1:-1:-1;;;;;211536:31:0;211557:10;211536:31;211532:68;;211576:24;;-1:-1:-1;;;211576:24:0;;211589:10;211576:24;;;5460:51:1;5433:18;;211576:24:0;;;;;;;;211532:68;211739:14;;;;;;211703:32;;211720:14;;211739:7;211720:14;:::i;:::-;211703:16;:32::i;:::-;:50;211699:103;;211771:14;;;;:7;:14;:::i;:::-;211762:40;;-1:-1:-1;;;211762:40:0;;26368:10:1;26356:23;;;211762:40:0;;;26338:42:1;211787:14:0;;;;26396:18:1;;;26389:34;26311:18;;211762:40:0;26166:263:1;211699:103:0;211879:59;211890:7;211899:5;211906:8;;211916:9;211927:10;;211879;:59::i;:::-;211223:723;;;;;;;:::o;160650:261::-;160747:4;107899:10;160805:38;160821:4;107899:10;160836:6;160805:15;:38::i;:::-;160854:27;160864:4;160870:2;160874:6;160854:9;:27::i;:::-;160899:4;160892:11;;;160650:261;;;;;;:::o;261674:101::-;134852:13;:11;:13::i;:::-;261744:23:::1;261759:7;261744:14;:23::i;:::-;261674:101:::0;:::o;186722:206::-;134852:13;:11;:13::i;:::-;186863::::1;::::0;::::1;186803:25;186863:13:::0;;;-1:-1:-1;;;;;;;;;;;186863:13:0::1;::::0;;;;;;;;:21;;;186900:20;;26338:42:1;;;26396:18;;26389:34;;;184571:23:0;186900:20:::1;::::0;26311:18:1;186900:20:0::1;;;;;;;;186792:136;186722:206:::0;;:::o;214762:106::-;214813:7;214840:20;:18;:20::i;:::-;214833:27;;214762:106;:::o;261105:103::-;105144:13;;261154:1;;105144:13;;;;;105143:14;:40;;;;-1:-1:-1;105161:12:0;;:22;;;;:12;;:22;105143:40;105135:99;;;;-1:-1:-1;;;105135:99:0;;;;;;;:::i;:::-;105245:12;:22;;-1:-1:-1;;105278:20:0;105245:22;;;105278:20;105245:22;105278:20;;;261168:32:::1;261182:6;:4;:6::i;:::-;260258:14:::0;;;;;;;;;;;;-1:-1:-1;;;260258:14:0;;;;261168:13:::1;:32::i;:::-;105337:5:::0;105321:21;;-1:-1:-1;;105321:21:0;;;105358:20;;8951:4:1;8939:17;;8921:36;;105358:20:0;;8909:2:1;8894:18;105358:20:0;;;;;;;261105:103;:::o;161320:238::-;161408:4;107899:10;161464:64;107899:10;161480:7;161517:10;161489:25;107899:10;161480:7;161489:9;:25::i;:::-;:38;;;;:::i;:::-;161464:8;:64::i;242910:787::-;-1:-1:-1;;;;;;;;;;;;;;;;;243250:24:0;243278:74;243289:19;;;;243310:22;;;;243334:17;;;;243289:10;243334:17;:::i;243278:74::-;243247:105;;;243444:20;243466;243490:49;243510:10;243522:16;243490:19;:49::i;:::-;243443:96;;-1:-1:-1;243443:96:0;-1:-1:-1;243631:58:0;243638:17;;;;:10;:17;:::i;:::-;243657:7;243666;243675:13;243631:6;:58::i;:::-;243624:65;242910:787;-1:-1:-1;;;;;;242910:787:0:o;264402:67::-;134852:13;:11;:13::i;:::-;264451:10:::1;:8;:10::i;:::-;264402:67::o:0;261390:95::-;134852:13;:11;:13::i;:::-;261457:20:::1;261469:7;261457:11;:20::i;172524:225::-:0;172708:23;;;172625:33;172708:23;;;172136:31;172708:23;;;;;;;;:33;;;;;;;;;;;172701:40;;172600:12;;172136:31;172708:33;172701:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;172524:225;;;;:::o;201727:222::-;201842:99;201876:10;201895:5;201930:1;201933;201936;201913:25;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;201842:19;:99::i;:::-;201727:222;;;;;:::o;262209:83::-;134852:13;:11;:13::i;:::-;262270:14:::1;262276:7;262270:5;:14::i;97836:188::-:0;97901:4;-1:-1:-1;;;;;;;;;;;97988:28:0;94691:25;98008:7;97988:19;:28::i;240623:226::-;134852:13;:11;:13::i;:::-;238302:22;240765:30;;-1:-1:-1;;;;;;240765:30:0::1;-1:-1:-1::0;;;;;240765:30:0;::::1;::::0;;::::1;::::0;;240811::::1;::::0;5460:51:1;;;240811:30:0::1;::::0;5448:2:1;5433:18;240811:30:0::1;;;;;;;;240696:153;240623:226:::0;:::o;135607:103::-;134852:13;:11;:13::i;:::-;135672:30:::1;135699:1;135672:18;:30::i;98447:178::-:0;98498:16;-1:-1:-1;;;;;;;;;;;98598:19:0;94691:25;98598:17;:19::i;214566:188::-;-1:-1:-1;;;;;214721:15:0;;214626:7;214721:15;;;213363:27;214721:15;;;;;;;21828:14;214721:25;21736:114;264246:63;134852:13;:11;:13::i;:::-;264293:8:::1;:6;:8::i;151487:931::-:0;151590:13;151618:18;;151590:13;;;151618:18;151590:13;-1:-1:-1;;;;;;;;;;;152108:13:0;;151839:45;;-1:-1:-1;152108:18:0;:43;;;;-1:-1:-1;152130:16:0;;;;:21;152108:43;152100:77;;;;-1:-1:-1;;;152100:77:0;;28041:2:1;152100:77:0;;;28023:21:1;28080:2;28060:18;;;28053:30;-1:-1:-1;;;28099:18:1;;;28092:51;28160:18;;152100:77:0;27839:345:1;152100:77:0;152243:13;:11;:13::i;:::-;152271:16;:14;:16::i;:::-;152383;;;152366:1;152383:16;;;;;;;;;-1:-1:-1;;;152190:220:0;;;-1:-1:-1;152190:220:0;;-1:-1:-1;152302:13:0;;-1:-1:-1;152338:4:0;;-1:-1:-1;152366:1:0;-1:-1:-1;152383:16:0;-1:-1:-1;152190:220:0;-1:-1:-1;;151487:931:0:o;200185:1105::-;-1:-1:-1;;;;;200475:16:0;;200481:10;200475:16;200471:76;;200500:47;;-1:-1:-1;;;200500:47:0;;200523:10;200500:47;;;28401:34:1;-1:-1:-1;;;;;28471:15:1;;28451:18;;;28444:43;28336:18;;200500:47:0;28189:304:1;200471:76:0;200581:10;200562:15;:29;200558:64;;200600:22;;-1:-1:-1;;;200600:22:0;;;;;;;;;;;200558:64;200656:11;200637:15;:30;200633:65;;200676:22;;-1:-1:-1;;;200676:22:0;;;;;;;;;;;200633:65;200709:63;200751:4;200764:5;200709:27;:63::i;:::-;200821:268;200872:4;193780:66;200942:35;;200979:4;200985:2;200989:5;200996:10;201008:11;201021:5;200931:96;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;200903:139;;;;;;201068:9;200821:27;:268::i;:::-;201163:60;201202:4;201215:5;201163:24;:60::i;:::-;201234:48;201252:4;201262:2;201274:5;201234:9;:48::i;262799:160::-;262857:21;262867:10;262857:9;:21::i;:::-;262856:22;:47;;;;-1:-1:-1;135039:6:0;;-1:-1:-1;;;;;135039:6:0;262882:10;:21;;262856:47;262852:72;;;262912:12;;-1:-1:-1;;;262912:12:0;;;;;;;;;;;262852:72;262935:16;262943:7;262935;:16::i;261948:102::-;134852:13;:11;:13::i;:::-;262023:19:::1;262033:8;262023:9;:19::i;263993:162::-:0;134852:13;:11;:13::i;:::-;264074:6:::1;264084:1;264074:11:::0;264070:44:::1;;-1:-1:-1::0;;;;;;158910:18:0;;158883:7;158910:18;;;:9;:18;;;;;;264070:44:::1;264125:22;264131:7;264140:6;264125:5;:22::i;:::-;263993:162:::0;;:::o;214022:536::-;214232:8;214213:15;:27;;214205:69;;;;-1:-1:-1;;;214205:69:0;;29368:2:1;214205:69:0;;;29350:21:1;29407:2;29387:18;;;29380:30;29446:31;29426:18;;;29419:59;29495:18;;214205:69:0;29166:353:1;214205:69:0;214287:219;214338:5;212786:95;214408:5;214415:7;214424:5;214431:16;214441:5;214431:9;:16::i;:::-;214380:78;;;;;;29811:25:1;;;;-1:-1:-1;;;;;29910:15:1;;;29890:18;;;29883:43;29962:15;;;;29942:18;;;29935:43;29994:18;;;29987:34;30037:19;;;30030:35;30081:19;;;30074:35;;;29783:19;;214380:78:0;29524:591:1;214287:219:0;214519:31;214528:5;214535:7;214544:5;214519:8;:31::i;162061:436::-;162154:4;107899:10;162154:4;162237:25;107899:10;162254:7;162237:9;:25::i;:::-;162210:52;;162301:15;162281:16;:35;;162273:85;;;;-1:-1:-1;;;162273:85:0;;30322:2:1;162273:85:0;;;30304:21:1;30361:2;30341:18;;;30334:30;30400:34;30380:18;;;30373:62;-1:-1:-1;;;30451:18:1;;;30444:35;30496:19;;162273:85:0;30120:401:1;162273:85:0;162394:60;162403:5;162410:7;162438:15;162419:16;:34;162394:8;:60::i;:::-;-1:-1:-1;162485:4:0;;162061:436;-1:-1:-1;;;;162061:436:0:o;159142:193::-;159221:4;107899:10;159277:28;107899:10;159294:2;159298:6;159277:9;:28::i;263308:382::-;134852:13;:11;:13::i;:::-;263425:15;;263474:14;;263455:33;::::1;263451:61;;263497:15;;-1:-1:-1::0;;;263497:15:0::1;;;;;;;;;;;263451:61;263528:6;263523:160;263540:8;263536:1;:12;263523:160;;;263574:7;263582:1;263574:10;;;;;;;;:::i;:::-;;;;;;;263588:1;263574:15:::0;263570:56:::1;;263604:22;263614:8;263623:1;263614:11;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;158910:18:0;158883:7;158910:18;;;:9;:18;;;;;;;158809:127;263604:22:::1;263591:7;263599:1;263591:10;;;;;;;;:::i;:::-;;;;;;:35;;;::::0;::::1;263570:56;263641:30;263647:8;263656:1;263647:11;;;;;;;;:::i;:::-;;;;;;;263660:7;263668:1;263660:10;;;;;;;;:::i;:::-;;;;;;;263641:5;:30::i;:::-;263550:3;;263523:160;;;;263398:292;263308:382:::0;;:::o;264917:115::-;264972:16;265008;265014:9;265008:5;:16::i;262467:179::-;262539:21;262549:10;262539:9;:21::i;:::-;262538:22;:47;;;;-1:-1:-1;135039:6:0;;-1:-1:-1;;;;;135039:6:0;262564:10;:21;;262538:47;262534:72;;;262594:12;;-1:-1:-1;;;262594:12:0;;;;;;;;;;;262534:72;262617:21;262629:8;262617:11;:21::i;228943:183::-;228995:7;;228540:36;229056:34;228388:206;202327:564;202433:69;202475:10;202494:5;202433:27;:69::i;:::-;202611:60;;;194006:66;202611:60;;;30860:25:1;-1:-1:-1;;;;;30921:32:1;;30901:18;;;30894:60;;;;30970:18;;;30963:34;;;202513:206:0;;202564:10;;30833:18:1;;202611:60:0;30658:345:1;202513:206:0;-1:-1:-1;;;;;202732:58:0;;:46;:58;;;-1:-1:-1;;;;;;;;;;;202732:58:0;;;;;;;;:65;;;;;;;;;:72;;-1:-1:-1;;202732:72:0;202800:4;202732:72;;;202820:63;202732:65;;:58;202820:63;;;202327:564;;;:::o;173520:609::-;134852:13;:11;:13::i;:::-;172136:31;173633:33:::1;173709:360;173729:27:::0;;::::1;173709:360;;;173893:48;173913:16;;173930:1;173913:19;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:27;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;173893:19;:48::i;:::-;174030:16;;174047:1;174030:19;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:27;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;173956:1:::0;:17:::1;173974:16:::0;;173991:1;173974:19;;::::1;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:23;::::0;::::1;::::0;::::1;::::0;::::1;:::i;:::-;173956:42;;;;;;;;;;;;;;;:71;173999:16;;174016:1;173999:19;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:27;::::0;;;;;::::1;;;:::i;:::-;173956:71;;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;173956:71:0;;:101:::1;::::0;;:71;:101:::1;:::i;:::-;-1:-1:-1::0;173758:3:0::1;;173709:360;;;;174086:35;174104:16;;174086:35;;;;;;;:::i;174902:1081::-:0;175174:23;;;175074:33;175174:23;;;172136:31;175174:23;;;;;;;;:33;;;;;;;;;;175150:57;;175049:12;;175074:33;175174;175150:57;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;175339:8;:15;175358:1;175339:20;175335:46;;175368:13;;175361:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;175361:20:0;;-1:-1:-1;175361:20:0;;-1:-1:-1;;;;;175361:20:0;175335:46;175469:1;175445:25;;;175441:46;;175479:8;-1:-1:-1;175472:15:0;;-1:-1:-1;175472:15:0;175441:46;175637:1;175613:25;;175609:271;;175655:34;175675:13;;175655:19;:34::i;:::-;175840:8;175850:17;:13;175864:1;175850:13;;:17;:::i;:::-;175827:41;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;175820:48;;;;;;175609:271;175961:13;;175946:29;;-1:-1:-1;;;175946:29:0;;;;;;;;;:::i;174902:1081::-;;;;;;;:::o;230359:1358::-;230461:9;230456:1057;230476:19;;;230456:1057;;;230517:29;230549:8;;230558:1;230549:11;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;230517:43;-1:-1:-1;230646:50:0;230653:20;;;;230517:43;230653:20;:::i;:::-;230675;;;;186166:13;;;;;251348:4;186166:13;;;-1:-1:-1;;;;;;;;;;;186166:13:0;;;;;;251372:20;;251266:134;230646:50;230641:65;;230698:8;;;230641:65;231277:4;:22;231308:12;;;;:6;231373:11;;;;231403:14;;;;231308:6;231403:14;:::i;:::-;231436:15;;;;;;;;:::i;:::-;231470:16;;;;:6;:16;:::i;:::-;231277:224;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;230502:1011;230456:1057;230497:3;;230456:1057;;;;231673:10;-1:-1:-1;;;;;231663:43:0;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;231663:45:0;;;;;;;;;;;;:::i;:::-;231646:63;;-1:-1:-1;;;231646:63:0;;;;;;;;:::i;265163:126::-;265223:16;265259:22;265271:9;265259:11;:22::i;260766:243::-;105144:13;;260828:1;;105144:13;;;;;105143:14;:40;;;;-1:-1:-1;105161:12:0;;:22;;;;:12;;:22;105143:40;105135:99;;;;-1:-1:-1;;;105135:99:0;;;;;;;:::i;:::-;105245:12;:22;;-1:-1:-1;;105278:20:0;105245:22;;;105278:20;105245:22;105278:20;;;260842:39:::1;260853:6;:4;:6::i;:::-;260645:15:::0;;;;;;;;;;;;-1:-1:-1;;;260645:15:0;;;;260871:9:::1;260842:10;:39::i;:::-;260892:32;260906:6;:4;:6::i;260892:32::-;260945:16;:14;:16::i;:::-;260972:29;260991:9;260972:18;:29::i;:::-;105337:5:::0;105321:21;;-1:-1:-1;;105321:21:0;;;105358:20;;8951:4:1;8939:17;;8921:36;;105358:20:0;;8909:2:1;8894:18;105358:20:0;8779:184:1;244402:1339:0;244567:34;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;244969:20:0;;245019:120;245040:19;;;;245074:22;;;;245111:17;;;;245040:10;245111:17;:::i;:::-;245019:6;:120::i;:::-;244968:171;;;;245231:20;245253;245277:49;245297:10;245309:16;245277:19;:49::i;:::-;245230:96;;-1:-1:-1;245230:96:0;-1:-1:-1;245452:66:0;245460:17;;;;:10;:17;:::i;:::-;245479:7;245488;245452:66;;;;;;;245497:4;245452:66;:::i;:::-;245503:14;245452:7;:66::i;:::-;245586:42;;;;;;;;;;;;;;;;;;;245654:15;;245439:79;;-1:-1:-1;245586:42:0;;-1:-1:-1;245690:10:0;;245654:15;245646:87;;245671:17;;;;:10;:17;:::i;:::-;245646:87;;;39765:10:1;39753:23;;;39735:42;;39808:2;39793:18;;39786:34;;;39836:18;;39829:34;;;39723:2;39708:18;245646:87:0;;;;;;;244633:1108;;;;244402:1339;;;;;;:::o;187843:107::-;134852:13;:11;:13::i;:::-;187911:31:::1;::::0;-1:-1:-1;;;187911:31:0;;-1:-1:-1;;;;;5478:32:1;;;187911:31:0::1;::::0;::::1;5460:51:1::0;187911:8:0::1;:20;::::0;::::1;::::0;5433:18:1;;187911:31:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;196949:1020:::0;197259:10;197240:15;:29;197236:64;;197278:22;;-1:-1:-1;;;197278:22:0;;;;;;;;;;;197236:64;197334:11;197315:15;:30;197311:65;;197354:22;;-1:-1:-1;;;197354:22:0;;;;;;;;;;;197311:65;197387:63;197429:4;197442:5;197387:27;:63::i;:::-;197499:269;197550:4;193485:66;197620:36;;197658:4;197664:2;197668:5;197675:10;197687:11;197700:5;197609:97;;;;;;;;;;;;;;:::i;232379:419::-;232666:10;232688:4;232666:27;232662:50;;232702:10;;-1:-1:-1;;;232702:10:0;;;;;;;;;;;232662:50;232723:67;232742:7;232751:5;232758:8;;232768:9;232779:10;;232723:18;:67::i;229660:230::-;134852:13;:11;:13::i;:::-;228540:36;229822:22;;-1:-1:-1;;;;;;229822:22:0::1;-1:-1:-1::0;;;;;229822:22:0;::::1;::::0;;::::1;::::0;;229860::::1;::::0;5460:51:1;;;229860:22:0::1;::::0;5448:2:1;5433:18;229860:22:0::1;5314:203:1::0;213608:406:0;213818:188;213847:5;213876:7;213905:5;213935:8;213986:1;213989;213992;213969:25;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;213818:6;:188::i;159398:151::-;-1:-1:-1;;;;;159514:18:0;;;159487:7;159514:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;159398:151::o;195753:590::-;196070:265;196117:4;196140:2;196164:5;196196:10;196234:11;196267:5;196315:1;196318;196321;196298:25;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;196070;:265::i;:::-;195753:590;;;;;;;;;:::o;97463:186::-;97527:4;-1:-1:-1;;;;;;;;;;;97615:26:0;-1:-1:-1;;;;;;;;;;;97633:7:0;97615:17;:26::i;198806:588::-;199122:264;199168:4;199191:2;199215:5;199247:10;199285:11;199318:5;199366:1;199369;199372;199349:25;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;199122:24;:264::i;265297:268::-;265396:20;265418:24;265513:44;265524:9;265535:12;265549:7;265513:10;:44::i;:::-;265506:51;;;;265297:268;;;;;;;:::o;135865:201::-;134852:13;:11;:13::i;:::-;-1:-1:-1;;;;;135954:22:0;::::1;135946:73;;;::::0;-1:-1:-1;;;135946:73:0;;40076:2:1;135946:73:0::1;::::0;::::1;40058:21:1::0;40115:2;40095:18;;;40088:30;40154:34;40134:18;;;40127:62;-1:-1:-1;;;40205:18:1;;;40198:36;40251:19;;135946:73:0::1;39874:402:1::0;135946:73:0::1;136030:28;136049:8;136030:18;:28::i;209594:151::-:0;209676:4;209724:13;;;;;;209700:20;;209706:13;;209724:6;209706:13;:::i;209700:20::-;:37;;209594:151;-1:-1:-1;;209594:151:0:o;32895:310::-;32958:16;32987:22;33012:19;33020:3;33012:7;:19::i;246044:1419::-;246179:20;246201;246234:15;246407:330;246440:10;:13;;;246468:16;246474:9;246468:5;:16::i;:::-;246705:21;;;;:10;:21;:::i;:::-;246407:330;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;246407:18:0;;-1:-1:-1;;;246407:330:0:i;:::-;246383:354;;-1:-1:-1;246383:354:0;-1:-1:-1;246819:14:0;246383:354;246836:33;;238072:1;246836:33;;;238119:1;246836:33;246819:50;-1:-1:-1;246993:67:0;247008:17;;;;:10;:17;:::i;:::-;247027:7;247036:23;;;;:10;:23;:::i;246993:67::-;238302:22;247366:14;;246983:77;;-1:-1:-1;238302:22:0;-1:-1:-1;;;;;247366:14:0;:28;247362:93;;247414:14;;247396:59;;-1:-1:-1;;;247396:59:0;;-1:-1:-1;;;;;247414:14:0;;;;247396:41;;:59;;247438:7;;247447;;247396:59;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;247362:93;246223:1240;;;246044:1419;;;;;:::o;266263:191::-;266397:49;266423:5;266430:7;266439:6;266397:25;:49::i;:::-;266263:191;;;:::o;253327:682::-;253473:20;253495:24;253671:22;253683:9;253671:11;:22::i;:::-;253656:37;;253821:12;253802:31;;253906:12;253887:16;:31;253883:119;;;253942:48;;-1:-1:-1;;;253942:48:0;;;;;25846:25:1;;;25887:18;;;25880:34;;;25819:18;;253942:48:0;25672:248:1;252581:149:0;252646:15;252688:33;252700:21;252688:9;:33;:::i;187234:262::-;187399:13;;;187304:7;187399:13;;;-1:-1:-1;;;;;;;;;;;187399:13:0;;;;;;;;;187423:43;;187454:12;;-1:-1:-1;;;187454:12:0;;40927:10:1;40915:23;;187454:12:0;;;40897:42:1;40870:18;;187454:12:0;40753:192:1;247994:1837:0;248480:17;248500:36;:17;:8;;:15;:17::i;:::-;89629:2;89517:125;248500:36;248480:56;;248671:24;248698:62;248706:9;248717:26;248723:19;:8;;:17;:19::i;:::-;248717:5;:26::i;:::-;248745:14;;;;:7;:14;:::i;:::-;248698:7;:62::i;:::-;248671:89;-1:-1:-1;86908:2:0;-1:-1:-1;;248773:970:0;;;248879:23;248905:180;248949:13;;;;;;;;:::i;:::-;248981:14;;;;:7;:14;:::i;:::-;249014:16;249049:21;:8;;:19;:21::i;:::-;248905:25;:180::i;:::-;249639:92;;-1:-1:-1;;;249639:92:0;;248879:206;;-1:-1:-1;;;;;;249639:8:0;:20;;;;:92;;249660:9;;249671:5;;249678:1;;248879:206;;249639:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;248800:943;248773:970;-1:-1:-1;;;;;249760:63:0;;249772:5;249760:63;249779:14;;;;:7;:14;:::i;:::-;249760:63;;;26368:10:1;26356:23;;;26338:42;;26411:2;26396:18;;26389:34;;;26311:18;249760:63:0;;;;;;;248303:1528;;247994:1837;;;;;;;:::o;166691:419::-;166792:24;166819:25;166829:5;166836:7;166819:9;:25::i;:::-;166792:52;;-1:-1:-1;;166859:16:0;:37;166855:248;;166941:6;166921:16;:26;;166913:68;;;;-1:-1:-1;;;166913:68:0;;41903:2:1;166913:68:0;;;41885:21:1;41942:2;41922:18;;;41915:30;41981:31;41961:18;;;41954:59;42030:18;;166913:68:0;41701:353:1;166913:68:0;167025:51;167034:5;167041:7;167069:6;167050:16;:25;167025:8;:51::i;266042:182::-;266172:44;266199:4;266205:2;266209:6;266172:26;:44::i;135131:132::-;135039:6;;-1:-1:-1;;;;;135039:6:0;107899:10;135195:23;135187:68;;;;-1:-1:-1;;;135187:68:0;;42261:2:1;135187:68:0;;;42243:21:1;;;42280:18;;;42273:30;42339:34;42319:18;;;42312:62;42391:18;;135187:68:0;42059:356:1;97063:231:0;-1:-1:-1;;;;;;;;;;;97201:26:0;94691:25;97219:7;97201:17;:26::i;:::-;97196:52;;97236:12;;-1:-1:-1;;;97236:12:0;;;;;;;;;;;97196:52;97264:22;;-1:-1:-1;;;;;97264:22:0;;;;;;;;97121:173;97063:231;:::o;150299:111::-;150352:7;150379:23;:21;:23::i;149747:132::-;149833:38;149857:4;149863:7;149833:23;:38::i;217598:402::-;-1:-1:-1;;;;;;;;;;;;;;;;;217826:8:0;-1:-1:-1;;;;;217826:14:0;;217859:86;;;;;;;;217875:7;217859:86;;;;;;217884:25;217901:7;217884:16;:25::i;:::-;217859:86;;;;217911:8;217859:86;;;;217921:8;217859:86;;;;217931:13;217859:86;;;;;217972:4;217826:166;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;217806:186;217598:402;-1:-1:-1;;;;;217598:402:0:o;90499:200::-;-1:-1:-1;;;;;;;;;;;90606:10:0;;;;90601:35;;90625:11;;-1:-1:-1;;;90625:11:0;;;;;;;;;;;90601:35;90647:18;;-1:-1:-1;;90647:18:0;;;90681:10;;;;90660:5;;90681:10;90536:163;90499:200::o;96614:226::-;-1:-1:-1;;;;;;;;;;;96749:23:0;94691:25;96764:7;96749:14;:23::i;:::-;96744:53;;96781:16;;-1:-1:-1;;;96781:16:0;;;;;;;;;;;96744:53;96813:19;;-1:-1:-1;;;;;96813:19:0;;;;;;;;96669:171;96614:226;:::o;95446:194::-;-1:-1:-1;;;;;;;;;;;95570:24:0;-1:-1:-1;;;;;;;;;;;95586:7:0;95570:15;:24::i;:::-;-1:-1:-1;95610:22:0;;-1:-1:-1;;;;;5478:32:1;;5460:51;;95610:22:0;;5448:2:1;5433:18;95610:22:0;5314:203:1;31463:167:0;-1:-1:-1;;;;;31597:23:0;;31543:4;26815:19;;;:12;;;:19;;;;;;:24;;31567:55;26718:129;136226:191;136319:6;;;-1:-1:-1;;;;;136336:17:0;;;-1:-1:-1;;;;;;136336:17:0;;;;;;;136369:40;;136319:6;;;136336:17;136319:6;;136369:40;;136300:16;;136369:40;136289:128;136226:191;:::o;90299:192::-;-1:-1:-1;;;;;;;;;;;90402:10:0;;;;90398:33;;;90421:10;;-1:-1:-1;;;90421:10:0;;;;;;;;;;;90398:33;90442:17;;-1:-1:-1;;90442:17:0;90455:4;90442:17;;;90475:8;;;;90442:10;;90475:8;90334:157;90299:192::o;152650:158::-;152793:7;152786:14;;152704:13;;-1:-1:-1;;;;;;;;;;;149124:21:0;152786:14;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;152650:158;:::o;153043:164::-;153189:10;153182:17;;153100:13;;-1:-1:-1;;;;;;;;;;;149124:21:0;153182:17;;;:::i;203315:224::-;-1:-1:-1;;;;;;;;;;;;;;;;203415:58:0;;:46;:58;;;;;;;;;;;:65;;;;;;;;;;203411:120;;;203502:29;;-1:-1:-1;;;203502:29:0;;;;;;;;;;;192563:402;192704:192;192768:6;192799:42;192829:10;192799:16;:42::i;:::-;192871:9;192704:36;:192::i;:::-;192703:193;:217;;;-1:-1:-1;;;;;;192900:20:0;;;192703:217;192685:272;;;192939:18;;-1:-1:-1;;;192939:18:0;;;;;;;;;;;203962:243;-1:-1:-1;;;;;204050:58:0;;:46;:58;;;-1:-1:-1;;;;;;;;;;;204050:58:0;;;;;;;;:65;;;;;;;;;:72;;-1:-1:-1;;204050:72:0;204118:4;204050:72;;;204138:59;204050:65;;:58;204138:59;;;203962:243;;:::o;94994:193::-;-1:-1:-1;;;;;;;;;;;95120:21:0;-1:-1:-1;;;;;;;;;;;95133:7:0;95120:12;:21::i;:::-;-1:-1:-1;95157:22:0;;-1:-1:-1;;;;;5478:32:1;;5460:51;;95157:22:0;;5448:2:1;5433:18;95157:22:0;5314:203:1;96199:196:0;96287:15;;96273:11;96313:75;96333:3;96329:1;:7;96313:75;;;96358:18;96364:8;96373:1;96364:11;;;;;;;;:::i;:::-;;;;;;;96358:5;:18::i;:::-;96338:3;;96313:75;;164941:675;-1:-1:-1;;;;;165025:21:0;;165017:67;;;;-1:-1:-1;;;165017:67:0;;44069:2:1;165017:67:0;;;44051:21:1;44108:2;44088:18;;;44081:30;44147:34;44127:18;;;44120:62;-1:-1:-1;;;44198:18:1;;;44191:31;44239:19;;165017:67:0;43867:397:1;165017:67:0;165097:49;165118:7;165135:1;165139:6;165097:20;:49::i;:::-;-1:-1:-1;;;;;165184:18:0;;165159:22;165184:18;;;:9;:18;;;;;;165221:24;;;;165213:71;;;;-1:-1:-1;;;165213:71:0;;44471:2:1;165213:71:0;;;44453:21:1;44510:2;44490:18;;;44483:30;44549:34;44529:18;;;44522:62;-1:-1:-1;;;44600:18:1;;;44593:32;44642:19;;165213:71:0;44269:398:1;165213:71:0;-1:-1:-1;;;;;165320:18:0;;;;;;:9;:18;;;;;;;;165341:23;;;165320:44;;165459:12;:22;;;;;;;165510:37;8030:25:1;;;165320:18:0;;;165510:37;;8003:18:1;165510:37:0;;;;;;;266263:191;;;:::o;214876:237::-;-1:-1:-1;;;;;215042:15:0;;214936;215042;;;213363:27;215042:15;;;;;;;;21828:14;;21965:1;21947:19;;;;;21828:14;215078:27;214953:160;214876:237;;;:::o;252209:141::-;252273:16;252309:33;252321:21;-1:-1:-1;;;;;252309:33:0;;;:::i;95816:200::-;95906:15;;95892:11;95932:77;95952:3;95948:1;:7;95932:77;;;95977:20;95985:8;95994:1;95985:11;;;;;;;;:::i;:::-;;;;;;;95977:7;:20::i;:::-;95957:3;;95932:77;;176129:221;176216:18;176251:13;176262:1;176216:18;176251:8;;:13;:::i;:::-;176244:21;;;:::i;:::-;176237:29;;;-1:-1:-1;171984:1:0;176281:28;;176277:65;;176333:8;;176318:24;;-1:-1:-1;;;176318:24:0;;;;;;;;;:::i;251804:174::-;251875:16;251949:21;251912:33;251949:21;251912:9;:33;:::i;:::-;251911:59;;;;:::i;256545:192::-;105649:13;;;;;;;105641:69;;;;-1:-1:-1;;;105641:69:0;;;;;;;:::i;:::-;256665:28:::1;256678:5;256685:7;256665:12;:28::i;:::-;256704:25;256719:9;256704:14;:25::i;134509:97::-:0;105649:13;;;;;;;105641:69;;;;-1:-1:-1;;;105641:69:0;;;;;;;:::i;:::-;134572:26:::1;:24;:26::i;258636:561::-:0;258778:20;258800:24;258872:44;258883:9;258894:12;258908:7;258872:10;:44::i;:::-;258837:79;;-1:-1:-1;258837:79:0;-1:-1:-1;259158:31:0;259164:10;258837:79;259158:5;:31::i;218775:783::-;218982:31;;:::i;:::-;219149:20;219172:26;219183:4;:14;;;219172:10;:26::i;:::-;219213:15;;;;219149:49;;-1:-1:-1;219213:19:0;219209:53;;219234:28;219246:4;:15;;;219234:11;:28::i;:::-;219295:8;-1:-1:-1;;;;;219295:13:0;;219317:12;219410:92;;;;;;;;219426:7;219410:92;;;;;;219435:25;219452:7;219435:16;:25::i;:::-;219410:92;;;;219462:8;219410:92;;;;219472:8;219410:92;;;;219500:1;219482:4;:15;;;:19;219410:92;;;;;219521:14;219295:255;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;219275:275;218775:783;-1:-1:-1;;;;;;;218775:783:0:o;28066:111::-;28122:16;28158:3;:11;;28151:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28066:111;;;:::o;87273:516::-;87471:18;;87411:17;;87471:22;;;87616:165;;87758:7;87767:13;87741:40;;;;;;;;46423:19:1;;;46498:3;46476:16;-1:-1:-1;;;;;;46472:51:1;46467:2;46458:12;;46451:73;46549:2;46540:12;;46268:290;87741:40:0;;;;;;;;;;;;;87616:165;;;87659:7;87668:13;87700:10;87713:11;87642:83;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;87616:165;87609:172;;87273:516;;;;;;:::o;166054:346::-;-1:-1:-1;;;;;166156:19:0;;166148:68;;;;-1:-1:-1;;;166148:68:0;;47302:2:1;166148:68:0;;;47284:21:1;47341:2;47321:18;;;47314:30;47380:34;47360:18;;;47353:62;-1:-1:-1;;;47431:18:1;;;47424:34;47475:19;;166148:68:0;47100:400:1;166148:68:0;-1:-1:-1;;;;;166235:21:0;;166227:68;;;;-1:-1:-1;;;166227:68:0;;47707:2:1;166227:68:0;;;47689:21:1;47746:2;47726:18;;;47719:30;47785:34;47765:18;;;47758:62;-1:-1:-1;;;47836:18:1;;;47829:32;47878:19;;166227:68:0;47505:398:1;166227:68:0;-1:-1:-1;;;;;166308:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;166360:32;;8030:25:1;;;166360:32:0;;8003:18:1;166360:32:0;;;;;;;166054:346;;;:::o;88274:125::-;88334:7;88369:21;86852:2;88334:7;88369:4;;:21;:::i;:::-;88361:30;;;:::i;88584:154::-;88646:6;88686:42;86908:2;86852;88686:4;;:42;:::i;:::-;88679:50;;;:::i;:::-;88672:58;;;88584:154;-1:-1:-1;;;88584:154:0:o;259541:371::-;259679:24;259759:21;259765:3;259770:9;259759:5;:21::i;:::-;-1:-1:-1;259895:9:0;;259541:371;-1:-1:-1;;259541:371:0:o;88905:132::-;88969:12;89001:28;:4;86908:2;89001:4;;:28;:::i;:::-;88994:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;88994:35:0;;88905:132;-1:-1:-1;;;;;;88905:132:0:o;84197:291::-;84386:17;84440:6;84448:7;84457:9;84468:11;84423:57;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;84416:64;;84197:291;;;;;;:::o;162967:806::-;-1:-1:-1;;;;;163064:18:0;;163056:68;;;;-1:-1:-1;;;163056:68:0;;49279:2:1;163056:68:0;;;49261:21:1;49318:2;49298:18;;;49291:30;49357:34;49337:18;;;49330:62;-1:-1:-1;;;49408:18:1;;;49401:35;49453:19;;163056:68:0;49077:401:1;163056:68:0;-1:-1:-1;;;;;163143:16:0;;163135:64;;;;-1:-1:-1;;;163135:64:0;;49685:2:1;163135:64:0;;;49667:21:1;49724:2;49704:18;;;49697:30;49763:34;49743:18;;;49736:62;-1:-1:-1;;;49814:18:1;;;49807:33;49857:19;;163135:64:0;49483:399:1;163135:64:0;163212:38;163233:4;163239:2;163243:6;163212:20;:38::i;:::-;-1:-1:-1;;;;;163285:15:0;;163263:19;163285:15;;;:9;:15;;;;;;163319:21;;;;163311:72;;;;-1:-1:-1;;;163311:72:0;;50089:2:1;163311:72:0;;;50071:21:1;50128:2;50108:18;;;50101:30;50167:34;50147:18;;;50140:62;-1:-1:-1;;;50218:18:1;;;50211:36;50264:19;;163311:72:0;49887:402:1;163311:72:0;-1:-1:-1;;;;;163419:15:0;;;;;;;:9;:15;;;;;;163437:20;;;163419:38;;163637:13;;;;;;;;;;:23;;;;;;163689:26;;;;;;163451:6;8030:25:1;;8018:2;8003:18;;7884:177;163689:26:0;;;;;;;;163728:37;266263:191;31219:158;31292:4;31316:53;31324:3;-1:-1:-1;;;;;31344:23:0;;31316:7;:53::i;150418:193::-;150473:7;148340:95;150532:17;:15;:17::i;:::-;150551:20;:18;:20::i;:::-;150510:92;;;;;;50553:25:1;;;;50594:18;;50587:34;;;;50637:18;;;50630:34;150573:13:0;50680:18:1;;;50673:34;150596:4:0;50723:19:1;;;50716:61;50525:19;;150510:92:0;;;;;;;;;;;;150500:103;;;;;;150493:110;;150418:193;:::o;149887:321::-;-1:-1:-1;;;;;;;;;;;150039:7:0;:14;150049:4;150039:7;:14;:::i;:::-;-1:-1:-1;150064:10:0;;;:20;150077:7;150064:10;:20;:::i;:::-;-1:-1:-1;150168:1:0;150152:17;;;150180:16;;;;:20;-1:-1:-1;;149887:321:0:o;30891:152::-;30961:4;30985:50;30990:3;-1:-1:-1;;;;;31010:23:0;;30985:4;:50::i;151254:178::-;151331:7;151358:66;151391:20;:18;:20::i;:::-;151413:10;132927:4;132921:11;-1:-1:-1;;;132946:23:0;;132999:4;132990:14;;132983:39;;;;133052:4;133043:14;;133036:34;133107:4;133092:20;;;132724:406;177351:371;177457:4;177475:17;177494:24;177522:33;177539:4;177545:9;177522:16;:33::i;:::-;177474:81;;-1:-1:-1;177474:81:0;-1:-1:-1;177596:26:0;177587:5;:35;;;;;;;;:::i;:::-;;:58;;;;;177639:6;-1:-1:-1;;;;;177626:19:0;:9;-1:-1:-1;;;;;177626:19:0;;177587:58;177586:128;;;;177663:51;177690:6;177698:4;177704:9;177663:26;:51::i;264477:409::-;135039:6;;-1:-1:-1;;;;;135039:6:0;264616:10;:21;264612:212;;-1:-1:-1;;;;;;;;;;;90943:10:0;;;264676:43;;;;264707:12;264716:2;264707:8;:12::i;:::-;264676:61;;;;264723:14;264732:4;264723:8;:14::i;:::-;264676:85;;;;264741:20;264750:10;264741:8;:20::i;:::-;264654:158;;;264784:28;;-1:-1:-1;;;264784:28:0;;;;;;;;;;;157120:149;105649:13;;;;;;;105641:69;;;;-1:-1:-1;;;105641:69:0;;;;;;;:::i;:::-;157223:38:::1;157246:5;157253:7;157223:22;:38::i;239212:114::-:0;105649:13;;;;;;;105641:69;;;;-1:-1:-1;;;105641:69:0;;;;;;;:::i;:::-;239292:26:::1;239308:9;239292:15;:26::i;134614:113::-:0;105649:13;;;;;;;105641:69;;;;-1:-1:-1;;;105641:69:0;;;;;;;:::i;:::-;134687:32:::1;107899:10:::0;134687:18:::1;:32::i;220267:194::-:0;220333:17;220380:10;220367:9;:23;220363:62;;220399:26;;-1:-1:-1;;;220399:26:0;;220415:9;220399:26;;;8030:25:1;8003:18;;220399:26:0;7884:177:1;220363:62:0;-1:-1:-1;220443:10:0;220267:194::o;220847:417::-;221002:15;221020:8;-1:-1:-1;;;;;221020:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;221002:36;-1:-1:-1;;;;;;221053:21:0;;221049:54;;221083:20;;-1:-1:-1;;;221083:20:0;;;;;;;;;;;221049:54;221180:76;-1:-1:-1;;;;;221180:32:0;;221213:10;221233:8;221244:11;221180:32;:76::i;164060:548::-;-1:-1:-1;;;;;164144:21:0;;164136:65;;;;-1:-1:-1;;;164136:65:0;;52726:2:1;164136:65:0;;;52708:21:1;52765:2;52745:18;;;52738:30;52804:33;52784:18;;;52777:61;52855:18;;164136:65:0;52524:355:1;164136:65:0;164214:49;164243:1;164247:7;164256:6;164214:20;:49::i;:::-;164292:6;164276:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;164447:18:0;;;;;;:9;:18;;;;;;;;:28;;;;;;164502:37;8030:25:1;;;164502:37:0;;8003:18:1;164502:37:0;;;;;;;263993:162;;:::o;25212:1420::-;25278:4;25417:19;;;:12;;;:19;;;;;;25453:15;;25449:1176;;25828:21;25852:14;25865:1;25852:10;:14;:::i;:::-;25901:18;;25828:38;;-1:-1:-1;25881:17:0;;25901:22;;25922:1;;25901:22;:::i;:::-;25881:42;;25957:13;25944:9;:26;25940:405;;25991:17;26011:3;:11;;26023:9;26011:22;;;;;;;;:::i;:::-;;;;;;;;;25991:42;;26165:9;26136:3;:11;;26148:13;26136:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;26250:23;;;:12;;;:23;;;;;:36;;;25940:405;26426:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;26521:3;:12;;:19;26534:5;26521:19;;;;;;;;;;;26514:26;;;26564:4;26557:11;;;;;;;25449:1176;26608:5;26601:12;;;;;153429:702;153479:7;-1:-1:-1;;;;;;;;;;;153479:7:0;153576:13;:11;:13::i;:::-;153604:18;;153555:34;;-1:-1:-1;153604:22:0;153600:524;;153650:22;;;;;;;;153429:702;-1:-1:-1;;153429:702:0:o;153600:524::-;153951:13;;153983:15;;153979:134;;154026:10;153429:702;-1:-1:-1;;;153429:702:0:o;153979:134::-;154084:13;154077:20;;;;;153429:702;:::o;154359:738::-;154412:7;-1:-1:-1;;;;;;;;;;;154412:7:0;154512:16;:14;:16::i;:::-;154543:21;;154488:40;;-1:-1:-1;154543:25:0;154539:551;;154592:25;;;;;;;;154359:738;-1:-1:-1;;154359:738:0:o;154539:551::-;154908:16;;;;154943:18;;154939:140;;154989:13;154359:738;-1:-1:-1;;;154359:738:0:o;24622:414::-;24685:4;26815:19;;;:12;;;:19;;;;;;24702:327;;-1:-1:-1;24745:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;24928:18;;24906:19;;;:12;;;:19;;;;;;:40;;;;24961:11;;24702:327;-1:-1:-1;25012:5:0;25005:12;;117012:747;117093:7;117102:12;117131:9;:16;117151:2;117131:22;117127:625;;117475:4;117460:20;;117454:27;117525:4;117510:20;;117504:27;117583:4;117568:20;;117562:27;117170:9;117554:36;117626:25;117637:4;117554:36;117454:27;117504;117626:10;:25::i;:::-;117619:32;;;;;;;;;117127:625;-1:-1:-1;117700:1:0;;-1:-1:-1;117704:35:0;117684:56;;178137:484;178284:4;178302:12;178316:19;178339:6;-1:-1:-1;;;;;178339:17:0;178394:34;;;178430:4;178436:9;178371:75;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;178371:75:0;;;;;;;;;;;;;;-1:-1:-1;;;;;178371:75:0;-1:-1:-1;;;;;;178371:75:0;;;;;;;;;;178339:118;;;;178371:75;178339:118;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;178301:156;;;;178476:7;:43;;;;;178517:2;178500:6;:13;:19;;178476:43;:136;;;;-1:-1:-1;178536:29:0;;-1:-1:-1;;;178577:34:0;178536:29;;;;;;;;;;;;:::i;:::-;:76;;178137:484;-1:-1:-1;;;;;;178137:484:0:o;157277:162::-;105649:13;;;;;;;105641:69;;;;-1:-1:-1;;;105641:69:0;;;;;;;:::i;:::-;157390:5:::1;:13;157398:5:::0;157390;:13:::1;:::i;:::-;-1:-1:-1::0;157414:7:0::1;:17;157424:7:::0;157414;:17:::1;:::i;185452:125::-:0;105649:13;;;;;;;105641:69;;;;-1:-1:-1;;;105641:69:0;;;;;;;:::i;:::-;185533:36:::1;185559:9;185533:25;:36::i;138018:205::-:0;138146:68;;;-1:-1:-1;;;;;54181:15:1;;;138146:68:0;;;54163:34:1;54233:15;;54213:18;;;54206:43;54265:18;;;;54258:34;;;138146:68:0;;;;;;;;;;54098:18:1;;;;138146:68:0;;;;;;;;-1:-1:-1;;;;;138146:68:0;-1:-1:-1;;;138146:68:0;;;138119:96;;138139:5;;138119:19;:96::i;119945:1477::-;120033:7;;120967:66;120954:79;;120950:163;;;-1:-1:-1;121066:1:0;;-1:-1:-1;121070:30:0;121050:51;;120950:163;121227:24;;;121210:14;121227:24;;;;;;;;;54530:25:1;;;54603:4;54591:17;;54571:18;;;54564:45;;;;54625:18;;;54618:34;;;54668:18;;;54661:34;;;121227:24:0;;54502:19:1;;121227:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;121227:24:0;;-1:-1:-1;;121227:24:0;;;-1:-1:-1;;;;;;;121266:20:0;;121262:103;;121319:1;121323:29;121303:50;;;;;;;121262:103;121385:6;-1:-1:-1;121393:20:0;;-1:-1:-1;119945:1477:0;;;;;;;;:::o;185585:194::-;105649:13;;;;;;;105641:69;;;;-1:-1:-1;;;105641:69:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;185680:23:0;::::1;185676:53;;185712:17;;-1:-1:-1::0;;;185712:17:0::1;;;;;;;;;;;141942:649:::0;142366:23;142392:69;142420:4;142392:69;;;;;;;;;;;;;;;;;142400:5;-1:-1:-1;;;;;142392:27:0;;;:69;;;;;:::i;:::-;142366:95;;142480:10;:17;142501:1;142480:22;:56;;;;142517:10;142506:30;;;;;;;;;;;;:::i;:::-;142472:111;;;;-1:-1:-1;;;142472:111:0;;54908:2:1;142472:111:0;;;54890:21:1;54947:2;54927:18;;;54920:30;54986:34;54966:18;;;54959:62;-1:-1:-1;;;55037:18:1;;;55030:40;55087:19;;142472:111:0;54706:406:1;4312:229:0;4449:12;4481:52;4503:6;4511:4;4517:1;4520:12;4449;5686;5700:23;5727:6;-1:-1:-1;;;;;5727:11:0;5746:5;5753:4;5727:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5685:73;;;;5776:69;5803:6;5811:7;5820:10;5832:12;8156;8185:7;8181:427;;;8213:10;:17;8234:1;8213:22;8209:290;;-1:-1:-1;;;;;1852:19:0;;;8423:60;;;;-1:-1:-1;;;8423:60:0;;55726:2:1;8423:60:0;;;55708:21:1;55765:2;55745:18;;;55738:30;55804:31;55784:18;;;55777:59;55853:18;;8423:60:0;55524:353:1;8423:60:0;-1:-1:-1;8520:10:0;8513:17;;8181:427;8563:33;8571:10;8583:12;9318:17;;:21;9314:388;;9550:10;9544:17;9607:15;9594:10;9590:2;9586:19;9579:44;9314:388;9677:12;9670:20;;-1:-1:-1;;;9670:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:658:1:-;185:2;237:21;;;307:13;;210:18;;;329:22;;;156:4;;185:2;408:15;;;;382:2;367:18;;;156:4;451:195;465:6;462:1;459:13;451:195;;;530:13;;-1:-1:-1;;;;;526:39:1;514:52;;621:15;;;;586:12;;;;562:1;480:9;451:195;;;-1:-1:-1;663:3:1;;14:658;-1:-1:-1;;;;;;14:658:1:o;677:158::-;739:5;784:3;775:6;770:3;766:16;762:26;759:46;;;801:1;798;791:12;840:429;938:6;946;999:2;987:9;978:7;974:23;970:32;967:52;;;1015:1;1012;1005:12;967:52;1055:9;1042:23;-1:-1:-1;;;;;1080:6:1;1077:30;1074:50;;;1120:1;1117;1110:12;1074:50;1143:69;1204:7;1195:6;1184:9;1180:22;1143:69;:::i;:::-;1133:79;1259:2;1244:18;;;;1231:32;;-1:-1:-1;;;;840:429:1:o;1274:250::-;1359:1;1369:113;1383:6;1380:1;1377:13;1369:113;;;1459:11;;;1453:18;1440:11;;;1433:39;1405:2;1398:10;1369:113;;;-1:-1:-1;;1516:1:1;1498:16;;1491:27;1274:250::o;1529:270::-;1570:3;1608:5;1602:12;1635:6;1630:3;1623:19;1651:76;1720:6;1713:4;1708:3;1704:14;1697:4;1690:5;1686:16;1651:76;:::i;:::-;1781:2;1760:15;-1:-1:-1;;1756:29:1;1747:39;;;;1788:4;1743:50;;1529:270;-1:-1:-1;;1529:270:1:o;1804:377::-;1997:2;1986:9;1979:21;1960:4;2023:44;2063:2;2052:9;2048:18;2040:6;2023:44;:::i;:::-;2115:9;2107:6;2103:22;2098:2;2087:9;2083:18;2076:50;2143:32;2168:6;2160;2143:32;:::i;2186:219::-;2335:2;2324:9;2317:21;2298:4;2355:44;2395:2;2384:9;2380:18;2372:6;2355:44;:::i;2410:131::-;-1:-1:-1;;;;;2485:31:1;;2475:42;;2465:70;;2531:1;2528;2521:12;2546:315;2614:6;2622;2675:2;2663:9;2654:7;2650:23;2646:32;2643:52;;;2691:1;2688;2681:12;2643:52;2730:9;2717:23;2749:31;2774:5;2749:31;:::i;:::-;2799:5;2851:2;2836:18;;;;2823:32;;-1:-1:-1;;;2546:315:1:o;3058:361::-;3147:6;3200:2;3188:9;3179:7;3175:23;3171:32;3168:52;;;3216:1;3213;3206:12;3168:52;3256:9;3243:23;-1:-1:-1;;;;;3281:6:1;3278:30;3275:50;;;3321:1;3318;3311:12;3275:50;3344:69;3405:7;3396:6;3385:9;3381:22;3344:69;:::i;3578:1341::-;3498:12;;3486:25;;3560:4;3549:16;;;3543:23;3527:14;;;3520:47;3950:4;3998:3;3983:19;;4075:2;4113:3;4108:2;4097:9;4093:18;4086:31;4137:6;4172;4166:13;4203:6;4195;4188:22;4241:3;4230:9;4226:19;4219:26;;4304:3;4294:6;4291:1;4287:14;4276:9;4272:30;4268:40;4254:54;;4327:4;4366;4358:6;4354:17;4389:1;4399:428;4413:6;4410:1;4407:13;4399:428;;;4478:22;;;-1:-1:-1;;4474:37:1;4462:50;;4535:13;;4576:9;;4561:25;;4625:11;;4619:18;4657:15;;;4650:27;;;4700:47;4731:15;;;4619:18;4700:47;:::i;:::-;4690:57;-1:-1:-1;;4805:12:1;;;;4770:15;;;;4435:1;4428:9;4399:428;;;-1:-1:-1;;3498:12:1;;4909:2;4894:18;;3486:25;-1:-1:-1;;;3560:4:1;3549:16;;3543:23;3527:14;;;3520:47;-1:-1:-1;4844:6:1;-1:-1:-1;4859:54:1;3424:149;4924:180;4983:6;5036:2;5024:9;5015:7;5011:23;5007:32;5004:52;;;5052:1;5049;5042:12;5004:52;-1:-1:-1;5075:23:1;;4924:180;-1:-1:-1;4924:180:1:o;5522:154::-;5581:5;5626:2;5617:6;5612:3;5608:16;5604:25;5601:45;;;5642:1;5639;5632:12;5681:347;5732:8;5742:6;5796:3;5789:4;5781:6;5777:17;5773:27;5763:55;;5814:1;5811;5804:12;5763:55;-1:-1:-1;5837:20:1;;-1:-1:-1;;;;;5869:30:1;;5866:50;;;5912:1;5909;5902:12;5866:50;5949:4;5941:6;5937:17;5925:29;;6001:3;5994:4;5985:6;5977;5973:19;5969:30;5966:39;5963:59;;;6018:1;6015;6008:12;6033:1048;6176:6;6184;6192;6200;6208;6216;6224;6277:3;6265:9;6256:7;6252:23;6248:33;6245:53;;;6294:1;6291;6284:12;6245:53;6317;6362:7;6351:9;6317:53;:::i;:::-;6307:63;;6417:2;6406:9;6402:18;6389:32;6379:42;;6472:3;6461:9;6457:19;6444:33;-1:-1:-1;;;;;6537:2:1;6529:6;6526:14;6523:34;;;6553:1;6550;6543:12;6523:34;6592:58;6642:7;6633:6;6622:9;6618:22;6592:58;:::i;:::-;6669:8;;-1:-1:-1;6566:84:1;-1:-1:-1;6754:3:1;6739:19;;6726:33;;-1:-1:-1;6768:31:1;6726:33;6768:31;:::i;:::-;6818:5;;-1:-1:-1;6876:3:1;6861:19;;6848:33;;6893:16;;;6890:36;;;6922:1;6919;6912:12;6890:36;;6961:60;7013:7;7002:8;6991:9;6987:24;6961:60;:::i;:::-;6033:1048;;;;-1:-1:-1;6033:1048:1;;-1:-1:-1;6033:1048:1;;;;6935:86;;-1:-1:-1;;;6033:1048:1:o;8066:456::-;8143:6;8151;8159;8212:2;8200:9;8191:7;8187:23;8183:32;8180:52;;;8228:1;8225;8218:12;8180:52;8267:9;8254:23;8286:31;8311:5;8286:31;:::i;:::-;8336:5;-1:-1:-1;8393:2:1;8378:18;;8365:32;8406:33;8365:32;8406:33;:::i;:::-;8066:456;;8458:7;;-1:-1:-1;;;8512:2:1;8497:18;;;;8484:32;;8066:456::o;8527:247::-;8586:6;8639:2;8627:9;8618:7;8614:23;8610:32;8607:52;;;8655:1;8652;8645:12;8607:52;8694:9;8681:23;8713:31;8738:5;8713:31;:::i;8968:163::-;9035:20;;9095:10;9084:22;;9074:33;;9064:61;;9121:1;9118;9111:12;9064:61;8968:163;;;:::o;9136:252::-;9203:6;9211;9264:2;9252:9;9243:7;9239:23;9235:32;9232:52;;;9280:1;9277;9270:12;9232:52;9303:28;9321:9;9303:28;:::i;9575:118::-;9661:5;9654:13;9647:21;9640:5;9637:32;9627:60;;9683:1;9680;9673:12;9698:490;9793:6;9801;9854:2;9842:9;9833:7;9829:23;9825:32;9822:52;;;9870:1;9867;9860:12;9822:52;9910:9;9897:23;-1:-1:-1;;;;;9935:6:1;9932:30;9929:50;;;9975:1;9972;9965:12;9929:50;9998:69;10059:7;10050:6;10039:9;10035:22;9998:69;:::i;:::-;9988:79;;;10117:2;10106:9;10102:18;10089:32;10130:28;10152:5;10130:28;:::i;:::-;10177:5;10167:15;;;9698:490;;;;;:::o;10193:257::-;3498:12;;3486:25;;3560:4;3549:16;;;3543:23;3527:14;;;3520:47;10387:2;10372:18;;10399:45;3424:149;10455:159;10522:20;;10582:6;10571:18;;10561:29;;10551:57;;10604:1;10601;10594:12;10619:256;10685:6;10693;10746:2;10734:9;10725:7;10721:23;10717:32;10714:52;;;10762:1;10759;10752:12;10714:52;10785:28;10803:9;10785:28;:::i;:::-;10775:38;;10832:37;10865:2;10854:9;10850:18;10832:37;:::i;:::-;10822:47;;10619:256;;;;;:::o;11102:156::-;11168:20;;11228:4;11217:16;;11207:27;;11197:55;;11248:1;11245;11238:12;11263:523;11356:6;11364;11372;11380;11388;11441:3;11429:9;11420:7;11416:23;11412:33;11409:53;;;11458:1;11455;11448:12;11409:53;11497:9;11484:23;11516:31;11541:5;11516:31;:::i;:::-;11566:5;-1:-1:-1;11618:2:1;11603:18;;11590:32;;-1:-1:-1;11641:36:1;11673:2;11658:18;;11641:36;:::i;:::-;11263:523;;;;-1:-1:-1;11631:46:1;;11724:2;11709:18;;11696:32;;-1:-1:-1;11775:3:1;11760:19;11747:33;;11263:523;-1:-1:-1;;11263:523:1:o;12028:1257::-;12434:3;12429;12425:13;12417:6;12413:26;12402:9;12395:45;12376:4;12459:2;12497:3;12492:2;12481:9;12477:18;12470:31;12524:45;12564:3;12553:9;12549:19;12541:6;12524:45;:::i;:::-;12617:9;12609:6;12605:22;12600:2;12589:9;12585:18;12578:50;12651:32;12676:6;12668;12651:32;:::i;:::-;12714:2;12699:18;;12692:34;;;-1:-1:-1;;;;;12763:32:1;;12757:3;12742:19;;12735:61;12783:3;12812:19;;12805:35;;;12877:22;;;12871:3;12856:19;;12849:51;12949:13;;12971:22;;;13021:2;13047:15;;;;-1:-1:-1;13009:15:1;;;;-1:-1:-1;13090:169:1;13104:6;13101:1;13098:13;13090:169;;;13165:13;;13153:26;;13234:15;;;;13199:12;;;;13126:1;13119:9;13090:169;;;-1:-1:-1;13276:3:1;;12028:1257;-1:-1:-1;;;;;;;;;;;;12028:1257:1:o;13290:127::-;13351:10;13346:3;13342:20;13339:1;13332:31;13382:4;13379:1;13372:15;13406:4;13403:1;13396:15;13422:251;13494:2;13488:9;;;13524:15;;-1:-1:-1;;;;;13554:34:1;;13590:22;;;13551:62;13548:88;;;13616:18;;:::i;:::-;13652:2;13645:22;13422:251;:::o;13678:275::-;13749:2;13743:9;13814:2;13795:13;;-1:-1:-1;;13791:27:1;13779:40;;-1:-1:-1;;;;;13834:34:1;;13870:22;;;13831:62;13828:88;;;13896:18;;:::i;:::-;13932:2;13925:22;13678:275;;-1:-1:-1;13678:275:1:o;13958:186::-;14006:4;-1:-1:-1;;;;;14031:6:1;14028:30;14025:56;;;14061:18;;:::i;:::-;-1:-1:-1;14127:2:1;14106:15;-1:-1:-1;;14102:29:1;14133:4;14098:40;;13958:186::o;14149:462::-;14191:5;14244:3;14237:4;14229:6;14225:17;14221:27;14211:55;;14262:1;14259;14252:12;14211:55;14298:6;14285:20;14329:48;14345:31;14373:2;14345:31;:::i;:::-;14329:48;:::i;:::-;14402:2;14393:7;14386:19;14448:3;14441:4;14436:2;14428:6;14424:15;14420:26;14417:35;14414:55;;;14465:1;14462;14455:12;14414:55;14530:2;14523:4;14515:6;14511:17;14504:4;14495:7;14491:18;14478:55;14578:1;14553:16;;;14571:4;14549:27;14542:38;;;;14557:7;14149:462;-1:-1:-1;;;14149:462:1:o;14616:872::-;14738:6;14746;14754;14762;14770;14778;14786;14839:3;14827:9;14818:7;14814:23;14810:33;14807:53;;;14856:1;14853;14846:12;14807:53;14895:9;14882:23;14914:31;14939:5;14914:31;:::i;:::-;14964:5;-1:-1:-1;15021:2:1;15006:18;;14993:32;15034:33;14993:32;15034:33;:::i;:::-;15086:7;-1:-1:-1;15140:2:1;15125:18;;15112:32;;-1:-1:-1;15191:2:1;15176:18;;15163:32;;-1:-1:-1;15242:3:1;15227:19;;15214:33;;-1:-1:-1;15294:3:1;15279:19;;15266:33;;-1:-1:-1;15350:3:1;15335:19;;15322:33;-1:-1:-1;;;;;15367:30:1;;15364:50;;;15410:1;15407;15400:12;15364:50;15433:49;15474:7;15465:6;15454:9;15450:22;15433:49;:::i;:::-;15423:59;;;14616:872;;;;;;;;;;:::o;15493:183::-;15553:4;-1:-1:-1;;;;;15578:6:1;15575:30;15572:56;;;15608:18;;:::i;:::-;-1:-1:-1;15653:1:1;15649:14;15665:4;15645:25;;15493:183::o;15681:743::-;15735:5;15788:3;15781:4;15773:6;15769:17;15765:27;15755:55;;15806:1;15803;15796:12;15755:55;15842:6;15829:20;15868:4;15892:60;15908:43;15948:2;15908:43;:::i;15892:60::-;15974:3;15998:2;15993:3;15986:15;16026:4;16021:3;16017:14;16010:21;;16083:4;16077:2;16074:1;16070:10;16062:6;16058:23;16054:34;16040:48;;16111:3;16103:6;16100:15;16097:35;;;16128:1;16125;16118:12;16097:35;16164:4;16156:6;16152:17;16178:217;16194:6;16189:3;16186:15;16178:217;;;16274:3;16261:17;16291:31;16316:5;16291:31;:::i;:::-;16335:18;;16373:12;;;;16211;;16178:217;;;-1:-1:-1;16413:5:1;15681:743;-1:-1:-1;;;;;;15681:743:1:o;16429:348::-;16513:6;16566:2;16554:9;16545:7;16541:23;16537:32;16534:52;;;16582:1;16579;16572:12;16534:52;16622:9;16609:23;-1:-1:-1;;;;;16647:6:1;16644:30;16641:50;;;16687:1;16684;16677:12;16641:50;16710:61;16763:7;16754:6;16743:9;16739:22;16710:61;:::i;16782:734::-;16886:6;16894;16902;16910;16918;16971:3;16959:9;16950:7;16946:23;16942:33;16939:53;;;16988:1;16985;16978:12;16939:53;17027:9;17014:23;17046:31;17071:5;17046:31;:::i;:::-;17096:5;-1:-1:-1;17153:2:1;17138:18;;17125:32;17166:33;17125:32;17166:33;:::i;:::-;17218:7;-1:-1:-1;17272:2:1;17257:18;;17244:32;;-1:-1:-1;17323:2:1;17308:18;;17295:32;;-1:-1:-1;17378:3:1;17363:19;;17350:33;-1:-1:-1;;;;;17395:30:1;;17392:50;;;17438:1;17435;17428:12;17392:50;17461:49;17502:7;17493:6;17482:9;17478:22;17461:49;:::i;:::-;17451:59;;;16782:734;;;;;;;;:::o;17521:1138::-;17639:6;17647;17700:2;17688:9;17679:7;17675:23;17671:32;17668:52;;;17716:1;17713;17706:12;17668:52;17756:9;17743:23;-1:-1:-1;;;;;17826:2:1;17818:6;17815:14;17812:34;;;17842:1;17839;17832:12;17812:34;17865:61;17918:7;17909:6;17898:9;17894:22;17865:61;:::i;:::-;17855:71;;17945:2;17935:12;;18000:2;17989:9;17985:18;17972:32;18029:2;18019:8;18016:16;18013:36;;;18045:1;18042;18035:12;18013:36;18068:24;;;-1:-1:-1;18123:4:1;18115:13;;18111:27;-1:-1:-1;18101:55:1;;18152:1;18149;18142:12;18101:55;18188:2;18175:16;18211:60;18227:43;18267:2;18227:43;:::i;18211:60::-;18305:15;;;18387:1;18383:10;;;;18375:19;;18371:28;;;18336:12;;;;18411:19;;;18408:39;;;18443:1;18440;18433:12;18408:39;18467:11;;;;18487:142;18503:6;18498:3;18495:15;18487:142;;;18569:17;;18557:30;;18520:12;;;;18607;;;;18487:142;;;18648:5;18638:15;;;;;;;17521:1138;;;;;:::o;18664:129::-;-1:-1:-1;;;;;18742:5:1;18738:30;18731:5;18728:41;18718:69;;18783:1;18780;18773:12;18798:245;18856:6;18909:2;18897:9;18888:7;18884:23;18880:32;18877:52;;;18925:1;18922;18915:12;18877:52;18964:9;18951:23;18983:30;19007:5;18983:30;:::i;19048:523::-;19134:6;19142;19150;19203:2;19191:9;19182:7;19178:23;19174:32;19171:52;;;19219:1;19216;19209:12;19171:52;19258:9;19245:23;19277:31;19302:5;19277:31;:::i;:::-;19327:5;-1:-1:-1;19379:2:1;19364:18;;19351:32;;-1:-1:-1;19434:2:1;19419:18;;19406:32;-1:-1:-1;;;;;19450:30:1;;19447:50;;;19493:1;19490;19483:12;19447:50;19516:49;19557:7;19548:6;19537:9;19533:22;19516:49;:::i;:::-;19506:59;;;19048:523;;;;;:::o;19576:395::-;19667:8;19677:6;19731:3;19724:4;19716:6;19712:17;19708:27;19698:55;;19749:1;19746;19739:12;19698:55;-1:-1:-1;19772:20:1;;-1:-1:-1;;;;;19804:30:1;;19801:50;;;19847:1;19844;19837:12;19801:50;19884:4;19876:6;19872:17;19860:29;;19944:3;19937:4;19927:6;19924:1;19920:14;19912:6;19908:27;19904:38;19901:47;19898:67;;;19961:1;19958;19951:12;19976:504;20101:6;20109;20162:2;20150:9;20141:7;20137:23;20133:32;20130:52;;;20178:1;20175;20168:12;20130:52;20218:9;20205:23;-1:-1:-1;;;;;20243:6:1;20240:30;20237:50;;;20283:1;20280;20273:12;20237:50;20322:98;20412:7;20403:6;20392:9;20388:22;20322:98;:::i;:::-;20439:8;;20296:124;;-1:-1:-1;19976:504:1;-1:-1:-1;;;;19976:504:1:o;20485:184::-;20543:6;20596:2;20584:9;20575:7;20571:23;20567:32;20564:52;;;20612:1;20609;20602:12;20564:52;20635:28;20653:9;20635:28;:::i;20674:553::-;20760:6;20768;20776;20784;20837:2;20825:9;20816:7;20812:23;20808:32;20805:52;;;20853:1;20850;20843:12;20805:52;20876:28;20894:9;20876:28;:::i;:::-;20866:38;;20923:37;20956:2;20945:9;20941:18;20923:37;:::i;:::-;20913:47;;21011:2;21000:9;20996:18;20983:32;-1:-1:-1;;;;;21030:6:1;21027:30;21024:50;;;21070:1;21067;21060:12;21024:50;21109:58;21159:7;21150:6;21139:9;21135:22;21109:58;:::i;:::-;20674:553;;;;-1:-1:-1;21186:8:1;-1:-1:-1;;;;20674:553:1:o;21735:658::-;21874:6;21882;21890;21934:9;21925:7;21921:23;21964:3;21960:2;21956:12;21953:32;;;21981:1;21978;21971:12;21953:32;22021:9;22008:23;-1:-1:-1;;;;;22046:6:1;22043:30;22040:50;;;22086:1;22083;22076:12;22040:50;22109:69;22170:7;22161:6;22150:9;22146:22;22109:69;:::i;:::-;22099:79;-1:-1:-1;;22212:2:1;-1:-1:-1;;22194:16:1;;22190:25;22187:45;;;22228:1;22225;22218:12;22187:45;;22266:2;22255:9;22251:18;22241:28;;22319:2;22308:9;22304:18;22291:32;22332:31;22357:5;22332:31;:::i;:::-;22382:5;22372:15;;;21735:658;;;;;:::o;22398:615::-;22644:4;22686:3;22675:9;22671:19;22663:27;;22723:6;22717:13;22706:9;22699:32;-1:-1:-1;;;;;22791:4:1;22783:6;22779:17;22773:24;22769:49;22762:4;22751:9;22747:20;22740:79;22866:4;22858:6;22854:17;22848:24;22881:62;22937:4;22926:9;22922:20;22908:12;3498;;3486:25;;3560:4;3549:16;;;3543:23;3527:14;;3520:47;3424:149;22881:62;-1:-1:-1;3498:12:1;;23002:3;22987:19;;3486:25;3560:4;3549:16;;3543:23;3527:14;;;3520:47;22952:55;3424:149;23018:734;23129:6;23137;23145;23153;23161;23169;23177;23230:3;23218:9;23209:7;23205:23;23201:33;23198:53;;;23247:1;23244;23237:12;23198:53;23286:9;23273:23;23305:31;23330:5;23305:31;:::i;:::-;23355:5;-1:-1:-1;23412:2:1;23397:18;;23384:32;23425:33;23384:32;23425:33;:::i;:::-;23477:7;-1:-1:-1;23531:2:1;23516:18;;23503:32;;-1:-1:-1;23582:2:1;23567:18;;23554:32;;-1:-1:-1;23605:37:1;23637:3;23622:19;;23605:37;:::i;:::-;23595:47;;23689:3;23678:9;23674:19;23661:33;23651:43;;23741:3;23730:9;23726:19;23713:33;23703:43;;23018:734;;;;;;;;;;:::o;23757:388::-;23825:6;23833;23886:2;23874:9;23865:7;23861:23;23857:32;23854:52;;;23902:1;23899;23892:12;23854:52;23941:9;23928:23;23960:31;23985:5;23960:31;:::i;:::-;24010:5;-1:-1:-1;24067:2:1;24052:18;;24039:32;24080:33;24039:32;24080:33;:::i;24150:872::-;24279:6;24287;24295;24303;24311;24319;24327;24335;24343;24396:3;24384:9;24375:7;24371:23;24367:33;24364:53;;;24413:1;24410;24403:12;24364:53;24452:9;24439:23;24471:31;24496:5;24471:31;:::i;:::-;24521:5;-1:-1:-1;24578:2:1;24563:18;;24550:32;24591:33;24550:32;24591:33;:::i;:::-;24643:7;-1:-1:-1;24697:2:1;24682:18;;24669:32;;-1:-1:-1;24748:2:1;24733:18;;24720:32;;-1:-1:-1;24799:3:1;24784:19;;24771:33;;-1:-1:-1;24851:3:1;24836:19;;24823:33;;-1:-1:-1;24875:37:1;24907:3;24892:19;;24875:37;:::i;:::-;24865:47;;24959:3;24948:9;24944:19;24931:33;24921:43;;25011:3;25000:9;24996:19;24983:33;24973:43;;24150:872;;;;;;;;;;;:::o;25347:320::-;25423:6;25431;25439;25492:2;25480:9;25471:7;25467:23;25463:32;25460:52;;;25508:1;25505;25498:12;25460:52;25544:9;25531:23;25521:33;;25601:2;25590:9;25586:18;25573:32;25563:42;;25624:37;25657:2;25646:9;25642:18;25624:37;:::i;:::-;25614:47;;25347:320;;;;;:::o;25925:236::-;26010:6;26063:2;26051:9;26042:7;26038:23;26034:32;26031:52;;;26079:1;26076;26069:12;26031:52;26102:53;26147:7;26136:9;26102:53;:::i;26434:410::-;26636:2;26618:21;;;26675:2;26655:18;;;26648:30;26714:34;26709:2;26694:18;;26687:62;-1:-1:-1;;;26780:2:1;26765:18;;26758:44;26834:3;26819:19;;26434:410::o;26849:127::-;26910:10;26905:3;26901:20;26898:1;26891:31;26941:4;26938:1;26931:15;26965:4;26962:1;26955:15;26981:125;27046:9;;;27067:10;;;27064:36;;;27080:18;;:::i;27111:380::-;27190:1;27186:12;;;;27233;;;27254:61;;27308:4;27300:6;27296:17;27286:27;;27254:61;27361:2;27353:6;27350:14;27330:18;27327:38;27324:161;;27407:10;27402:3;27398:20;27395:1;27388:31;27442:4;27439:1;27432:15;27470:4;27467:1;27460:15;27496:338;27677:19;;;27721:2;27712:12;;27705:28;;;;27789:3;27767:16;-1:-1:-1;;;;;;27763:36:1;27758:2;27749:12;;27742:58;27825:2;27816:12;;27496:338::o;28498:663::-;28813:25;;;-1:-1:-1;;;;;28912:15:1;;;28907:2;28892:18;;28885:43;28964:15;;;;28959:2;28944:18;;28937:43;29011:2;28996:18;;28989:34;;;;29054:3;29039:19;;29032:35;28865:3;29083:19;;29076:35;;;;29142:3;29127:19;;29120:35;28800:3;28785:19;;28498:663::o;30526:127::-;30587:10;30582:3;30578:20;30575:1;30568:31;30618:4;30615:1;30608:15;30642:4;30639:1;30632:15;31008:336;31113:4;31171:11;31158:25;31265:2;31261:7;31250:8;31234:14;31230:29;31226:43;31206:18;31202:68;31192:96;;31284:1;31281;31274:12;31192:96;31305:33;;;;;31008:336;-1:-1:-1;;31008:336:1:o;31349:521::-;31426:4;31432:6;31492:11;31479:25;31586:2;31582:7;31571:8;31555:14;31551:29;31547:43;31527:18;31523:68;31513:96;;31605:1;31602;31595:12;31513:96;31632:33;;31684:20;;;-1:-1:-1;;;;;;31716:30:1;;31713:50;;;31759:1;31756;31749:12;31713:50;31792:4;31780:17;;-1:-1:-1;31823:14:1;31819:27;;;31809:38;;31806:58;;;31860:1;31857;31850:12;31875:184;31933:6;31986:2;31974:9;31965:7;31961:23;31957:32;31954:52;;;32002:1;31999;31992:12;31954:52;32025:28;32043:9;32025:28;:::i;32189:517::-;32290:2;32285:3;32282:11;32279:421;;;32326:5;32323:1;32316:16;32370:4;32367:1;32357:18;32440:2;32428:10;32424:19;32421:1;32417:27;32411:4;32407:38;32476:4;32464:10;32461:20;32458:47;;;-1:-1:-1;32499:4:1;32458:47;32554:2;32549:3;32545:12;32542:1;32538:20;32532:4;32528:31;32518:41;;32609:81;32627:2;32620:5;32617:13;32609:81;;;32686:1;32672:16;;32653:1;32642:13;32609:81;;32882:1194;-1:-1:-1;;;;;32999:3:1;32996:27;32993:53;;;33026:18;;:::i;:::-;33055:93;33144:3;33104:38;33136:4;33130:11;33104:38;:::i;:::-;33098:4;33055:93;:::i;:::-;33174:1;33199:2;33194:3;33191:11;33216:1;33211:607;;;;33862:1;33879:3;33876:93;;;-1:-1:-1;33935:19:1;;;33922:33;33876:93;-1:-1:-1;;32839:1:1;32835:11;;;32831:24;32827:29;32817:40;32863:1;32859:11;;;32814:57;33982:78;;33184:886;;33211:607;32136:1;32129:14;;;32173:4;32160:18;;-1:-1:-1;;33247:17:1;;;33361:229;33375:7;33372:1;33369:14;33361:229;;;33464:19;;;33451:33;33436:49;;33571:4;33556:20;;;;33524:1;33512:14;;;;33391:12;33361:229;;;33365:3;33618;33609:7;33606:16;33603:159;;;33742:1;33738:6;33732:3;33726;33723:1;33719:11;33715:21;33711:34;33707:39;33694:9;33689:3;33685:19;33672:33;33668:79;33660:6;33653:95;33603:159;;;33805:1;33799:3;33796:1;33792:11;33788:19;33782:4;33775:33;33184:886;;32882:1194;;;:::o;34081:266::-;34169:6;34164:3;34157:19;34221:6;34214:5;34207:4;34202:3;34198:14;34185:43;-1:-1:-1;34273:1:1;34248:16;;;34266:4;34244:27;;;34237:38;;;;34329:2;34308:15;;;-1:-1:-1;;34304:29:1;34295:39;;;34291:50;;34081:266::o;34352:1774::-;34609:2;34661:21;;;34634:18;;;34717:22;;;34580:4;;34758:2;34776:18;;;34840:1;34836:14;;;34821:30;;34817:39;;34879:6;34580:4;34913:1184;34927:6;34924:1;34921:13;34913:1184;;;34992:22;;;-1:-1:-1;;34988:36:1;34976:49;;35064:20;;35139:14;35135:27;;;-1:-1:-1;;35131:41:1;35107:66;;35097:94;;35187:1;35184;35177:12;35097:94;35217:31;;35271:4;35333:10;35307:24;35217:31;35307:24;:::i;:::-;35303:41;35295:6;35288:57;35421:6;35386:33;35415:2;35408:5;35404:14;35386:33;:::i;:::-;35382:46;35377:2;35369:6;35365:15;35358:71;35494:2;35487:5;35483:14;35470:28;35583:2;35579:7;35571:5;35555:14;35551:26;35547:40;35525:20;35521:67;35511:95;;35602:1;35599;35592:12;35511:95;35634:32;;;35742:16;;;;-1:-1:-1;35693:21:1;-1:-1:-1;;;;;35774:30:1;;35771:50;;;35817:1;35814;35807:12;35771:50;35870:6;35854:14;35850:27;35841:7;35837:41;35834:61;;;35891:1;35888;35881:12;35834:61;35932:2;35927;35919:6;35915:15;35908:27;35958:59;36013:2;36005:6;36001:15;35993:6;35984:7;35958:59;:::i;:::-;36075:12;;;;35948:69;-1:-1:-1;;;36040:15:1;;;;-1:-1:-1;34949:1:1;34942:9;34913:1184;;;-1:-1:-1;36114:6:1;;34352:1774;-1:-1:-1;;;;;;;;34352:1774:1:o;36131:331::-;36236:9;36247;36289:8;36277:10;36274:24;36271:44;;;36311:1;36308;36301:12;36271:44;36340:6;36330:8;36327:20;36324:40;;;36360:1;36357;36350:12;36324:40;-1:-1:-1;;36386:23:1;;;36431:25;;;;;-1:-1:-1;36131:331:1:o;36467:476::-;36658:3;36696:6;36690:13;36712:66;36771:6;36766:3;36759:4;36751:6;36747:17;36712:66;:::i;:::-;36800:16;;36853:6;36845;36800:16;36825:35;36917:1;36879:18;;36906:13;;;-1:-1:-1;36879:18:1;;36467:476;-1:-1:-1;;;36467:476:1:o;36948:244::-;37105:2;37094:9;37087:21;37068:4;37125:61;37182:2;37171:9;37167:18;37159:6;37151;37125:61;:::i;37197:331::-;37296:4;37354:11;37341:25;37448:3;37444:8;37433;37417:14;37413:29;37409:44;37389:18;37385:69;37375:97;;37468:1;37465;37458:12;37533:992;37911:10;37884:25;37902:6;37884:25;:::i;:::-;37880:42;37869:9;37862:61;37986:4;37978:6;37974:17;37961:31;37954:4;37943:9;37939:20;37932:61;37843:4;38040;38032:6;38028:17;38015:31;38055:30;38079:5;38055:30;:::i;:::-;-1:-1:-1;;;;;38127:5:1;38123:30;38116:4;38105:9;38101:20;38094:60;;38190:6;38185:2;38174:9;38170:18;38163:34;38234:3;38228;38217:9;38213:19;38206:32;38261:62;38318:3;38307:9;38303:19;38295:6;38287;38261:62;:::i;:::-;-1:-1:-1;;;;;38360:32:1;;38380:3;38339:19;;38332:61;38430:22;;;38424:3;38409:19;;38402:51;38470:49;38434:6;38504;38496;38470:49;:::i;:::-;38462:57;37533:992;-1:-1:-1;;;;;;;;;;37533:992:1:o;38530:647::-;38609:6;38662:2;38650:9;38641:7;38637:23;38633:32;38630:52;;;38678:1;38675;38668:12;38630:52;38711:9;38705:16;-1:-1:-1;;;;;38736:6:1;38733:30;38730:50;;;38776:1;38773;38766:12;38730:50;38799:22;;38852:4;38844:13;;38840:27;-1:-1:-1;38830:55:1;;38881:1;38878;38871:12;38830:55;38910:2;38904:9;38935:48;38951:31;38979:2;38951:31;:::i;38935:48::-;39006:2;38999:5;38992:17;39046:7;39041:2;39036;39032;39028:11;39024:20;39021:33;39018:53;;;39067:1;39064;39057:12;39018:53;39080:67;39144:2;39139;39132:5;39128:14;39123:2;39119;39115:11;39080:67;:::i;39182:348::-;39271:6;39324:2;39312:9;39303:7;39299:23;39295:32;39292:52;;;39340:1;39337;39330:12;39292:52;39366:22;;:::i;:::-;39424:9;39411:23;39404:5;39397:38;39495:2;39484:9;39480:18;39467:32;39462:2;39455:5;39451:14;39444:56;39519:5;39509:15;;;39182:348;;;;:::o;40281:245::-;40348:6;40401:2;40389:9;40380:7;40376:23;40372:32;40369:52;;;40417:1;40414;40407:12;40369:52;40449:9;40443:16;40468:28;40490:5;40468:28;:::i;40531:217::-;40571:1;40597;40587:132;;40641:10;40636:3;40632:20;40629:1;40622:31;40676:4;40673:1;40666:15;40704:4;40701:1;40694:15;40587:132;-1:-1:-1;40733:9:1;;40531:217::o;40950:478::-;41217:1;41213;41208:3;41204:11;41200:19;41192:6;41188:32;41177:9;41170:51;41257:6;41252:2;41241:9;41237:18;41230:34;41312:6;41304;41300:19;41295:2;41284:9;41280:18;41273:47;41356:3;41351:2;41340:9;41336:18;41329:31;41151:4;41377:45;41417:3;41406:9;41402:19;41394:6;41377:45;:::i;42420:889::-;42643:2;42632:9;42625:21;42701:10;42692:6;42686:13;42682:30;42677:2;42666:9;42662:18;42655:58;42767:4;42759:6;42755:17;42749:24;42744:2;42733:9;42729:18;42722:52;42606:4;42821:2;42813:6;42809:15;42803:22;42862:4;42856:3;42845:9;42841:19;42834:33;42890:51;42936:3;42925:9;42921:19;42907:12;42890:51;:::i;:::-;42876:65;;42990:2;42982:6;42978:15;42972:22;43064:2;43060:7;43048:9;43040:6;43036:22;43032:36;43025:4;43014:9;43010:20;43003:66;43092:40;43125:6;43109:14;43092:40;:::i;:::-;43201:3;43189:16;;;;43183:23;43176:31;43169:39;43163:3;43148:19;;43141:68;-1:-1:-1;;;;;;;;43270:32:1;;;;43263:4;43248:20;;;43241:62;43078:54;42420:889::o;43314:284::-;43384:5;43432:4;43420:9;43415:3;43411:19;43407:30;43404:50;;;43450:1;43447;43440:12;43404:50;43472:22;;:::i;:::-;43463:31;;43523:9;43517:16;43510:5;43503:31;43587:2;43576:9;43572:18;43566:25;43561:2;43554:5;43550:14;43543:49;43314:284;;;;:::o;43603:259::-;43703:6;43756:2;43744:9;43735:7;43731:23;43727:32;43724:52;;;43772:1;43769;43762:12;43724:52;43795:61;43848:7;43837:9;43795:61;:::i;44672:168::-;44745:9;;;44776;;44793:15;;;44787:22;;44773:37;44763:71;;44814:18;;:::i;44845:318::-;-1:-1:-1;;;;;;44965:19:1;;45036:11;;;;45067:1;45059:10;;45056:101;;;45144:2;45138;45131:3;45128:1;45124:11;45121:1;45117:19;45113:28;45109:2;45105:37;45101:46;45092:55;;45056:101;;;44845:318;;;;:::o;45168:407::-;45370:2;45352:21;;;45409:2;45389:18;;;45382:30;45448:34;45443:2;45428:18;;45421:62;-1:-1:-1;;;45514:2:1;45499:18;;45492:41;45565:3;45550:19;;45168:407::o;45580:683::-;45684:6;45737:3;45725:9;45716:7;45712:23;45708:33;45705:53;;;45754:1;45751;45744:12;45705:53;45787:2;45781:9;45829:4;45821:6;45817:17;45900:6;45888:10;45885:22;-1:-1:-1;;;;;45852:10:1;45849:34;45846:62;45843:88;;;45911:18;;:::i;:::-;45947:2;45940:22;45986:16;;45971:32;;46046:2;46031:18;;46025:25;46059:30;46025:25;46059:30;:::i;:::-;46117:2;46105:15;;46098:30;46161:70;46223:7;46218:2;46203:18;;46161:70;:::i;:::-;46156:2;46144:15;;46137:95;46148:6;45580:683;-1:-1:-1;;;45580:683:1:o;46563:532::-;46804:6;46799:3;46792:19;-1:-1:-1;;;;;46867:3:1;46863:28;46854:6;46849:3;46845:16;46841:51;46836:2;46831:3;46827:12;46820:73;46923:6;46918:2;46913:3;46909:12;46902:28;46774:3;46959:6;46953:13;46975:73;47041:6;47036:2;47031:3;47027:12;47022:2;47014:6;47010:15;46975:73;:::i;:::-;47068:16;;;;47086:2;47064:25;;46563:532;-1:-1:-1;;;;;46563:532:1:o;47908:255::-;48028:19;;48067:2;48059:11;;48056:101;;;-1:-1:-1;;48128:2:1;48124:12;;;48121:1;48117:20;48113:33;48102:45;47908:255;;;;:::o;48168:331::-;-1:-1:-1;;;;;;48288:19:1;;48372:11;;;;48403:1;48395:10;;48392:101;;;48464:1;48460:11;;;;48457:1;48453:19;48449:28;;;48441:37;48437:46;;;;48168:331;-1:-1:-1;;48168:331:1:o;48504:568::-;-1:-1:-1;;;;;48769:3:1;48765:28;48756:6;48751:3;48747:16;48743:51;48738:3;48731:64;48855:10;48850:3;48846:20;48837:6;48832:3;48828:16;48824:43;48820:1;48815:3;48811:11;48804:64;48898:6;48893:2;48888:3;48884:12;48877:28;48713:3;48934:6;48928:13;48950:75;49018:6;49013:2;49008:3;49004:12;48997:4;48989:6;48985:17;48950:75;:::i;:::-;49045:16;;;;49063:2;49041:25;;48504:568;-1:-1:-1;;;;;48504:568:1:o;50788:1343::-;50914:3;50908:10;-1:-1:-1;;;;;50933:6:1;50930:30;50927:56;;;50963:18;;:::i;:::-;50992:96;51081:6;51041:38;51073:4;51067:11;51041:38;:::i;:::-;51035:4;50992:96;:::i;:::-;51143:4;;51200:2;51189:14;;51217:1;51212:662;;;;51918:1;51935:6;51932:89;;;-1:-1:-1;51987:19:1;;;51981:26;51932:89;-1:-1:-1;;32839:1:1;32835:11;;;32831:24;32827:29;32817:40;32863:1;32859:11;;;32814:57;52034:81;;51182:943;;51212:662;32136:1;32129:14;;;32173:4;32160:18;;-1:-1:-1;;51248:20:1;;;51365:236;51379:7;51376:1;51373:14;51365:236;;;51468:19;;;51462:26;51447:42;;51560:27;;;;51528:1;51516:14;;;;51395:19;;51365:236;;;51369:3;51629:6;51620:7;51617:19;51614:201;;;51690:19;;;51684:26;-1:-1:-1;;51773:1:1;51769:14;;;51785:3;51765:24;51761:37;51757:42;51742:58;51727:74;;51614:201;;;51861:1;51852:6;51849:1;51845:14;51841:22;51835:4;51828:36;51182:943;;;;;50788:1343;;:::o;52136:127::-;52197:10;52192:3;52188:20;52185:1;52178:31;52228:4;52225:1;52218:15;52252:4;52249:1;52242:15;52268:251;52338:6;52391:2;52379:9;52370:7;52366:23;52362:32;52359:52;;;52407:1;52404;52397:12;52359:52;52439:9;52433:16;52458:31;52483:5;52458:31;:::i;52884:128::-;52951:9;;;52972:11;;;52969:37;;;52986:18;;:::i;53017:127::-;53078:10;53073:3;53069:20;53066:1;53059:31;53109:4;53106:1;53099:15;53133:4;53130:1;53123:15;53149:288;53324:6;53313:9;53306:25;53367:2;53362;53351:9;53347:18;53340:30;53287:4;53387:44;53427:2;53416:9;53412:18;53404:6;53387:44;:::i;53442:287::-;53571:3;53609:6;53603:13;53625:66;53684:6;53679:3;53672:4;53664:6;53660:17;53625:66;:::i;53734:184::-;53804:6;53857:2;53845:9;53836:7;53832:23;53828:32;53825:52;;;53873:1;53870;53863:12;53825:52;-1:-1:-1;53896:16:1;;53734:184;-1:-1:-1;53734:184:1:o
Swarm Source
ipfs://618850618b887b1d51cd2c6ce6ee6ff5483c1f8a888898e3d2e32ebeadcef7a4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.