Latest 25 from a total of 176 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Collect | 61149273 | 16 hrs ago | IN | 0 S | 0.01558244 | ||||
| Collect | 61079087 | 40 hrs ago | IN | 0 S | 0.01724891 | ||||
| Collect | 61026029 | 2 days ago | IN | 0 S | 0.01289048 | ||||
| Collect | 60954580 | 3 days ago | IN | 0 S | 0.01710434 | ||||
| Collect | 60885797 | 4 days ago | IN | 0 S | 0.00913851 | ||||
| Collect | 60807835 | 5 days ago | IN | 0 S | 0.01341102 | ||||
| Collect | 60727072 | 6 days ago | IN | 0 S | 0.01566698 | ||||
| Collect | 60656211 | 7 days ago | IN | 0 S | 0.01170691 | ||||
| Collect | 60597020 | 8 days ago | IN | 0 S | 0.0083335 | ||||
| Collect | 60542175 | 9 days ago | IN | 0 S | 0.01572431 | ||||
| Collect | 60476705 | 10 days ago | IN | 0 S | 0.00913851 | ||||
| Collect | 60404032 | 11 days ago | IN | 0 S | 0.01577031 | ||||
| Collect | 60334065 | 12 days ago | IN | 0 S | 0.01412194 | ||||
| Collect | 60252761 | 13 days ago | IN | 0 S | 0.0154288 | ||||
| Collect | 60184068 | 14 days ago | IN | 0 S | 0.01680916 | ||||
| Collect | 60111453 | 15 days ago | IN | 0 S | 0.016767 | ||||
| Collect | 60043836 | 16 days ago | IN | 0 S | 0.0177204 | ||||
| Collect | 59954648 | 17 days ago | IN | 0 S | 0.01527198 | ||||
| Collect | 59866576 | 18 days ago | IN | 0 S | 0.06893729 | ||||
| Collect | 59786622 | 19 days ago | IN | 0 S | 0.01686557 | ||||
| Collect | 59696522 | 20 days ago | IN | 0 S | 0.01333884 | ||||
| Collect | 59615773 | 21 days ago | IN | 0 S | 0.01315264 | ||||
| Collect | 59535010 | 22 days ago | IN | 0 S | 0.01718867 | ||||
| Collect | 59467075 | 23 days ago | IN | 0 S | 0.01536141 | ||||
| Collect | 59397563 | 24 days ago | IN | 0 S | 0.0083335 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers.
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | ||||
|---|---|---|---|---|---|---|---|
| 61149273 | 16 hrs ago | 0 S | |||||
| 61149273 | 16 hrs ago | 0 S | |||||
| 61079087 | 40 hrs ago | 0 S | |||||
| 61079087 | 40 hrs ago | 0 S | |||||
| 61026029 | 2 days ago | 0 S | |||||
| 61026029 | 2 days ago | 0 S | |||||
| 60954580 | 3 days ago | 0 S | |||||
| 60954580 | 3 days ago | 0 S | |||||
| 60885797 | 4 days ago | 0 S | |||||
| 60885797 | 4 days ago | 0 S | |||||
| 60807835 | 5 days ago | 0 S | |||||
| 60807835 | 5 days ago | 0 S | |||||
| 60727072 | 6 days ago | 0 S | |||||
| 60727072 | 6 days ago | 0 S | |||||
| 60656211 | 7 days ago | 0 S | |||||
| 60656211 | 7 days ago | 0 S | |||||
| 60597020 | 8 days ago | 0 S | |||||
| 60597020 | 8 days ago | 0 S | |||||
| 60542175 | 9 days ago | 0 S | |||||
| 60542175 | 9 days ago | 0 S | |||||
| 60476705 | 10 days ago | 0 S | |||||
| 60476705 | 10 days ago | 0 S | |||||
| 60404032 | 11 days ago | 0 S | |||||
| 60404032 | 11 days ago | 0 S | |||||
| 60334065 | 12 days ago | 0 S |
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x2F872623...81d649D30 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Proxy
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
import {Ownable} from "./Ownable.sol";
/**
* @title Proxy
* @dev Based on Origin Protocol InitializeGovernedUpgradeabilityProxy
* https://github.com/OriginProtocol/origin-dollar/blob/master/contracts/contracts/proxies/InitializeGovernedUpgradeabilityProxy.sol
* @author Origin Protocol Inc
*/
contract Proxy is Ownable {
/**
* @notice Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @notice Emitted when the implementation is upgraded.
* @param implementation Address of the new implementation.
*/
event Upgraded(address indexed implementation);
/**
* @notice Contract initializer with Owner enforcement
* @param _logic Address of the initial implementation.
* @param _initOwner Address of the initial Owner.
* @param _data Data to send as msg.data to the implementation to initialize
* the proxied contract.
* It should include the signature and the parameters of the function to be
* called, as described in
* https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
* This parameter is optional, if no data is given the initialization call
* to proxied contract will be skipped.
*/
function initialize(address _logic, address _initOwner, bytes calldata _data) public onlyOwner {
require(_implementation() == address(0));
assert(IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
_upgradeTo(_logic);
if (_data.length > 0) {
(bool success,) = _logic.delegatecall(_data);
require(success);
}
_setOwner(_initOwner);
}
/**
* @notice The address of the proxy admin. This is also the contract owner.
*/
function admin() external view returns (address) {
return _owner();
}
/**
* @notice The address of the implementation contract.
*/
function implementation() external view returns (address) {
return _implementation();
}
/**
* @notice Upgrade the backing implementation of the proxy.
* Only the admin can call this function.
* @param newImplementation Address of the new implementation.
*/
function upgradeTo(address newImplementation) external onlyOwner {
_upgradeTo(newImplementation);
}
/**
* @notice Upgrade the backing implementation of the proxy and call a function
* on the new implementation.
* This is useful to initialize the proxied contract.
* @param newImplementation Address of the new implementation.
* @param data Data to send as msg.data in the low level call.
* It should include the signature and the parameters of the function to be called, as described in
* https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
*/
function upgradeToAndCall(address newImplementation, bytes calldata data) external onlyOwner {
_upgradeTo(newImplementation);
(bool success,) = newImplementation.delegatecall(data);
require(success);
}
/**
* @notice Fallback function.
* Implemented entirely in `_delegate`.
*/
fallback() external payable {
_delegate(_implementation());
}
/**
* @dev Delegates execution to an implementation contract.
* This is a low level function that doesn't return to its internal call site.
* It will return to the external caller whatever the implementation returns.
* @param _impl Address to delegate.
*/
function _delegate(address _impl) internal {
// solhint-disable-next-line no-inline-assembly
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize())
// Call the implementation.
// out and outsize are 0 because we don't know the size yet.
let result := delegatecall(gas(), _impl, 0, calldatasize(), 0, 0)
// Copy the returned data.
returndatacopy(0, 0, returndatasize())
switch result
// delegatecall returns 0 on error.
case 0 { revert(0, returndatasize()) }
default { return(0, returndatasize()) }
}
}
/**
* @dev Returns the current implementation.
* @return impl Address of the current implementation
*/
function _implementation() internal view returns (address impl) {
bytes32 slot = IMPLEMENTATION_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
impl := sload(slot)
}
}
/**
* @dev Upgrades the proxy to a new implementation.
* @param newImplementation Address of the new implementation.
*/
function _upgradeTo(address newImplementation) internal {
require(newImplementation.code.length > 0, "Cannot set a proxy implementation to a non-contract address");
bytes32 slot = IMPLEMENTATION_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
sstore(slot, newImplementation)
}
emit Upgraded(newImplementation);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
/**
* @title Base contract that provides ownership control
* @author Origin Protocol Inc
*/
contract Ownable {
/// @notice The slot used to store the owner of the contract.
/// This is also used as the proxy admin.
/// keccak256(“eip1967.proxy.admin”) - 1 per EIP 1967
bytes32 internal constant OWNER_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
event AdminChanged(address previousAdmin, address newAdmin);
constructor() {
assert(OWNER_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
_setOwner(msg.sender);
}
/// @notice The contract owner and proxy admin.
function owner() external view returns (address) {
return _owner();
}
/// @notice Set the owner and proxy admin of the contract.
/// @param newOwner The address of the new owner.
function setOwner(address newOwner) external onlyOwner {
_setOwner(newOwner);
}
function _owner() internal view returns (address ownerOut) {
bytes32 position = OWNER_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
ownerOut := sload(position)
}
}
function _setOwner(address newOwner) internal {
emit AdminChanged(_owner(), newOwner);
bytes32 position = OWNER_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
sstore(position, newOwner)
}
}
function _onlyOwner() internal view {
require(msg.sender == _owner(), "ARM: Only owner can call this function.");
}
modifier onlyOwner() {
_onlyOwner();
_;
}
}{
"remappings": [
"contracts/=src/contracts/",
"script/=script/",
"test/=test/",
"utils/=src/contracts/utils/",
"forge-std/=dependencies/forge-std-1.9.3/src/",
"@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.0.2/",
"@openzeppelin/contracts-upgradeable/=dependencies/@openzeppelin-contracts-upgradeable-5.0.2/",
"@solmate/=dependencies/solmate-6.7.0/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "shanghai",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initOwner","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
0x608060405234801561000f575f80fd5b5061003b60017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61046100cd565b5f805160206107e683398151915214610056576100566100f2565b61005f33610064565b610106565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61009a5f805160206107e68339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a15f805160206107e683398151915255565b818103818111156100ec57634e487b7160e01b5f52601160045260245ffd5b92915050565b634e487b7160e01b5f52600160045260245ffd5b6106d3806101135f395ff3fe60806040526004361061006f575f3560e01c80635c60da1b1161004d5780635c60da1b146100eb5780638da5cb5b1461011b578063cf7a1d771461012f578063f851a4401461011b5761006f565b806313af40351461008e5780633659cfe6146100ad5780634f1ef286146100cc575b61008c6100875f8051602061067e8339815191525490565b61014e565b005b348015610099575f80fd5b5061008c6100a8366004610504565b61016c565b3480156100b8575f80fd5b5061008c6100c7366004610504565b610180565b3480156100d7575f80fd5b5061008c6100e6366004610569565b610191565b3480156100f6575f80fd5b506100ff61020d565b6040516001600160a01b03909116815260200160405180910390f35b348015610126575f80fd5b506100ff610228565b34801561013a575f80fd5b5061008c6101493660046105b8565b61023e565b365f80375f80365f845af43d5f803e808015610168573d5ff35b3d5ffd5b610174610333565b61017d816103b9565b50565b610188610333565b61017d81610422565b610199610333565b6101a283610422565b5f836001600160a01b031683836040516101bd929190610615565b5f60405180830381855af49150503d805f81146101f5576040519150601f19603f3d011682016040523d82523d5f602084013e6101fa565b606091505b5050905080610207575f80fd5b50505050565b5f6102235f8051602061067e8339815191525490565b905090565b5f6102235f8051602061065e8339815191525490565b610246610333565b5f61025c5f8051602061067e8339815191525490565b6001600160a01b03161461026e575f80fd5b61029960017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610624565b5f8051602061067e833981519152146102b4576102b4610649565b6102bd84610422565b801561032a575f846001600160a01b031683836040516102de929190610615565b5f60405180830381855af49150503d805f8114610316576040519150601f19603f3d011682016040523d82523d5f602084013e61031b565b606091505b5050905080610328575f80fd5b505b610207836103b9565b5f8051602061065e833981519152546001600160a01b0316336001600160a01b0316146103b75760405162461bcd60e51b815260206004820152602760248201527f41524d3a204f6e6c79206f776e65722063616e2063616c6c20746869732066756044820152663731ba34b7b71760c91b60648201526084015b60405180910390fd5b565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103ef5f8051602061065e8339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a15f8051602061065e83398151915255565b5f816001600160a01b03163b116104a15760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e74726163742061646472657373000000000060648201526084016103ae565b5f8051602061067e8339815191528181556040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a25050565b80356001600160a01b03811681146104ff575f80fd5b919050565b5f60208284031215610514575f80fd5b61051d826104e9565b9392505050565b5f8083601f840112610534575f80fd5b50813567ffffffffffffffff81111561054b575f80fd5b602083019150836020828501011115610562575f80fd5b9250929050565b5f805f6040848603121561057b575f80fd5b610584846104e9565b9250602084013567ffffffffffffffff81111561059f575f80fd5b6105ab86828701610524565b9497909650939450505050565b5f805f80606085870312156105cb575f80fd5b6105d4856104e9565b93506105e2602086016104e9565b9250604085013567ffffffffffffffff8111156105fd575f80fd5b61060987828801610524565b95989497509550505050565b818382375f9101908152919050565b8181038181111561064357634e487b7160e01b5f52601160045260245ffd5b92915050565b634e487b7160e01b5f52600160045260245ffdfeb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220b436b44ee84332e5e44be1ae66ac2231a1ece22319a3e119304a8684d9b5bf2e64736f6c63430008170033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103
Deployed Bytecode
0x60806040526004361061006f575f3560e01c80635c60da1b1161004d5780635c60da1b146100eb5780638da5cb5b1461011b578063cf7a1d771461012f578063f851a4401461011b5761006f565b806313af40351461008e5780633659cfe6146100ad5780634f1ef286146100cc575b61008c6100875f8051602061067e8339815191525490565b61014e565b005b348015610099575f80fd5b5061008c6100a8366004610504565b61016c565b3480156100b8575f80fd5b5061008c6100c7366004610504565b610180565b3480156100d7575f80fd5b5061008c6100e6366004610569565b610191565b3480156100f6575f80fd5b506100ff61020d565b6040516001600160a01b03909116815260200160405180910390f35b348015610126575f80fd5b506100ff610228565b34801561013a575f80fd5b5061008c6101493660046105b8565b61023e565b365f80375f80365f845af43d5f803e808015610168573d5ff35b3d5ffd5b610174610333565b61017d816103b9565b50565b610188610333565b61017d81610422565b610199610333565b6101a283610422565b5f836001600160a01b031683836040516101bd929190610615565b5f60405180830381855af49150503d805f81146101f5576040519150601f19603f3d011682016040523d82523d5f602084013e6101fa565b606091505b5050905080610207575f80fd5b50505050565b5f6102235f8051602061067e8339815191525490565b905090565b5f6102235f8051602061065e8339815191525490565b610246610333565b5f61025c5f8051602061067e8339815191525490565b6001600160a01b03161461026e575f80fd5b61029960017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610624565b5f8051602061067e833981519152146102b4576102b4610649565b6102bd84610422565b801561032a575f846001600160a01b031683836040516102de929190610615565b5f60405180830381855af49150503d805f8114610316576040519150601f19603f3d011682016040523d82523d5f602084013e61031b565b606091505b5050905080610328575f80fd5b505b610207836103b9565b5f8051602061065e833981519152546001600160a01b0316336001600160a01b0316146103b75760405162461bcd60e51b815260206004820152602760248201527f41524d3a204f6e6c79206f776e65722063616e2063616c6c20746869732066756044820152663731ba34b7b71760c91b60648201526084015b60405180910390fd5b565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103ef5f8051602061065e8339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a15f8051602061065e83398151915255565b5f816001600160a01b03163b116104a15760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e74726163742061646472657373000000000060648201526084016103ae565b5f8051602061067e8339815191528181556040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a25050565b80356001600160a01b03811681146104ff575f80fd5b919050565b5f60208284031215610514575f80fd5b61051d826104e9565b9392505050565b5f8083601f840112610534575f80fd5b50813567ffffffffffffffff81111561054b575f80fd5b602083019150836020828501011115610562575f80fd5b9250929050565b5f805f6040848603121561057b575f80fd5b610584846104e9565b9250602084013567ffffffffffffffff81111561059f575f80fd5b6105ab86828701610524565b9497909650939450505050565b5f805f80606085870312156105cb575f80fd5b6105d4856104e9565b93506105e2602086016104e9565b9250604085013567ffffffffffffffff8111156105fd575f80fd5b61060987828801610524565b95989497509550505050565b818382375f9101908152919050565b8181038181111561064357634e487b7160e01b5f52601160045260245ffd5b92915050565b634e487b7160e01b5f52600160045260245ffdfeb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220b436b44ee84332e5e44be1ae66ac2231a1ece22319a3e119304a8684d9b5bf2e64736f6c63430008170033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.