• Mark Tyneway's avatar
    contracts-bedrock: OptimismPortal reduce codesize (#10117) · 3ae85c93
    Mark Tyneway authored
    * contracts-bedrock: OptimismPortal reduce codesize
    
    Reduce the codesize of the OptimismPortal and the OptimismPortal2
    by converting `require` statements into custom error reverts.
    Also remove legacy getters, they only bloat codesize.
    
    This will help to reduce the diff of when we go to production
    with custom gas token as that feature put the contract over the
    codesize limit.
    
    * contracts-bedrock: cleanup errors
    
    * contracts-bedrock: more custom errors
    
    * contracts-bedrock: updates to portal
    
    * contracts-bedrock: error comments
    
    * contracts-bedrock: more custom errors
    
    * portal: fixup style
    
    * spec: update
    
    * op-bindings: regenerate
    
    * contracts-bedrock: update abi snapshots
    
    * snapshots: kontrol deploy
    
    * lint: fix
    
    * op-chain-ops: cleanup tests
    
    * contracts-bedrock: fix invariant tests
    
    * contracts-bedrock: correct assertion
    Co-authored-by: default avatarclabby <ben@clab.by>
    
    * op-bindings: regenerate
    
    * contracts-bedrock: cleanup style
    
    * contracts-bedrock: update locks
    
    * ctb: update test
    
    * snapshots: update
    
    * contracts-bedrock: simplify require
    
    * contracts-bedrock: require
    
    * contracts-bedrock: reduce diff
    
    * bindings: regenerate
    
    * snapshots: update
    
    * contracts-bedrock: small update
    
    * contracts-bedrock: more cleanup
    
    * contracts-bedrock: update snapshots
    
    * semver-lock: update
    
    * lint: fix
    
    * contracts-bedrock: fix tests
    
    * contracts-bedrock: fix test
    
    * kontrol: update
    
    * contracts-bedrock: delete dead errors
    
    * temp: fixes for kontrol
    
    * invariant-docs: regenerate
    
    ---------
    Co-authored-by: default avatarclabby <ben@clab.by>
    3ae85c93
ChainAssertions.sol 20.1 KB