Source Code
Overview
SOPH Balance
More Info
ContractCreator
Multichain Info
N/A
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 936393 | 3 days ago | IN | 0 SOPH | 0.09987373 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
956066 | 10 mins ago | 0 SOPH | ||||
956066 | 10 mins ago | 0 SOPH | ||||
956066 | 10 mins ago | 0 SOPH | ||||
956065 | 10 mins ago | 0 SOPH | ||||
956065 | 10 mins ago | 0 SOPH | ||||
955914 | 50 mins ago | 0 SOPH | ||||
955914 | 50 mins ago | 0 SOPH | ||||
955914 | 50 mins ago | 0 SOPH | ||||
955910 | 51 mins ago | 0 SOPH | ||||
955910 | 51 mins ago | 0 SOPH | ||||
955891 | 54 mins ago | 0 SOPH | ||||
955891 | 54 mins ago | 0 SOPH | ||||
955781 | 1 hr ago | 0 SOPH | ||||
955781 | 1 hr ago | 0 SOPH | ||||
955781 | 1 hr ago | 0 SOPH | ||||
955778 | 1 hr ago | 0 SOPH | ||||
955778 | 1 hr ago | 0 SOPH | ||||
955778 | 1 hr ago | 0 SOPH | ||||
955775 | 1 hr ago | 0 SOPH | ||||
955775 | 1 hr ago | 0 SOPH | ||||
955775 | 1 hr ago | 0 SOPH | ||||
955759 | 1 hr ago | 0 SOPH | ||||
955759 | 1 hr ago | 0 SOPH | ||||
955759 | 1 hr ago | 0 SOPH | ||||
936393 | 3 days ago | 0 SOPH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
SsoBeacon
Compiler Version
v0.8.28+commit.7893614a
ZkSolc Version
v1.5.11
Optimization Enabled:
Yes with Mode 3
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import { UpgradeableBeacon } from "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol"; /// @title SsoBeacon /// @author Matter Labs /// @custom:security-contact [email protected] /// @dev This beacon stores the implementation address of SsoAccount contract, /// which every SSO account delegates to. This beacon's address is immutably stored /// in AAFactory contract, as it is required for deploying new SSO accounts. contract SsoBeacon is UpgradeableBeacon { constructor(address _implementation) UpgradeableBeacon(_implementation) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/UpgradeableBeacon.sol) pragma solidity ^0.8.0; import "./IBeacon.sol"; import "../../access/Ownable.sol"; import "../../utils/Address.sol"; /** * @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their * implementation contract, which is where they will delegate all function calls. * * An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon. */ contract UpgradeableBeacon is IBeacon, Ownable { address private _implementation; /** * @dev Emitted when the implementation returned by the beacon is changed. */ event Upgraded(address indexed implementation); /** * @dev Sets the address of the initial implementation, and the deployer account as the owner who can upgrade the * beacon. */ constructor(address implementation_) { _setImplementation(implementation_); } /** * @dev Returns the current implementation address. */ function implementation() public view virtual override returns (address) { return _implementation; } /** * @dev Upgrades the beacon to a new implementation. * * Emits an {Upgraded} event. * * Requirements: * * - msg.sender must be the owner of the contract. * - `newImplementation` must be a contract. */ function upgradeTo(address newImplementation) public virtual onlyOwner { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Sets the implementation contract address for this beacon * * Requirements: * * - `newImplementation` must be a contract. */ function _setImplementation(address newImplementation) private { require(Address.isContract(newImplementation), "UpgradeableBeacon: implementation is not a contract"); _implementation = newImplementation; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../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. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } }
{ "evmVersion": "cancun", "codegen": "yul", "optimizer": { "enabled": true, "mode": "3" }, "outputSelection": { "*": { "*": [ "abi" ] } }, "detectMissingLibraries": false, "forceEVMLA": false, "enableEraVMExtensions": true, "libraries": {} }
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"implementation","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
3cda3351cdf1a1ba65694ff86240327ca8ccc847d6a9c376c73e8c6f802f2015b1b1aea601000067d7f7241da4ecc452597c263fc4446c33d4f9f28d0141e52f17f805b8000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000bbffb52f005a2594cf1e04a44d87b2eb7e20af9
Deployed Bytecode
0x000200000000000200000060031002700000004a0330019700000001002001900000002f0000c13d0000008002000039000000400020043f000000040030008c000000bd0000413d000000000201043b000000e002200270000000580020009c0000008a0000a13d000000590020009c000000940000613d0000005a0020009c000000ac0000613d0000005b0020009c000000bd0000c13d000000240030008c000000bd0000413d0000000002000416000000000002004b000000bd0000c13d0000000401100370000000000101043b0000004d0010009c000000bd0000213d000000000200041a0000004d032001970000000005000411000000000053004b000000e90000c13d0000004d06100198000000fd0000c13d0000005601000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f0000005e01000041000000c40010043f0000005f01000041000000e40010043f000000600100004100000125000104300000000002000416000000000002004b000000bd0000c13d0000001f023000390000004b022001970000008002200039000000400020043f0000001f0430018f0000004c053001980000008002500039000000400000613d0000008006000039000000000701034f000000007807043c0000000006860436000000000026004b0000003c0000c13d000000000004004b0000004d0000613d000000000151034f0000000304400210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000000200030008c000000bd0000413d000000800200043d0000004d0020009c000000bd0000213d000000000100041a000200000002001d0000004e021001970000000006000411000000000262019f000000000020041b000000400200043d000100000002001d00000000020004140000004d051001970000004a0020009c0000004a02008041000000c0012002100000004f011001c70000800d0200003900000003030000390000005004000041012301190000040f00000001002001900000000202000029000000bd0000613d00000051010000410000000000100443000000040020044300000000010004140000004a0010009c0000004a01008041000000c00110021000000052011001c700008002020000390123011e0000040f0000000100200190000000f20000613d000000000101043b000000000001004b000000f30000c13d0000000103000029000000640130003900000054020000410000000000210435000000440130003900000055020000410000000000210435000000240130003900000033020000390000000000210435000000560100004100000000001304350000000401300039000000200200003900000000002104350000004a0030009c0000004a03008041000000400130021000000057011001c700000125000104300000005c0020009c000000b40000613d0000005d0020009c000000bd0000c13d0000000001000416000000000001004b000000bd0000c13d0000000101000039000000000101041a000000b00000013d0000000001000416000000000001004b000000bd0000c13d000000000100041a0000004d021001970000000005000411000000000052004b000000e90000c13d0000004e01100197000000000010041b00000000010004140000004a0010009c0000004a01008041000000c0011002100000004f011001c70000800d02000039000000030300003900000050040000410000000006000019012301190000040f0000000100200190000000bd0000613d0000000001000019000001240001042e0000000001000416000000000001004b000000bd0000c13d000000000100041a0000004d01100197000000800010043f0000006101000041000001240001042e000000240030008c000000bd0000413d0000000002000416000000000002004b000000bd0000c13d0000000401100370000000000301043b0000004d0030009c000000bf0000a13d00000000010000190000012500010430000000000100041a0000004d011001970000000002000411000000000021004b000000e90000c13d00000051010000410000000000100443000000040030044300000000010004140000004a0010009c0000004a01008041000000c00110021000000052011001c70000800202000039000200000003001d0123011e0000040f0000000100200190000000f20000613d0000000202000029000000000101043b000000000001004b000001090000c13d000000400100043d000000640210003900000054030000410000000000320435000000440210003900000055030000410000000000320435000000240210003900000033030000390000000000320435000000560200004100000000002104350000000402100039000000200300003900000000003204350000004a0010009c0000004a01008041000000400110021000000057011001c700000125000104300000005601000041000000800010043f0000002001000039000000840010043f000000a40010043f0000006201000041000000c40010043f00000063010000410000012500010430000000000001042f0000000101000039000000000201041a0000004e0220019700000002022001af000000000021041b0000002001000039000001000010044300000120000004430000005301000041000001240001042e0000004e01200197000000000161019f000000000010041b00000000010004140000004a0010009c0000004a01008041000000c0011002100000004f011001c70000800d0200003900000003030000390000005004000041000000a70000013d0000004d052001970000000101000039000000000201041a0000004e02200197000000000252019f000000000021041b00000000010004140000004a0010009c0000004a01008041000000c0011002100000004f011001c70000800d0200003900000002030000390000006404000041000000a70000013d000000000001042f0000011c002104210000000102000039000000000001042d0000000002000019000000000001042d00000121002104230000000102000039000000000001042d0000000002000019000000000001042d0000012300000432000001240001042e00000125000104300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e01806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b83020000020000000000000000000000000000002400000000000000000000000000000002000000000000000000000000000000400000010000000000000000006e206973206e6f74206120636f6e7472616374000000000000000000000000005570677261646561626c65426561636f6e3a20696d706c656d656e746174696f08c379a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008400000000000000000000000000000000000000000000000000000000000000000000000000000000715018a500000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000008da5cb5b00000000000000000000000000000000000000000000000000000000f2fde38b000000000000000000000000000000000000000000000000000000003659cfe6000000000000000000000000000000000000000000000000000000005c60da1b4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008400000080000000000000000000000000000000000000000000000000000000200000008000000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000064000000800000000000000000bc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b0000000000000000000000000000000000000000000000000000000000000000c4dac334df108e8e14745f2cd1b6f48dca995bf3c657c882659bae251fa72165
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000bbffb52f005a2594cf1e04a44d87b2eb7e20af9
-----Decoded View---------------
Arg [0] : _implementation (address): 0x0BBFfb52f005a2594Cf1e04a44d87b2eb7E20AF9
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000bbffb52f005a2594cf1e04a44d87b2eb7e20af9
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.