• Inphi's avatar
    feat(ctb): Refactor LibPosition.sol to rep gindex (#6046) · 7ce6e3fa
    Inphi authored
    * feat(ctb): Refactor LibPosition.sol to rep gindex
    
    Generalized Indices are a more succinct and easy to understand model for
    positions in the dispute game tree. Implementation is often more
    efficient too and can avoid branching logic for tree traversal.
    
    * update .gas-snapshot
    
    * update .gas-snapshot
    
    * Fix `FaultDisputeGame` tests
    
    * lint; gas snapshot
    
    * Update packages/contracts-bedrock/contracts/dispute/lib/LibPosition.sol
    Co-authored-by: default avatarclabby <ben@clab.by>
    
    * opt rightIndex
    
    * opt rightIndex
    
    * opt depth
    
    * update gas-snapshot
    
    ---------
    Co-authored-by: default avatarclabby <ben@clab.by>
    7ce6e3fa
FaultDisputeGame.sol 9.52 KB