Verified contractPartialMIT
ERC1967Proxy
Address0x075193d36693da7ba3bb709cf63bef070ba04d94
- Balance
0.00093 ETH
- Transactions
1,116
- Compiler
solc 0.8.30
- Same code
12 more contracts
Details
- Compiler
- solc 0.8.30+commit.73712a01
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 24,326,606
- Creation transaction
- 0x5fee6c0b55…fcf0709326
- Proxy implementation
- 0x0aec963b…7e1fe65bStrategyManager
- Main copy (most transactions)
- 0xf7e74565…91cd3374
118 files
The source code is large: one file is shown at a time. Choose a file in the list.
- contracts/factory/base/ERC1967Proxy.solmain2.38 KB
- @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroComposer.sol1.05 KB
- @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol2.59 KB
- @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol519 B
- @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLib.sol805 B
- @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol2.76 KB
- @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol1.54 KB
- @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol1.03 KB
- @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol239 B
- @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ISendLib.sol923 B
- @layerzerolabs/lz-evm-protocol-v2/contracts/libs/AddressCast.sol1.47 KB
- @layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/PacketV1Codec.sol3.67 KB
- @layerzerolabs/oapp-evm-upgradeable/contracts/oapp/OAppCoreUpgradeable.sol4.23 KB
- @layerzerolabs/oapp-evm-upgradeable/contracts/oapp/OAppReceiverUpgradeable.sol5.96 KB
- @layerzerolabs/oapp-evm-upgradeable/contracts/oapp/OAppSenderUpgradeable.sol6.14 KB
- @layerzerolabs/oapp-evm-upgradeable/contracts/oapp/OAppUpgradeable.sol2.21 KB
- @layerzerolabs/oapp-evm-upgradeable/contracts/oapp/libs/OAppOptionsType3Upgradeable.sol5.29 KB
- @layerzerolabs/oapp-evm-upgradeable/contracts/precrime/OAppPreCrimeSimulatorUpgradeable.sol6.64 KB
- @layerzerolabs/oapp-evm/contracts/oapp/OApp.sol1.53 KB
- @layerzerolabs/oapp-evm/contracts/oapp/OAppCore.sol3.36 KB
- @layerzerolabs/oapp-evm/contracts/oapp/OAppReceiver.sol5.41 KB
- @layerzerolabs/oapp-evm/contracts/oapp/OAppSender.sol5.63 KB
- @layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppComposer.sol427 B
- @layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppCore.sol1.86 KB
- @layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppMsgInspector.sol909 B
- @layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppOptionsType3.sol1.44 KB
- @layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppReceiver.sol1.08 KB
- @layerzerolabs/oapp-evm/contracts/oapp/libs/OAppOptionsType3.sol4.9 KB
- @layerzerolabs/oapp-evm/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol1.92 KB
- @layerzerolabs/oapp-evm/contracts/precrime/interfaces/IPreCrime.sol1.11 KB
- @layerzerolabs/oapp-evm/contracts/precrime/libs/Packet.sol2.47 KB
- @layerzerolabs/oft-evm/contracts/interfaces/IOFT.sol6.28 KB
- @layerzerolabs/oft-evm/contracts/libs/OFTComposeMsgCodec.sol2.99 KB
- @layerzerolabs/oft-evm/contracts/libs/OFTMsgCodec.sol2.91 KB
- @openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol8.35 KB
- @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol4.05 KB
- @openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol12.15 KB
- @openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC4626Upgradeable.sol14.62 KB
- @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol1.22 KB
- @openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol1.17 KB
- @openzeppelin/contracts/access/AccessControl.sol7.03 KB
- @openzeppelin/contracts/access/IAccessControl.sol3.34 KB
- @openzeppelin/contracts/access/Ownable.sol3.1 KB
- @openzeppelin/contracts/interfaces/IERC1363.sol4.45 KB
- @openzeppelin/contracts/interfaces/IERC165.sol193 B
- @openzeppelin/contracts/interfaces/IERC1967.sol637 B
- @openzeppelin/contracts/interfaces/IERC20.sol182 B
- @openzeppelin/contracts/interfaces/IERC4626.sol12.21 KB
- @openzeppelin/contracts/interfaces/draft-IERC1822.sol882 B
- @openzeppelin/contracts/interfaces/draft-IERC6093.sol6.54 KB
- @openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol6.24 KB
- @openzeppelin/contracts/proxy/Proxy.sol2.7 KB
- @openzeppelin/contracts/proxy/beacon/IBeacon.sol473 B
- @openzeppelin/contracts/proxy/utils/Initializable.sol9.28 KB
- @openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol6.32 KB
- @openzeppelin/contracts/token/ERC20/ERC20.sol10.8 KB
- @openzeppelin/contracts/token/ERC20/IERC20.sol2.78 KB
- @openzeppelin/contracts/token/ERC20/extensions/ERC4626.sol13.4 KB
- @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol684 B
- @openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol3.81 KB
- @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol13.31 KB
- @openzeppelin/contracts/utils/Address.sol6.8 KB
- @openzeppelin/contracts/utils/Arrays.sol29.6 KB
- @openzeppelin/contracts/utils/Comparators.sol443 B
- @openzeppelin/contracts/utils/Context.sol963 B
- @openzeppelin/contracts/utils/Create2.sol4.37 KB
- @openzeppelin/contracts/utils/Errors.sol896 B
- @openzeppelin/contracts/utils/LowLevelCall.sol5.51 KB
- @openzeppelin/contracts/utils/Memory.sol5.42 KB
- @openzeppelin/contracts/utils/Panic.sol1.97 KB
- @openzeppelin/contracts/utils/ReentrancyGuard.sol4.77 KB
- @openzeppelin/contracts/utils/SlotDerivation.sol5.32 KB
- @openzeppelin/contracts/utils/StorageSlot.sol4.18 KB
- @openzeppelin/contracts/utils/introspection/ERC165.sol879 B
- @openzeppelin/contracts/utils/introspection/IERC165.sol871 B
- @openzeppelin/contracts/utils/math/Math.sol32.36 KB
- @openzeppelin/contracts/utils/math/SafeCast.sol34.94 KB
- @openzeppelin/contracts/utils/structs/EnumerableSet.sol29.63 KB
- contracts/common/AddressLib.sol337 B
- contracts/common/Errors.sol2.27 KB
- contracts/common/Roles.sol1.18 KB
- contracts/common/Types.sol9.92 KB
- contracts/common/layer-zero/OFTAdapterUpgradeable.sol6.94 KB
- contracts/common/layer-zero/OFTCoreUpgradeable.sol25.77 KB
- contracts/common/layer-zero/OFTUpgradeable.sol4.46 KB
- contracts/factory/Factory.sol3.47 KB
- contracts/factory/FactoryClient.sol2.66 KB
- contracts/factory/base/BaseFactory.sol13.12 KB
- contracts/factory/base/OAppFactory.sol11.26 KB
- contracts/factory/base/ProxyRegistryLib.sol16.47 KB
- contracts/factory/base/Registry.sol10.76 KB
- contracts/factory/factories/AccountingReceiverFactory.sol2.22 KB
- contracts/factory/factories/StrategyManagerFactory.sol2.17 KB
- contracts/factory/factories/UnderlyingOFTAdapterFactory.sol2.16 KB
- contracts/factory/factories/UnderlyingOFTFactory.sol2.28 KB
- contracts/factory/factories/VaultComposerFactory.sol2.11 KB
- contracts/factory/factories/VaultFactory.sol2.18 KB
- contracts/factory/factories/VaultTokenFactory.sol1.93 KB
- contracts/interfaces/IAccountingReceiver.sol324 B
- contracts/interfaces/IBridgeRouter.sol261 B
- contracts/interfaces/IFactory.sol1.01 KB
- contracts/interfaces/IStrategy.sol169 B
- contracts/interfaces/IStrategyManager.sol224 B
- contracts/interfaces/IUnderlyingOFT.sol497 B
- contracts/interfaces/IUnderlyingOFTAdapter.sol239 B
- contracts/interfaces/IVault.sol194 B
- contracts/interfaces/IVaultComposer.sol218 B
- contracts/interfaces/IVaultComposerSync.sol3.71 KB
- contracts/interfaces/IVaultToken.sol209 B
- contracts/vault/composer/VaultComposer.sol13 KB
- contracts/vault/composer/VaultComposerSync.sol18.94 KB
- contracts/vault/strategy-manager/AccountingReceiver.sol6.92 KB
- contracts/vault/strategy-manager/StrategyManager.sol16.27 KB
- contracts/vault/underlying-adapter/BridgeGateway.sol10.64 KB
- contracts/vault/underlying-adapter/UnderlyingOFT.sol8.01 KB
- contracts/vault/underlying-adapter/UnderlyingOFTAdapter.sol7.12 KB
- contracts/vault/vault/Vault.sol7.28 KB
- contracts/vault/vault/VaultToken.sol14.39 KB
contracts/factory/base/ERC1967Proxy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;
import { Proxy } from "@openzeppelin/contracts/proxy/Proxy.sol";
import { ERC1967Utils } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol";
import { Errors } from "../../common/Errors.sol";
/// @title ERC-1967 Proxy (constructor-less)
/// @dev
/// - Uses standard EIP-1967 storage slots via {ERC1967Utils}.
/// - The constructor does not set an implementation (slot remains zero).
/// - {initProxy} is intended to be called by a Factory **in the same transaction** that deploys this proxy
/// (deploy → immediately call `initProxy`) to avoid any chance of third-party initialization.
/// - This proxy has no admin/owner logic; after initialization, upgrade authority is expected to be enforced
/// by the implementation (e.g., UUPS with access control) if upgrades are supported.
contract ERC1967Proxy is Proxy {
/// @notice Deploys the proxy with no implementation set.
/// @dev Intentionally empty; leaves the EIP-1967 implementation slot unset (zero).
constructor() payable {}
/// @notice One-time initializer to set the implementation and optionally call it.
/// @dev
/// - Reverts with {Errors.AlreadyInitialized} if the implementation slot is non-zero.
/// - Designed to be invoked by the Factory **within the same transaction** as deployment.
/// - Writes the EIP-1967 implementation slot and delegatecalls `implementation` with `data` (if non-empty)
/// using {ERC1967Utils.upgradeToAndCall}.
/// @param implementation Address of the logic contract to delegate to.
/// @param data ABI-encoded calldata for an optional initialization delegatecall on the implementation.
function initProxy(
address implementation,
bytes memory data
) external payable {
if (_implementation() != address(0)) revert Errors.AlreadyInitialized();
ERC1967Utils.upgradeToAndCall(implementation, data);
}
/// @notice Returns the current implementation (logic) address.
/// @dev Reads the standard EIP-1967 implementation slot via {ERC1967Utils.getImplementation}.
/// @return impl The address of the implementation contract.
function _implementation()
internal
view
virtual
override
returns (address impl)
{
return ERC1967Utils.getImplementation();
}
}
Compiler settingsShow
{
"metadata": {
"useLiteralContent": true
},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "cancun"
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.