ERC-20
Gaming
Overview
Max Total Supply
119,725,536.983428004488553747 GNOME
Holders
567 (0.00%)
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
$25,970.86
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000000000001 GNOMEValue
$0.00 ( ~0 Eth) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GnomeLand
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 500 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* ░██████╗░███╗░░██╗░█████╗░███╗░░░███╗███████╗██╗░░░░░░█████╗░███╗░░██╗██████╗░ ██╔════╝░████╗░██║██╔══██╗████╗░████║██╔════╝██║░░░░░██╔══██╗████╗░██║██╔══██╗ ██║░░██╗░██╔██╗██║██║░░██║██╔████╔██║█████╗░░██║░░░░░███████║██╔██╗██║██║░░██║ ██║░░╚██╗██║╚████║██║░░██║██║╚██╔╝██║██╔══╝░░██║░░░░░██╔══██║██║╚████║██║░░██║ ╚██████╔╝██║░╚███║╚█████╔╝██║░╚═╝░██║███████╗███████╗██║░░██║██║░╚███║██████╔╝ ░╚═════╝░╚═╝░░╚══╝░╚════╝░╚═╝░░░░░╚═╝╚══════╝╚══════╝╚═╝░░╚═╝╚═╝░░╚══╝╚═════╝░ ╓╓╓▄▄▄▓▓█▓▓▓▓▀▀▀▀▀▀▓█ ╓▄██▀╙╙░░░░░░░░░░░░░░░░╠╬║█ ╓▄▓▀╙░░░░░░░░░░░░░░░░░░░░░░╠╠╠║▌ ╓█╩░░░░░░░░░░░░░░░░░░░░░░░░░░╠╠╠╠║▌ ▄█▒░░░░░░░░░░░░░▒▄██████▄▄░░░░░╠╠╠╠║▌ ╓██▀▀▀╙╙╚▀░░░░░▄██╩░░░░░░░░╙▀█▄▒░╠╠╠╠╬█ ╓▓▀╙░░░░░░░░░░░░░╚╩░░░░░░░░░░░░░░╙▀█╠╠╠╠╬▓ ▄╩░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╠╠╠╠╠║▌ ║██▓▓▓▓▓▄▄▒░░░░░░░░░░░▄▄██▓█▄▄▒░░░░░░░╠╠╠╠╠╬█ ╔▀ ╙▀▀█▓▄▄▄██▀╙ └╙▀█▄▒░░░╠╠╠╠╠╠║▌ ║█▀▀╙╙╙▀▀▓▄╖ ▄▄▓▓▓▓╗▄▄╓ ╙╙█▄▒░╠╠╠╠╠╬█ ╓▀ ╓╓╓╓╓╓ ╙█▄ ▄▀╙ ╙▀▓▄ ╙▀▓▒▒╠╠╠║▌ ▐██████████╙╙▀█▄ ╙█▄▓████████▀▀╗▄ █▀███╬█ █║██████▌ ██ ╙██╓███████╙▀█ └▀╗╓ ║▒ ╙╙▓ ╒▌╫███████╦╫█ ║ ╫███████╓▄█▌ └█╕ ║▌ ▀█▀▀ █╚██████████ ╓╣ ║██████████▒ ╔▀╙ ║▒ └█ ┌╣█╣████████╓╓▄▓▓▒▄█▄║████████▌╓╗╗▀╙ ╓█ ╚▄ │█▄╗▀▀╙ ╙▀╙ ╙▀▀██▒ ▄█ ╙▄ █▒ ╙▀▀▀▀╠█▌╓▄▓▀ ║ ╙█╓ ╓╓ ╓██╩║▌ ║ ╓╣███▄▄▄▄▓██╬╬╠╬███▄▄▄▄╓╓╓╓╓▄▄▄▓█╬╬▒░░╠█ ╔ ┌█ ╓▌ ▀█╬╬▒╠╠╠╠░▒░░░╠╠╠╚╚╚╩╠╠╠╠╬███▀╩░░░▄█ ▓ █▀ ╒▌ ╘█░╚╚╚╚╚▀▀▀▀▀▀▀▀▀▀▀▀▀▀╚╚╚░░░░░░▄█▀╙ ║ ▐▌ ╟ └▀█▄▒▒▒░░░░░░░░░░░▒▒▒▒▒▄▄█▓╝▀╙ ▐▌ ║░ ╙╙▀▀▀▀▀▀▀▀▀▀▀▀▀▀╙╙ ╓ █ █ ▓ ╓█ ║▌ ╔ ╔█▀ █ ╚▄ ╓╩ ╔▀ ╚▌ ╙ ▓▀ ╓█╙ ╙▌ ▐ ╓═ ▄ ╓▄▀╙ ▀▄ ╙▒ ▄██▄█▀ ╙▀▄╓║▄ └ ▄╩ ╙▀█ ╓▄▀▀ ▀▓ ▄▄▓▀▀▀▀╙ └▀╗▄╓▄▀╙ https://www.gnomeland.money/ https://twitter.com/Gnome0xLand $GNOME Everywhere... // SPDX-License-Identifier: MIT */ // File: https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/libraries/ExcessivelySafeCall.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/token/ERC20/[email protected] // Original license: SPDX_License_Identifier: MIT // 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/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // 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/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (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; } } // File @openzeppelin/contracts/token/ERC20/[email protected] // Original license: SPDX_License_Identifier: MIT // 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); } } } } pragma solidity >=0.7.6; 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); } } library ExcessivelySafeCall { uint constant LOW_28_MASK = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff; /// @notice Use when you _really_ really _really_ don't trust the called /// contract. This prevents the called contract from causing reversion of /// the caller in as many ways as we can. /// @dev The main difference between this and a solidity low-level call is /// that we limit the number of bytes that the callee can cause to be /// copied to caller memory. This prevents stupid things like malicious /// contracts returning 10,000,000 bytes causing a local OOG when copying /// to memory. /// @param _target The address to call /// @param _gas The amount of gas to forward to the remote contract /// @param _maxCopy The maximum number of bytes of returndata to copy /// to memory. /// @param _calldata The data to send to the remote contract /// @return success and returndata, as `.call()`. Returndata is capped to /// `_maxCopy` bytes. function excessivelySafeCall( address _target, uint _gas, uint16 _maxCopy, bytes memory _calldata ) internal returns (bool, bytes memory) { // set up for assembly call uint _toCopy; bool _success; bytes memory _returnData = new bytes(_maxCopy); // dispatch message to recipient // by assembly calling "handle" function // we call via assembly to avoid memcopying a very large returndata // returned by a malicious contract assembly { _success := call( _gas, // gas _target, // recipient 0, // ether value add(_calldata, 0x20), // inloc mload(_calldata), // inlen 0, // outloc 0 // outlen ) // limit our copy to 256 bytes _toCopy := returndatasize() if gt(_toCopy, _maxCopy) { _toCopy := _maxCopy } // Store the length of the copied bytes mstore(_returnData, _toCopy) // copy the bytes from returndata[0:_toCopy] returndatacopy(add(_returnData, 0x20), 0, _toCopy) } return (_success, _returnData); } /// @notice Use when you _really_ really _really_ don't trust the called /// contract. This prevents the called contract from causing reversion of /// the caller in as many ways as we can. /// @dev The main difference between this and a solidity low-level call is /// that we limit the number of bytes that the callee can cause to be /// copied to caller memory. This prevents stupid things like malicious /// contracts returning 10,000,000 bytes causing a local OOG when copying /// to memory. /// @param _target The address to call /// @param _gas The amount of gas to forward to the remote contract /// @param _maxCopy The maximum number of bytes of returndata to copy /// to memory. /// @param _calldata The data to send to the remote contract /// @return success and returndata, as `.call()`. Returndata is capped to /// `_maxCopy` bytes. function excessivelySafeStaticCall( address _target, uint _gas, uint16 _maxCopy, bytes memory _calldata ) internal view returns (bool, bytes memory) { // set up for assembly call uint _toCopy; bool _success; bytes memory _returnData = new bytes(_maxCopy); // dispatch message to recipient // by assembly calling "handle" function // we call via assembly to avoid memcopying a very large returndata // returned by a malicious contract assembly { _success := staticcall( _gas, // gas _target, // recipient add(_calldata, 0x20), // inloc mload(_calldata), // inlen 0, // outloc 0 // outlen ) // limit our copy to 256 bytes _toCopy := returndatasize() if gt(_toCopy, _maxCopy) { _toCopy := _maxCopy } // Store the length of the copied bytes mstore(_returnData, _toCopy) // copy the bytes from returndata[0:_toCopy] returndatacopy(add(_returnData, 0x20), 0, _toCopy) } return (_success, _returnData); } /** * @notice Swaps function selectors in encoded contract calls * @dev Allows reuse of encoded calldata for functions with identical * argument types but different names. It simply swaps out the first 4 bytes * for the new selector. This function modifies memory in place, and should * only be used with caution. * @param _newSelector The new 4-byte selector * @param _buf The encoded contract args */ function swapSelector(bytes4 _newSelector, bytes memory _buf) internal pure { require(_buf.length >= 4); uint _mask = LOW_28_MASK; assembly { // load the first word of let _word := mload(add(_buf, 0x20)) // mask out the top 4 bytes // /x _word := and(_word, _mask) _word := or(_newSelector, _word) mstore(add(_buf, 0x20), _word) } } } // File: https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/libraries/BytesLib.sol /* * @title Solidity Bytes Arrays Utils * @author Gonçalo Sá <[email protected]> * * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity. * The library lets you concatenate, slice and type cast bytes arrays both in memory and storage. */ pragma solidity >=0.8.0 <0.9.0; library BytesLib { function concat(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bytes memory) { bytes memory tempBytes; assembly { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // Store the length of the first bytes array at the beginning of // the memory for tempBytes. let length := mload(_preBytes) mstore(tempBytes, length) // Maintain a memory counter for the current write location in the // temp bytes array by adding the 32 bytes for the array length to // the starting location. let mc := add(tempBytes, 0x20) // Stop copying when the memory counter reaches the length of the // first bytes array. let end := add(mc, length) for { // Initialize a copy counter to the start of the _preBytes data, // 32 bytes into its memory. let cc := add(_preBytes, 0x20) } lt(mc, end) { // Increase both counters by 32 bytes each iteration. mc := add(mc, 0x20) cc := add(cc, 0x20) } { // Write the _preBytes data into the tempBytes memory 32 bytes // at a time. mstore(mc, mload(cc)) } // Add the length of _postBytes to the current length of tempBytes // and store it as the new length in the first 32 bytes of the // tempBytes memory. length := mload(_postBytes) mstore(tempBytes, add(length, mload(tempBytes))) // Move the memory counter back from a multiple of 0x20 to the // actual end of the _preBytes data. mc := end // Stop copying when the memory counter reaches the new combined // length of the arrays. end := add(mc, length) for { let cc := add(_postBytes, 0x20) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } // Update the free-memory pointer by padding our last write location // to 32 bytes: add 31 bytes to the end of tempBytes to move to the // next 32 byte block, then round down to the nearest multiple of // 32. If the sum of the length of the two arrays is zero then add // one before rounding down to leave a blank 32 bytes (the length block with 0). mstore( 0x40, and( add(add(end, iszero(add(length, mload(_preBytes)))), 31), not(31) // Round down to the nearest 32 bytes. ) ) } return tempBytes; } function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal { assembly { // Read the first 32 bytes of _preBytes storage, which is the length // of the array. (We don't need to use the offset into the slot // because arrays use the entire slot.) let fslot := sload(_preBytes.slot) // Arrays of 31 bytes or less have an even value in their slot, // while longer arrays have an odd value. The actual length is // the slot divided by two for odd values, and the lowest order // byte divided by two for even values. // If the slot is even, bitwise and the slot with 255 and divide by // two to get the length. If the slot is odd, bitwise and the slot // with -1 and divide by two. let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2) let mlength := mload(_postBytes) let newlength := add(slength, mlength) // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage switch add(lt(slength, 32), lt(newlength, 32)) case 2 { // Since the new array still fits in the slot, we just need to // update the contents of the slot. // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length sstore( _preBytes.slot, // all the modifications to the slot are inside this // next block add( // we can just add to the slot contents because the // bytes we want to change are the LSBs fslot, add( mul( div( // load the bytes from memory mload(add(_postBytes, 0x20)), // zero all bytes to the right exp(0x100, sub(32, mlength)) ), // and now shift left the number of bytes to // leave space for the length in the slot exp(0x100, sub(32, newlength)) ), // increase length by the double of the memory // bytes length mul(mlength, 2) ) ) ) } case 1 { // The stored value fits in the slot, but the combined value // will exceed it. // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes.slot, add(mul(newlength, 2), 1)) // The contents of the _postBytes array start 32 bytes into // the structure. Our first read should obtain the `submod` // bytes that can fit into the unused space in the last word // of the stored array. To get this, we read 32 bytes starting // from `submod`, so the data we read overlaps with the array // contents by `submod` bytes. Masking the lowest-order // `submod` bytes allows us to add that value directly to the // stored value. let submod := sub(32, slength) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore( sc, add( and(fslot, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00), and(mload(mc), mask) ) ) for { mc := add(mc, 0x20) sc := add(sc, 1) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } default { // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) // Start copying to the last used word of the stored array. let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes.slot, add(mul(newlength, 2), 1)) // Copy over the first `submod` bytes of the new data as in // case 1 above. let slengthmod := mod(slength, 32) let mlengthmod := mod(mlength, 32) let submod := sub(32, slengthmod) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore(sc, add(sload(sc), and(mload(mc), mask))) for { sc := add(sc, 1) mc := add(mc, 0x20) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } } } function slice(bytes memory _bytes, uint _start, uint _length) internal pure returns (bytes memory) { require(_length + 31 >= _length, "slice_overflow"); require(_bytes.length >= _start + _length, "slice_outOfBounds"); bytes memory tempBytes; assembly { switch iszero(_length) case 0 { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // The first word of the slice result is potentially a partial // word read from the original array. To read it, we calculate // the length of that partial word and start copying that many // bytes into the array. The first word we copy will start with // data we don't care about, but the last `lengthmod` bytes will // land at the beginning of the contents of the new array. When // we're done copying, we overwrite the full first word with // the actual length of the slice. let lengthmod := and(_length, 31) // The multiplication in the next line is necessary // because when slicing multiples of 32 bytes (lengthmod == 0) // the following copy loop was copying the origin's length // and then ending prematurely not copying everything it should. let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod))) let end := add(mc, _length) for { // The multiplication in the next line has the same exact purpose // as the one above. let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } mstore(tempBytes, _length) //update free-memory pointer //allocating the array padded to 32 bytes like the compiler does now mstore(0x40, and(add(mc, 31), not(31))) } //if we want a zero-length slice let's just return a zero-length array default { tempBytes := mload(0x40) //zero out the 32 bytes slice we are about to return //we need to do it because Solidity does not garbage collect mstore(tempBytes, 0) mstore(0x40, add(tempBytes, 0x20)) } } return tempBytes; } function toAddress(bytes memory _bytes, uint _start) internal pure returns (address) { require(_bytes.length >= _start + 20, "toAddress_outOfBounds"); address tempAddress; assembly { tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000) } return tempAddress; } function toUint8(bytes memory _bytes, uint _start) internal pure returns (uint8) { require(_bytes.length >= _start + 1, "toUint8_outOfBounds"); uint8 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x1), _start)) } return tempUint; } function toUint16(bytes memory _bytes, uint _start) internal pure returns (uint16) { require(_bytes.length >= _start + 2, "toUint16_outOfBounds"); uint16 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x2), _start)) } return tempUint; } function toUint32(bytes memory _bytes, uint _start) internal pure returns (uint32) { require(_bytes.length >= _start + 4, "toUint32_outOfBounds"); uint32 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x4), _start)) } return tempUint; } function toUint64(bytes memory _bytes, uint _start) internal pure returns (uint64) { require(_bytes.length >= _start + 8, "toUint64_outOfBounds"); uint64 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x8), _start)) } return tempUint; } function toUint96(bytes memory _bytes, uint _start) internal pure returns (uint96) { require(_bytes.length >= _start + 12, "toUint96_outOfBounds"); uint96 tempUint; assembly { tempUint := mload(add(add(_bytes, 0xc), _start)) } return tempUint; } function toUint128(bytes memory _bytes, uint _start) internal pure returns (uint128) { require(_bytes.length >= _start + 16, "toUint128_outOfBounds"); uint128 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x10), _start)) } return tempUint; } function toUint256(bytes memory _bytes, uint _start) internal pure returns (uint) { require(_bytes.length >= _start + 32, "toUint256_outOfBounds"); uint tempUint; assembly { tempUint := mload(add(add(_bytes, 0x20), _start)) } return tempUint; } function toBytes32(bytes memory _bytes, uint _start) internal pure returns (bytes32) { require(_bytes.length >= _start + 32, "toBytes32_outOfBounds"); bytes32 tempBytes32; assembly { tempBytes32 := mload(add(add(_bytes, 0x20), _start)) } return tempBytes32; } function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) { bool success = true; assembly { let length := mload(_preBytes) // if lengths don't match the arrays are not equal switch eq(length, mload(_postBytes)) case 1 { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 let mc := add(_preBytes, 0x20) let end := add(mc, length) for { let cc := add(_postBytes, 0x20) // the next line is the loop condition: // while(uint256(mc < end) + cb == 2) } eq(add(lt(mc, end), cb), 2) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { // if any of these checks fails then arrays are not equal if iszero(eq(mload(mc), mload(cc))) { // unsuccess: success := 0 cb := 0 } } } default { // unsuccess: success := 0 } } return success; } function equalStorage(bytes storage _preBytes, bytes memory _postBytes) internal view returns (bool) { bool success = true; assembly { // we know _preBytes_offset is 0 let fslot := sload(_preBytes.slot) // Decode the length of the stored array like in concatStorage(). let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2) let mlength := mload(_postBytes) // if lengths don't match the arrays are not equal switch eq(slength, mlength) case 1 { // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage if iszero(iszero(slength)) { switch lt(slength, 32) case 1 { // blank the last byte which is the length fslot := mul(div(fslot, 0x100), 0x100) if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) { // unsuccess: success := 0 } } default { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) let sc := keccak256(0x0, 0x20) let mc := add(_postBytes, 0x20) let end := add(mc, mlength) // the next line is the loop condition: // while(uint256(mc < end) + cb == 2) for { } eq(add(lt(mc, end), cb), 2) { sc := add(sc, 1) mc := add(mc, 0x20) } { if iszero(eq(sload(sc), mload(mc))) { // unsuccess: success := 0 cb := 0 } } } } } default { // unsuccess: success := 0 } } return success; } } // File: https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/lzApp/interfaces/ILayerZeroUserApplicationConfig.sol pragma solidity >=0.5.0; interface ILayerZeroUserApplicationConfig { // @notice set the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _configType - type of configuration. every messaging library has its own convention. // @param _config - configuration in the bytes. can encode arbitrary content. function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external; // @notice set the send() LayerZero messaging library version to _version // @param _version - new messaging library version function setSendVersion(uint16 _version) external; // @notice set the lzReceive() LayerZero messaging library version to _version // @param _version - new messaging library version function setReceiveVersion(uint16 _version) external; // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload // @param _srcChainId - the chainId of the source chain // @param _srcAddress - the contract address of the source contract at the source chain function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external; } // File: https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/lzApp/interfaces/ILayerZeroEndpoint.sol pragma solidity >=0.5.0; interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig { // @notice send a LayerZero message to the specified address at a LayerZero endpoint. // @param _dstChainId - the destination chain identifier // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains // @param _payload - a custom bytes payload to send to the destination contract // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination function send( uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams ) external payable; // @notice used by the messaging library to publish verified payload // @param _srcChainId - the source chain identifier // @param _srcAddress - the source contract (as bytes) at the source chain // @param _dstAddress - the address on destination chain // @param _nonce - the unbound message ordering nonce // @param _gasLimit - the gas limit for external contract execution // @param _payload - verified payload to send to the destination contract function receivePayload( uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload ) external; // @notice get the inboundNonce of a lzApp from a source chain which could be EVM or non-EVM chain // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64); // @notice get the outboundNonce from this source chain which, consequently, is always an EVM // @param _srcAddress - the source chain contract address function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64); // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery // @param _dstChainId - the destination chain identifier // @param _userApplication - the user app address on this EVM chain // @param _payload - the custom message to send over LayerZero // @param _payInZRO - if false, user app pays the protocol fee in native token // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain function estimateFees( uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam ) external view returns (uint nativeFee, uint zroFee); // @notice get this Endpoint's immutable source identifier function getChainId() external view returns (uint16); // @notice the interface to retry failed message on this Endpoint destination // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address // @param _payload - the payload to be retried function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external; // @notice query if any STORED payload (message blocking) at the endpoint. // @param _srcChainId - the source chain identifier // @param _srcAddress - the source chain contract address function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool); // @notice query if the _libraryAddress is valid for sending msgs. // @param _userApplication - the user app address on this EVM chain function getSendLibraryAddress(address _userApplication) external view returns (address); // @notice query if the _libraryAddress is valid for receiving msgs. // @param _userApplication - the user app address on this EVM chain function getReceiveLibraryAddress(address _userApplication) external view returns (address); // @notice query if the non-reentrancy guard for send() is on // @return true if the guard is on. false otherwise function isSendingPayload() external view returns (bool); // @notice query if the non-reentrancy guard for receive() is on // @return true if the guard is on. false otherwise function isReceivingPayload() external view returns (bool); // @notice get the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library version // @param _chainId - the chainId for the pending config change // @param _userApplication - the contract address of the user application // @param _configType - type of configuration. every messaging library has its own convention. function getConfig( uint16 _version, uint16 _chainId, address _userApplication, uint _configType ) external view returns (bytes memory); // @notice get the send() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getSendVersion(address _userApplication) external view returns (uint16); // @notice get the lzReceive() LayerZero messaging library version // @param _userApplication - the contract address of the user application function getReceiveVersion(address _userApplication) external view returns (uint16); } // File: https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/lzApp/interfaces/ILayerZeroReceiver.sol pragma solidity >=0.5.0; interface ILayerZeroReceiver { // @notice LayerZero endpoint will invoke this function to deliver the message on the destination // @param _srcChainId - the source endpoint identifier // @param _srcAddress - the source sending contract address from the source chain // @param _nonce - the ordered message nonce // @param _payload - the signed payload is the UA bytes has encoded to be sent function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external; } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) // 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. */ // File: https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/lzApp/LzApp.sol pragma solidity ^0.8.0; /* * a generic LzReceiver implementation */ abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig { using BytesLib for bytes; // ua can not send payload larger than this by default, but it can be changed by the ua owner uint public constant DEFAULT_PAYLOAD_SIZE_LIMIT = 10000; ILayerZeroEndpoint public immutable lzEndpoint; mapping(uint16 => bytes) public trustedRemoteLookup; mapping(uint16 => mapping(uint16 => uint)) public minDstGasLookup; mapping(uint16 => uint) public payloadSizeLimitLookup; address public precrime; event SetPrecrime(address precrime); event SetTrustedRemote(uint16 _remoteChainId, bytes _path); event SetTrustedRemoteAddress(uint16 _remoteChainId, bytes _remoteAddress); event SetMinDstGas(uint16 _dstChainId, uint16 _type, uint _minDstGas); constructor(address _endpoint) { lzEndpoint = ILayerZeroEndpoint(_endpoint); } function lzReceive( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) public virtual override { // lzReceive must be called by the endpoint for security require(_msgSender() == address(lzEndpoint), "LzApp: invalid endpoint caller"); bytes memory trustedRemote = trustedRemoteLookup[_srcChainId]; // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote. require( _srcAddress.length == trustedRemote.length && trustedRemote.length > 0 && keccak256(_srcAddress) == keccak256(trustedRemote), "LzApp: invalid source sending contract" ); _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging function _blockingLzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual; function _lzSend( uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams, uint _nativeFee ) internal virtual { bytes memory trustedRemote = trustedRemoteLookup[_dstChainId]; require(trustedRemote.length != 0, "LzApp: destination chain is not a trusted source"); _checkPayloadSize(_dstChainId, _payload.length); lzEndpoint.send{value: _nativeFee}( _dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams ); } function _checkGasLimit( uint16 _dstChainId, uint16 _type, bytes memory _adapterParams, uint _extraGas ) internal view virtual { uint providedGasLimit = _getGasLimit(_adapterParams); uint minGasLimit = minDstGasLookup[_dstChainId][_type]; require(minGasLimit > 0, "LzApp: minGasLimit not set"); require(providedGasLimit >= minGasLimit + _extraGas, "LzApp: gas limit is too low"); } function _getGasLimit(bytes memory _adapterParams) internal pure virtual returns (uint gasLimit) { require(_adapterParams.length >= 34, "LzApp: invalid adapterParams"); assembly { gasLimit := mload(add(_adapterParams, 34)) } } function _checkPayloadSize(uint16 _dstChainId, uint _payloadSize) internal view virtual { uint payloadSizeLimit = payloadSizeLimitLookup[_dstChainId]; if (payloadSizeLimit == 0) { // use default if not set payloadSizeLimit = DEFAULT_PAYLOAD_SIZE_LIMIT; } require(_payloadSize <= payloadSizeLimit, "LzApp: payload size is too large"); } //---------------------------UserApplication config---------------------------------------- function getConfig( uint16 _version, uint16 _chainId, address, uint _configType ) external view returns (bytes memory) { return lzEndpoint.getConfig(_version, _chainId, address(this), _configType); } // generic config for LayerZero user Application function setConfig( uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config ) external override onlyOwner { lzEndpoint.setConfig(_version, _chainId, _configType, _config); } function setSendVersion(uint16 _version) external override onlyOwner { lzEndpoint.setSendVersion(_version); } function setReceiveVersion(uint16 _version) external override onlyOwner { lzEndpoint.setReceiveVersion(_version); } function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner { lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress); } // _path = abi.encodePacked(remoteAddress, localAddress) // this function set the trusted path for the cross-chain communication function setTrustedRemote(uint16 _remoteChainId, bytes calldata _path) external onlyOwner { trustedRemoteLookup[_remoteChainId] = _path; emit SetTrustedRemote(_remoteChainId, _path); } function setTrustedRemoteAddress(uint16 _remoteChainId, bytes calldata _remoteAddress) external onlyOwner { trustedRemoteLookup[_remoteChainId] = abi.encodePacked(_remoteAddress, address(this)); emit SetTrustedRemoteAddress(_remoteChainId, _remoteAddress); } function getTrustedRemoteAddress(uint16 _remoteChainId) external view returns (bytes memory) { bytes memory path = trustedRemoteLookup[_remoteChainId]; require(path.length != 0, "LzApp: no trusted path record"); return path.slice(0, path.length - 20); // the last 20 bytes should be address(this) } function setPrecrime(address _precrime) external onlyOwner { precrime = _precrime; emit SetPrecrime(_precrime); } function setMinDstGas(uint16 _dstChainId, uint16 _packetType, uint _minGas) external onlyOwner { minDstGasLookup[_dstChainId][_packetType] = _minGas; emit SetMinDstGas(_dstChainId, _packetType, _minGas); } // if the size is 0, it means default size limit function setPayloadSizeLimit(uint16 _dstChainId, uint _size) external onlyOwner { payloadSizeLimitLookup[_dstChainId] = _size; } //--------------------------- VIEW FUNCTION ---------------------------------------- function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) { bytes memory trustedSource = trustedRemoteLookup[_srcChainId]; return keccak256(trustedSource) == keccak256(_srcAddress); } } // File: https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/lzApp/NonblockingLzApp.sol pragma solidity ^0.8.0; /* * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress) */ abstract contract NonblockingLzApp is LzApp { using ExcessivelySafeCall for address; constructor(address _endpoint) LzApp(_endpoint) {} mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) public failedMessages; event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload, bytes _reason); event RetryMessageSuccess(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes32 _payloadHash); // overriding the virtual function in LzReceiver function _blockingLzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual override { (bool success, bytes memory reason) = address(this).excessivelySafeCall( gasleft(), 150, abi.encodeWithSelector(this.nonblockingLzReceive.selector, _srcChainId, _srcAddress, _nonce, _payload) ); if (!success) { _storeFailedMessage(_srcChainId, _srcAddress, _nonce, _payload, reason); } } function _storeFailedMessage( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload, bytes memory _reason ) internal virtual { failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload); emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload, _reason); } function nonblockingLzReceive( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) public virtual { // only internal transaction require(_msgSender() == address(this), "NonblockingLzApp: caller must be LzApp"); _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); } //@notice override this function function _nonblockingLzReceive( uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload ) internal virtual; function retryMessage( uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload ) public payable virtual { // assert there is message to retry bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce]; require(payloadHash != bytes32(0), "NonblockingLzApp: no stored message"); require(keccak256(_payload) == payloadHash, "NonblockingLzApp: invalid payload"); // clear the stored message failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0); // execute the message. revert if it fails again _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload); emit RetryMessageSuccess(_srcChainId, _srcAddress, _nonce, payloadHash); } } pragma solidity 0.8.20; contract GnomeLand is NonblockingLzApp, ERC20 { address public admin; uint256 public constant maxSupply = 72_000_000e18; uint256 public maxTradeAmount = 69000e18; //0.1% uint256 public maxSellAmount = 72000e18; //0.1% uint256 public maxBridge = 720000e18; //1% uint256 public maxWalletSize = 233000e18; //φ*0.2% mapping(address => bool) public isAuth; mapping(address => bool) public isGnome; address public frenRewarder; address public uniswapV3pool; uint256 public startTimestamp; uint256 public bridgeFee = 1; bool public isLimit = true; bool public isLimitSell = true; bool public onlyWL = true; bool public isLive = false; bool public bridgeHasFee = true; mapping(string => uint16) public destChainId; mapping(uint256 => bool) public isRewardMinted; constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) ERC20("GnomeLand", "GNOME") Ownable(msg.sender) { admin = msg.sender; destChainId["eth"] = 101; //lzendpoint: 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675 destChainId["base"] = 184; //lzendpoint: 0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7 destChainId["arb"] = 110; //lzendpoint: 0x3c2269811836af69497E5F486A85D7316753cf62 destChainId["avax"] = 106; //lzendpoint: 0x3c2269811836af69497E5F486A85D7316753cf62 destChainId["op"] = 111; //lzendpoint: 0x3c2269811836af69497E5F486A85D7316753cf62 isGnome[msg.sender] = true; isAuth[msg.sender] = true; _mint(admin, maxSupply); } function _nonblockingLzReceive(uint16, bytes memory, uint64, bytes memory _payload) internal override { (address toAddress, uint amount) = abi.decode(_payload, (address, uint)); _mint(toAddress, amount); } function bridge(string memory _chainTo, uint _amount) public payable { require(_amount <= maxBridge, "Maximum allowed bridge exceeded"); uint amount; if (onlyWL) { require(isGnome[msg.sender], "Caller is not the authorized to bridge"); } _burn(msg.sender, _amount); if (bridgeHasFee && !isGnome[msg.sender]) { amount = (_amount * (100 - bridgeFee)) / 100; } else { amount = _amount; } bytes memory payload = abi.encode(msg.sender, amount); _lzSend(destChainId[_chainTo], payload, payable(msg.sender), address(0x0), bytes(""), msg.value); } function trustAddress(string memory _chainTo, address _otherContract) public onlyOwner { trustedRemoteLookup[destChainId[_chainTo]] = abi.encodePacked(_otherContract, address(this)); } modifier onlyAuth() { require(msg.sender == admin || isAuth[msg.sender], "Caller is not the authorized"); _; } function setIsAuth(address fren, bool isAuthorized) external onlyAuth { isAuth[fren] = isAuthorized; } function setChainId(string memory _chain, uint16 _ID) external onlyAuth { destChainId[_chain] = _ID; } function removeLimits() external onlyAuth { isLimit = false; } function openTrade() external onlyAuth { isLive = true; } function removeSellLimit() external onlyAuth { isLimitSell = false; } function setBridgeWL(bool _bool) external onlyAuth { onlyWL = _bool; } function setBridgeHasFee(bool _bool) external onlyAuth { bridgeHasFee = _bool; } function setMaxWallet(uint256 newMaxWalletSize) external onlyAuth { require(newMaxWalletSize > maxWalletSize, "New max wallet size must be greater than current size"); maxWalletSize = newMaxWalletSize; } function increaseMaxTradeAmount(uint256 newMaxTradeAmount) external onlyAuth { require(newMaxTradeAmount >= maxTradeAmount, "Cannot decrease max trade amount"); maxTradeAmount = newMaxTradeAmount; } function increaseMaxSellAmount(uint256 newMaxSellAmount) external onlyAuth { require(newMaxSellAmount >= maxSellAmount, "Cannot decrease max trade amount"); maxSellAmount = newMaxSellAmount; } function setBridgeFee(uint256 _fee) external onlyAuth { require(_fee <= 10, "Bridge Fee can't be bigger than 10%"); bridgeFee = _fee; } function whitelistAddress(address wallet, bool isGnome_) external onlyAuth { isGnome[wallet] = isGnome_; } function transfer(address to, uint256 amount) public override returns (bool) { if (isGnome[to] || isGnome[msg.sender]) { return super.transfer(to, amount); } else if (isLimit) { require(isLive, "Trade Not Opened"); require(amount <= maxTradeAmount, "Exceeds max trade amount"); if (to != uniswapV3pool) { require(balanceOf(to) + amount <= maxWalletSize, "Exceeds max wallet size"); } super.transfer(to, amount); return true; } return super.transfer(to, amount); } function setPool(address _pool) external onlyAuth { uniswapV3pool = _pool; } function transferFrom(address from, address to, uint256 amount) public override returns (bool) { if (isGnome[to] || isGnome[from]) { return super.transferFrom(from, to, amount); } else if (isLimitSell) { require(amount <= maxSellAmount, "Exceeds max sell amount"); super.transferFrom(from, to, amount); return true; } return super.transferFrom(from, to, amount); } }
{ "optimizer": { "enabled": true, "runs": 500, "details": { "yul": true } }, "viaIR": true, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_lzEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","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":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"_reason","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes32","name":"_payloadHash","type":"bytes32"}],"name":"RetryMessageSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"_type","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"_minDstGas","type":"uint256"}],"name":"SetMinDstGas","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"precrime","type":"address"}],"name":"SetPrecrime","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_path","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"SetTrustedRemoteAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_PAYLOAD_SIZE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"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":"string","name":"_chainTo","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"bridge","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"bridgeFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridgeHasFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"destChainId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"frenRewarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"}],"name":"getTrustedRemoteAddress","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSellAmount","type":"uint256"}],"name":"increaseMaxSellAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxTradeAmount","type":"uint256"}],"name":"increaseMaxTradeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAuth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isGnome","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLimitSell","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isRewardMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lzEndpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxBridge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTradeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint16","name":"","type":"uint16"}],"name":"minDstGasLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"nonblockingLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"onlyWL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"payloadSizeLimitLookup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"precrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeSellLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setBridgeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setBridgeHasFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setBridgeWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_chain","type":"string"},{"internalType":"uint16","name":"_ID","type":"uint16"}],"name":"setChainId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fren","type":"address"},{"internalType":"bool","name":"isAuthorized","type":"bool"}],"name":"setIsAuth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxWalletSize","type":"uint256"}],"name":"setMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint16","name":"_packetType","type":"uint16"},{"internalType":"uint256","name":"_minGas","type":"uint256"}],"name":"setMinDstGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"uint256","name":"_size","type":"uint256"}],"name":"setPayloadSizeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_precrime","type":"address"}],"name":"setPrecrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"internalType":"bytes","name":"_path","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_remoteChainId","type":"uint16"},{"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"setTrustedRemoteAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_chainTo","type":"string"},{"internalType":"address","name":"_otherContract","type":"address"}],"name":"trustAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV3pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"bool","name":"isGnome_","type":"bool"}],"name":"whitelistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a034620005b357601f1962003a8c38819003601f818101841685019493926001600160401b039285871084881117620005b85780869260409889528339602095869181010312620005b357516001600160a01b039283821691829003620005b3576200006b620005ce565b926009958685526811db9bdb5953185b9960ba1b888601526200008d620005ce565b906005825264474e4f4d4560d81b8983015233156200059b5760009788549560018060a01b03199633888216178b55893391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08c80a3608052865185811162000587578154976001988981811c911680156200057c575b8d8210146200056857908c82888e818796116200050f575b92505050508c90878311600114620004a1578c9262000495575b5050600019600383901b1c191690881b1790555b81519384116200048157600a548681811c9116801562000476575b8a821014620004625790818486959493116200040a575b5089928411600114620003a7575087926200039b575b5050600019600383901b1c191690831b17600a555b690e9c7f5bd65501200000600c55690f3f20b8dfa69d000000600d556998774738bc8222000000600e55693156f48f29179fa00000600f558160155564010001010164ffffffffff1960165416176016553390600b541617600b5560238551620cae8d60eb1b8152601760038201522061ffff199060658282541617905560248651636261736560e01b8152601760048201522060b882825416179055602386516230b93160e91b81526017600382015220606e8282541617905560248651630c2ecc2f60e31b81526017600482015220606a82825416179055606f602287516106f760f41b8152601760028201522091825416179055338352601184528483209060ff199181838254161790556010855285842091825416179055600b541691821562000383576008546a3b8e97d229a2d548000000908181018091116200036f576008558383526006825284832080548201905584519081527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a35161349d9081620005ef8239608051818181610535015281816107c4015281816109ac0152818161100601528181611c7201528181611f03015281816125040152612e390152f35b634e487b7160e01b84526011600452602484fd5b835163ec442f0560e01b815260048101839052602490fd5b01519050388062000193565b600a895289892087959093929116895b8b828210620003f35750508411620003d9575b505050811b01600a55620001a8565b015160001960f88460031b161c19169055388080620003ca565b8385015186558997909501949384019301620003b7565b9091929350600a89528989208480870160051c8201928c881062000458575b9187968a92969594930160051c01915b828110620004495750506200017d565b8b815587965089910162000439565b9250819262000429565b634e487b7160e01b89526022600452602489fd5b90607f169062000166565b634e487b7160e01b88526041600452602488fd5b01519050388062000137565b908c918e878d96169087855280852094905b828210620004ed5750508411620004d3575b505050811b0190556200014b565b015160001960f88460031b161c19169055388080620004c5565b91929395968291958786015181550195019301908f918d9695949392620004b3565b8394955087819492939452209181860160051c83019386106200055e575b918c91869594930160051c01915b8281106200054f57508e9150888e6200011d565b8e81558594508c91016200053b565b925081926200052d565b634e487b7160e01b8c52602260045260248cfd5b90607f169062000105565b634e487b7160e01b8a52604160045260248afd5b8951631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b60408051919082016001600160401b03811183821017620005b85760405256fe6080604052600436101561001257600080fd5b60003560e01c80621d3567146104565780630537eae01461045157806306fdde031461044c57806307e0db1714610447578063095ea7b3146104425780630a6986931461043d5780630df374831461043857806310ddb13714610433578063153ff6721461042e57806318160ddd14610429578063184c5a801461042457806318c963781461041f57806323b872dd1461041a5780632520e7ff1461041557806327578055146104105780632ade24601461040b578063313ce567146104065780633b20c22d146104015780633c19eed8146103fc5780633d8b38f6146103f75780633f1f4fa4146103f257806342d65a8d146103ed578063432fb2f7146103e85780634437152a146103e3578063456560f4146103de5780635332587e146103d95780635b8c41e6146103d45780635d0044ca146103cf57806366ad5c8a146103ca57806366d602ae146103c557806370a08231146103c0578063715018a6146103bb578063751039fc146103b65780637533d788146103b157806382b12dd7146103ac5780638cfd8f5c146103a75780638da5cb5b146103a25780638f3fa8601461039d578063950c8a741461039857806395d89b4114610393578063998cdf831461038e5780639acbea51146103895780639f38369a14610384578063a4a2ce9a1461037f578063a6c3d1651461037a578063a839ae9714610375578063a9059cbb14610370578063b353aaa71461036b578063b8f7a66514610366578063b9a45aac14610361578063baf3292d1461035c578063bc90cf2014610357578063bd93e64414610352578063c44618341461034d578063c79514e614610348578063cbed8b9c14610343578063d1deba1f1461033e578063d5abeb0114610339578063dd62ed3e14610334578063df2a5b3b1461032f578063e0df3f8c1461032a578063e6fd48bc14610325578063eb8d72b714610320578063f21b72321461031b578063f2fde38b14610316578063f5ecbdbc14610311578063f851a4401461030c5763fb201b1d1461030757600080fd5b612595565b61256e565b6124a2565b612417565b6123b9565b61226e565b612250565b61220d565b612154565b6120f8565b6120d2565b611f93565b611eae565b611e40565b611e23565b611dcf565b611da9565b611d3d565b611cbc565b611c96565b611c52565b611c27565b611ae7565b611963565b611932565b611893565b611850565b6117a7565b611700565b6116d9565b6116bb565b611694565b611641565b611623565b6115d0565b611490565b61143d565b6113ff565b6113e1565b611308565b611243565b611199565b611115565b6110f7565b61108a565b611065565b610fe4565b610faf565b610f53565b610e91565b610e10565b610df4565b610d82565b610d41565b610cfe565b610cbd565b610b65565b610a47565b610a29565b610a03565b61097e565b610943565b61091c565b610841565b610796565b6106b1565b610637565b610518565b6004359061ffff8216820361046c57565b600080fd5b6024359061ffff8216820361046c57565b9181601f8401121561046c5782359167ffffffffffffffff831161046c576020838186019501011161046c57565b90608060031983011261046c5760043561ffff8116810361046c579167ffffffffffffffff9060243582811161046c57816104ed91600401610482565b93909392604435818116810361046c579260643591821161046c5761051491600401610482565b9091565b3461046c57610526366104b0565b91929493906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633036105e7576105aa6105b2926105b8976105a36105896105848a61ffff166000526001602052604060002090565b6115b3565b80519081841491826105dd575b50816105ba575b5061261d565b3691610b13565b923691610b13565b926128de565b005b90506105c7368486610b13565b602081519101209060208151910120143861059d565b1515915038610596565b60405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c657200006044820152606490fd5b600091031261046c57565b3461046c57600036600319011261046c576020600c54604051908152f35b60005b8381106106685750506000910152565b8181015183820152602001610658565b9060209161069181518092818552858086019101610655565b601f01601f1916010190565b9060206106ae928181520190610678565b90565b3461046c576000806003193601126107935760405190806009546106d4816114e3565b80855291600191808316908115610769575060011461070e575b61070a856106fe81870382610ad5565b6040519182918261069d565b0390f35b9250600983527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b8284106107515750505081016020016106fe8261070a6106ee565b80546020858701810191909152909301928101610736565b86955061070a969350602092506106fe94915060ff191682840152151560051b82010192936106ee565b80fd5b3461046c5760006020366003190112610793576107b161045b565b6107b96125f1565b816001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691823b1561082c57602461ffff918360405195869485936307e0db1760e01b85521660048401525af180156108275761081b575080f35b61082490610a84565b80f35b6126d7565b5080fd5b6001600160a01b0381160361046c57565b3461046c57604036600319011261046c5760043561085e81610830565b6024353315610903576001600160a01b0382169182156108ea576108b2829161089a336001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b604051634a1406b160e11b815260006004820152602490fd5b60405163e602df0560e01b815260006004820152602490fd5b3461046c57600036600319011261046c5760206001600160a01b0360135416604051908152f35b3461046c57604036600319011261046c5761ffff61095f61045b565b6109676125f1565b166000526003602052602435604060002055600080f35b3461046c57600060203660031901126107935761099961045b565b6109a16125f1565b816001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691823b1561082c57602461ffff918360405195869485936310ddb13760e01b85521660048401525af180156108275761081b575080f35b3461046c57600036600319011261046c57602060ff60165460081c166040519015158152f35b3461046c57600036600319011261046c576020600854604051908152f35b3461046c57600036600319011261046c5760206001600160a01b0360125416604051908152f35b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff8111610a9857604052565b610a6e565b6060810190811067ffffffffffffffff821117610a9857604052565b60c0810190811067ffffffffffffffff821117610a9857604052565b90601f8019910116810190811067ffffffffffffffff821117610a9857604052565b67ffffffffffffffff8111610a9857601f01601f191660200190565b929192610b1f82610af7565b91610b2d6040519384610ad5565b82948184528183011161046c578281602093846000960137010152565b9080601f8301121561046c578160206106ae93359101610b13565b3461046c57604036600319011261046c5767ffffffffffffffff60043581811161046c57610b97903690600401610b4a565b602435610ba381610830565b610bab6125f1565b61ffff610bea604051936020936bffffffffffffffffffffffff199060601b16848601523060601b603486015260288552610be585610a9d565b6121e7565b541692600093845260019182815260408520938051928311610a9857610c1a83610c1487546114e3565b8761271f565b81601f8411600114610c5357509282939183928794610c48575b50501b916000199060031b1c191617905580f35b015192503880610c34565b919083601f198116610c6a88600052602060002090565b9489905b88838310610ca35750505010610c8a575b505050811b01905580f35b015160001960f88460031b161c19169055388080610c7f565b858701518855909601959485019487935090810190610c6e565b3461046c57606036600319011261046c576020610cf4600435610cdf81610830565b602435610ceb81610830565b604435916132fc565b6040519015158152f35b3461046c57602036600319011261046c576001600160a01b03600435610d2381610830565b166000526010602052602060ff604060002054166040519015158152f35b3461046c57600036600319011261046c57602060ff601654166040519015158152f35b60043590811515820361046c57565b60243590811515820361046c57565b3461046c57602036600319011261046c57610d9b610d64565b6001600160a01b03600b541633148015610ddb575b610db990612f7b565b64ff0000000060165491151560201b169064ff00000000191617601655600080f35b503360009081526010602052604090205460ff16610db0565b3461046c57600036600319011261046c57602060405160128152f35b3461046c57604036600319011261046c576105b8600435610e3081610830565b610e38610d73565b906001600160a01b039081600b541633148015610e78575b610e5990612f7b565b16600052601060205260406000209060ff801983541691151516179055565b503360009081526010602052604090205460ff16610e50565b3461046c57604036600319011261046c5760043567ffffffffffffffff811161046c57610ec2903690600401610b4a565b61ffff610eef610ed0610471565b926001600160a01b03600b541633148015610eff575b610be590612f7b565b805461ffff191691909216179055005b503360009081526010602052604090205460ff16610ee6565b90604060031983011261046c5760043561ffff8116810361046c57916024359067ffffffffffffffff821161046c5761051491600401610482565b3461046c57602061ffff610fa0610f6936610f18565b9390911660005260018452610f8b610f9260406000206040519283809261151d565b0382610ad5565b848151910120923691610b13565b82815191012014604051908152f35b3461046c57602036600319011261046c5761ffff610fcb61045b565b1660005260036020526020604060002054604051908152f35b3461046c57610ff236610f18565b9190610ffc6125f1565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691823b1561046c57604051928380926342d65a8d60e01b8252816110536000988997889460048501612704565b03925af180156108275761081b575080f35b3461046c57600036600319011261046c57602060165460ff60405191831c1615158152f35b3461046c57602036600319011261046c576004356110a781610830565b6001600160a01b039081600b5416331480156110de575b6110c790612f7b565b166001600160a01b03196013541617601355600080f35b503360009081526010602052604090205460ff166110be565b3461046c57600036600319011261046c576020600e54604051908152f35b3461046c57602036600319011261046c576004356001600160a01b03600b54163314801561115a575b61114790612f7b565b611155600d54821015612fc7565b600d55005b503360009081526010602052604090205460ff1661113e565b60209061118d928260405194838680955193849201610655565b82019081520301902090565b3461046c57606036600319011261046c576111b261045b565b67ffffffffffffffff60243581811161046c573660238201121561046c576111e4903690602481600401359101610b13565b90604435908116810361046c576112196112329261121361070a9561ffff166000526005602052604060002090565b90611173565b9067ffffffffffffffff16600052602052604060002090565b546040519081529081906020820190565b3461046c57602036600319011261046c576004356001600160a01b03600b5416331480156112ef575b61127590612f7b565b600f5481111561128457600f55005b60405162461bcd60e51b815260206004820152603560248201527f4e6577206d61782077616c6c65742073697a65206d757374206265206772656160448201527f746572207468616e2063757272656e742073697a6500000000000000000000006064820152608490fd5b503360009081526010602052604090205460ff1661126c565b3461046c57611316366104b0565b92915092935030330361138d5761133a93611332913691610b13565b503691610b13565b60408180518101031261046c576001600160a01b03604060208301519261136084610830565b01519116908115611374576105b891612b80565b60405163ec442f0560e01b815260006004820152602490fd5b60405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608490fd5b3461046c57600036600319011261046c576020600d54604051908152f35b3461046c57602036600319011261046c576001600160a01b0360043561142481610830565b1660005260066020526020604060002054604051908152f35b3461046c57600080600319360112610793576114576125f1565b806001600160a01b038154811981168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461046c57600080600319360112610793576001600160a01b03600b5416331480156114cd575b6114c090612f7b565b60ff196016541660165580f35b503381526010602052604081205460ff166114b7565b90600182811c92168015611513575b60208310146114fd57565b634e487b7160e01b600052602260045260246000fd5b91607f16916114f2565b906000929180549161152e836114e3565b9182825260019384811690816000146115905750600114611550575b50505050565b90919394506000526020928360002092846000945b83861061157c57505050500101903880808061154a565b805485870183015294019385908201611565565b9294505050602093945060ff191683830152151560051b0101903880808061154a565b906115ce6115c7926040519384809261151d565b0383610ad5565b565b3461046c57602036600319011261046c5761ffff6115ec61045b565b16600052600160205261070a610f8b61160f60406000206040519283809261151d565b604051918291602083526020830190610678565b3461046c57600036600319011261046c576020601554604051908152f35b3461046c57604036600319011261046c57602061168b61165f61045b565b61ffff61166a610471565b91166000526002835260406000209061ffff16600052602052604060002090565b54604051908152f35b3461046c57600036600319011261046c5760206001600160a01b0360005416604051908152f35b3461046c57600036600319011261046c576020600f54604051908152f35b3461046c57600036600319011261046c5760206001600160a01b0360045416604051908152f35b3461046c57600080600319360112610793576040519080600a54611723816114e3565b80855291600191808316908115610769575060011461174c5761070a856106fe81870382610ad5565b9250600a83527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b82841061178f5750505081016020016106fe8261070a6106ee565b80546020858701810191909152909301928101611774565b3461046c57602036600319011261046c576004356001600160a01b03600b541633148015611837575b6117d990612f7b565b600a81116117e657601555005b60405162461bcd60e51b815260206004820152602360248201527f427269646765204665652063616e277420626520626967676572207468616e2060448201526231302560e81b6064820152608490fd5b503360009081526010602052604090205460ff166117d0565b3461046c57602036600319011261046c576001600160a01b0360043561187581610830565b166000526011602052602060ff604060002054166040519015158152f35b3461046c57602036600319011261046c5761ffff6118af61045b565b166000526001602052610f8b6118cf60406000206040519283809261151d565b8051156118ed576106fe816118e761070a9351612789565b9061285e565b60405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f72640000006044820152606490fd5b3461046c57602036600319011261046c576004356000526018602052602060ff604060002054166040519015158152f35b3461046c5761197136610f18565b9061197a6125f1565b604051926020928083858701376119a66034868381013060601b88820152036014810188520186610ad5565b60009361ffff83168552600190818152604086209187519167ffffffffffffffff8311610a98576119e1836119db86546114e3565b8661271f565b80601f8411600114611a51575091808092611a409695948a9b7f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce9b94611a46575b50501b916000199060031b1c19161790555b60405193849384612704565b0390a180f35b015192503880611a22565b91939498601f198416611a6987600052602060002090565b938a905b828210611ad0575050917f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce999a95939185611a4098969410611ab7575b505050811b019055611a34565b015160001960f88460031b161c19169055388080611aaa565b808886978294978701518155019601940190611a6d565b604036600319011261046c5760043567ffffffffffffffff811161046c57611b99611baf611ba7611b1f6105b8943690600401610b4a565b610be5602435611b33600e54821115612c07565b60165460101c60ff16611bfa575b611b4b8133612cc1565b60165460201c60ff1680611bc6575b15611bc157611b77611b7e91611b7160155461279d565b90612cae565b6064900490565b60408051336020820152908101919091529485906060820190565b03601f198101865285610ad5565b5461ffff1690565b611bb76129ac565b9034923391612df5565b611b7e565b50611bf5611bf1611bea336001600160a01b03166000526011602052604060002090565b5460ff1690565b1590565b611b5a565b611c22611c1d611bea336001600160a01b03166000526011602052604060002090565b612c53565b611b41565b3461046c57604036600319011261046c576020610cf4600435611c4981610830565b602435906130f6565b3461046c57600036600319011261046c5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b3461046c57600036600319011261046c57602060ff60165460181c166040519015158152f35b3461046c57604036600319011261046c576105b8600435611cdc81610830565b611ce4610d73565b906001600160a01b039081600b541633148015611d24575b611d0590612f7b565b16600052601160205260406000209060ff801983541691151516179055565b503360009081526010602052604090205460ff16611cfc565b3461046c57602036600319011261046c577f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b60206001600160a01b03600435611d8581610830565b611d8d6125f1565b16806001600160a01b03196004541617600455604051908152a1005b3461046c57600036600319011261046c57602060ff60165460101c166040519015158152f35b3461046c57600080600319360112610793576001600160a01b03600b541633148015611e0d575b611dff90612f7b565b61ff00196016541660165580f35b503381526010602052604081205460ff16611df6565b3461046c57600036600319011261046c5760206040516127108152f35b3461046c57602036600319011261046c57611e59610d64565b6001600160a01b03600b541633148015611e95575b611e7790612f7b565b62ff000060165491151560101b169062ff0000191617601655600080f35b503360009081526010602052604090205460ff16611e6e565b3461046c57608036600319011261046c57611ec761045b565b611ecf610471565b60643567ffffffffffffffff811161046c57611eef903690600401610482565b9092611ef96125f1565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690813b1561046c5760008094611f70604051978896879586946332fb62e760e21b865261ffff809216600487015216602485015260443560448501526080606485015260848401916126e3565b03925af1801561082757611f8057005b80611f8d6105b892610a84565b8061062c565b611f9c366104b0565b9161ffff86949296166000526005602052611fe481604060002060206040518092878b8337878201908152030190209067ffffffffffffffff16600052602052604060002090565b54918215612081577fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e59661207c946120709161206b91600061205f876112198d896120598f6120458f612038368c8e610b13565b6020815191012014612abc565b61ffff166000526005602052604060002090565b91612aa3565b5561133236868c610b13565b612b4a565b60405195869586612b12565b0390a1005b60405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608490fd5b3461046c57600036600319011261046c5760206040516a3b8e97d229a2d5480000008152f35b3461046c57604036600319011261046c57602061168b60043561211a81610830565b6001600160a01b036024359161212f83610830565b16600052600783526040600020906001600160a01b0316600052602052604060002090565b3461046c57606036600319011261046c577f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac0606061219061045b565b612198610471565b90604435906121a56125f1565b61ffff80911692836000526002602052826121d28260406000209061ffff16600052602052604060002090565b556040519384521660208301526040820152a1005b6020612200918160405193828580945193849201610655565b8101601781520301902090565b3461046c57602036600319011261046c5760043567ffffffffffffffff811161046c5761ffff612246610be56020933690600401610b4a565b5416604051908152f35b3461046c57600036600319011261046c576020601454604051908152f35b3461046c5761227c36610f18565b91906122866125f1565b60009161ffff811683526001602090808252604085209167ffffffffffffffff8711610a98576122c0876122ba85546114e3565b8561271f565b8590601f88116001146123275750918680879893611a40957ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab999361231c575b501b906000198460031b1c191617905560405193849384612704565b880135925038612300565b90601f19881661233c85600052602060002090565b9288905b8282106123a2575050918893917ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab9899611a40969410612388575b505082811b019055611a34565b870135600019600386901b60f8161c19169055388061237b565b808685968294968c01358155019501930190612340565b3461046c57602036600319011261046c576004356001600160a01b03600b5416331480156123fe575b6123eb90612f7b565b6123f9600c54821015612fc7565b600c55005b503360009081526010602052604090205460ff166123e2565b3461046c57602036600319011261046c5760043561243481610830565b61243c6125f1565b6001600160a01b038091168015612489576000918254826001600160a01b03198216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b604051631e4fbdf760e01b815260006004820152602490fd5b3461046c57608036600319011261046c576124bb61045b565b6124c3610471565b906124cf604435610830565b604051633d7b2f6f60e21b815261ffff91821660048201529116602482015230604482015260648035908201526000816084817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa80156108275761070a9160009161254d575b506040519182918261069d565b612568913d8091833e6125608183610ad5565b810190612678565b38612540565b3461046c57600036600319011261046c5760206001600160a01b03600b5416604051908152f35b3461046c57600080600319360112610793576001600160a01b03600b5416331480156125db575b6125c590612f7b565b630100000063ff00000019601654161760165580f35b503381526010602052604081205460ff166125bc565b6001600160a01b0360005416330361260557565b60405163118cdaa760e01b8152336004820152602490fd5b1561262457565b60405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608490fd5b60208183031261046c5780519067ffffffffffffffff821161046c570181601f8201121561046c5780516126ab81610af7565b926126b96040519485610ad5565b8184526020828401011161046c576106ae9160208085019101610655565b6040513d6000823e3d90fd5b908060209392818452848401376000828201840152601f01601f1916010190565b60409061ffff6106ae959316815281602082015201916126e3565b90601f811161272d57505050565b600091825260208220906020601f850160051c83019410612769575b601f0160051c01915b82811061275e57505050565b818155600101612752565b9092508290612749565b634e487b7160e01b600052601160045260246000fd5b60131981019190821161279857565b612773565b606403906064821161279857565b90601f820180921161279857565b9190820180921161279857565b156127cd57565b60405162461bcd60e51b815260206004820152600e60248201527f736c6963655f6f766572666c6f770000000000000000000000000000000000006044820152606490fd5b1561281957565b60405162461bcd60e51b815260206004820152601160248201527f736c6963655f6f75744f66426f756e64730000000000000000000000000000006044820152606490fd5b6128728261286b816127ab565b10156127c6565b61287f8282511015612812565b81612897575050604051600081526020810160405290565b60405191601f811691821560051b808486010193838501920101905b8084106128cb5750508252601f01601f191660405290565b90928351815260208091019301906128b3565b9290915a604051633356ae4560e11b6020820190815261ffff8716602483015260806044830152949161294b8261293d61291b60a4830187610678565b67ffffffffffffffff8816606484015282810360231901608484015288610678565b03601f198101845283610ad5565b600080916040519761295c89610ab9565b609689528260208a019560a036883751923090f1903d90609682116129a3575b6000908288523e15612990575b5050505050565b612999946129d0565b3880808080612989565b6096915061297c565b604051906020820182811067ffffffffffffffff821117610a985760405260008252565b9193612a907fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c95612a9e939561ffff81516020830120961695866000526005602052612a5683612a3460208b60406000208260405194838680955193849201610655565b8201908152030190209067ffffffffffffffff16600052602052604060002090565b5567ffffffffffffffff612a7c604051988998895260a060208a015260a0890190610678565b921660408701528582036060870152610678565b908382036080850152610678565b0390a1565b6020919283604051948593843782019081520301902090565b15612ac357565b60405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608490fd5b91612b3f9060609461ffff67ffffffffffffffff94999897991685526080602086015260808501916126e3565b951660408201520152565b60408180518101031261046c576001600160a01b036040602083015192612b7084610830565b01519116908115611374576115ce915b90600854908082018092116127985760207fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef916000936008556001600160a01b0385169485158514612bdf575080600854036008555b604051908152a3565b612bfc906001600160a01b03166000526006602052604060002090565b818154019055612bd6565b15612c0e57565b60405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20616c6c6f77656420627269646765206578636565646564006044820152606490fd5b15612c5a57565b60405162461bcd60e51b815260206004820152602660248201527f43616c6c6572206973206e6f742074686520617574686f72697a656420746f2060448201526562726964676560d01b6064820152608490fd5b8181029291811591840414171561279857565b91906001600160a01b038316908115612d8657612cf1846001600160a01b03166000526006602052604060002090565b5493818510612d545781602091612d427fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef946000979803916001600160a01b03166000526006602052604060002090565b558060085403600855604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481018590526044810191909152606490fd5b604051634b637e8f60e11b815260006004820152602490fd5b916106ae9593612dcc612dda9261ffff6001600160a01b039516865260c0602087015260c0860190610678565b908482036040860152610678565b931660608201526000608082015260a0818403910152610678565b9091936115c79061ffff83166000526001602052612e1d60406000206040519384809261151d565b815115612ea157612e2f845184612f0c565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692833b1561046c57612e836000966040519889978896879562c5803160e81b875260048701612d9f565b03925af1801561082757612e945750565b80611f8d6115ce92610a84565b60405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201527f61207472757374656420736f75726365000000000000000000000000000000006064820152608490fd5b61ffff166000526003602052604060002054908115612f71575b11612f2d57565b606460405162461bcd60e51b815260206004820152602060248201527f4c7a4170703a207061796c6f61642073697a6520697320746f6f206c617267656044820152fd5b6127109150612f26565b15612f8257565b60405162461bcd60e51b815260206004820152601c60248201527f43616c6c6572206973206e6f742074686520617574686f72697a6564000000006044820152606490fd5b15612fce57565b606460405162461bcd60e51b815260206004820152602060248201527f43616e6e6f74206465637265617365206d617820747261646520616d6f756e746044820152fd5b1561301957565b60405162461bcd60e51b815260206004820152601060248201527f5472616465204e6f74204f70656e6564000000000000000000000000000000006044820152606490fd5b1561306557565b60405162461bcd60e51b815260206004820152601860248201527f45786365656473206d617820747261646520616d6f756e7400000000000000006044820152606490fd5b156130b157565b60405162461bcd60e51b815260206004820152601760248201527f45786365656473206d61782077616c6c65742073697a650000000000000000006044820152606490fd5b90613117611bea836001600160a01b03166000526011602052604060002090565b80156131d6575b1561312c576106ae916131fc565b6016549160ff8316613142576106ae92506131fc565b61315460ff6131979460181c16613012565b613162600c5483111561305e565b6131836131776013546001600160a01b031690565b6001600160a01b031690565b6001600160a01b0382160361319d576131fc565b50600190565b6131d16131c7836131c1846001600160a01b03166000526006602052604060002090565b546127b9565b600f5410156130aa565b6131fc565b506131f7611bea336001600160a01b03166000526011602052604060002090565b61311e565b90613207913361320c565b600190565b916001600160a01b0391828416928315612d8657811693841561137457613246816001600160a01b03166000526006602052604060002090565b548381106132cd576132c89284926132987fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef966132b29403916001600160a01b03166000526006602052604060002090565b556001600160a01b03166000526006602052604060002090565b8054820190556040519081529081906020820190565b0390a3565b60405163391434e360e21b81526001600160a01b03929092166004830152602482015260448101839052606490fd5b91906001600160a01b03808216600052601160205260ff6040600020541690811561339e575b5015613331576106ae926133b4565b60ff60165460081c16613347576106ae926133b4565b600d54821161335957613197926133b4565b60405162461bcd60e51b815260206004820152601760248201527f45786365656473206d61782073656c6c20616d6f756e740000000000000000006044820152606490fd5b9050831660005260ff6040600020541638613322565b91906001600160a01b038316928360005260076020526133eb336040600020906001600160a01b0316600052602052604060002090565b549360018501613401575b50613207935061320c565b83851061344157156109035733156108ea5782613207940361343a3361089a846001600160a01b03166000526007602052604060002090565b55386133f6565b604051637dc7a0d960e11b81523360048201526024810186905260448101859052606490fdfea2646970667358221220eedd2cc89131a2c1c1b9153aeb503e00ee77dd8ff46200203bc9224e9c87eecd64736f6c6343000814003300000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c80621d3567146104565780630537eae01461045157806306fdde031461044c57806307e0db1714610447578063095ea7b3146104425780630a6986931461043d5780630df374831461043857806310ddb13714610433578063153ff6721461042e57806318160ddd14610429578063184c5a801461042457806318c963781461041f57806323b872dd1461041a5780632520e7ff1461041557806327578055146104105780632ade24601461040b578063313ce567146104065780633b20c22d146104015780633c19eed8146103fc5780633d8b38f6146103f75780633f1f4fa4146103f257806342d65a8d146103ed578063432fb2f7146103e85780634437152a146103e3578063456560f4146103de5780635332587e146103d95780635b8c41e6146103d45780635d0044ca146103cf57806366ad5c8a146103ca57806366d602ae146103c557806370a08231146103c0578063715018a6146103bb578063751039fc146103b65780637533d788146103b157806382b12dd7146103ac5780638cfd8f5c146103a75780638da5cb5b146103a25780638f3fa8601461039d578063950c8a741461039857806395d89b4114610393578063998cdf831461038e5780639acbea51146103895780639f38369a14610384578063a4a2ce9a1461037f578063a6c3d1651461037a578063a839ae9714610375578063a9059cbb14610370578063b353aaa71461036b578063b8f7a66514610366578063b9a45aac14610361578063baf3292d1461035c578063bc90cf2014610357578063bd93e64414610352578063c44618341461034d578063c79514e614610348578063cbed8b9c14610343578063d1deba1f1461033e578063d5abeb0114610339578063dd62ed3e14610334578063df2a5b3b1461032f578063e0df3f8c1461032a578063e6fd48bc14610325578063eb8d72b714610320578063f21b72321461031b578063f2fde38b14610316578063f5ecbdbc14610311578063f851a4401461030c5763fb201b1d1461030757600080fd5b612595565b61256e565b6124a2565b612417565b6123b9565b61226e565b612250565b61220d565b612154565b6120f8565b6120d2565b611f93565b611eae565b611e40565b611e23565b611dcf565b611da9565b611d3d565b611cbc565b611c96565b611c52565b611c27565b611ae7565b611963565b611932565b611893565b611850565b6117a7565b611700565b6116d9565b6116bb565b611694565b611641565b611623565b6115d0565b611490565b61143d565b6113ff565b6113e1565b611308565b611243565b611199565b611115565b6110f7565b61108a565b611065565b610fe4565b610faf565b610f53565b610e91565b610e10565b610df4565b610d82565b610d41565b610cfe565b610cbd565b610b65565b610a47565b610a29565b610a03565b61097e565b610943565b61091c565b610841565b610796565b6106b1565b610637565b610518565b6004359061ffff8216820361046c57565b600080fd5b6024359061ffff8216820361046c57565b9181601f8401121561046c5782359167ffffffffffffffff831161046c576020838186019501011161046c57565b90608060031983011261046c5760043561ffff8116810361046c579167ffffffffffffffff9060243582811161046c57816104ed91600401610482565b93909392604435818116810361046c579260643591821161046c5761051491600401610482565b9091565b3461046c57610526366104b0565b91929493906001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6751633036105e7576105aa6105b2926105b8976105a36105896105848a61ffff166000526001602052604060002090565b6115b3565b80519081841491826105dd575b50816105ba575b5061261d565b3691610b13565b923691610b13565b926128de565b005b90506105c7368486610b13565b602081519101209060208151910120143861059d565b1515915038610596565b60405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c657200006044820152606490fd5b600091031261046c57565b3461046c57600036600319011261046c576020600c54604051908152f35b60005b8381106106685750506000910152565b8181015183820152602001610658565b9060209161069181518092818552858086019101610655565b601f01601f1916010190565b9060206106ae928181520190610678565b90565b3461046c576000806003193601126107935760405190806009546106d4816114e3565b80855291600191808316908115610769575060011461070e575b61070a856106fe81870382610ad5565b6040519182918261069d565b0390f35b9250600983527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b8284106107515750505081016020016106fe8261070a6106ee565b80546020858701810191909152909301928101610736565b86955061070a969350602092506106fe94915060ff191682840152151560051b82010192936106ee565b80fd5b3461046c5760006020366003190112610793576107b161045b565b6107b96125f1565b816001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6751691823b1561082c57602461ffff918360405195869485936307e0db1760e01b85521660048401525af180156108275761081b575080f35b61082490610a84565b80f35b6126d7565b5080fd5b6001600160a01b0381160361046c57565b3461046c57604036600319011261046c5760043561085e81610830565b6024353315610903576001600160a01b0382169182156108ea576108b2829161089a336001600160a01b03166000526007602052604060002090565b906001600160a01b0316600052602052604060002090565b556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b604051634a1406b160e11b815260006004820152602490fd5b60405163e602df0560e01b815260006004820152602490fd5b3461046c57600036600319011261046c5760206001600160a01b0360135416604051908152f35b3461046c57604036600319011261046c5761ffff61095f61045b565b6109676125f1565b166000526003602052602435604060002055600080f35b3461046c57600060203660031901126107935761099961045b565b6109a16125f1565b816001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6751691823b1561082c57602461ffff918360405195869485936310ddb13760e01b85521660048401525af180156108275761081b575080f35b3461046c57600036600319011261046c57602060ff60165460081c166040519015158152f35b3461046c57600036600319011261046c576020600854604051908152f35b3461046c57600036600319011261046c5760206001600160a01b0360125416604051908152f35b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff8111610a9857604052565b610a6e565b6060810190811067ffffffffffffffff821117610a9857604052565b60c0810190811067ffffffffffffffff821117610a9857604052565b90601f8019910116810190811067ffffffffffffffff821117610a9857604052565b67ffffffffffffffff8111610a9857601f01601f191660200190565b929192610b1f82610af7565b91610b2d6040519384610ad5565b82948184528183011161046c578281602093846000960137010152565b9080601f8301121561046c578160206106ae93359101610b13565b3461046c57604036600319011261046c5767ffffffffffffffff60043581811161046c57610b97903690600401610b4a565b602435610ba381610830565b610bab6125f1565b61ffff610bea604051936020936bffffffffffffffffffffffff199060601b16848601523060601b603486015260288552610be585610a9d565b6121e7565b541692600093845260019182815260408520938051928311610a9857610c1a83610c1487546114e3565b8761271f565b81601f8411600114610c5357509282939183928794610c48575b50501b916000199060031b1c191617905580f35b015192503880610c34565b919083601f198116610c6a88600052602060002090565b9489905b88838310610ca35750505010610c8a575b505050811b01905580f35b015160001960f88460031b161c19169055388080610c7f565b858701518855909601959485019487935090810190610c6e565b3461046c57606036600319011261046c576020610cf4600435610cdf81610830565b602435610ceb81610830565b604435916132fc565b6040519015158152f35b3461046c57602036600319011261046c576001600160a01b03600435610d2381610830565b166000526010602052602060ff604060002054166040519015158152f35b3461046c57600036600319011261046c57602060ff601654166040519015158152f35b60043590811515820361046c57565b60243590811515820361046c57565b3461046c57602036600319011261046c57610d9b610d64565b6001600160a01b03600b541633148015610ddb575b610db990612f7b565b64ff0000000060165491151560201b169064ff00000000191617601655600080f35b503360009081526010602052604090205460ff16610db0565b3461046c57600036600319011261046c57602060405160128152f35b3461046c57604036600319011261046c576105b8600435610e3081610830565b610e38610d73565b906001600160a01b039081600b541633148015610e78575b610e5990612f7b565b16600052601060205260406000209060ff801983541691151516179055565b503360009081526010602052604090205460ff16610e50565b3461046c57604036600319011261046c5760043567ffffffffffffffff811161046c57610ec2903690600401610b4a565b61ffff610eef610ed0610471565b926001600160a01b03600b541633148015610eff575b610be590612f7b565b805461ffff191691909216179055005b503360009081526010602052604090205460ff16610ee6565b90604060031983011261046c5760043561ffff8116810361046c57916024359067ffffffffffffffff821161046c5761051491600401610482565b3461046c57602061ffff610fa0610f6936610f18565b9390911660005260018452610f8b610f9260406000206040519283809261151d565b0382610ad5565b848151910120923691610b13565b82815191012014604051908152f35b3461046c57602036600319011261046c5761ffff610fcb61045b565b1660005260036020526020604060002054604051908152f35b3461046c57610ff236610f18565b9190610ffc6125f1565b6001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6751691823b1561046c57604051928380926342d65a8d60e01b8252816110536000988997889460048501612704565b03925af180156108275761081b575080f35b3461046c57600036600319011261046c57602060165460ff60405191831c1615158152f35b3461046c57602036600319011261046c576004356110a781610830565b6001600160a01b039081600b5416331480156110de575b6110c790612f7b565b166001600160a01b03196013541617601355600080f35b503360009081526010602052604090205460ff166110be565b3461046c57600036600319011261046c576020600e54604051908152f35b3461046c57602036600319011261046c576004356001600160a01b03600b54163314801561115a575b61114790612f7b565b611155600d54821015612fc7565b600d55005b503360009081526010602052604090205460ff1661113e565b60209061118d928260405194838680955193849201610655565b82019081520301902090565b3461046c57606036600319011261046c576111b261045b565b67ffffffffffffffff60243581811161046c573660238201121561046c576111e4903690602481600401359101610b13565b90604435908116810361046c576112196112329261121361070a9561ffff166000526005602052604060002090565b90611173565b9067ffffffffffffffff16600052602052604060002090565b546040519081529081906020820190565b3461046c57602036600319011261046c576004356001600160a01b03600b5416331480156112ef575b61127590612f7b565b600f5481111561128457600f55005b60405162461bcd60e51b815260206004820152603560248201527f4e6577206d61782077616c6c65742073697a65206d757374206265206772656160448201527f746572207468616e2063757272656e742073697a6500000000000000000000006064820152608490fd5b503360009081526010602052604090205460ff1661126c565b3461046c57611316366104b0565b92915092935030330361138d5761133a93611332913691610b13565b503691610b13565b60408180518101031261046c576001600160a01b03604060208301519261136084610830565b01519116908115611374576105b891612b80565b60405163ec442f0560e01b815260006004820152602490fd5b60405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b6064820152608490fd5b3461046c57600036600319011261046c576020600d54604051908152f35b3461046c57602036600319011261046c576001600160a01b0360043561142481610830565b1660005260066020526020604060002054604051908152f35b3461046c57600080600319360112610793576114576125f1565b806001600160a01b038154811981168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461046c57600080600319360112610793576001600160a01b03600b5416331480156114cd575b6114c090612f7b565b60ff196016541660165580f35b503381526010602052604081205460ff166114b7565b90600182811c92168015611513575b60208310146114fd57565b634e487b7160e01b600052602260045260246000fd5b91607f16916114f2565b906000929180549161152e836114e3565b9182825260019384811690816000146115905750600114611550575b50505050565b90919394506000526020928360002092846000945b83861061157c57505050500101903880808061154a565b805485870183015294019385908201611565565b9294505050602093945060ff191683830152151560051b0101903880808061154a565b906115ce6115c7926040519384809261151d565b0383610ad5565b565b3461046c57602036600319011261046c5761ffff6115ec61045b565b16600052600160205261070a610f8b61160f60406000206040519283809261151d565b604051918291602083526020830190610678565b3461046c57600036600319011261046c576020601554604051908152f35b3461046c57604036600319011261046c57602061168b61165f61045b565b61ffff61166a610471565b91166000526002835260406000209061ffff16600052602052604060002090565b54604051908152f35b3461046c57600036600319011261046c5760206001600160a01b0360005416604051908152f35b3461046c57600036600319011261046c576020600f54604051908152f35b3461046c57600036600319011261046c5760206001600160a01b0360045416604051908152f35b3461046c57600080600319360112610793576040519080600a54611723816114e3565b80855291600191808316908115610769575060011461174c5761070a856106fe81870382610ad5565b9250600a83527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b82841061178f5750505081016020016106fe8261070a6106ee565b80546020858701810191909152909301928101611774565b3461046c57602036600319011261046c576004356001600160a01b03600b541633148015611837575b6117d990612f7b565b600a81116117e657601555005b60405162461bcd60e51b815260206004820152602360248201527f427269646765204665652063616e277420626520626967676572207468616e2060448201526231302560e81b6064820152608490fd5b503360009081526010602052604090205460ff166117d0565b3461046c57602036600319011261046c576001600160a01b0360043561187581610830565b166000526011602052602060ff604060002054166040519015158152f35b3461046c57602036600319011261046c5761ffff6118af61045b565b166000526001602052610f8b6118cf60406000206040519283809261151d565b8051156118ed576106fe816118e761070a9351612789565b9061285e565b60405162461bcd60e51b815260206004820152601d60248201527f4c7a4170703a206e6f20747275737465642070617468207265636f72640000006044820152606490fd5b3461046c57602036600319011261046c576004356000526018602052602060ff604060002054166040519015158152f35b3461046c5761197136610f18565b9061197a6125f1565b604051926020928083858701376119a66034868381013060601b88820152036014810188520186610ad5565b60009361ffff83168552600190818152604086209187519167ffffffffffffffff8311610a98576119e1836119db86546114e3565b8661271f565b80601f8411600114611a51575091808092611a409695948a9b7f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce9b94611a46575b50501b916000199060031b1c19161790555b60405193849384612704565b0390a180f35b015192503880611a22565b91939498601f198416611a6987600052602060002090565b938a905b828210611ad0575050917f8c0400cfe2d1199b1a725c78960bcc2a344d869b80590d0f2bd005db15a572ce999a95939185611a4098969410611ab7575b505050811b019055611a34565b015160001960f88460031b161c19169055388080611aaa565b808886978294978701518155019601940190611a6d565b604036600319011261046c5760043567ffffffffffffffff811161046c57611b99611baf611ba7611b1f6105b8943690600401610b4a565b610be5602435611b33600e54821115612c07565b60165460101c60ff16611bfa575b611b4b8133612cc1565b60165460201c60ff1680611bc6575b15611bc157611b77611b7e91611b7160155461279d565b90612cae565b6064900490565b60408051336020820152908101919091529485906060820190565b03601f198101865285610ad5565b5461ffff1690565b611bb76129ac565b9034923391612df5565b611b7e565b50611bf5611bf1611bea336001600160a01b03166000526011602052604060002090565b5460ff1690565b1590565b611b5a565b611c22611c1d611bea336001600160a01b03166000526011602052604060002090565b612c53565b611b41565b3461046c57604036600319011261046c576020610cf4600435611c4981610830565b602435906130f6565b3461046c57600036600319011261046c5760206040516001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675168152f35b3461046c57600036600319011261046c57602060ff60165460181c166040519015158152f35b3461046c57604036600319011261046c576105b8600435611cdc81610830565b611ce4610d73565b906001600160a01b039081600b541633148015611d24575b611d0590612f7b565b16600052601160205260406000209060ff801983541691151516179055565b503360009081526010602052604090205460ff16611cfc565b3461046c57602036600319011261046c577f5db758e995a17ec1ad84bdef7e8c3293a0bd6179bcce400dff5d4c3d87db726b60206001600160a01b03600435611d8581610830565b611d8d6125f1565b16806001600160a01b03196004541617600455604051908152a1005b3461046c57600036600319011261046c57602060ff60165460101c166040519015158152f35b3461046c57600080600319360112610793576001600160a01b03600b541633148015611e0d575b611dff90612f7b565b61ff00196016541660165580f35b503381526010602052604081205460ff16611df6565b3461046c57600036600319011261046c5760206040516127108152f35b3461046c57602036600319011261046c57611e59610d64565b6001600160a01b03600b541633148015611e95575b611e7790612f7b565b62ff000060165491151560101b169062ff0000191617601655600080f35b503360009081526010602052604090205460ff16611e6e565b3461046c57608036600319011261046c57611ec761045b565b611ecf610471565b60643567ffffffffffffffff811161046c57611eef903690600401610482565b9092611ef96125f1565b6001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6751690813b1561046c5760008094611f70604051978896879586946332fb62e760e21b865261ffff809216600487015216602485015260443560448501526080606485015260848401916126e3565b03925af1801561082757611f8057005b80611f8d6105b892610a84565b8061062c565b611f9c366104b0565b9161ffff86949296166000526005602052611fe481604060002060206040518092878b8337878201908152030190209067ffffffffffffffff16600052602052604060002090565b54918215612081577fc264d91f3adc5588250e1551f547752ca0cfa8f6b530d243b9f9f4cab10ea8e59661207c946120709161206b91600061205f876112198d896120598f6120458f612038368c8e610b13565b6020815191012014612abc565b61ffff166000526005602052604060002090565b91612aa3565b5561133236868c610b13565b612b4a565b60405195869586612b12565b0390a1005b60405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b6064820152608490fd5b3461046c57600036600319011261046c5760206040516a3b8e97d229a2d5480000008152f35b3461046c57604036600319011261046c57602061168b60043561211a81610830565b6001600160a01b036024359161212f83610830565b16600052600783526040600020906001600160a01b0316600052602052604060002090565b3461046c57606036600319011261046c577f9d5c7c0b934da8fefa9c7760c98383778a12dfbfc0c3b3106518f43fb9508ac0606061219061045b565b612198610471565b90604435906121a56125f1565b61ffff80911692836000526002602052826121d28260406000209061ffff16600052602052604060002090565b556040519384521660208301526040820152a1005b6020612200918160405193828580945193849201610655565b8101601781520301902090565b3461046c57602036600319011261046c5760043567ffffffffffffffff811161046c5761ffff612246610be56020933690600401610b4a565b5416604051908152f35b3461046c57600036600319011261046c576020601454604051908152f35b3461046c5761227c36610f18565b91906122866125f1565b60009161ffff811683526001602090808252604085209167ffffffffffffffff8711610a98576122c0876122ba85546114e3565b8561271f565b8590601f88116001146123275750918680879893611a40957ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab999361231c575b501b906000198460031b1c191617905560405193849384612704565b880135925038612300565b90601f19881661233c85600052602060002090565b9288905b8282106123a2575050918893917ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab9899611a40969410612388575b505082811b019055611a34565b870135600019600386901b60f8161c19169055388061237b565b808685968294968c01358155019501930190612340565b3461046c57602036600319011261046c576004356001600160a01b03600b5416331480156123fe575b6123eb90612f7b565b6123f9600c54821015612fc7565b600c55005b503360009081526010602052604090205460ff166123e2565b3461046c57602036600319011261046c5760043561243481610830565b61243c6125f1565b6001600160a01b038091168015612489576000918254826001600160a01b03198216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b604051631e4fbdf760e01b815260006004820152602490fd5b3461046c57608036600319011261046c576124bb61045b565b6124c3610471565b906124cf604435610830565b604051633d7b2f6f60e21b815261ffff91821660048201529116602482015230604482015260648035908201526000816084817f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6756001600160a01b03165afa80156108275761070a9160009161254d575b506040519182918261069d565b612568913d8091833e6125608183610ad5565b810190612678565b38612540565b3461046c57600036600319011261046c5760206001600160a01b03600b5416604051908152f35b3461046c57600080600319360112610793576001600160a01b03600b5416331480156125db575b6125c590612f7b565b630100000063ff00000019601654161760165580f35b503381526010602052604081205460ff166125bc565b6001600160a01b0360005416330361260557565b60405163118cdaa760e01b8152336004820152602490fd5b1561262457565b60405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b6064820152608490fd5b60208183031261046c5780519067ffffffffffffffff821161046c570181601f8201121561046c5780516126ab81610af7565b926126b96040519485610ad5565b8184526020828401011161046c576106ae9160208085019101610655565b6040513d6000823e3d90fd5b908060209392818452848401376000828201840152601f01601f1916010190565b60409061ffff6106ae959316815281602082015201916126e3565b90601f811161272d57505050565b600091825260208220906020601f850160051c83019410612769575b601f0160051c01915b82811061275e57505050565b818155600101612752565b9092508290612749565b634e487b7160e01b600052601160045260246000fd5b60131981019190821161279857565b612773565b606403906064821161279857565b90601f820180921161279857565b9190820180921161279857565b156127cd57565b60405162461bcd60e51b815260206004820152600e60248201527f736c6963655f6f766572666c6f770000000000000000000000000000000000006044820152606490fd5b1561281957565b60405162461bcd60e51b815260206004820152601160248201527f736c6963655f6f75744f66426f756e64730000000000000000000000000000006044820152606490fd5b6128728261286b816127ab565b10156127c6565b61287f8282511015612812565b81612897575050604051600081526020810160405290565b60405191601f811691821560051b808486010193838501920101905b8084106128cb5750508252601f01601f191660405290565b90928351815260208091019301906128b3565b9290915a604051633356ae4560e11b6020820190815261ffff8716602483015260806044830152949161294b8261293d61291b60a4830187610678565b67ffffffffffffffff8816606484015282810360231901608484015288610678565b03601f198101845283610ad5565b600080916040519761295c89610ab9565b609689528260208a019560a036883751923090f1903d90609682116129a3575b6000908288523e15612990575b5050505050565b612999946129d0565b3880808080612989565b6096915061297c565b604051906020820182811067ffffffffffffffff821117610a985760405260008252565b9193612a907fe183f33de2837795525b4792ca4cd60535bd77c53b7e7030060bfcf5734d6b0c95612a9e939561ffff81516020830120961695866000526005602052612a5683612a3460208b60406000208260405194838680955193849201610655565b8201908152030190209067ffffffffffffffff16600052602052604060002090565b5567ffffffffffffffff612a7c604051988998895260a060208a015260a0890190610678565b921660408701528582036060870152610678565b908382036080850152610678565b0390a1565b6020919283604051948593843782019081520301902090565b15612ac357565b60405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b6064820152608490fd5b91612b3f9060609461ffff67ffffffffffffffff94999897991685526080602086015260808501916126e3565b951660408201520152565b60408180518101031261046c576001600160a01b036040602083015192612b7084610830565b01519116908115611374576115ce915b90600854908082018092116127985760207fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef916000936008556001600160a01b0385169485158514612bdf575080600854036008555b604051908152a3565b612bfc906001600160a01b03166000526006602052604060002090565b818154019055612bd6565b15612c0e57565b60405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d20616c6c6f77656420627269646765206578636565646564006044820152606490fd5b15612c5a57565b60405162461bcd60e51b815260206004820152602660248201527f43616c6c6572206973206e6f742074686520617574686f72697a656420746f2060448201526562726964676560d01b6064820152608490fd5b8181029291811591840414171561279857565b91906001600160a01b038316908115612d8657612cf1846001600160a01b03166000526006602052604060002090565b5493818510612d545781602091612d427fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef946000979803916001600160a01b03166000526006602052604060002090565b558060085403600855604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481018590526044810191909152606490fd5b604051634b637e8f60e11b815260006004820152602490fd5b916106ae9593612dcc612dda9261ffff6001600160a01b039516865260c0602087015260c0860190610678565b908482036040860152610678565b931660608201526000608082015260a0818403910152610678565b9091936115c79061ffff83166000526001602052612e1d60406000206040519384809261151d565b815115612ea157612e2f845184612f0c565b6001600160a01b037f00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd6751692833b1561046c57612e836000966040519889978896879562c5803160e81b875260048701612d9f565b03925af1801561082757612e945750565b80611f8d6115ce92610a84565b60405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201527f61207472757374656420736f75726365000000000000000000000000000000006064820152608490fd5b61ffff166000526003602052604060002054908115612f71575b11612f2d57565b606460405162461bcd60e51b815260206004820152602060248201527f4c7a4170703a207061796c6f61642073697a6520697320746f6f206c617267656044820152fd5b6127109150612f26565b15612f8257565b60405162461bcd60e51b815260206004820152601c60248201527f43616c6c6572206973206e6f742074686520617574686f72697a6564000000006044820152606490fd5b15612fce57565b606460405162461bcd60e51b815260206004820152602060248201527f43616e6e6f74206465637265617365206d617820747261646520616d6f756e746044820152fd5b1561301957565b60405162461bcd60e51b815260206004820152601060248201527f5472616465204e6f74204f70656e6564000000000000000000000000000000006044820152606490fd5b1561306557565b60405162461bcd60e51b815260206004820152601860248201527f45786365656473206d617820747261646520616d6f756e7400000000000000006044820152606490fd5b156130b157565b60405162461bcd60e51b815260206004820152601760248201527f45786365656473206d61782077616c6c65742073697a650000000000000000006044820152606490fd5b90613117611bea836001600160a01b03166000526011602052604060002090565b80156131d6575b1561312c576106ae916131fc565b6016549160ff8316613142576106ae92506131fc565b61315460ff6131979460181c16613012565b613162600c5483111561305e565b6131836131776013546001600160a01b031690565b6001600160a01b031690565b6001600160a01b0382160361319d576131fc565b50600190565b6131d16131c7836131c1846001600160a01b03166000526006602052604060002090565b546127b9565b600f5410156130aa565b6131fc565b506131f7611bea336001600160a01b03166000526011602052604060002090565b61311e565b90613207913361320c565b600190565b916001600160a01b0391828416928315612d8657811693841561137457613246816001600160a01b03166000526006602052604060002090565b548381106132cd576132c89284926132987fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef966132b29403916001600160a01b03166000526006602052604060002090565b556001600160a01b03166000526006602052604060002090565b8054820190556040519081529081906020820190565b0390a3565b60405163391434e360e21b81526001600160a01b03929092166004830152602482015260448101839052606490fd5b91906001600160a01b03808216600052601160205260ff6040600020541690811561339e575b5015613331576106ae926133b4565b60ff60165460081c16613347576106ae926133b4565b600d54821161335957613197926133b4565b60405162461bcd60e51b815260206004820152601760248201527f45786365656473206d61782073656c6c20616d6f756e740000000000000000006044820152606490fd5b9050831660005260ff6040600020541638613322565b91906001600160a01b038316928360005260076020526133eb336040600020906001600160a01b0316600052602052604060002090565b549360018501613401575b50613207935061320c565b83851061344157156109035733156108ea5782613207940361343a3361089a846001600160a01b03166000526007602052604060002090565b55386133f6565b604051637dc7a0d960e11b81523360048201526024810186905260448101859052606490fdfea2646970667358221220eedd2cc89131a2c1c1b9153aeb503e00ee77dd8ff46200203bc9224e9c87eecd64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675
-----Decoded View---------------
Arg [0] : _lzEndpoint (address): 0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000066a71dcef29a0ffbdbe3c6a460a3b5bc225cd675
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.