• Mark Tyneway's avatar
    contracts-bedrock: CrossDomainOwnable · 85232179
    Mark Tyneway authored
    Adds 2 new contracts to the `L2` directory. Both contracts
    extend OZ `Ownable` such that the `onlyOwner` modifer logic is
    overwritten.
    
    `CrossDomainOwnable` is designed for ownership of contracts on L2
    when the communication goes directly through the `OptimismPortal`.
    This is not safe for when the communication goes through the
    `CrossDomainMessenger` system, as `msg.sender` would be the
    address of the `L2CrossDomainMessenger` and if that is the owner
    of the L2 contract then anybody going through the messenger system
    would have owner permissions on the contract.
    
    `CrossDomainOwnable2` is designed for ownership of contracts on L2
    when the communication goes through the messenger system. It checks
    for the L1 message sender value that is set in the
    `L2CrossDomainMessenger` contract.
    
    Both of these contracts include test coverage and are relatively simple.
    
    contracts-bedrock: review fixes
    
    contracts-bedrock: make the messenger value constant
    
    contracts: fix
    
    contracts-bedrock: update snapshot
    
    lint
    
    fix test
    85232179
Name
Last commit
Last update
..
BenchmarkTest.t.sol Loading commit data...
CommonTest.t.sol Loading commit data...
CrossDomainOwnable.t.sol Loading commit data...
CrossDomainOwnable2.t.sol Loading commit data...
DeployerWhitelist.t.sol Loading commit data...
Encoding.t.sol Loading commit data...
GasPriceOracle.t.sol Loading commit data...
Hashing.t.sol Loading commit data...
L1Block.t.sol Loading commit data...
L1BlockNumber.t.sol Loading commit data...
L1CrossDomainMessenger.t.sol Loading commit data...
L1StandardBridge.t.sol Loading commit data...
L2CrossDomainMessenger.t.sol Loading commit data...
L2OutputOracle.t.sol Loading commit data...
L2StandardBridge.t.sol Loading commit data...
L2ToL1MessagePasser.t.sol Loading commit data...
LegacyERC20ETH.t.sol Loading commit data...
OptimismMintableERC20.t.sol Loading commit data...
OptimismMintableERC20Factory.t.sol Loading commit data...
OptimismPortal.t.sol Loading commit data...
Proxy.t.sol Loading commit data...
ProxyAdmin.t.sol Loading commit data...
RLP.t.sol Loading commit data...
RLPReader.t.sol Loading commit data...
RLPWriter.t.sol Loading commit data...
ResourceMetering.t.sol Loading commit data...
SafeCall.t.sol Loading commit data...
Semver.t.sol Loading commit data...
SequencerFeeVault.t.sol Loading commit data...