Overview
APE Balance
APE Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Endpoint | 9049939 | 11 days ago | IN | 0 APE | 0.0011633 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
9049936 | 11 days ago | Contract Creation | 0 APE |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
LayerZeroEndpointLocator
Compiler Version
v0.8.28+commit.7893614a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.28; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; contract LayerZeroEndpointLocator is Ownable { error EndpointNotSet(); address private _endpoint; constructor() Ownable(tx.origin) {} function endpoint() public view returns (address) { if (_endpoint == address(0)) revert EndpointNotSet(); return _endpoint; } function setEndpoint(address endpoint_) public onlyOwner { _endpoint = endpoint_; _transferOwnership(address(0)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "remappings": [ "solady/=lib/solady/src/", "@layerzerolabs/=node_modules/@layerzerolabs/", "@openzeppelin/=node_modules/@openzeppelin/", "solidity-bytes-utils/=node_modules/solidity-bytes-utils/", "forge-std/=lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "evmVersion": "cancun", "viaIR": true, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EndpointNotSet","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"endpoint_","type":"address"}],"name":"setEndpoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608080604052346071573215605e575f8054326001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361024b90816100768239f35b631e4fbdf760e01b5f525f60045260245ffd5b5f80fdfe6080806040526004361015610012575f80fd5b5f3560e01c9081635e280f111461017757508063715018a6146101575780638da5cb5b14610130578063dbbb4155146100e05763f2fde38b14610053575f80fd5b346100dc5760203660031901126100dc576004356001600160a01b038116908190036100dc576100816101b0565b80156100c9575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b346100dc5760203660031901126100dc576004356001600160a01b038116908190036100dc5761010e6101b0565b6bffffffffffffffffffffffff60a01b600154161760015561012e6101d6565b005b346100dc575f3660031901126100dc575f546040516001600160a01b039091168152602090f35b346100dc575f3660031901126100dc5761016f6101b0565b61012e6101d6565b346100dc575f3660031901126100dc576001546001600160a01b03169081156101a1576020918152f35b639da787ad60e01b5f5260045ffd5b5f546001600160a01b031633036101c357565b63118cdaa760e01b5f523360045260245ffd5b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a356fea26469706673582212200f8973260a430ec17dec058958535c4b63f299a60bee4c83775d716bdaa8ce0164736f6c634300081c0033
Deployed Bytecode
0x6080806040526004361015610012575f80fd5b5f3560e01c9081635e280f111461017757508063715018a6146101575780638da5cb5b14610130578063dbbb4155146100e05763f2fde38b14610053575f80fd5b346100dc5760203660031901126100dc576004356001600160a01b038116908190036100dc576100816101b0565b80156100c9575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b631e4fbdf760e01b5f525f60045260245ffd5b5f80fd5b346100dc5760203660031901126100dc576004356001600160a01b038116908190036100dc5761010e6101b0565b6bffffffffffffffffffffffff60a01b600154161760015561012e6101d6565b005b346100dc575f3660031901126100dc575f546040516001600160a01b039091168152602090f35b346100dc575f3660031901126100dc5761016f6101b0565b61012e6101d6565b346100dc575f3660031901126100dc576001546001600160a01b03169081156101a1576020918152f35b639da787ad60e01b5f5260045ffd5b5f546001600160a01b031633036101c357565b63118cdaa760e01b5f523360045260245ffd5b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a356fea26469706673582212200f8973260a430ec17dec058958535c4b63f299a60bee4c83775d716bdaa8ce0164736f6c634300081c0033
Deployed Bytecode Sourcemap
127:443:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;127:443:2;;;;;;-1:-1:-1;;;;;127:443:2;;;;;;;;1500:62:0;;:::i;:::-;2627:22;;2623:91;;127:443:2;;;-1:-1:-1;;;;;;127:443:2;;;;;;-1:-1:-1;;;;;127:443:2;;3052:40:0;;127:443:2;3052:40:0;127:443:2;2623:91:0;2672:31;;;127:443:2;2672:31:0;127:443:2;;;;;2672:31:0;127:443:2;;;;;;;;;;-1:-1:-1;;127:443:2;;;;;;-1:-1:-1;;;;;127:443:2;;;;;;;;1500:62:0;;:::i;:::-;127:443:2;;;499:21;127:443;;;499:21;127:443;550:10;;:::i;:::-;127:443;;;;;;;-1:-1:-1;;127:443:2;;;;;;;;-1:-1:-1;;;;;127:443:2;;;;;;;;;;;;;;-1:-1:-1;;127:443:2;;;;1500:62:0;;:::i;:::-;2376:10;;:::i;127:443:2:-;;;;;;-1:-1:-1;;127:443:2;;;;;;-1:-1:-1;;;;;127:443:2;;344:23;;340:52;;127:443;;;;;340:52;376:16;;;127:443;376:16;127:443;;376:16;1796:162:0;1710:6;127:443:2;-1:-1:-1;;;;;127:443:2;735:10:1;1855:23:0;1851:101;;1796:162::o;1851:101::-;1901:40;;;1710:6;1901:40;735:10:1;1901:40:0;127:443:2;;1710:6:0;1901:40;2912:187;127:443:2;;;-1:-1:-1;;;;;;127:443:2;;;;-1:-1:-1;;;;;127:443:2;3052:40:0;127:443:2;;3052:40:0;2912:187::o
Swarm Source
ipfs://0f8973260a430ec17dec058958535c4b63f299a60bee4c83775d716bdaa8ce01
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.