Source Code
Latest 7 from a total of 7 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Set Peer | 3247203 | 649 days ago | IN | 0 FRAX | 0.00000124 | ||||
| Set Peer | 3247201 | 649 days ago | IN | 0 FRAX | 0.00000124 | ||||
| Set Peer | 3247199 | 649 days ago | IN | 0 FRAX | 0.00000113 | ||||
| Set Peer | 3247197 | 649 days ago | IN | 0 FRAX | 0.00000113 | ||||
| Set Peer | 3247195 | 649 days ago | IN | 0 FRAX | 0.00000113 | ||||
| Set Peer | 3247193 | 649 days ago | IN | 0 FRAX | 0.00000126 | ||||
| Set Peer | 3247191 | 649 days ago | IN | 0 FRAX | 0.00000125 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers.
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Block | From | To | ||||
|---|---|---|---|---|---|---|---|
| 3245206 | 649 days ago | 0 FRAX |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
lzYFX
Compiler Version
v0.8.25+commit.b61c2a91
Contract Source Code (Solidity)
/**
*Submitted for verification at fraxscan.com on 2024-04-16
*/
// File: @openzeppelin/contracts/access/IAccessControl.sol
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oft/libs/OFTComposeMsgCodec.sol
pragma solidity ^0.8.20;
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)));
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oft/libs/OFTMsgCodec.sol
pragma solidity ^0.8.20;
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)));
}
}
// File: @layerzerolabs/lz-evm-protocol-v2/contracts/libs/AddressCast.sol
pragma solidity ^0.8.20;
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));
}
}
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @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);
}
// File: @openzeppelin/contracts/utils/introspection/ERC165.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/precrime/interfaces/IPreCrime.sol
pragma solidity ^0.8.20;
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);
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oapp/interfaces/IOAppMsgInspector.sol
pragma solidity ^0.8.20;
/**
* @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);
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oapp/interfaces/IOAppOptionsType3.sol
pragma solidity ^0.8.20;
/**
* @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);
}
// File: @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol
pragma solidity >=0.8.0;
interface IMessagingContext {
function isSendingMessage() external view returns (bool);
function getSendContext() external view returns (uint32 dstEid, address sender);
}
// File: @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol
pragma solidity >=0.8.0;
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);
}
// File: @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol
pragma solidity >=0.8.0;
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;
}
// File: @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol
pragma solidity >=0.8.0;
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 _timeout) 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 _gracePeriod) 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);
}
// File: @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLib.sol
pragma solidity >=0.8.0;
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);
}
// File: @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol
pragma solidity >=0.8.0;
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;
}
// File: @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ISendLib.sol
pragma solidity >=0.8.0;
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;
}
// File: @layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/PacketV1Codec.sol
pragma solidity ^0.8.20;
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));
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/precrime/libs/Packet.sol
pragma solidity ^0.8.20;
/**
* @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];
}
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol
pragma solidity ^0.8.20;
// @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);
}
// File: @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol
pragma solidity >=0.8.0;
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;
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oapp/interfaces/IOAppReceiver.sol
pragma solidity ^0.8.20;
interface IOAppReceiver is ILayerZeroReceiver {
/**
* @notice Indicates whether an address is an approved composeMsg sender to 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 _message The lzReceive payload.
* @param _sender The sender address.
* @return isSender Is a valid sender.
*
* @dev Applications can optionally choose to implement a separate composeMsg sender that is NOT the bridging layer.
* @dev The default sender IS the OAppReceiver implementer.
*/
function isComposeMsgSender(
Origin calldata _origin,
bytes calldata _message,
address _sender
) external view returns (bool isSender);
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oapp/interfaces/IOAppCore.sol
pragma solidity ^0.8.20;
/**
* @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;
}
// File: @openzeppelin/contracts/utils/Address.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @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 or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* 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.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @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`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) 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 FailedInnerCall();
}
}
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @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);
}
// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
// File: @openzeppelin/contracts/access/AccessControl.sol
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```solidity
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```solidity
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
mapping(bytes32 role => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual returns (bool) {
return _roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
if (!hasRole(role, account)) {
_roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
if (hasRole(role, account)) {
_roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
/**
* @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.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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);
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/precrime/OAppPreCrimeSimulator.sol
pragma solidity ^0.8.20;
/**
* @title OAppPreCrimeSimulator
* @dev Abstract contract serving as the base for preCrime simulation functionality in an OApp.
*/
abstract contract OAppPreCrimeSimulator is IOAppPreCrimeSimulator, Ownable {
// The address of the preCrime implementation.
address public 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 {
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);
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oapp/libs/OAppOptionsType3.sol
pragma solidity ^0.8.20;
/**
* @title OAppOptionsType3
* @dev Abstract contract implementing the IOAppOptionsType3 interface with type 3 options.
*/
abstract contract OAppOptionsType3 is IOAppOptionsType3, Ownable {
uint16 internal constant OPTION_TYPE_3 = 3;
// @dev The "msgType" should be defined in the child contract.
mapping(uint32 eid => mapping(uint16 msgType => bytes enforcedOption)) public enforcedOptions;
/**
* @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 {
_setEnforcedOptions(_enforcedOptions);
}
/**
* @dev Sets the enforced options for specific endpoint and message type combinations.
* @param _enforcedOptions An array of EnforcedOptionParam structures specifying enforced options.
*
* @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[] memory _enforcedOptions) internal virtual {
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) {
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 memory _options) internal pure virtual {
uint16 optionsType;
assembly {
optionsType := mload(add(_options, 2))
}
if (optionsType != OPTION_TYPE_3) revert InvalidOptions(_options);
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OAppCore.sol
pragma solidity ^0.8.20;
/**
* @title OAppCore
* @dev Abstract contract implementing the IOAppCore interface with basic OApp configurations.
*/
abstract contract OAppCore is IOAppCore, Ownable {
// The LayerZero endpoint associated with the given OApp
ILayerZeroEndpointV2 public immutable endpoint;
// Mapping to store peers associated with corresponding endpoints
mapping(uint32 eid => bytes32 peer) public peers;
/**
* @dev Constructor to initialize the OAppCore with the provided endpoint and delegate.
* @param _endpoint The address of the LOCAL Layer Zero endpoint.
* @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.
*/
constructor(address _endpoint, address _delegate) {
endpoint = ILayerZeroEndpointV2(_endpoint);
if (_delegate == address(0)) revert InvalidDelegate();
endpoint.setDelegate(_delegate);
}
/**
* @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 {
_setPeer(_eid, _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.
*
* @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) internal virtual {
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) {
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);
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OAppReceiver.sol
pragma solidity ^0.8.20;
/**
* @title OAppReceiver
* @dev Abstract contract implementing the ILayerZeroReceiver interface and extending OAppCore for OApp receivers.
*/
abstract contract OAppReceiver is IOAppReceiver, OAppCore {
// 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 = 2;
/**
* @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 Indicates whether an address is an approved composeMsg sender to the Endpoint.
* @dev _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.
* @dev _message The lzReceive payload.
* @param _sender The sender address.
* @return isSender Is a valid sender.
*
* @dev Applications can optionally choose to implement separate composeMsg senders that are NOT the bridging layer.
* @dev The default sender IS the OAppReceiver implementer.
*/
function isComposeMsgSender(
Origin calldata /*_origin*/,
bytes calldata /*_message*/,
address _sender
) public view virtual returns (bool) {
return _sender == 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;
}
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}
// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
/**
* @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 An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @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.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @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);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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(token).code.length > 0;
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OAppSender.sol
pragma solidity ^0.8.20;
/**
* @title OAppSender
* @dev Abstract contract implementing the OAppSender functionality for sending messages to a LayerZero endpoint.
*/
abstract contract OAppSender is OAppCore {
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;
/**
* @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
// solhint-disable-next-line check-send-result
endpoint.send{ value: messageValue }(
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);
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol
pragma solidity ^0.8.20;
/**
* @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(
bytes32 indexed guid, // GUID of the OFT message.
uint32 dstEid, // Destination Endpoint ID.
address indexed fromAddress, // Address of the sender on the src chain.
uint256 amountSentLD, // Amount of tokens sent in local decimals.
uint256 amountReceivedLD // Amount of tokens received in local decimals.
);
event OFTReceived(
bytes32 indexed guid, // GUID of the OFT message.
uint32 srcEid, // Source Endpoint ID.
address indexed toAddress, // Address of the recipient on the dst chain.
uint256 amountReceivedLD // Amount of tokens received in local decimals.
);
/**
* @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);
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OApp.sol
pragma solidity ^0.8.20;
// @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 OApp is OAppSender, OAppReceiver {
/**
* @dev Constructor to initialize the OApp with the provided endpoint and owner.
* @param _endpoint The address of the LOCAL LayerZero endpoint.
* @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
*/
constructor(address _endpoint, address _delegate) OAppCore(_endpoint, _delegate) {}
/**
* @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(OAppSender, OAppReceiver)
returns (uint64 senderVersion, uint64 receiverVersion)
{
return (SENDER_VERSION, RECEIVER_VERSION);
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oft/OFTCore.sol
pragma solidity ^0.8.20;
/**
* @title OFTCore
* @dev Abstract contract for the OftChain (OFT) token.
*/
abstract contract OFTCore is IOFT, OApp, OAppPreCrimeSimulator, OAppOptionsType3 {
using OFTMsgCodec for bytes;
using OFTMsgCodec for bytes32;
// @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;
// Address of an optional contract to inspect both 'message' and 'options'
address public msgInspector;
event MsgInspectorSet(address inspector);
/**
* @dev Constructor.
* @param _localDecimals The decimals of the token on the local chain (this chain).
* @param _endpoint The address of the LayerZero endpoint.
* @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
*/
constructor(uint8 _localDecimals, address _endpoint, address _delegate) OApp(_endpoint, _delegate) {
if (_localDecimals < sharedDecimals()) revert InvalidLocalDecimals();
decimalConversionRate = 10 ** (_localDecimals - sharedDecimals());
}
/**
* @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 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 view 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 {
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(
msg.sender,
_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);
// @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 _from The address to debit.
* @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(
address _from,
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);
}
// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// File: @openzeppelin/contracts/token/ERC20/ERC20.sol
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
/**
* @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}.
*
* 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.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => 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.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual 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 returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual 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 `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` 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 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
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 `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` 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.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` 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.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
// File: @layerzerolabs/lz-evm-oapp-v2/contracts/oft/OFT.sol
pragma solidity ^0.8.20;
/**
* @title OFT Contract
* @dev OFT is an ERC-20 token that extends the functionality of the OFTCore contract.
*/
abstract contract OFT is OFTCore, ERC20 {
/**
* @dev Constructor for the OFT contract.
* @param _name The name of the OFT.
* @param _symbol The symbol of the OFT.
* @param _lzEndpoint The LayerZero endpoint address.
* @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
*/
constructor(
string memory _name,
string memory _symbol,
address _lzEndpoint,
address _delegate
) ERC20(_name, _symbol) OFTCore(decimals(), _lzEndpoint, _delegate) {}
/**
* @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() public 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 _from The address to debit the tokens from.
* @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(
address _from,
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(_from, 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;
}
}
// File: contracts/lzYFX.sol
pragma solidity ^0.8.20;
contract lzYFX is OFT, AccessControl {
bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
constructor(address _layerZeroEndpoint)
OFT("Layer Zero YFX", "lzYFX", _layerZeroEndpoint, msg.sender)
Ownable(msg.sender)
{
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
_grantRole(OPERATOR_ROLE, msg.sender);
_grantRole(MINTER_ROLE, msg.sender);
}
function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE) {
_mint(to, amount);
}
function burn(uint256 amount) public {
_burn(msg.sender, amount);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_layerZeroEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"FailedInnerCall","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":[],"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":[{"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":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","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"},{"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":[{"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":"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":[{"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","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":[{"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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","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":"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":[],"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":"enforcedOption","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","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":"","type":"tuple"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"address","name":"_sender","type":"address"}],"name":"isComposeMsgSender","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"view","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":[],"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":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"peers","outputs":[{"internalType":"bytes32","name":"peer","type":"bytes32"}],"stateMutability":"view","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"value","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"}]Contract Creation Code
60c060405234801561001057600080fd5b5060405161412038038061412083398101604081905261002f91610338565b6040518060400160405280600e81526020016d098c2f2cae440b4cae4de40b28cb60931b815250604051806040016040528060058152602001640d8f4b28cb60db1b8152508233838361008661022e60201b60201c565b84848181818133806100b257604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100bb81610233565b506001600160a01b0380831660805281166100e957604051632d618d8160e21b815260040160405180910390fd5b60805160405163ca5eb5e160e01b81526001600160a01b0383811660048301529091169063ca5eb5e190602401600060405180830381600087803b15801561013057600080fd5b505af1158015610144573d6000803e3d6000fd5b505050505050505061015a61028360201b60201c565b60ff168360ff161015610180576040516301e9714b60e41b815260040160405180910390fd5b61018b60068461037e565b61019690600a61047b565b60a05250600891506101aa9050838261052b565b5060096101b7828261052b565b505050505050506101d16000801b3361028860201b60201c565b506101fc7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92933610288565b506102277f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610288565b50506105ea565b601290565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600690565b6000828152600a602090815260408083206001600160a01b038516845290915281205460ff1661032e576000838152600a602090815260408083206001600160a01b03861684529091529020805460ff191660011790556102e63390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610332565b5060005b92915050565b60006020828403121561034a57600080fd5b81516001600160a01b038116811461036157600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b60ff828116828216039081111561033257610332610368565b600181815b808511156103d25781600019048211156103b8576103b8610368565b808516156103c557918102915b93841c939080029061039c565b509250929050565b6000826103e957506001610332565b816103f657506000610332565b816001811461040c576002811461041657610432565b6001915050610332565b60ff84111561042757610427610368565b50506001821b610332565b5060208310610133831016604e8410600b8410161715610455575081810a610332565b61045f8383610397565b806000190482111561047357610473610368565b029392505050565b600061036160ff8416836103da565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806104b457607f821691505b6020821081036104d457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610526576000816000526020600020601f850160051c810160208610156105035750805b601f850160051c820191505b818110156105225782815560010161050f565b5050505b505050565b81516001600160401b038111156105445761054461048a565b6105588161055284546104a0565b846104da565b602080601f83116001811461058d57600084156105755750858301515b600019600386901b1c1916600185901b178555610522565b600085815260208120601f198616915b828110156105bc5788860151825594840194600190910190840161059d565b50858210156105da5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a051613acb61065560003960008181610844015281816122db0152818161235001526125c80152600081816106bc01528181610ce8015281816115460152818161186c01528181611d8d015281816120f8015281816126c401526127940152613acb6000f3fe60806040526004361061034a5760003560e01c8063715018a6116101bb578063bb0b6a53116100f7578063d539139311610095578063f2fde38b1161006f578063f2fde38b14610a5d578063f5b541a614610a7d578063fc0c546a14610640578063ff7bd03d14610ab157600080fd5b8063d5391393146109c3578063d547741f146109f7578063dd62ed3e14610a1757600080fd5b8063c7c7f5b3116100d1578063c7c7f5b31461094f578063ca5eb5e114610970578063d045a0dc14610990578063d4243885146109a357600080fd5b8063bb0b6a53146108ef578063bc70b3541461091c578063bd815db01461093c57600080fd5b806395d89b4111610164578063a217fddf1161013e578063a217fddf1461087a578063a9059cbb1461088f578063b731ea0a146108af578063b98bd070146108cf57600080fd5b806395d89b411461081d578063963efcaa146108325780639f68b9641461086657600080fd5b8063857749b011610195578063857749b0146107a55780638da5cb5b146107b957806391d14854146107d757600080fd5b8063715018a6146107345780637d25a05e1461074957806382413eac1461078557600080fd5b80632f2ff15d1161028a57806342966c68116102335780635a0dfe4d1161020d5780635a0dfe4d146106735780635e280f11146106aa5780636fc1b31e146106de57806370a08231146106fe57600080fd5b806342966c681461062057806352ae2879146106405780635535d4611461065357600080fd5b806336568abe1161026457806336568abe146105b35780633b6f743b146105d357806340c10f191461060057600080fd5b80632f2ff15d14610551578063313ce567146105715780633400288b1461059357600080fd5b8063134d4f25116102f757806318160ddd116102d157806318160ddd146104cd5780631f5e1334146104ec57806323b872dd14610501578063248a9ca31461052157600080fd5b8063134d4f2514610442578063156a0d0f1461046a57806317442b70146104ab57600080fd5b80630d35b415116103285780630d35b415146103c6578063111ecdad146103f557806313137d651461042d57600080fd5b806301ffc9a71461034f57806306fdde0314610384578063095ea7b3146103a6575b600080fd5b34801561035b57600080fd5b5061036f61036a366004612a19565b610ad1565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b50610399610b6a565b60405161037b9190612aab565b3480156103b257600080fd5b5061036f6103c1366004612ad3565b610bfc565b3480156103d257600080fd5b506103e66103e1366004612b17565b610c14565b60405161037b93929190612b4c565b34801561040157600080fd5b50600454610415906001600160a01b031681565b6040516001600160a01b03909116815260200161037b565b61044061043b366004612c5e565b610ce6565b005b34801561044e57600080fd5b50610457600281565b60405161ffff909116815260200161037b565b34801561047657600080fd5b50604080517f02e49c2c000000000000000000000000000000000000000000000000000000008152600160208201520161037b565b3480156104b757600080fd5b506040805160018152600260208201520161037b565b3480156104d957600080fd5b506007545b60405190815260200161037b565b3480156104f857600080fd5b50610457600181565b34801561050d57600080fd5b5061036f61051c366004612cfe565b610dd8565b34801561052d57600080fd5b506104de61053c366004612d3f565b6000908152600a602052604090206001015490565b34801561055d57600080fd5b5061044061056c366004612d58565b610dfe565b34801561057d57600080fd5b5060125b60405160ff909116815260200161037b565b34801561059f57600080fd5b506104406105ae366004612da1565b610e29565b3480156105bf57600080fd5b506104406105ce366004612d58565b610e3f565b3480156105df57600080fd5b506105f36105ee366004612dcb565b610e90565b60405161037b9190612e12565b34801561060c57600080fd5b5061044061061b366004612ad3565b610ef7565b34801561062c57600080fd5b5061044061063b366004612d3f565b610f2b565b34801561064c57600080fd5b5030610415565b34801561065f57600080fd5b5061039961066e366004612e3b565b610f38565b34801561067f57600080fd5b5061036f61068e366004612da1565b63ffffffff919091166000908152600160205260409020541490565b3480156106b657600080fd5b506104157f000000000000000000000000000000000000000000000000000000000000000081565b3480156106ea57600080fd5b506104406106f9366004612e6e565b610fdd565b34801561070a57600080fd5b506104de610719366004612e6e565b6001600160a01b031660009081526005602052604090205490565b34801561074057600080fd5b50610440611047565b34801561075557600080fd5b5061076c610764366004612da1565b600092915050565b60405167ffffffffffffffff909116815260200161037b565b34801561079157600080fd5b5061036f6107a0366004612e8b565b61105b565b3480156107b157600080fd5b506006610581565b3480156107c557600080fd5b506000546001600160a01b0316610415565b3480156107e357600080fd5b5061036f6107f2366004612d58565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561082957600080fd5b50610399611070565b34801561083e57600080fd5b506104de7f000000000000000000000000000000000000000000000000000000000000000081565b34801561087257600080fd5b50600061036f565b34801561088657600080fd5b506104de600081565b34801561089b57600080fd5b5061036f6108aa366004612ad3565b61107f565b3480156108bb57600080fd5b50600254610415906001600160a01b031681565b3480156108db57600080fd5b506104406108ea366004612f37565b61108d565b3480156108fb57600080fd5b506104de61090a366004612f79565b60016020526000908152604090205481565b34801561092857600080fd5b50610399610937366004612f94565b6110a7565b61044061094a366004612f37565b611268565b61096261095d366004612ff5565b61140b565b60405161037b929190613063565b34801561097c57600080fd5b5061044061098b366004612e6e565b611506565b61044061099e366004612c5e565b6115a5565b3480156109af57600080fd5b506104406109be366004612e6e565b6115ed565b3480156109cf57600080fd5b506104de7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610a0357600080fd5b50610440610a12366004612d58565b611650565b348015610a2357600080fd5b506104de610a323660046130b6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b348015610a6957600080fd5b50610440610a78366004612e6e565b611675565b348015610a8957600080fd5b506104de7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b348015610abd57600080fd5b5061036f610acc3660046130e4565b6116c9565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b6457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060088054610b7990613100565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba590613100565b8015610bf25780601f10610bc757610100808354040283529160200191610bf2565b820191906000526020600020905b815481529060010190602001808311610bd557829003601f168201915b5050505050905090565b600033610c0a8185856116ff565b5060019392505050565b60408051808201909152600080825260208201526060610c47604051806040016040528060008152602001600081525090565b604080518082018252600080825267ffffffffffffffff602080840182905284518381529081019094529195509182610ca3565b604080518082019091526000815260606020820152815260200190600190039081610c7b5790505b509350600080610cc8604089013560608a0135610cc360208c018c612f79565b61170c565b60408051808201909152918252602082015296989597505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314610d4f576040517f91ac5e4f0000000000000000000000000000000000000000000000000000000081523360048201526024015b60405180910390fd5b60208701803590610d6990610d64908a612f79565b611769565b14610dc057610d7b6020880188612f79565b6040517fc26bebcc00000000000000000000000000000000000000000000000000000000815263ffffffff909116600482015260208801356024820152604401610d46565b610dcf878787878787876117be565b50505050505050565b600033610de685828561193e565b610df18585856119cf565b60019150505b9392505050565b6000828152600a6020526040902060010154610e1981611a60565b610e238383611a6a565b50505050565b610e31611b18565b610e3b8282611b5e565b5050565b6001600160a01b0381163314610e81576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e8b8282611bb3565b505050565b60408051808201909152600080825260208201526000610ec060408501356060860135610cc36020880188612f79565b915050600080610ed08684611c3a565b9092509050610eed610ee56020880188612f79565b838388611d77565b9695505050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610f2181611a60565b610e8b8383611e58565b610f353382611ea7565b50565b600360209081526000928352604080842090915290825290208054610f5c90613100565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8890613100565b8015610fd55780601f10610faa57610100808354040283529160200191610fd5565b820191906000526020600020905b815481529060010190602001808311610fb857829003601f168201915b505050505081565b610fe5611b18565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d4414197906020015b60405180910390a150565b61104f611b18565b6110596000611ef6565b565b6001600160a01b03811630145b949350505050565b606060098054610b7990613100565b600033610c0a8185856119cf565b611095611b18565b610e3b6110a282846131ef565b611f53565b63ffffffff8416600090815260036020908152604080832061ffff871684529091528120805460609291906110db90613100565b80601f016020809104026020016040519081016040528092919081815260200182805461110790613100565b80156111545780601f1061112957610100808354040283529160200191611154565b820191906000526020600020905b81548152906001019060200180831161113757829003601f168201915b5050505050905080516000036111a45783838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294506110689350505050565b60008390036111b4579050611068565b60028310611232576111fb84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061205a92505050565b806112098460028188613305565b60405160200161121b9392919061332f565b604051602081830303815290604052915050611068565b83836040517f9a6d49cd000000000000000000000000000000000000000000000000000000008152600401610d46929190613382565b60005b81811015611371573683838381811061128657611286613396565b905060200281019061129891906133ac565b90506112cb6112aa6020830183612f79565b602083013563ffffffff919091166000908152600160205260409020541490565b6112d55750611369565b3063d045a0dc60c08301358360a08101356112f46101008301836133ea565b611305610100890160e08a01612e6e565b6113136101208a018a6133ea565b6040518963ffffffff1660e01b81526004016113359796959493929190613465565b6000604051808303818588803b15801561134e57600080fd5b505af1158015611362573d6000803e3d6000fd5b5050505050505b60010161126b565b50336001600160a01b0316638e9e70996040518163ffffffff1660e01b8152600401600060405180830381865afa1580156113b0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113d891908101906134ec565b6040517f8351eea7000000000000000000000000000000000000000000000000000000008152600401610d469190612aab565b6114136129d1565b604080518082019091526000808252602082015260008061144a33604089013560608a013561144560208c018c612f79565b61209f565b9150915060008061145b8984611c3a565b909250905061148761147060208b018b612f79565b8383611481368d90038d018d61355a565b8b6120c5565b60408051808201909152858152602080820186905282519298509096503391907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a906114d5908d018d612f79565b6040805163ffffffff909216825260208201899052810187905260600160405180910390a350505050935093915050565b61150e611b18565b6040517fca5eb5e10000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063ca5eb5e190602401600060405180830381600087803b15801561158a57600080fd5b505af115801561159e573d6000803e3d6000fd5b5050505050565b3330146115de576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dcf87878787878787610dc0565b6115f5611b18565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c24277609060200161103c565b6000828152600a602052604090206001015461166b81611a60565b610e238383611bb3565b61167d611b18565b6001600160a01b0381166116c0576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b610f3581611ef6565b60006020820180359060019083906116e19086612f79565b63ffffffff1681526020810191909152604001600020541492915050565b610e8b83838360016121d0565b600080611718856122d7565b915081905083811015611761576040517f71c4efed0000000000000000000000000000000000000000000000000000000081526004810182905260248101859052604401610d46565b935093915050565b63ffffffff811660009081526001602052604081205480610b64576040517ff6ff4fb700000000000000000000000000000000000000000000000000000000815263ffffffff84166004820152602401610d46565b60006117d06117cd878761230e565b90565b905060006117fc826117ea6117e58a8a612326565b612349565b6117f760208d018d612f79565b61237f565b905060288611156118dc57600061183961181c60608c0160408d0161358c565b61182960208d018d612f79565b846118348c8c612393565b6123de565b6040517f7cb590120000000000000000000000000000000000000000000000000000000081529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637cb59012906118a89086908d9060009087906004016135a9565b600060405180830381600087803b1580156118c257600080fd5b505af11580156118d6573d6000803e3d6000fd5b50505050505b6001600160a01b038216887fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c61191560208d018d612f79565b6040805163ffffffff9092168252602082018690520160405180910390a3505050505050505050565b6001600160a01b038381166000908152600660209081526040808320938616835292905220546000198114610e2357818110156119c0576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024810182905260448101839052606401610d46565b610e23848484840360006121d0565b6001600160a01b038316611a12576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b6001600160a01b038216611a55576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b610e8b838383612410565b610f358133612553565b6000828152600a602090815260408083206001600160a01b038516845290915281205460ff16611b10576000838152600a602090815260408083206001600160a01b03861684529091529020805460ff19166001179055611ac83390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610b64565b506000610b64565b6000546001600160a01b03163314611059576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610d46565b63ffffffff8216600081815260016020908152604091829020849055815192835282018390527f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b910160405180910390a15050565b6000828152600a602090815260408083206001600160a01b038516845290915281205460ff1615611b10576000838152600a602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610b64565b6060806000611c978560200135611c50866125c1565b611c5d60a08901896133ea565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506125ed92505050565b9093509050600081611caa576001611cad565b60025b9050611ccd611cbf6020880188612f79565b8261093760808a018a6133ea565b6004549093506001600160a01b031615611d6e57600480546040517f043a78eb0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163043a78eb91611d2b9188918891016135db565b602060405180830381865afa158015611d48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6c9190613600565b505b50509250929050565b60408051808201909152600080825260208201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ddc28c586040518060a001604052808863ffffffff168152602001611dda89611769565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b8152600401611e0f92919061361d565b6040805180830381865afa158015611e2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4f91906136c6565b95945050505050565b6001600160a01b038216611e9b576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b610e3b60008383612410565b6001600160a01b038216611eea576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b610e3b82600083612410565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b815181101561202a57611f85828281518110611f7457611f74613396565b60200260200101516040015161205a565b818181518110611f9757611f97613396565b60200260200101516040015160036000848481518110611fb957611fb9613396565b60200260200101516000015163ffffffff1663ffffffff1681526020019081526020016000206000848481518110611ff357611ff3613396565b60200260200101516020015161ffff1661ffff16815260200190815260200160002090816120219190613732565b50600101611f56565b507fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b6748160405161103c91906137f2565b600281015161ffff8116600314610e3b57816040517f9a6d49cd000000000000000000000000000000000000000000000000000000008152600401610d469190612aab565b6000806120ad85858561170c565b90925090506120bc8683611ea7565b94509492505050565b6120cd6129d1565b60006120dc846000015161267f565b6020850151909150156120f6576120f684602001516126c0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632637a450826040518060a001604052808b63ffffffff1681526020016121468c611769565b81526020018a815260200189815260200160008960200151111515815250866040518463ffffffff1660e01b815260040161218292919061361d565b60806040518083038185885af11580156121a0573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906121c5919061387d565b979650505050505050565b6001600160a01b038416612213576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b6001600160a01b038316612256576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b6001600160a01b0380851660009081526006602090815260408083209387168352929052208290558015610e2357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516122c991815260200190565b60405180910390a350505050565b60007f000000000000000000000000000000000000000000000000000000000000000061230481846138dd565b610b6491906138ff565b600061231d6020828486613305565b610df791613916565b6000612336602860208486613305565b61233f91613934565b60c01c9392505050565b6000610b647f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff84166138ff565b600061238b8484611e58565b509092915050565b60606123a28260288186613305565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929695505050505050565b6060848484846040516020016123f7949392919061397c565b6040516020818303038152906040529050949350505050565b6001600160a01b03831661243b57806007600082825461243091906139fa565b909155506124c69050565b6001600160a01b038316600090815260056020526040902054818110156124a7576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024810182905260448101839052606401610d46565b6001600160a01b03841660009081526005602052604090209082900390555b6001600160a01b0382166124e257600780548290039055612501565b6001600160a01b03821660009081526005602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161254691815260200190565b60405180910390a3505050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16610e3b576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015260248101839052604401610d46565b6000610b647f0000000000000000000000000000000000000000000000000000000000000000836138dd565b805160609015158061264e57848460405160200161263a92919091825260c01b7fffffffffffffffff00000000000000000000000000000000000000000000000016602082015260280190565b604051602081830303815290604052612675565b848433856040516020016126659493929190613a0d565b6040516020818303038152906040525b9150935093915050565b60008134146126bc576040517f9f704120000000000000000000000000000000000000000000000000000000008152346004820152602401610d46565b5090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa158015612720573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127449190613a66565b90506001600160a01b038116612786576040517f5373352a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805133602482018190527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03818116604485015260648085018890528551808603909101815260849094019094526020830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610e3b938516928690610e23908590600061284083836128a7565b905080516000141580156128655750808060200190518101906128639190613600565b155b15610e8b576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b0384166004820152602401610d46565b6060610df78383600084600080856001600160a01b031684866040516128cd9190613a83565b60006040518083038185875af1925050503d806000811461290a576040519150601f19603f3d011682016040523d82523d6000602084013e61290f565b606091505b5091509150610eed86838360608261292f5761292a8261298f565b610df7565b815115801561294657506001600160a01b0384163b155b15612988576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610d46565b5080610df7565b80511561299f5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604051806060016040528060008019168152602001600067ffffffffffffffff168152602001612a14604051806040016040528060008152602001600081525090565b905290565b600060208284031215612a2b57600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610df757600080fd5b60005b83811015612a76578181015183820152602001612a5e565b50506000910152565b60008151808452612a97816020860160208601612a5b565b601f01601f19169290920160200192915050565b602081526000610df76020830184612a7f565b6001600160a01b0381168114610f3557600080fd5b60008060408385031215612ae657600080fd5b8235612af181612abe565b946020939093013593505050565b600060e08284031215612b1157600080fd5b50919050565b600060208284031215612b2957600080fd5b813567ffffffffffffffff811115612b4057600080fd5b61106884828501612aff565b8351815260208085015190820152600060a08201604060a0604085015281865180845260c08601915060c08160051b8701019350602080890160005b83811015612be5578887037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff40018552815180518852830151838801879052612bd287890182612a7f565b9750509382019390820190600101612b88565b50508751606088015250505060208501516080850152509050611068565b600060608284031215612b1157600080fd5b60008083601f840112612c2757600080fd5b50813567ffffffffffffffff811115612c3f57600080fd5b602083019150836020828501011115612c5757600080fd5b9250929050565b600080600080600080600060e0888a031215612c7957600080fd5b612c838989612c03565b965060608801359550608088013567ffffffffffffffff80821115612ca757600080fd5b612cb38b838c01612c15565b909750955060a08a01359150612cc882612abe565b90935060c08901359080821115612cde57600080fd5b50612ceb8a828b01612c15565b989b979a50959850939692959293505050565b600080600060608486031215612d1357600080fd5b8335612d1e81612abe565b92506020840135612d2e81612abe565b929592945050506040919091013590565b600060208284031215612d5157600080fd5b5035919050565b60008060408385031215612d6b57600080fd5b823591506020830135612d7d81612abe565b809150509250929050565b803563ffffffff81168114612d9c57600080fd5b919050565b60008060408385031215612db457600080fd5b612af183612d88565b8015158114610f3557600080fd5b60008060408385031215612dde57600080fd5b823567ffffffffffffffff811115612df557600080fd5b612e0185828601612aff565b9250506020830135612d7d81612dbd565b815181526020808301519082015260408101610b64565b803561ffff81168114612d9c57600080fd5b60008060408385031215612e4e57600080fd5b612e5783612d88565b9150612e6560208401612e29565b90509250929050565b600060208284031215612e8057600080fd5b8135610df781612abe565b60008060008060a08587031215612ea157600080fd5b612eab8686612c03565b9350606085013567ffffffffffffffff811115612ec757600080fd5b612ed387828801612c15565b9094509250506080850135612ee781612abe565b939692955090935050565b60008083601f840112612f0457600080fd5b50813567ffffffffffffffff811115612f1c57600080fd5b6020830191508360208260051b8501011115612c5757600080fd5b60008060208385031215612f4a57600080fd5b823567ffffffffffffffff811115612f6157600080fd5b612f6d85828601612ef2565b90969095509350505050565b600060208284031215612f8b57600080fd5b610df782612d88565b60008060008060608587031215612faa57600080fd5b612fb385612d88565b9350612fc160208601612e29565b9250604085013567ffffffffffffffff811115612fdd57600080fd5b612fe987828801612c15565b95989497509550505050565b6000806000838503608081121561300b57600080fd5b843567ffffffffffffffff81111561302257600080fd5b61302e87828801612aff565b9450506040601f198201121561304357600080fd5b50602084019150606084013561305881612abe565b809150509250925092565b600060c0820190508351825267ffffffffffffffff6020850151166020830152604084015161309f604084018280518252602090810151910152565b5082516080830152602083015160a0830152610df7565b600080604083850312156130c957600080fd5b82356130d481612abe565b91506020830135612d7d81612abe565b6000606082840312156130f657600080fd5b610df78383612c03565b600181811c9082168061311457607f821691505b602082108103612b1157634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff8111828210171561316d5761316d613134565b60405290565b6040805190810167ffffffffffffffff8111828210171561316d5761316d613134565b604051601f8201601f1916810167ffffffffffffffff811182821017156131bf576131bf613134565b604052919050565b600067ffffffffffffffff8211156131e1576131e1613134565b50601f01601f191660200190565b600067ffffffffffffffff8084111561320a5761320a613134565b8360051b602061321b818301613196565b86815291850191818101903684111561323357600080fd5b865b848110156132f95780358681111561324d5760008081fd5b880160603682900312156132615760008081fd5b61326961314a565b61327282612d88565b815261327f868301612e29565b86820152604080830135898111156132975760008081fd5b929092019136601f8401126132ac5760008081fd5b82356132bf6132ba826131c7565b613196565b81815236898387010111156132d45760008081fd5b818986018a830137600091810189019190915290820152845250918301918301613235565b50979650505050505050565b6000808585111561331557600080fd5b8386111561332257600080fd5b5050820193919092039150565b60008451613341818460208901612a5b565b8201838582376000930192835250909392505050565b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b602081526000611068602083018486613357565b634e487b7160e01b600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec18336030181126133e057600080fd5b9190910192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261341f57600080fd5b83018035915067ffffffffffffffff82111561343a57600080fd5b602001915036819003821315612c5757600080fd5b67ffffffffffffffff81168114610f3557600080fd5b63ffffffff61347389612d88565b16815260208801356020820152600060408901356134908161344f565b67ffffffffffffffff811660408401525087606083015260e060808301526134bc60e083018789613357565b6001600160a01b03861660a084015282810360c08401526134de818587613357565b9a9950505050505050505050565b6000602082840312156134fe57600080fd5b815167ffffffffffffffff81111561351557600080fd5b8201601f8101841361352657600080fd5b80516135346132ba826131c7565b81815285602083850101111561354957600080fd5b611e4f826020830160208601612a5b565b60006040828403121561356c57600080fd5b613574613173565b82358152602083013560208201528091505092915050565b60006020828403121561359e57600080fd5b8135610df78161344f565b6001600160a01b038516815283602082015261ffff83166040820152608060608201526000610eed6080830184612a7f565b6040815260006135ee6040830185612a7f565b8281036020840152611e4f8185612a7f565b60006020828403121561361257600080fd5b8151610df781612dbd565b6040815263ffffffff8351166040820152602083015160608201526000604084015160a0608084015261365360e0840182612a7f565b90506060850151603f198483030160a08501526136708282612a7f565b60809690960151151560c08501525050506001600160a01b039190911660209091015290565b6000604082840312156136a857600080fd5b6136b0613173565b9050815181526020820151602082015292915050565b6000604082840312156136d857600080fd5b610df78383613696565b601f821115610e8b576000816000526020600020601f850160051c8101602086101561370b5750805b601f850160051c820191505b8181101561372a57828155600101613717565b505050505050565b815167ffffffffffffffff81111561374c5761374c613134565b6137608161375a8454613100565b846136e2565b602080601f831160018114613795576000841561377d5750858301515b600019600386901b1c1916600185901b17855561372a565b600085815260208120601f198616915b828110156137c4578886015182559484019460019091019084016137a5565b50858210156137e25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083018184528085518083526040925060408601915060408160051b87010184880160005b8381101561386f57888303603f190185528151805163ffffffff1684528781015161ffff1688850152860151606087850181905261385b81860183612a7f565b96890196945050509086019060010161381b565b509098975050505050505050565b60006080828403121561388f57600080fd5b61389761314a565b8251815260208301516138a98161344f565b60208201526138bb8460408501613696565b60408201529392505050565b634e487b7160e01b600052601160045260246000fd5b6000826138fa57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610b6457610b646138c7565b80356020831015610b6457600019602084900360031b1b1692915050565b7fffffffffffffffff00000000000000000000000000000000000000000000000081358181169160088510156139745780818660080360031b1b83161692505b505092915050565b7fffffffffffffffff0000000000000000000000000000000000000000000000008560c01b1681527fffffffff000000000000000000000000000000000000000000000000000000008460e01b16600882015282600c820152600082516139ea81602c850160208701612a5b565b91909101602c0195945050505050565b80820180821115610b6457610b646138c7565b8481527fffffffffffffffff0000000000000000000000000000000000000000000000008460c01b16602082015282602882015260008251613a56816048850160208701612a5b565b9190910160480195945050505050565b600060208284031215613a7857600080fd5b8151610df781612abe565b600082516133e0818460208701612a5b56fea264697066735822122061234df555ba16b77f1bc14debdcf288d96cad5875280893c821a7291465116664736f6c634300081900330000000000000000000000001a44076050125825900e736c501f859c50fe728c
Deployed Bytecode
0x60806040526004361061034a5760003560e01c8063715018a6116101bb578063bb0b6a53116100f7578063d539139311610095578063f2fde38b1161006f578063f2fde38b14610a5d578063f5b541a614610a7d578063fc0c546a14610640578063ff7bd03d14610ab157600080fd5b8063d5391393146109c3578063d547741f146109f7578063dd62ed3e14610a1757600080fd5b8063c7c7f5b3116100d1578063c7c7f5b31461094f578063ca5eb5e114610970578063d045a0dc14610990578063d4243885146109a357600080fd5b8063bb0b6a53146108ef578063bc70b3541461091c578063bd815db01461093c57600080fd5b806395d89b4111610164578063a217fddf1161013e578063a217fddf1461087a578063a9059cbb1461088f578063b731ea0a146108af578063b98bd070146108cf57600080fd5b806395d89b411461081d578063963efcaa146108325780639f68b9641461086657600080fd5b8063857749b011610195578063857749b0146107a55780638da5cb5b146107b957806391d14854146107d757600080fd5b8063715018a6146107345780637d25a05e1461074957806382413eac1461078557600080fd5b80632f2ff15d1161028a57806342966c68116102335780635a0dfe4d1161020d5780635a0dfe4d146106735780635e280f11146106aa5780636fc1b31e146106de57806370a08231146106fe57600080fd5b806342966c681461062057806352ae2879146106405780635535d4611461065357600080fd5b806336568abe1161026457806336568abe146105b35780633b6f743b146105d357806340c10f191461060057600080fd5b80632f2ff15d14610551578063313ce567146105715780633400288b1461059357600080fd5b8063134d4f25116102f757806318160ddd116102d157806318160ddd146104cd5780631f5e1334146104ec57806323b872dd14610501578063248a9ca31461052157600080fd5b8063134d4f2514610442578063156a0d0f1461046a57806317442b70146104ab57600080fd5b80630d35b415116103285780630d35b415146103c6578063111ecdad146103f557806313137d651461042d57600080fd5b806301ffc9a71461034f57806306fdde0314610384578063095ea7b3146103a6575b600080fd5b34801561035b57600080fd5b5061036f61036a366004612a19565b610ad1565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b50610399610b6a565b60405161037b9190612aab565b3480156103b257600080fd5b5061036f6103c1366004612ad3565b610bfc565b3480156103d257600080fd5b506103e66103e1366004612b17565b610c14565b60405161037b93929190612b4c565b34801561040157600080fd5b50600454610415906001600160a01b031681565b6040516001600160a01b03909116815260200161037b565b61044061043b366004612c5e565b610ce6565b005b34801561044e57600080fd5b50610457600281565b60405161ffff909116815260200161037b565b34801561047657600080fd5b50604080517f02e49c2c000000000000000000000000000000000000000000000000000000008152600160208201520161037b565b3480156104b757600080fd5b506040805160018152600260208201520161037b565b3480156104d957600080fd5b506007545b60405190815260200161037b565b3480156104f857600080fd5b50610457600181565b34801561050d57600080fd5b5061036f61051c366004612cfe565b610dd8565b34801561052d57600080fd5b506104de61053c366004612d3f565b6000908152600a602052604090206001015490565b34801561055d57600080fd5b5061044061056c366004612d58565b610dfe565b34801561057d57600080fd5b5060125b60405160ff909116815260200161037b565b34801561059f57600080fd5b506104406105ae366004612da1565b610e29565b3480156105bf57600080fd5b506104406105ce366004612d58565b610e3f565b3480156105df57600080fd5b506105f36105ee366004612dcb565b610e90565b60405161037b9190612e12565b34801561060c57600080fd5b5061044061061b366004612ad3565b610ef7565b34801561062c57600080fd5b5061044061063b366004612d3f565b610f2b565b34801561064c57600080fd5b5030610415565b34801561065f57600080fd5b5061039961066e366004612e3b565b610f38565b34801561067f57600080fd5b5061036f61068e366004612da1565b63ffffffff919091166000908152600160205260409020541490565b3480156106b657600080fd5b506104157f0000000000000000000000001a44076050125825900e736c501f859c50fe728c81565b3480156106ea57600080fd5b506104406106f9366004612e6e565b610fdd565b34801561070a57600080fd5b506104de610719366004612e6e565b6001600160a01b031660009081526005602052604090205490565b34801561074057600080fd5b50610440611047565b34801561075557600080fd5b5061076c610764366004612da1565b600092915050565b60405167ffffffffffffffff909116815260200161037b565b34801561079157600080fd5b5061036f6107a0366004612e8b565b61105b565b3480156107b157600080fd5b506006610581565b3480156107c557600080fd5b506000546001600160a01b0316610415565b3480156107e357600080fd5b5061036f6107f2366004612d58565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561082957600080fd5b50610399611070565b34801561083e57600080fd5b506104de7f000000000000000000000000000000000000000000000000000000e8d4a5100081565b34801561087257600080fd5b50600061036f565b34801561088657600080fd5b506104de600081565b34801561089b57600080fd5b5061036f6108aa366004612ad3565b61107f565b3480156108bb57600080fd5b50600254610415906001600160a01b031681565b3480156108db57600080fd5b506104406108ea366004612f37565b61108d565b3480156108fb57600080fd5b506104de61090a366004612f79565b60016020526000908152604090205481565b34801561092857600080fd5b50610399610937366004612f94565b6110a7565b61044061094a366004612f37565b611268565b61096261095d366004612ff5565b61140b565b60405161037b929190613063565b34801561097c57600080fd5b5061044061098b366004612e6e565b611506565b61044061099e366004612c5e565b6115a5565b3480156109af57600080fd5b506104406109be366004612e6e565b6115ed565b3480156109cf57600080fd5b506104de7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610a0357600080fd5b50610440610a12366004612d58565b611650565b348015610a2357600080fd5b506104de610a323660046130b6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b348015610a6957600080fd5b50610440610a78366004612e6e565b611675565b348015610a8957600080fd5b506104de7f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b348015610abd57600080fd5b5061036f610acc3660046130e4565b6116c9565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b6457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060088054610b7990613100565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba590613100565b8015610bf25780601f10610bc757610100808354040283529160200191610bf2565b820191906000526020600020905b815481529060010190602001808311610bd557829003601f168201915b5050505050905090565b600033610c0a8185856116ff565b5060019392505050565b60408051808201909152600080825260208201526060610c47604051806040016040528060008152602001600081525090565b604080518082018252600080825267ffffffffffffffff602080840182905284518381529081019094529195509182610ca3565b604080518082019091526000815260606020820152815260200190600190039081610c7b5790505b509350600080610cc8604089013560608a0135610cc360208c018c612f79565b61170c565b60408051808201909152918252602082015296989597505050505050565b7f0000000000000000000000001a44076050125825900e736c501f859c50fe728c6001600160a01b03163314610d4f576040517f91ac5e4f0000000000000000000000000000000000000000000000000000000081523360048201526024015b60405180910390fd5b60208701803590610d6990610d64908a612f79565b611769565b14610dc057610d7b6020880188612f79565b6040517fc26bebcc00000000000000000000000000000000000000000000000000000000815263ffffffff909116600482015260208801356024820152604401610d46565b610dcf878787878787876117be565b50505050505050565b600033610de685828561193e565b610df18585856119cf565b60019150505b9392505050565b6000828152600a6020526040902060010154610e1981611a60565b610e238383611a6a565b50505050565b610e31611b18565b610e3b8282611b5e565b5050565b6001600160a01b0381163314610e81576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e8b8282611bb3565b505050565b60408051808201909152600080825260208201526000610ec060408501356060860135610cc36020880188612f79565b915050600080610ed08684611c3a565b9092509050610eed610ee56020880188612f79565b838388611d77565b9695505050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610f2181611a60565b610e8b8383611e58565b610f353382611ea7565b50565b600360209081526000928352604080842090915290825290208054610f5c90613100565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8890613100565b8015610fd55780601f10610faa57610100808354040283529160200191610fd5565b820191906000526020600020905b815481529060010190602001808311610fb857829003601f168201915b505050505081565b610fe5611b18565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d4414197906020015b60405180910390a150565b61104f611b18565b6110596000611ef6565b565b6001600160a01b03811630145b949350505050565b606060098054610b7990613100565b600033610c0a8185856119cf565b611095611b18565b610e3b6110a282846131ef565b611f53565b63ffffffff8416600090815260036020908152604080832061ffff871684529091528120805460609291906110db90613100565b80601f016020809104026020016040519081016040528092919081815260200182805461110790613100565b80156111545780601f1061112957610100808354040283529160200191611154565b820191906000526020600020905b81548152906001019060200180831161113757829003601f168201915b5050505050905080516000036111a45783838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294506110689350505050565b60008390036111b4579050611068565b60028310611232576111fb84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061205a92505050565b806112098460028188613305565b60405160200161121b9392919061332f565b604051602081830303815290604052915050611068565b83836040517f9a6d49cd000000000000000000000000000000000000000000000000000000008152600401610d46929190613382565b60005b81811015611371573683838381811061128657611286613396565b905060200281019061129891906133ac565b90506112cb6112aa6020830183612f79565b602083013563ffffffff919091166000908152600160205260409020541490565b6112d55750611369565b3063d045a0dc60c08301358360a08101356112f46101008301836133ea565b611305610100890160e08a01612e6e565b6113136101208a018a6133ea565b6040518963ffffffff1660e01b81526004016113359796959493929190613465565b6000604051808303818588803b15801561134e57600080fd5b505af1158015611362573d6000803e3d6000fd5b5050505050505b60010161126b565b50336001600160a01b0316638e9e70996040518163ffffffff1660e01b8152600401600060405180830381865afa1580156113b0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113d891908101906134ec565b6040517f8351eea7000000000000000000000000000000000000000000000000000000008152600401610d469190612aab565b6114136129d1565b604080518082019091526000808252602082015260008061144a33604089013560608a013561144560208c018c612f79565b61209f565b9150915060008061145b8984611c3a565b909250905061148761147060208b018b612f79565b8383611481368d90038d018d61355a565b8b6120c5565b60408051808201909152858152602080820186905282519298509096503391907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a906114d5908d018d612f79565b6040805163ffffffff909216825260208201899052810187905260600160405180910390a350505050935093915050565b61150e611b18565b6040517fca5eb5e10000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527f0000000000000000000000001a44076050125825900e736c501f859c50fe728c169063ca5eb5e190602401600060405180830381600087803b15801561158a57600080fd5b505af115801561159e573d6000803e3d6000fd5b5050505050565b3330146115de576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dcf87878787878787610dc0565b6115f5611b18565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c24277609060200161103c565b6000828152600a602052604090206001015461166b81611a60565b610e238383611bb3565b61167d611b18565b6001600160a01b0381166116c0576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b610f3581611ef6565b60006020820180359060019083906116e19086612f79565b63ffffffff1681526020810191909152604001600020541492915050565b610e8b83838360016121d0565b600080611718856122d7565b915081905083811015611761576040517f71c4efed0000000000000000000000000000000000000000000000000000000081526004810182905260248101859052604401610d46565b935093915050565b63ffffffff811660009081526001602052604081205480610b64576040517ff6ff4fb700000000000000000000000000000000000000000000000000000000815263ffffffff84166004820152602401610d46565b60006117d06117cd878761230e565b90565b905060006117fc826117ea6117e58a8a612326565b612349565b6117f760208d018d612f79565b61237f565b905060288611156118dc57600061183961181c60608c0160408d0161358c565b61182960208d018d612f79565b846118348c8c612393565b6123de565b6040517f7cb590120000000000000000000000000000000000000000000000000000000081529091506001600160a01b037f0000000000000000000000001a44076050125825900e736c501f859c50fe728c1690637cb59012906118a89086908d9060009087906004016135a9565b600060405180830381600087803b1580156118c257600080fd5b505af11580156118d6573d6000803e3d6000fd5b50505050505b6001600160a01b038216887fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c61191560208d018d612f79565b6040805163ffffffff9092168252602082018690520160405180910390a3505050505050505050565b6001600160a01b038381166000908152600660209081526040808320938616835292905220546000198114610e2357818110156119c0576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024810182905260448101839052606401610d46565b610e23848484840360006121d0565b6001600160a01b038316611a12576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b6001600160a01b038216611a55576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b610e8b838383612410565b610f358133612553565b6000828152600a602090815260408083206001600160a01b038516845290915281205460ff16611b10576000838152600a602090815260408083206001600160a01b03861684529091529020805460ff19166001179055611ac83390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610b64565b506000610b64565b6000546001600160a01b03163314611059576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610d46565b63ffffffff8216600081815260016020908152604091829020849055815192835282018390527f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b910160405180910390a15050565b6000828152600a602090815260408083206001600160a01b038516845290915281205460ff1615611b10576000838152600a602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610b64565b6060806000611c978560200135611c50866125c1565b611c5d60a08901896133ea565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506125ed92505050565b9093509050600081611caa576001611cad565b60025b9050611ccd611cbf6020880188612f79565b8261093760808a018a6133ea565b6004549093506001600160a01b031615611d6e57600480546040517f043a78eb0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163043a78eb91611d2b9188918891016135db565b602060405180830381865afa158015611d48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6c9190613600565b505b50509250929050565b60408051808201909152600080825260208201527f0000000000000000000000001a44076050125825900e736c501f859c50fe728c6001600160a01b031663ddc28c586040518060a001604052808863ffffffff168152602001611dda89611769565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b8152600401611e0f92919061361d565b6040805180830381865afa158015611e2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4f91906136c6565b95945050505050565b6001600160a01b038216611e9b576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b610e3b60008383612410565b6001600160a01b038216611eea576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b610e3b82600083612410565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b815181101561202a57611f85828281518110611f7457611f74613396565b60200260200101516040015161205a565b818181518110611f9757611f97613396565b60200260200101516040015160036000848481518110611fb957611fb9613396565b60200260200101516000015163ffffffff1663ffffffff1681526020019081526020016000206000848481518110611ff357611ff3613396565b60200260200101516020015161ffff1661ffff16815260200190815260200160002090816120219190613732565b50600101611f56565b507fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b6748160405161103c91906137f2565b600281015161ffff8116600314610e3b57816040517f9a6d49cd000000000000000000000000000000000000000000000000000000008152600401610d469190612aab565b6000806120ad85858561170c565b90925090506120bc8683611ea7565b94509492505050565b6120cd6129d1565b60006120dc846000015161267f565b6020850151909150156120f6576120f684602001516126c0565b7f0000000000000000000000001a44076050125825900e736c501f859c50fe728c6001600160a01b0316632637a450826040518060a001604052808b63ffffffff1681526020016121468c611769565b81526020018a815260200189815260200160008960200151111515815250866040518463ffffffff1660e01b815260040161218292919061361d565b60806040518083038185885af11580156121a0573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906121c5919061387d565b979650505050505050565b6001600160a01b038416612213576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b6001600160a01b038316612256576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401610d46565b6001600160a01b0380851660009081526006602090815260408083209387168352929052208290558015610e2357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516122c991815260200190565b60405180910390a350505050565b60007f000000000000000000000000000000000000000000000000000000e8d4a5100061230481846138dd565b610b6491906138ff565b600061231d6020828486613305565b610df791613916565b6000612336602860208486613305565b61233f91613934565b60c01c9392505050565b6000610b647f000000000000000000000000000000000000000000000000000000e8d4a5100067ffffffffffffffff84166138ff565b600061238b8484611e58565b509092915050565b60606123a28260288186613305565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929695505050505050565b6060848484846040516020016123f7949392919061397c565b6040516020818303038152906040529050949350505050565b6001600160a01b03831661243b57806007600082825461243091906139fa565b909155506124c69050565b6001600160a01b038316600090815260056020526040902054818110156124a7576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024810182905260448101839052606401610d46565b6001600160a01b03841660009081526005602052604090209082900390555b6001600160a01b0382166124e257600780548290039055612501565b6001600160a01b03821660009081526005602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161254691815260200190565b60405180910390a3505050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16610e3b576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015260248101839052604401610d46565b6000610b647f000000000000000000000000000000000000000000000000000000e8d4a51000836138dd565b805160609015158061264e57848460405160200161263a92919091825260c01b7fffffffffffffffff00000000000000000000000000000000000000000000000016602082015260280190565b604051602081830303815290604052612675565b848433856040516020016126659493929190613a0d565b6040516020818303038152906040525b9150935093915050565b60008134146126bc576040517f9f704120000000000000000000000000000000000000000000000000000000008152346004820152602401610d46565b5090565b60007f0000000000000000000000001a44076050125825900e736c501f859c50fe728c6001600160a01b031663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa158015612720573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127449190613a66565b90506001600160a01b038116612786576040517f5373352a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805133602482018190527f0000000000000000000000001a44076050125825900e736c501f859c50fe728c6001600160a01b03818116604485015260648085018890528551808603909101815260849094019094526020830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610e3b938516928690610e23908590600061284083836128a7565b905080516000141580156128655750808060200190518101906128639190613600565b155b15610e8b576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b0384166004820152602401610d46565b6060610df78383600084600080856001600160a01b031684866040516128cd9190613a83565b60006040518083038185875af1925050503d806000811461290a576040519150601f19603f3d011682016040523d82523d6000602084013e61290f565b606091505b5091509150610eed86838360608261292f5761292a8261298f565b610df7565b815115801561294657506001600160a01b0384163b155b15612988576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610d46565b5080610df7565b80511561299f5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604051806060016040528060008019168152602001600067ffffffffffffffff168152602001612a14604051806040016040528060008152602001600081525090565b905290565b600060208284031215612a2b57600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610df757600080fd5b60005b83811015612a76578181015183820152602001612a5e565b50506000910152565b60008151808452612a97816020860160208601612a5b565b601f01601f19169290920160200192915050565b602081526000610df76020830184612a7f565b6001600160a01b0381168114610f3557600080fd5b60008060408385031215612ae657600080fd5b8235612af181612abe565b946020939093013593505050565b600060e08284031215612b1157600080fd5b50919050565b600060208284031215612b2957600080fd5b813567ffffffffffffffff811115612b4057600080fd5b61106884828501612aff565b8351815260208085015190820152600060a08201604060a0604085015281865180845260c08601915060c08160051b8701019350602080890160005b83811015612be5578887037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff40018552815180518852830151838801879052612bd287890182612a7f565b9750509382019390820190600101612b88565b50508751606088015250505060208501516080850152509050611068565b600060608284031215612b1157600080fd5b60008083601f840112612c2757600080fd5b50813567ffffffffffffffff811115612c3f57600080fd5b602083019150836020828501011115612c5757600080fd5b9250929050565b600080600080600080600060e0888a031215612c7957600080fd5b612c838989612c03565b965060608801359550608088013567ffffffffffffffff80821115612ca757600080fd5b612cb38b838c01612c15565b909750955060a08a01359150612cc882612abe565b90935060c08901359080821115612cde57600080fd5b50612ceb8a828b01612c15565b989b979a50959850939692959293505050565b600080600060608486031215612d1357600080fd5b8335612d1e81612abe565b92506020840135612d2e81612abe565b929592945050506040919091013590565b600060208284031215612d5157600080fd5b5035919050565b60008060408385031215612d6b57600080fd5b823591506020830135612d7d81612abe565b809150509250929050565b803563ffffffff81168114612d9c57600080fd5b919050565b60008060408385031215612db457600080fd5b612af183612d88565b8015158114610f3557600080fd5b60008060408385031215612dde57600080fd5b823567ffffffffffffffff811115612df557600080fd5b612e0185828601612aff565b9250506020830135612d7d81612dbd565b815181526020808301519082015260408101610b64565b803561ffff81168114612d9c57600080fd5b60008060408385031215612e4e57600080fd5b612e5783612d88565b9150612e6560208401612e29565b90509250929050565b600060208284031215612e8057600080fd5b8135610df781612abe565b60008060008060a08587031215612ea157600080fd5b612eab8686612c03565b9350606085013567ffffffffffffffff811115612ec757600080fd5b612ed387828801612c15565b9094509250506080850135612ee781612abe565b939692955090935050565b60008083601f840112612f0457600080fd5b50813567ffffffffffffffff811115612f1c57600080fd5b6020830191508360208260051b8501011115612c5757600080fd5b60008060208385031215612f4a57600080fd5b823567ffffffffffffffff811115612f6157600080fd5b612f6d85828601612ef2565b90969095509350505050565b600060208284031215612f8b57600080fd5b610df782612d88565b60008060008060608587031215612faa57600080fd5b612fb385612d88565b9350612fc160208601612e29565b9250604085013567ffffffffffffffff811115612fdd57600080fd5b612fe987828801612c15565b95989497509550505050565b6000806000838503608081121561300b57600080fd5b843567ffffffffffffffff81111561302257600080fd5b61302e87828801612aff565b9450506040601f198201121561304357600080fd5b50602084019150606084013561305881612abe565b809150509250925092565b600060c0820190508351825267ffffffffffffffff6020850151166020830152604084015161309f604084018280518252602090810151910152565b5082516080830152602083015160a0830152610df7565b600080604083850312156130c957600080fd5b82356130d481612abe565b91506020830135612d7d81612abe565b6000606082840312156130f657600080fd5b610df78383612c03565b600181811c9082168061311457607f821691505b602082108103612b1157634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff8111828210171561316d5761316d613134565b60405290565b6040805190810167ffffffffffffffff8111828210171561316d5761316d613134565b604051601f8201601f1916810167ffffffffffffffff811182821017156131bf576131bf613134565b604052919050565b600067ffffffffffffffff8211156131e1576131e1613134565b50601f01601f191660200190565b600067ffffffffffffffff8084111561320a5761320a613134565b8360051b602061321b818301613196565b86815291850191818101903684111561323357600080fd5b865b848110156132f95780358681111561324d5760008081fd5b880160603682900312156132615760008081fd5b61326961314a565b61327282612d88565b815261327f868301612e29565b86820152604080830135898111156132975760008081fd5b929092019136601f8401126132ac5760008081fd5b82356132bf6132ba826131c7565b613196565b81815236898387010111156132d45760008081fd5b818986018a830137600091810189019190915290820152845250918301918301613235565b50979650505050505050565b6000808585111561331557600080fd5b8386111561332257600080fd5b5050820193919092039150565b60008451613341818460208901612a5b565b8201838582376000930192835250909392505050565b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b602081526000611068602083018486613357565b634e487b7160e01b600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec18336030181126133e057600080fd5b9190910192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261341f57600080fd5b83018035915067ffffffffffffffff82111561343a57600080fd5b602001915036819003821315612c5757600080fd5b67ffffffffffffffff81168114610f3557600080fd5b63ffffffff61347389612d88565b16815260208801356020820152600060408901356134908161344f565b67ffffffffffffffff811660408401525087606083015260e060808301526134bc60e083018789613357565b6001600160a01b03861660a084015282810360c08401526134de818587613357565b9a9950505050505050505050565b6000602082840312156134fe57600080fd5b815167ffffffffffffffff81111561351557600080fd5b8201601f8101841361352657600080fd5b80516135346132ba826131c7565b81815285602083850101111561354957600080fd5b611e4f826020830160208601612a5b565b60006040828403121561356c57600080fd5b613574613173565b82358152602083013560208201528091505092915050565b60006020828403121561359e57600080fd5b8135610df78161344f565b6001600160a01b038516815283602082015261ffff83166040820152608060608201526000610eed6080830184612a7f565b6040815260006135ee6040830185612a7f565b8281036020840152611e4f8185612a7f565b60006020828403121561361257600080fd5b8151610df781612dbd565b6040815263ffffffff8351166040820152602083015160608201526000604084015160a0608084015261365360e0840182612a7f565b90506060850151603f198483030160a08501526136708282612a7f565b60809690960151151560c08501525050506001600160a01b039190911660209091015290565b6000604082840312156136a857600080fd5b6136b0613173565b9050815181526020820151602082015292915050565b6000604082840312156136d857600080fd5b610df78383613696565b601f821115610e8b576000816000526020600020601f850160051c8101602086101561370b5750805b601f850160051c820191505b8181101561372a57828155600101613717565b505050505050565b815167ffffffffffffffff81111561374c5761374c613134565b6137608161375a8454613100565b846136e2565b602080601f831160018114613795576000841561377d5750858301515b600019600386901b1c1916600185901b17855561372a565b600085815260208120601f198616915b828110156137c4578886015182559484019460019091019084016137a5565b50858210156137e25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083018184528085518083526040925060408601915060408160051b87010184880160005b8381101561386f57888303603f190185528151805163ffffffff1684528781015161ffff1688850152860151606087850181905261385b81860183612a7f565b96890196945050509086019060010161381b565b509098975050505050505050565b60006080828403121561388f57600080fd5b61389761314a565b8251815260208301516138a98161344f565b60208201526138bb8460408501613696565b60408201529392505050565b634e487b7160e01b600052601160045260246000fd5b6000826138fa57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610b6457610b646138c7565b80356020831015610b6457600019602084900360031b1b1692915050565b7fffffffffffffffff00000000000000000000000000000000000000000000000081358181169160088510156139745780818660080360031b1b83161692505b505092915050565b7fffffffffffffffff0000000000000000000000000000000000000000000000008560c01b1681527fffffffff000000000000000000000000000000000000000000000000000000008460e01b16600882015282600c820152600082516139ea81602c850160208701612a5b565b91909101602c0195945050505050565b80820180821115610b6457610b646138c7565b8481527fffffffffffffffff0000000000000000000000000000000000000000000000008460c01b16602082015282602882015260008251613a56816048850160208701612a5b565b9190910160480195945050505050565b600060208284031215613a7857600080fd5b8151610df781612abe565b600082516133e0818460208701612a5b56fea264697066735822122061234df555ba16b77f1bc14debdcf288d96cad5875280893c821a7291465116664736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001a44076050125825900e736c501f859c50fe728c
-----Decoded View---------------
Arg [0] : _layerZeroEndpoint (address): 0x1a44076050125825900e736c501f859c50fE728c
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001a44076050125825900e736c501f859c50fe728c
Deployed Bytecode Sourcemap
141925:696:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58953:204;;;;;;;;;;-1:-1:-1;58953:204:0;;;;;:::i;:::-;;:::i;:::-;;;516:14:1;;509:22;491:41;;479:2;464:18;58953:204:0;;;;;;;;129214:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;131507:190::-;;;;;;;;;;-1:-1:-1;131507:190:0;;;;;:::i;:::-;;:::i;112184:1283::-;;;;;;;;;;-1:-1:-1;112184:1283:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;109327:27::-;;;;;;;;;;-1:-1:-1;109327:27:0;;;;-1:-1:-1;;;;;109327:27:0;;;;;;-1:-1:-1;;;;;4082:55:1;;;4064:74;;4052:2;4037:18;109327:27:0;3918:226:1;84680:723:0;;;;;;:::i;:::-;;:::i;:::-;;109198:40;;;;;;;;;;;;109237:1;109198:40;;;;;5887:6:1;5875:19;;;5857:38;;5845:2;5830:18;109198:40:0;5713:188:1;110496:142:0;;;;;;;;;;-1:-1:-1;110496:142:0;;;110604:22;6076:98:1;;110628:1:0;6205:2:1;6190:18;;6183:59;6049:18;110496:142:0;5906:342:1;107386:243:0;;;;;;;;;;-1:-1:-1;107386:243:0;;;95040:1;6460:34:1;;80913:1:0;6525:2:1;6510:18;;6503:43;6396:18;107386:243:0;6253:299:1;130316:99:0;;;;;;;;;;-1:-1:-1;130395:12:0;;130316:99;;;6703:25:1;;;6691:2;6676:18;130316:99:0;6557:177:1;109160:31:0;;;;;;;;;;;;109190:1;109160:31;;132275:249;;;;;;;;;;-1:-1:-1;132275:249:0;;;;;:::i;:::-;;:::i;60233:122::-;;;;;;;;;;-1:-1:-1;60233:122:0;;;;;:::i;:::-;60298:7;60325:12;;;:6;:12;;;;;:22;;;;60233:122;60665:138;;;;;;;;;;-1:-1:-1;60665:138:0;;;;;:::i;:::-;;:::i;130167:84::-;;;;;;;;;;-1:-1:-1;130241:2:0;130167:84;;;8059:4:1;8047:17;;;8029:36;;8017:2;8002:18;130167:84:0;7887:184:1;78611:110:0;;;;;;;;;;-1:-1:-1;78611:110:0;;;;;:::i;:::-;;:::i;61802:251::-;;;;;;;;;;-1:-1:-1;61802:251:0;;;;;:::i;:::-;;:::i;113930:787::-;;;;;;;;;;-1:-1:-1;113930:787:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;142422:107::-;;;;;;;;;;-1:-1:-1;142422:107:0;;;;;:::i;:::-;;:::i;142537:81::-;;;;;;;;;;-1:-1:-1;142537:81:0;;;;;:::i;:::-;;:::i;67484:95::-;;;;;;;;;;-1:-1:-1;67566:4:0;67484:95;;72509:93;;;;;;;;;;-1:-1:-1;72509:93:0;;;;;:::i;:::-;;:::i;122247:134::-;;;;;;;;;;-1:-1:-1;122247:134:0;;;;;:::i;:::-;122353:11;;;;;122329:4;122353:11;;;:5;:11;;;;;;:20;;122247:134;77304:46;;;;;;;;;;;;;;;111703:166;;;;;;;;;;-1:-1:-1;111703:166:0;;;;;:::i;:::-;;:::i;130478:118::-;;;;;;;;;;-1:-1:-1;130478:118:0;;;;;:::i;:::-;-1:-1:-1;;;;;130570:18:0;130543:7;130570:18;;;:9;:18;;;;;;;130478:118;65924:103;;;;;;;;;;;;;:::i;83802:130::-;;;;;;;;;;-1:-1:-1;83802:130:0;;;;;:::i;:::-;83891:12;83802:130;;;;;;;;10899:18:1;10887:31;;;10869:50;;10857:2;10842:18;83802:130:0;10725:200:1;82276:222:0;;;;;;;;;;-1:-1:-1;82276:222:0;;;;;:::i;:::-;;:::i;111257:89::-;;;;;;;;;;-1:-1:-1;111337:1:0;111257:89;;65249:87;;;;;;;;;;-1:-1:-1;65295:7:0;65322:6;-1:-1:-1;;;;;65322:6:0;65249:87;;59249:138;;;;;;;;;;-1:-1:-1;59249:138:0;;;;;:::i;:::-;59326:4;59350:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;59350:29:0;;;;;;;;;;;;;;;59249:138;129424:95;;;;;;;;;;;;;:::i;108849:46::-;;;;;;;;;;;;;;;139961:96;;;;;;;;;;-1:-1:-1;140020:4:0;139961:96;;58561:49;;;;;;;;;;-1:-1:-1;58561:49:0;58606:4;58561:49;;130801:182;;;;;;;;;;-1:-1:-1;130801:182:0;;;;;:::i;:::-;;:::i;67159:23::-;;;;;;;;;;-1:-1:-1;67159:23:0;;;;-1:-1:-1;;;;;67159:23:0;;;73374:158;;;;;;;;;;-1:-1:-1;73374:158:0;;;;;:::i;:::-;;:::i;77430:48::-;;;;;;;;;;-1:-1:-1;77430:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;75528:1003;;;;;;;;;;-1:-1:-1;75528:1003:0;;;;;:::i;:::-;;:::i;68328:1358::-;;;;;;:::i;:::-;;:::i;115422:1364::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;80176:107::-;;;;;;;;;;-1:-1:-1;80176:107:0;;;;;:::i;:::-;;:::i;70348:419::-;;;;;;:::i;:::-;;:::i;67717:142::-;;;;;;;;;;-1:-1:-1;67717:142:0;;;;;:::i;:::-;;:::i;142042:62::-;;;;;;;;;;;;142080:24;142042:62;;61096:140;;;;;;;;;;-1:-1:-1;61096:140:0;;;;;:::i;:::-;;:::i;131046:142::-;;;;;;;;;;-1:-1:-1;131046:142:0;;;;;:::i;:::-;-1:-1:-1;;;;;131153:18:0;;;131126:7;131153:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;131046:142;66182:220;;;;;;;;;;-1:-1:-1;66182:220:0;;;;;:::i;:::-;;:::i;141969:66::-;;;;;;;;;;;;142009:26;141969:66;;83051:151;;;;;;;;;;-1:-1:-1;83051:151:0;;;;;:::i;:::-;;:::i;58953:204::-;59038:4;59062:47;;;59077:32;59062:47;;:87;;-1:-1:-1;12945:25:0;12930:40;;;;59113:36;59055:94;58953:204;-1:-1:-1;;58953:204:0:o;129214:91::-;129259:13;129292:5;129285:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129214:91;:::o;131507:190::-;131580:4;56203:10;131636:31;56203:10;131652:7;131661:5;131636:8;:31::i;:::-;-1:-1:-1;131685:4:0;;131507:190;-1:-1:-1;;;131507:190:0:o;112184:1283::-;-1:-1:-1;;;;;;;;;;;;;;;;;112342:35:0;112379:28;-1:-1:-1;;;;;;;;;;;;;;;;;;;112379:28:0;112601:34;;;;;;;;-1:-1:-1;112601:34:0;;;112522:16;112601:34;;;;;;;112755:21;;;;;;;;;;;112601:34;;-1:-1:-1;;;112755:21:0;;;-1:-1:-1;;;;;;;;;;;;;;;;;112755:21:0;;;;;;;;;;;;;;;-1:-1:-1;112739:37:0;-1:-1:-1;113219:20:0;;113269:124;113294:19;;;;113328:22;;;;113365:17;;;;113294:10;113365:17;:::i;:::-;113269:10;:124::i;:::-;113417:42;;;;;;;;;;;;;;;;112184:1283;;;;-1:-1:-1;;;;;;112184:1283:0:o;84680:723::-;85001:8;-1:-1:-1;;;;;84993:31:0;85014:10;84993:31;84989:68;;85033:24;;;;;85046:10;85033:24;;;4064:74:1;4037:18;;85033:24:0;;;;;;;;84989:68;85196:14;;;;;;85160:32;;85177:14;;85196:7;85177:14;:::i;:::-;85160:16;:32::i;:::-;:50;85156:103;;85228:14;;;;:7;:14;:::i;:::-;85219:40;;;;;16569:10:1;16557:23;;;85219:40:0;;;16539:42:1;85244:14:0;;;;16597:18:1;;;16590:34;16512:18;;85219:40:0;16367:263:1;85156:103:0;85336:59;85347:7;85356:5;85363:8;;85373:9;85384:10;;85336;:59::i;:::-;84680:723;;;;;;;:::o;132275:249::-;132362:4;56203:10;132420:37;132436:4;56203:10;132451:5;132420:15;:37::i;:::-;132468:26;132478:4;132484:2;132488:5;132468:9;:26::i;:::-;132512:4;132505:11;;;132275:249;;;;;;:::o;60665:138::-;60298:7;60325:12;;;:6;:12;;;;;:22;;;58845:16;58856:4;58845:10;:16::i;:::-;60770:25:::1;60781:4;60787:7;60770:10;:25::i;:::-;;60665:138:::0;;;:::o;78611:110::-;65135:13;:11;:13::i;:::-;78692:21:::1;78701:4;78707:5;78692:8;:21::i;:::-;78611:110:::0;;:::o;61802:251::-;-1:-1:-1;;;;;61896:34:0;;56203:10;61896:34;61892:104;;61954:30;;;;;;;;;;;;;;61892:104;62008:37;62020:4;62026:18;62008:11;:37::i;:::-;;61802:251;;:::o;113930:787::-;-1:-1:-1;;;;;;;;;;;;;;;;;114270:24:0;114298:74;114309:19;;;;114330:22;;;;114354:17;;;;114309:10;114354:17;:::i;114298:74::-;114267:105;;;114464:20;114486;114510:49;114530:10;114542:16;114510:19;:49::i;:::-;114463:96;;-1:-1:-1;114463:96:0;-1:-1:-1;114651:58:0;114658:17;;;;:10;:17;:::i;:::-;114677:7;114686;114695:13;114651:6;:58::i;:::-;114644:65;113930:787;-1:-1:-1;;;;;;113930:787:0:o;142422:107::-;142080:24;58845:16;58856:4;58845:10;:16::i;:::-;142504:17:::1;142510:2;142514:6;142504:5;:17::i;142537:81::-:0;142585:25;142591:10;142603:6;142585:5;:25::i;:::-;142537:81;:::o;72509:93::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;111703:166::-;65135:13;:11;:13::i;:::-;111787:12:::1;:28:::0;;-1:-1:-1;;111787:28:0::1;-1:-1:-1::0;;;;;111787:28:0;::::1;::::0;;::::1;::::0;;;111831:30:::1;::::0;4064:74:1;;;111831:30:0::1;::::0;4052:2:1;4037:18;111831:30:0::1;;;;;;;;111703:166:::0;:::o;65924:103::-;65135:13;:11;:13::i;:::-;65989:30:::1;66016:1;65989:18;:30::i;:::-;65924:103::o:0;82276:222::-;-1:-1:-1;;;;;82466:24:0;;82485:4;82466:24;82276:222;;;;;;;:::o;129424:95::-;129471:13;129504:7;129497:14;;;;;:::i;130801:182::-;130870:4;56203:10;130926:27;56203:10;130943:2;130947:5;130926:9;:27::i;73374:158::-;65135:13;:11;:13::i;:::-;73487:37:::1;;73507:16:::0;;73487:37:::1;:::i;:::-;:19;:37::i;75528:1003::-:0;75724:21;;;75700;75724;;;:15;:21;;;;;;;;:31;;;;;;;;;;75700:55;;75675:12;;75700:21;75724:31;75700:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75887:8;:15;75906:1;75887:20;75883:46;;75916:13;;75909:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;75909:20:0;;-1:-1:-1;75909:20:0;;-1:-1:-1;;;;75909:20:0;75883:46;76017:1;75993:25;;;75989:46;;76027:8;-1:-1:-1;76020:15:0;;75989:46;76185:1;76161:25;;76157:271;;76203:34;76223:13;;76203:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;76203:19:0;;-1:-1:-1;;;76203:34:0:i;:::-;76388:8;76398:17;:13;76412:1;76398:13;;:17;:::i;:::-;76375:41;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;76368:48;;;;;76157:271;76509:13;;76494:29;;;;;;;;;;;;:::i;68328:1358::-;68430:9;68425:1057;68445:19;;;68425:1057;;;68486:29;68518:8;;68527:1;68518:11;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;68486:43;-1:-1:-1;68615:50:0;68622:20;;;;68486:43;68622:20;:::i;:::-;68644;;;;122353:11;;;;;122329:4;122353:11;;;:5;:11;;;;;;:20;;122247:134;68615:50;68610:65;;68667:8;;;68610:65;69246:4;:22;69277:12;;;;:6;69342:11;;;;69372:14;;;;69277:6;69372:14;:::i;:::-;69405:15;;;;;;;;:::i;:::-;69439:16;;;;:6;:16;:::i;:::-;69246:224;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68471:1011;68425:1057;68466:3;;68425:1057;;;;69642:10;-1:-1:-1;;;;;69632:43:0;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;69632:45:0;;;;;;;;;;;;:::i;:::-;69615:63;;;;;;;;;;;:::i;115422:1364::-;115587:34;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;115989:20:0;;116039:145;116060:10;116085:19;;;;116119:22;;;;116156:17;;;;116085:10;116156:17;:::i;:::-;116039:6;:145::i;:::-;115988:196;;;;116276:20;116298;116322:49;116342:10;116354:16;116322:19;:49::i;:::-;116275:96;;-1:-1:-1;116275:96:0;-1:-1:-1;116497:66:0;116505:17;;;;:10;:17;:::i;:::-;116524:7;116533;116497:66;;;;;;;116542:4;116497:66;:::i;:::-;116548:14;116497:7;:66::i;:::-;116631:42;;;;;;;;;;;;;;;;;;;116699:15;;116484:79;;-1:-1:-1;116631:42:0;;-1:-1:-1;116735:10:0;;116699:15;116691:87;;116716:17;;;;:10;:17;:::i;:::-;116691:87;;;24811:10:1;24799:23;;;24781:42;;24854:2;24839:18;;24832:34;;;24882:18;;24875:34;;;24769:2;24754:18;116691:87:0;;;;;;;115653:1133;;;;115422:1364;;;;;;:::o;80176:107::-;65135:13;:11;:13::i;:::-;80244:31:::1;::::0;;;;-1:-1:-1;;;;;4082:55:1;;;80244:31:0::1;::::0;::::1;4064:74:1::0;80244:8:0::1;:20;::::0;::::1;::::0;4037:18:1;;80244:31:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;80176:107:::0;:::o;70348:419::-;70635:10;70657:4;70635:27;70631:50;;70671:10;;;;;;;;;;;;;;70631:50;70692:67;70711:7;70720:5;70727:8;;70737:9;70748:10;;70692:18;:67::i;67717:142::-;65135:13;:11;:13::i;:::-;67793:8:::1;:20:::0;;-1:-1:-1;;67793:20:0::1;-1:-1:-1::0;;;;;67793:20:0;::::1;::::0;;::::1;::::0;;;67829:22:::1;::::0;4064:74:1;;;67829:22:0::1;::::0;4052:2:1;4037:18;67829:22:0::1;3918:226:1::0;61096:140:0;60298:7;60325:12;;;:6;:12;;;;;:22;;;58845:16;58856:4;58845:10;:16::i;:::-;61202:26:::1;61214:4;61220:7;61202:11;:26::i;66182:220::-:0;65135:13;:11;:13::i;:::-;-1:-1:-1;;;;;66267:22:0;::::1;66263:93;;66313:31;::::0;::::1;::::0;;66341:1:::1;66313:31;::::0;::::1;4064:74:1::0;4037:18;;66313:31:0::1;3918:226:1::0;66263:93:0::1;66366:28;66385:8;66366:18;:28::i;83051:151::-:0;83133:4;83181:13;;;;;;83157:5;;83133:4;;83163:13;;83181:6;83163:13;:::i;:::-;83157:20;;;;;;;;;;;;;-1:-1:-1;83157:20:0;;:37;;83051:151;-1:-1:-1;;83051:151:0:o;136334:130::-;136419:37;136428:5;136435:7;136444:5;136451:4;136419:8;:37::i;124308:682::-;124454:20;124476:24;124652:22;124664:9;124652:11;:22::i;:::-;124637:37;;124802:12;124783:31;;124887:12;124868:16;:31;124864:119;;;124923:48;;;;;;;;25094:25:1;;;25135:18;;;25128:34;;;25067:18;;124923:48:0;24920:248:1;124864:119:0;124308:682;;;;;;:::o;79629:200::-;79734:11;;;79699:7;79734:11;;;:5;:11;;;;;;;79756:43;;79787:12;;;;;25347:10:1;25335:23;;79787:12:0;;;25317:42:1;25290:18;;79787:12:0;25173:192:1;118975:1837:0;119461:17;119481:36;:17;:8;;:15;:17::i;:::-;9546:2;9434:125;119481:36;119461:56;;119652:24;119679:62;119687:9;119698:26;119704:19;:8;;:17;:19::i;:::-;119698:5;:26::i;:::-;119726:14;;;;:7;:14;:::i;:::-;119679:7;:62::i;:::-;119652:89;-1:-1:-1;6825:2:0;-1:-1:-1;;119754:970:0;;;119860:23;119886:180;119930:13;;;;;;;;:::i;:::-;119962:14;;;;:7;:14;:::i;:::-;119995:16;120030:21;:8;;:19;:21::i;:::-;119886:25;:180::i;:::-;120620:92;;;;;119860:206;;-1:-1:-1;;;;;;120620:8:0;:20;;;;:92;;120641:9;;120652:5;;120659:1;;119860:206;;120620:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;119781:943;119754:970;-1:-1:-1;;;;;120741:63:0;;120753:5;120741:63;120760:14;;;;:7;:14;:::i;:::-;120741:63;;;16569:10:1;16557:23;;;16539:42;;16612:2;16597:18;;16590:34;;;16512:18;120741:63:0;;;;;;;119284:1528;;118975:1837;;;;;;;:::o;138050:487::-;-1:-1:-1;;;;;131153:18:0;;;138150:24;131153:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;138217:37:0;;138213:317;;138294:5;138275:16;:24;138271:132;;;138327:60;;;;;-1:-1:-1;;;;;26615:55:1;;138327:60:0;;;26597:74:1;26687:18;;;26680:34;;;26730:18;;;26723:34;;;26570:18;;138327:60:0;26395:368:1;138271:132:0;138446:57;138455:5;138462:7;138490:5;138471:16;:24;138497:5;138446:8;:57::i;132909:308::-;-1:-1:-1;;;;;132993:18:0;;132989:88;;133035:30;;;;;133062:1;133035:30;;;4064:74:1;4037:18;;133035:30:0;3918:226:1;132989:88:0;-1:-1:-1;;;;;133091:16:0;;133087:88;;133131:32;;;;;133160:1;133131:32;;;4064:74:1;4037:18;;133131:32:0;3918:226:1;133087:88:0;133185:24;133193:4;133199:2;133203:5;133185:7;:24::i;59602:105::-;59669:30;59680:4;56203:10;59669;:30::i;62679:324::-;62756:4;59350:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;59350:29:0;;;;;;;;;;;;62773:223;;62817:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;62817:29:0;;;;;;;;;:36;;-1:-1:-1;;62817:36:0;62849:4;62817:36;;;62900:12;56203:10;;56123:98;62900:12;-1:-1:-1;;;;;62873:40:0;62891:7;-1:-1:-1;;;;;62873:40:0;62885:4;62873:40;;;;;;;;;;-1:-1:-1;62935:4:0;62928:11;;62773:223;-1:-1:-1;62979:5:0;62972:12;;65414:166;65295:7;65322:6;-1:-1:-1;;;;;65322:6:0;56203:10;65474:23;65470:103;;65521:40;;;;;56203:10;65521:40;;;4064:74:1;4037:18;;65521:40:0;3918:226:1;79186:137:0;79260:11;;;;;;;:5;:11;;;;;;;;;:19;;;79295:20;;16539:42:1;;;16597:18;;16590:34;;;79295:20:0;;16512:18:1;79295:20:0;;;;;;;79186:137;;:::o;63247:325::-;63325:4;59350:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;59350:29:0;;;;;;;;;;;;63342:223;;;63417:5;63385:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;63385:29:0;;;;;;;;;;:37;;-1:-1:-1;;63385:37:0;;;63442:40;56203:10;;63385:12;;63442:40;;63417:5;63442:40;-1:-1:-1;63504:4:0;63497:11;;117089:1355;117224:20;117246;117279:15;117452:330;117485:10;:13;;;117513:16;117519:9;117513:5;:16::i;:::-;117750:21;;;;:10;:21;:::i;:::-;117452:330;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;117452:18:0;;-1:-1:-1;;;117452:330:0:i;:::-;117428:354;;-1:-1:-1;117428:354:0;-1:-1:-1;117864:14:0;117428:354;117881:33;;109190:1;117881:33;;;109237:1;117881:33;117864:50;-1:-1:-1;118038:67:0;118053:17;;;;:10;:17;:::i;:::-;118072:7;118081:23;;;;:10;:23;:::i;118038:67::-;118351:12;;118028:77;;-1:-1:-1;;;;;;118351:12:0;:26;118347:89;;118397:12;;;118379:57;;;;;-1:-1:-1;;;;;118397:12:0;;;;118379:39;;:57;;118419:7;;118428;;118379:57;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;118347:89;117268:1176;;117089:1355;;;;;:::o;96260:402::-;-1:-1:-1;;;;;;;;;;;;;;;;;96488:8:0;-1:-1:-1;;;;;96488:14:0;;96521:86;;;;;;;;96537:7;96521:86;;;;;;96546:25;96563:7;96546:16;:25::i;:::-;96521:86;;;;96573:8;96521:86;;;;96583:8;96521:86;;;;96593:13;96521:86;;;;;96634:4;96488:166;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;96468:186;96260:402;-1:-1:-1;;;;;96260:402:0:o;135029:213::-;-1:-1:-1;;;;;135100:21:0;;135096:93;;135145:32;;;;;135174:1;135145:32;;;4064:74:1;4037:18;;135145:32:0;3918:226:1;135096:93:0;135199:35;135215:1;135219:7;135228:5;135199:7;:35::i;135570:211::-;-1:-1:-1;;;;;135641:21:0;;135637:91;;135686:30;;;;;135713:1;135686:30;;;4064:74:1;4037:18;;135686:30:0;3918:226:1;135637:91:0;135738:35;135746:7;135763:1;135767:5;135738:7;:35::i;66562:191::-;66636:16;66655:6;;-1:-1:-1;;;;;66672:17:0;;;-1:-1:-1;;66672:17:0;;;;;;66705:40;;66655:6;;;;;;;66705:40;;66636:16;66705:40;66625:128;66562:191;:::o;74233:522::-;74342:9;74337:358;74361:16;:23;74357:1;:27;74337:358;;;74521:48;74541:16;74558:1;74541:19;;;;;;;;:::i;:::-;;;;;;;:27;;;74521:19;:48::i;:::-;74656:16;74673:1;74656:19;;;;;;;;:::i;:::-;;;;;;;:27;;;74584:15;:40;74600:16;74617:1;74600:19;;;;;;;;:::i;:::-;;;;;;;:23;;;74584:40;;;;;;;;;;;;;;;:69;74625:16;74642:1;74625:19;;;;;;;;:::i;:::-;;;;;;;:27;;;74584:69;;;;;;;;;;;;;;;:99;;;;;;:::i;:::-;-1:-1:-1;74386:3:0;;74337:358;;;;74712:35;74730:16;74712:35;;;;;;:::i;76677:270::-;76850:1;76836:16;;76830:23;76878:28;;;72431:1;76878:28;76874:65;;76930:8;76915:24;;;;;;;;;;;:::i;140551:580::-;140717:20;140739:24;140811:44;140822:9;140833:12;140847:7;140811:10;:44::i;:::-;140776:79;;-1:-1:-1;140776:79:0;-1:-1:-1;141097:26:0;141103:5;140776:79;141097:5;:26::i;:::-;140551:580;;;;;;;:::o;97437:783::-;97644:31;;:::i;:::-;97811:20;97834:26;97845:4;:14;;;97834:10;:26::i;:::-;97875:15;;;;97811:49;;-1:-1:-1;97875:19:0;97871:53;;97896:28;97908:4;:15;;;97896:11;:28::i;:::-;98017:8;-1:-1:-1;;;;;98017:13:0;;98039:12;98072:92;;;;;;;;98088:7;98072:92;;;;;;98097:25;98114:7;98097:16;:25::i;:::-;98072:92;;;;98124:8;98072:92;;;;98134:8;98072:92;;;;98162:1;98144:4;:15;;;:19;98072:92;;;;;98183:14;98017:195;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97937:275;97437:783;-1:-1:-1;;;;;;;97437:783:0:o;137315:443::-;-1:-1:-1;;;;;137428:19:0;;137424:91;;137471:32;;;;;137500:1;137471:32;;;4064:74:1;4037:18;;137471:32:0;3918:226:1;137424:91:0;-1:-1:-1;;;;;137529:21:0;;137525:92;;137574:31;;;;;137602:1;137574:31;;;4064:74:1;4037:18;;137574:31:0;3918:226:1;137525:92:0;-1:-1:-1;;;;;137627:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;137673:78;;;;137724:7;-1:-1:-1;;;;;137708:31:0;137717:5;-1:-1:-1;;;;;137708:31:0;;137733:5;137708:31;;;;6703:25:1;;6691:2;6676:18;;6557:177;137708:31:0;;;;;;;;137315:443;;;;:::o;122785:174::-;122856:16;122930:21;122893:33;122930:21;122893:9;:33;:::i;:::-;122892:59;;;;:::i;8191:125::-;8251:7;8286:21;6769:2;8251:7;8286:4;;:21;:::i;:::-;8278:30;;;:::i;8501:154::-;8563:6;8603:42;6825:2;6769;8603:4;;:42;:::i;:::-;8596:50;;;:::i;:::-;8589:58;;;8501:154;-1:-1:-1;;;8501:154:0:o;123190:141::-;123254:16;123290:33;123302:21;123290:33;;;;:::i;141475:371::-;141613:24;141693:21;141699:3;141704:9;141693:5;:21::i;:::-;-1:-1:-1;141829:9:0;;141475:371;-1:-1:-1;;141475:371:0:o;8822:132::-;8886:12;8918:28;:4;6825:2;8918:4;;:28;:::i;:::-;8911:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8911:35:0;;8822:132;-1:-1:-1;;;;;;8822:132:0:o;4102:291::-;4291:17;4345:6;4353:7;4362:9;4373:11;4328:57;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;4321:64;;4102:291;;;;;;:::o;133541:1135::-;-1:-1:-1;;;;;133631:18:0;;133627:552;;133785:5;133769:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;133627:552:0;;-1:-1:-1;133627:552:0;;-1:-1:-1;;;;;133845:15:0;;133823:19;133845:15;;;:9;:15;;;;;;133879:19;;;133875:117;;;133926:50;;;;;-1:-1:-1;;;;;26615:55:1;;133926:50:0;;;26597:74:1;26687:18;;;26680:34;;;26730:18;;;26723:34;;;26570:18;;133926:50:0;26395:368:1;133875:117:0;-1:-1:-1;;;;;134115:15:0;;;;;;:9;:15;;;;;134133:19;;;;134115:37;;133627:552;-1:-1:-1;;;;;134195:16:0;;134191:435;;134361:12;:21;;;;;;;134191:435;;;-1:-1:-1;;;;;134577:13:0;;;;;;:9;:13;;;;;:22;;;;;;134191:435;134658:2;-1:-1:-1;;;;;134643:25:0;134652:4;-1:-1:-1;;;;;134643:25:0;;134662:5;134643:25;;;;6703::1;;6691:2;6676:18;;6557:177;134643:25:0;;;;;;;;133541:1135;;;:::o;59843:201::-;59326:4;59350:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;59350:29:0;;;;;;;;;;;;59927:110;;59978:47;;;;;-1:-1:-1;;;;;35371:55:1;;59978:47:0;;;35353:74:1;35443:18;;;35436:34;;;35326:18;;59978:47:0;35179:297:1;123562:149:0;123627:15;123669:33;123681:21;123669:9;:33;:::i;7190:516::-;7388:18;;7328:17;;7388:22;;;7533:165;;7675:7;7684:13;7658:40;;;;;;;;35636:19:1;;;35693:3;35689:16;35707:66;35685:89;35680:2;35671:12;;35664:111;35800:2;35791:12;;35481:328;7658:40:0;;;;;;;;;;;;;7533:165;;;7576:7;7585:13;7617:10;7630:11;7559:83;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;7533:165;7526:172;;7190:516;;;;;;:::o;98929:194::-;98995:17;99042:10;99029:9;:23;99025:62;;99061:26;;;;;99077:9;99061:26;;;6703:25:1;6676:18;;99061:26:0;6557:177:1;99025:62:0;-1:-1:-1;99105:10:0;98929:194::o;99509:417::-;99664:15;99682:8;-1:-1:-1;;;;;99682:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;99664:36;-1:-1:-1;;;;;;99715:21:0;;99711:54;;99745:20;;;;;;;;;;;;;;99711:54;90400:53;;;99875:10;90400:53;;;36908:34:1;;;99895:8:0;-1:-1:-1;;;;;36978:15:1;;;36958:18;;;36951:43;37010:18;;;;37003:34;;;90400:53:0;;;;;;;;;;36820:18:1;;;;90400:53:0;;;;;;;;;;;;;;99842:76;;:32;;;99906:11;;90373:81;;99842:32;;-1:-1:-1;93126:33:0;99842:32;90400:53;93126:27;:33::i;:::-;93100:59;;93174:10;:17;93195:1;93174:22;;:57;;;;;93212:10;93201:30;;;;;;;;;;;;:::i;:::-;93200:31;93174:57;93170:137;;;93255:40;;;;;-1:-1:-1;;;;;4082:55:1;;93255:40:0;;;4064:74:1;4037:18;;93255:40:0;3918:226:1;41109:153:0;41184:12;41216:38;41238:6;41246:4;41252:1;41184:12;41842;41856:23;41883:6;-1:-1:-1;;;;;41883:11:0;41902:5;41909:4;41883:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41841:73;;;;41932:55;41959:6;41967:7;41976:10;43221:12;43251:7;43246:417;;43275:19;43283:10;43275:7;:19::i;:::-;43246:417;;;43503:17;;:22;:49;;;;-1:-1:-1;;;;;;43529:18:0;;;:23;43503:49;43499:121;;;43580:24;;;;;-1:-1:-1;;;;;4082:55:1;;43580:24:0;;;4064:74:1;4037:18;;43580:24:0;3918:226:1;43499:121:0;-1:-1:-1;43641:10:0;43634:17;;44223:528;44356:17;;:21;44352:392;;44588:10;44582:17;44645:15;44632:10;44628:2;44624:19;44617:44;44352:392;44715:17;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:332:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;180:9;167:23;230:66;223:5;219:78;212:5;209:89;199:117;;312:1;309;302:12;543:250;628:1;638:113;652:6;649:1;646:13;638:113;;;728:11;;;722:18;709:11;;;702:39;674:2;667:10;638:113;;;-1:-1:-1;;785:1:1;767:16;;760:27;543:250::o;798:330::-;840:3;878:5;872:12;905:6;900:3;893:19;921:76;990:6;983:4;978:3;974:14;967:4;960:5;956:16;921:76;:::i;:::-;1042:2;1030:15;-1:-1:-1;;1026:88:1;1017:98;;;;1117:4;1013:109;;798:330;-1:-1:-1;;798:330:1:o;1133:220::-;1282:2;1271:9;1264:21;1245:4;1302:45;1343:2;1332:9;1328:18;1320:6;1302:45;:::i;1358:154::-;-1:-1:-1;;;;;1437:5:1;1433:54;1426:5;1423:65;1413:93;;1502:1;1499;1492:12;1517:315;1585:6;1593;1646:2;1634:9;1625:7;1621:23;1617:32;1614:52;;;1662:1;1659;1652:12;1614:52;1701:9;1688:23;1720:31;1745:5;1720:31;:::i;:::-;1770:5;1822:2;1807:18;;;;1794:32;;-1:-1:-1;;;1517:315:1:o;1837:158::-;1899:5;1944:3;1935:6;1930:3;1926:16;1922:26;1919:46;;;1961:1;1958;1951:12;1919:46;-1:-1:-1;1983:6:1;1837:158;-1:-1:-1;1837:158:1:o;2000:360::-;2088:6;2141:2;2129:9;2120:7;2116:23;2112:32;2109:52;;;2157:1;2154;2147:12;2109:52;2197:9;2184:23;2230:18;2222:6;2219:30;2216:50;;;2262:1;2259;2252:12;2216:50;2285:69;2346:7;2337:6;2326:9;2322:22;2285:69;:::i;2519:1394::-;2439:12;;2427:25;;2501:4;2490:16;;;2484:23;2468:14;;;2461:47;2885:4;2933:3;2918:19;;3010:2;3048:3;3043:2;3032:9;3028:18;3021:31;3072:6;3107;3101:13;3138:6;3130;3123:22;3176:3;3165:9;3161:19;3154:26;;3239:3;3229:6;3226:1;3222:14;3211:9;3207:30;3203:40;3189:54;;3262:4;3301;3293:6;3289:17;3324:1;3334:487;3348:6;3345:1;3342:13;3334:487;;;3413:22;;;3437:66;3409:95;3397:108;;3528:13;;3569:9;;3554:25;;3618:11;;3612:18;3650:15;;;3643:27;;;3693:48;3725:15;;;3612:18;3693:48;:::i;:::-;3683:58;-1:-1:-1;;3799:12:1;;;;3764:15;;;;3370:1;3363:9;3334:487;;;-1:-1:-1;;2439:12:1;;3903:2;3888:18;;2427:25;-1:-1:-1;;;2501:4:1;2490:16;;2484:23;2468:14;;;2461:47;-1:-1:-1;3838:6:1;-1:-1:-1;3853:54:1;2365:149;4149:154;4208:5;4253:2;4244:6;4239:3;4235:16;4231:25;4228:45;;;4269:1;4266;4259:12;4308:347;4359:8;4369:6;4423:3;4416:4;4408:6;4404:17;4400:27;4390:55;;4441:1;4438;4431:12;4390:55;-1:-1:-1;4464:20:1;;4507:18;4496:30;;4493:50;;;4539:1;4536;4529:12;4493:50;4576:4;4568:6;4564:17;4552:29;;4628:3;4621:4;4612:6;4604;4600:19;4596:30;4593:39;4590:59;;;4645:1;4642;4635:12;4590:59;4308:347;;;;;:::o;4660:1048::-;4803:6;4811;4819;4827;4835;4843;4851;4904:3;4892:9;4883:7;4879:23;4875:33;4872:53;;;4921:1;4918;4911:12;4872:53;4944;4989:7;4978:9;4944:53;:::i;:::-;4934:63;;5044:2;5033:9;5029:18;5016:32;5006:42;;5099:3;5088:9;5084:19;5071:33;5123:18;5164:2;5156:6;5153:14;5150:34;;;5180:1;5177;5170:12;5150:34;5219:58;5269:7;5260:6;5249:9;5245:22;5219:58;:::i;:::-;5296:8;;-1:-1:-1;5193:84:1;-1:-1:-1;5381:3:1;5366:19;;5353:33;;-1:-1:-1;5395:31:1;5353:33;5395:31;:::i;:::-;5445:5;;-1:-1:-1;5503:3:1;5488:19;;5475:33;;5520:16;;;5517:36;;;5549:1;5546;5539:12;5517:36;;5588:60;5640:7;5629:8;5618:9;5614:24;5588:60;:::i;:::-;4660:1048;;;;-1:-1:-1;4660:1048:1;;-1:-1:-1;4660:1048:1;;;;5562:86;;-1:-1:-1;;;4660:1048:1:o;6739:456::-;6816:6;6824;6832;6885:2;6873:9;6864:7;6860:23;6856:32;6853:52;;;6901:1;6898;6891:12;6853:52;6940:9;6927:23;6959:31;6984:5;6959:31;:::i;:::-;7009:5;-1:-1:-1;7066:2:1;7051:18;;7038:32;7079:33;7038:32;7079:33;:::i;:::-;6739:456;;7131:7;;-1:-1:-1;;;7185:2:1;7170:18;;;;7157:32;;6739:456::o;7200:180::-;7259:6;7312:2;7300:9;7291:7;7287:23;7283:32;7280:52;;;7328:1;7325;7318:12;7280:52;-1:-1:-1;7351:23:1;;7200:180;-1:-1:-1;7200:180:1:o;7567:315::-;7635:6;7643;7696:2;7684:9;7675:7;7671:23;7667:32;7664:52;;;7712:1;7709;7702:12;7664:52;7748:9;7735:23;7725:33;;7808:2;7797:9;7793:18;7780:32;7821:31;7846:5;7821:31;:::i;:::-;7871:5;7861:15;;;7567:315;;;;;:::o;8076:163::-;8143:20;;8203:10;8192:22;;8182:33;;8172:61;;8229:1;8226;8219:12;8172:61;8076:163;;;:::o;8244:252::-;8311:6;8319;8372:2;8360:9;8351:7;8347:23;8343:32;8340:52;;;8388:1;8385;8378:12;8340:52;8411:28;8429:9;8411:28;:::i;8501:118::-;8587:5;8580:13;8573:21;8566:5;8563:32;8553:60;;8609:1;8606;8599:12;8624:489;8718:6;8726;8779:2;8767:9;8758:7;8754:23;8750:32;8747:52;;;8795:1;8792;8785:12;8747:52;8835:9;8822:23;8868:18;8860:6;8857:30;8854:50;;;8900:1;8897;8890:12;8854:50;8923:69;8984:7;8975:6;8964:9;8960:22;8923:69;:::i;:::-;8913:79;;;9042:2;9031:9;9027:18;9014:32;9055:28;9077:5;9055:28;:::i;9118:257::-;2439:12;;2427:25;;2501:4;2490:16;;;2484:23;2468:14;;;2461:47;9312:2;9297:18;;9324:45;2365:149;9565:159;9632:20;;9692:6;9681:18;;9671:29;;9661:57;;9714:1;9711;9704:12;9729:256;9795:6;9803;9856:2;9844:9;9835:7;9831:23;9827:32;9824:52;;;9872:1;9869;9862:12;9824:52;9895:28;9913:9;9895:28;:::i;:::-;9885:38;;9942:37;9975:2;9964:9;9960:18;9942:37;:::i;:::-;9932:47;;9729:256;;;;;:::o;10473:247::-;10532:6;10585:2;10573:9;10564:7;10560:23;10556:32;10553:52;;;10601:1;10598;10591:12;10553:52;10640:9;10627:23;10659:31;10684:5;10659:31;:::i;10930:670::-;11044:6;11052;11060;11068;11121:3;11109:9;11100:7;11096:23;11092:33;11089:53;;;11138:1;11135;11128:12;11089:53;11161;11206:7;11195:9;11161:53;:::i;:::-;11151:63;;11265:2;11254:9;11250:18;11237:32;11292:18;11284:6;11281:30;11278:50;;;11324:1;11321;11314:12;11278:50;11363:58;11413:7;11404:6;11393:9;11389:22;11363:58;:::i;:::-;11440:8;;-1:-1:-1;11337:84:1;-1:-1:-1;;11525:3:1;11510:19;;11497:33;11539:31;11497:33;11539:31;:::i;:::-;10930:670;;;;-1:-1:-1;10930:670:1;;-1:-1:-1;;10930:670:1:o;11605:395::-;11696:8;11706:6;11760:3;11753:4;11745:6;11741:17;11737:27;11727:55;;11778:1;11775;11768:12;11727:55;-1:-1:-1;11801:20:1;;11844:18;11833:30;;11830:50;;;11876:1;11873;11866:12;11830:50;11913:4;11905:6;11901:17;11889:29;;11973:3;11966:4;11956:6;11953:1;11949:14;11941:6;11937:27;11933:38;11930:47;11927:67;;;11990:1;11987;11980:12;12005:503;12129:6;12137;12190:2;12178:9;12169:7;12165:23;12161:32;12158:52;;;12206:1;12203;12196:12;12158:52;12246:9;12233:23;12279:18;12271:6;12268:30;12265:50;;;12311:1;12308;12301:12;12265:50;12350:98;12440:7;12431:6;12420:9;12416:22;12350:98;:::i;:::-;12467:8;;12324:124;;-1:-1:-1;12005:503:1;-1:-1:-1;;;;12005:503:1:o;12513:184::-;12571:6;12624:2;12612:9;12603:7;12599:23;12595:32;12592:52;;;12640:1;12637;12630:12;12592:52;12663:28;12681:9;12663:28;:::i;12702:553::-;12788:6;12796;12804;12812;12865:2;12853:9;12844:7;12840:23;12836:32;12833:52;;;12881:1;12878;12871:12;12833:52;12904:28;12922:9;12904:28;:::i;:::-;12894:38;;12951:37;12984:2;12973:9;12969:18;12951:37;:::i;:::-;12941:47;;13039:2;13028:9;13024:18;13011:32;13066:18;13058:6;13055:30;13052:50;;;13098:1;13095;13088:12;13052:50;13137:58;13187:7;13178:6;13167:9;13163:22;13137:58;:::i;:::-;12702:553;;;;-1:-1:-1;13214:8:1;-1:-1:-1;;;;12702:553:1:o;13763:716::-;13901:6;13909;13917;13961:9;13952:7;13948:23;13991:3;13987:2;13983:12;13980:32;;;14008:1;14005;13998:12;13980:32;14048:9;14035:23;14081:18;14073:6;14070:30;14067:50;;;14113:1;14110;14103:12;14067:50;14136:69;14197:7;14188:6;14177:9;14173:22;14136:69;:::i;:::-;14126:79;;;14298:2;-1:-1:-1;;14225:2:1;14221:75;14217:84;14214:104;;;14314:1;14311;14304:12;14214:104;;14352:2;14341:9;14337:18;14327:28;;14405:2;14394:9;14390:18;14377:32;14418:31;14443:5;14418:31;:::i;:::-;14468:5;14458:15;;;13763:716;;;;;:::o;14484:613::-;14728:4;14770:3;14759:9;14755:19;14747:27;;14807:6;14801:13;14790:9;14783:32;14883:18;14875:4;14867:6;14863:17;14857:24;14853:49;14846:4;14835:9;14831:20;14824:79;14950:4;14942:6;14938:17;14932:24;14965:62;15021:4;15010:9;15006:20;14992:12;2439;;2427:25;;2501:4;2490:16;;;2484:23;2468:14;;2461:47;2365:149;14965:62;-1:-1:-1;2439:12:1;;15086:3;15071:19;;2427:25;2501:4;2490:16;;2484:23;2468:14;;;2461:47;15036:55;2365:149;15102:388;15170:6;15178;15231:2;15219:9;15210:7;15206:23;15202:32;15199:52;;;15247:1;15244;15237:12;15199:52;15286:9;15273:23;15305:31;15330:5;15305:31;:::i;:::-;15355:5;-1:-1:-1;15412:2:1;15397:18;;15384:32;15425:33;15384:32;15425:33;:::i;15495:236::-;15580:6;15633:2;15621:9;15612:7;15608:23;15604:32;15601:52;;;15649:1;15646;15639:12;15601:52;15672:53;15717:7;15706:9;15672:53;:::i;15736:437::-;15815:1;15811:12;;;;15858;;;15879:61;;15933:4;15925:6;15921:17;15911:27;;15879:61;15986:2;15978:6;15975:14;15955:18;15952:38;15949:218;;-1:-1:-1;;;16020:1:1;16013:88;16124:4;16121:1;16114:15;16152:4;16149:1;16142:15;16178:184;-1:-1:-1;;;16227:1:1;16220:88;16327:4;16324:1;16317:15;16351:4;16348:1;16341:15;16635:253;16707:2;16701:9;16749:4;16737:17;;16784:18;16769:34;;16805:22;;;16766:62;16763:88;;;16831:18;;:::i;:::-;16867:2;16860:22;16635:253;:::o;16893:251::-;16965:2;16959:9;;;16995:15;;17040:18;17025:34;;17061:22;;;17022:62;17019:88;;;17087:18;;:::i;17149:334::-;17220:2;17214:9;17276:2;17266:13;;-1:-1:-1;;17262:86:1;17250:99;;17379:18;17364:34;;17400:22;;;17361:62;17358:88;;;17426:18;;:::i;:::-;17462:2;17455:22;17149:334;;-1:-1:-1;17149:334:1:o;17488:245::-;17536:4;17569:18;17561:6;17558:30;17555:56;;;17591:18;;:::i;:::-;-1:-1:-1;17648:2:1;17636:15;-1:-1:-1;;17632:88:1;17722:4;17628:99;;17488:245::o;17738:2115::-;17928:9;17962:18;18003:2;17995:6;17992:14;17989:40;;;18009:18;;:::i;:::-;18055:6;18052:1;18048:14;18081:4;18105:28;18129:2;18125;18121:11;18105:28;:::i;:::-;18167:19;;;18237:14;;;;18202:12;;;;18274:14;18263:26;;18260:46;;;18302:1;18299;18292:12;18260:46;18326:5;18340:1480;18356:6;18351:3;18348:15;18340:1480;;;18442:3;18429:17;18478:2;18465:11;18462:19;18459:109;;;18522:1;18551:2;18547;18540:14;18459:109;18591:23;;18659:4;18638:14;18634:23;;;18630:34;18627:124;;;18705:1;18734:2;18730;18723:14;18627:124;18779:22;;:::i;:::-;18830:21;18848:2;18830:21;:::i;:::-;18821:7;18814:38;18890:30;18916:2;18912;18908:11;18890:30;:::i;:::-;18885:2;18876:7;18872:16;18865:56;18944:2;18994;18990;18986:11;18973:25;19025:2;19017:6;19014:14;19011:104;;;19069:1;19098:2;19094;19087:14;19011:104;19138:15;;;;;19195:14;19188:4;19180:13;;19176:34;19166:135;;19253:1;19283:3;19278;19271:16;19166:135;19338:2;19325:16;19367:49;19383:32;19411:3;19383:32;:::i;:::-;19367:49;:::i;:::-;19443:3;19436:5;19429:18;19489:14;19484:2;19478:3;19474:2;19470:12;19466:21;19463:41;19460:134;;;19546:1;19576:3;19571;19564:16;19460:134;19649:3;19644:2;19640;19636:11;19631:2;19624:5;19620:14;19607:46;19699:1;19677:15;;;19673:24;;19666:35;;;;19721:16;;;19714:31;19758:20;;-1:-1:-1;19798:12:1;;;;18373;;18340:1480;;;-1:-1:-1;19842:5:1;17738:2115;-1:-1:-1;;;;;;;17738:2115:1:o;19858:331::-;19963:9;19974;20016:8;20004:10;20001:24;19998:44;;;20038:1;20035;20028:12;19998:44;20067:6;20057:8;20054:20;20051:40;;;20087:1;20084;20077:12;20051:40;-1:-1:-1;;20113:23:1;;;20158:25;;;;;-1:-1:-1;19858:331:1:o;20194:476::-;20385:3;20423:6;20417:13;20439:66;20498:6;20493:3;20486:4;20478:6;20474:17;20439:66;:::i;:::-;20527:16;;20580:6;20572;20527:16;20552:35;20644:1;20606:18;;20633:13;;;-1:-1:-1;20606:18:1;;20194:476;-1:-1:-1;;;20194:476:1:o;20675:325::-;20763:6;20758:3;20751:19;20815:6;20808:5;20801:4;20796:3;20792:14;20779:43;;20867:1;20860:4;20851:6;20846:3;20842:16;20838:27;20831:38;20733:3;20989:4;-1:-1:-1;;20914:2:1;20906:6;20902:15;20898:88;20893:3;20889:98;20885:109;20878:116;;20675:325;;;;:::o;21005:244::-;21162:2;21151:9;21144:21;21125:4;21182:61;21239:2;21228:9;21224:18;21216:6;21208;21182:61;:::i;21254:184::-;-1:-1:-1;;;21303:1:1;21296:88;21403:4;21400:1;21393:15;21427:4;21424:1;21417:15;21443:389;21542:4;21600:11;21587:25;21690:66;21679:8;21663:14;21659:29;21655:102;21635:18;21631:127;21621:155;;21772:1;21769;21762:12;21621:155;21793:33;;;;;21443:389;-1:-1:-1;;21443:389:1:o;21837:580::-;21914:4;21920:6;21980:11;21967:25;22070:66;22059:8;22043:14;22039:29;22035:102;22015:18;22011:127;22001:155;;22152:1;22149;22142:12;22001:155;22179:33;;22231:20;;;-1:-1:-1;22274:18:1;22263:30;;22260:50;;;22306:1;22303;22296:12;22260:50;22339:4;22327:17;;-1:-1:-1;22370:14:1;22366:27;;;22356:38;;22353:58;;;22407:1;22404;22397:12;22422:129;22507:18;22500:5;22496:30;22489:5;22486:41;22476:69;;22541:1;22538;22531:12;22556:1015;22934:10;22907:25;22925:6;22907:25;:::i;:::-;22903:42;22892:9;22885:61;23009:4;23001:6;22997:17;22984:31;22977:4;22966:9;22962:20;22955:61;22866:4;23063;23055:6;23051:17;23038:31;23078:30;23102:5;23078:30;:::i;:::-;23157:18;23150:5;23146:30;23139:4;23128:9;23124:20;23117:60;;23213:6;23208:2;23197:9;23193:18;23186:34;23257:3;23251;23240:9;23236:19;23229:32;23284:62;23341:3;23330:9;23326:19;23318:6;23310;23284:62;:::i;:::-;-1:-1:-1;;;;;23387:6:1;23383:55;23377:3;23366:9;23362:19;23355:84;23488:9;23480:6;23476:22;23470:3;23459:9;23455:19;23448:51;23516:49;23558:6;23550;23542;23516:49;:::i;:::-;23508:57;22556:1015;-1:-1:-1;;;;;;;;;;22556:1015:1:o;23576:647::-;23655:6;23708:2;23696:9;23687:7;23683:23;23679:32;23676:52;;;23724:1;23721;23714:12;23676:52;23757:9;23751:16;23790:18;23782:6;23779:30;23776:50;;;23822:1;23819;23812:12;23776:50;23845:22;;23898:4;23890:13;;23886:27;-1:-1:-1;23876:55:1;;23927:1;23924;23917:12;23876:55;23956:2;23950:9;23981:48;23997:31;24025:2;23997:31;:::i;23981:48::-;24052:2;24045:5;24038:17;24092:7;24087:2;24082;24078;24074:11;24070:20;24067:33;24064:53;;;24113:1;24110;24103:12;24064:53;24126:67;24190:2;24185;24178:5;24174:14;24169:2;24165;24161:11;24126:67;:::i;24228:348::-;24317:6;24370:2;24358:9;24349:7;24345:23;24341:32;24338:52;;;24386:1;24383;24376:12;24338:52;24412:22;;:::i;:::-;24470:9;24457:23;24450:5;24443:38;24541:2;24530:9;24526:18;24513:32;24508:2;24501:5;24497:14;24490:56;24565:5;24555:15;;;24228:348;;;;:::o;25370:245::-;25428:6;25481:2;25469:9;25460:7;25456:23;25452:32;25449:52;;;25497:1;25494;25487:12;25449:52;25536:9;25523:23;25555:30;25579:5;25555:30;:::i;25620:502::-;-1:-1:-1;;;;;25862:6:1;25858:55;25847:9;25840:74;25950:6;25945:2;25934:9;25930:18;25923:34;26005:6;25997;25993:19;25988:2;25977:9;25973:18;25966:47;26049:3;26044:2;26033:9;26029:18;26022:31;25821:4;26070:46;26111:3;26100:9;26096:19;26088:6;26070:46;:::i;26768:379::-;26961:2;26950:9;26943:21;26924:4;26987:45;27028:2;27017:9;27013:18;27005:6;26987:45;:::i;:::-;27080:9;27072:6;27068:22;27063:2;27052:9;27048:18;27041:50;27108:33;27134:6;27126;27108:33;:::i;27152:245::-;27219:6;27272:2;27260:9;27251:7;27247:23;27243:32;27240:52;;;27288:1;27285;27278:12;27240:52;27320:9;27314:16;27339:28;27361:5;27339:28;:::i;27402:973::-;27625:2;27614:9;27607:21;27683:10;27674:6;27668:13;27664:30;27659:2;27648:9;27644:18;27637:58;27749:4;27741:6;27737:17;27731:24;27726:2;27715:9;27711:18;27704:52;27588:4;27803:2;27795:6;27791:15;27785:22;27844:4;27838:3;27827:9;27823:19;27816:33;27872:52;27919:3;27908:9;27904:19;27890:12;27872:52;:::i;:::-;27858:66;;27973:2;27965:6;27961:15;27955:22;-1:-1:-1;;28031:9:1;28023:6;28019:22;28015:95;28008:4;27997:9;27993:20;27986:125;28134:41;28168:6;28152:14;28134:41;:::i;:::-;28244:3;28232:16;;;;28226:23;28219:31;28212:39;28206:3;28191:19;;28184:68;-1:-1:-1;;;;;;;;28313:55:1;;;;28306:4;28291:20;;;28284:85;28120:55;27402:973::o;28380:284::-;28450:5;28498:4;28486:9;28481:3;28477:19;28473:30;28470:50;;;28516:1;28513;28506:12;28470:50;28538:22;;:::i;:::-;28529:31;;28589:9;28583:16;28576:5;28569:31;28653:2;28642:9;28638:18;28632:25;28627:2;28620:5;28616:14;28609:49;28380:284;;;;:::o;28669:259::-;28769:6;28822:2;28810:9;28801:7;28797:23;28793:32;28790:52;;;28838:1;28835;28828:12;28790:52;28861:61;28914:7;28903:9;28861:61;:::i;29058:542::-;29159:2;29154:3;29151:11;29148:446;;;29195:1;29219:5;29216:1;29209:16;29263:4;29260:1;29250:18;29333:2;29321:10;29317:19;29314:1;29310:27;29304:4;29300:38;29369:4;29357:10;29354:20;29351:47;;;-1:-1:-1;29392:4:1;29351:47;29447:2;29442:3;29438:12;29435:1;29431:20;29425:4;29421:31;29411:41;;29502:82;29520:2;29513:5;29510:13;29502:82;;;29565:17;;;29546:1;29535:13;29502:82;;;29506:3;;;29058:542;;;:::o;29836:1460::-;29960:3;29954:10;29987:18;29979:6;29976:30;29973:56;;;30009:18;;:::i;:::-;30038:96;30127:6;30087:38;30119:4;30113:11;30087:38;:::i;:::-;30081:4;30038:96;:::i;:::-;30189:4;;30246:2;30235:14;;30263:1;30258:781;;;;31083:1;31100:6;31097:89;;;-1:-1:-1;31152:19:1;;;31146:26;31097:89;-1:-1:-1;;29733:1:1;29729:11;;;29725:84;29721:89;29711:100;29817:1;29813:11;;;29708:117;31199:81;;30228:1062;;30258:781;29005:1;28998:14;;;29042:4;29029:18;;-1:-1:-1;;30294:79:1;;;30470:236;30484:7;30481:1;30478:14;30470:236;;;30573:19;;;30567:26;30552:42;;30665:27;;;;30633:1;30621:14;;;;30500:19;;30470:236;;;30474:3;30734:6;30725:7;30722:19;30719:261;;;30795:19;;;30789:26;-1:-1:-1;;30878:1:1;30874:14;;;30890:3;30870:24;30866:97;30862:102;30847:118;30832:134;;30719:261;-1:-1:-1;;;;;31026:1:1;31010:14;;;31006:22;30993:36;;-1:-1:-1;29836:1460:1:o;31301:1221::-;31515:4;31544:2;31584;31573:9;31569:18;31614:2;31603:9;31596:21;31637:6;31672;31666:13;31703:6;31695;31688:22;31729:2;31719:12;;31762:2;31751:9;31747:18;31740:25;;31824:2;31814:6;31811:1;31807:14;31796:9;31792:30;31788:39;31862:2;31854:6;31850:15;31883:1;31893:600;31907:6;31904:1;31901:13;31893:600;;;31972:22;;;-1:-1:-1;;31968:95:1;31956:108;;32087:13;;32159:9;;32170:10;32155:26;32140:42;;32229:11;;;32223:18;32243:6;32219:31;32202:15;;;32195:56;32290:11;;32284:18;32123:4;32322:15;;;32315:27;;;32365:48;32397:15;;;32284:18;32365:48;:::i;:::-;32471:12;;;;32355:58;-1:-1:-1;;;32436:15:1;;;;31929:1;31922:9;31893:600;;;-1:-1:-1;32510:6:1;;31301:1221;-1:-1:-1;;;;;;;;31301:1221:1:o;32527:525::-;32631:6;32684:3;32672:9;32663:7;32659:23;32655:33;32652:53;;;32701:1;32698;32691:12;32652:53;32727:22;;:::i;:::-;32778:9;32772:16;32765:5;32758:31;32834:2;32823:9;32819:18;32813:25;32847:32;32871:7;32847:32;:::i;:::-;32906:2;32895:14;;32888:31;32951:70;33013:7;33008:2;32993:18;;32951:70;:::i;:::-;32946:2;32935:14;;32928:94;32939:5;32527:525;-1:-1:-1;;;32527:525:1:o;33057:184::-;-1:-1:-1;;;33106:1:1;33099:88;33206:4;33203:1;33196:15;33230:4;33227:1;33220:15;33246:274;33286:1;33312;33302:189;;-1:-1:-1;;;33344:1:1;33337:88;33448:4;33445:1;33438:15;33476:4;33473:1;33466:15;33302:189;-1:-1:-1;33505:9:1;;33246:274::o;33525:168::-;33598:9;;;33629;;33646:15;;;33640:22;;33626:37;33616:71;;33667:18;;:::i;33698:315::-;33818:19;;33857:2;33849:11;;33846:161;;;-1:-1:-1;;33918:2:1;33914:12;;;33911:1;33907:20;33903:93;33892:105;33698:315;;;;:::o;34018:369::-;34176:66;34138:19;;34260:11;;;;34291:1;34283:10;;34280:101;;;34368:2;34362;34355:3;34352:1;34348:11;34345:1;34341:19;34337:28;34333:2;34329:37;34325:46;34316:55;;34280:101;;;34018:369;;;;:::o;34392:652::-;34653:66;34644:6;34639:3;34635:16;34631:89;34626:3;34619:102;34772:66;34763:6;34758:3;34754:16;34750:89;34746:1;34741:3;34737:11;34730:110;34870:6;34865:2;34860:3;34856:12;34849:28;34601:3;34906:6;34900:13;34922:75;34990:6;34985:2;34980:3;34976:12;34969:4;34961:6;34957:17;34922:75;:::i;:::-;35017:16;;;;35035:2;35013:25;;34392:652;-1:-1:-1;;;;;34392:652:1:o;35049:125::-;35114:9;;;35135:10;;;35132:36;;;35148:18;;:::i;35814:570::-;36055:6;36050:3;36043:19;36114:66;36105:6;36100:3;36096:16;36092:89;36087:2;36082:3;36078:12;36071:111;36212:6;36207:2;36202:3;36198:12;36191:28;36025:3;36248:6;36242:13;36264:73;36330:6;36325:2;36320:3;36316:12;36311:2;36303:6;36299:15;36264:73;:::i;:::-;36357:16;;;;36375:2;36353:25;;35814:570;-1:-1:-1;;;;;35814:570:1:o;36389:251::-;36459:6;36512:2;36500:9;36491:7;36487:23;36483:32;36480:52;;;36528:1;36525;36518:12;36480:52;36560:9;36554:16;36579:31;36604:5;36579:31;:::i;37048:287::-;37177:3;37215:6;37209:13;37231:66;37290:6;37285:3;37278:4;37270:6;37266:17;37231:66;:::i
Swarm Source
ipfs://61234df555ba16b77f1bc14debdcf288d96cad5875280893c821a72914651166
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
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.