Open Chomtana opened 3 months ago
Merged and pushed the new version
Using OPOutputLookup contract I have built at https://github.com/Opti-domains/dispute-game-lookup/blob/main/src/OPOutputLookup.sol to do the calculation and advanced search in a single call. So, the lowest latency one can achieve.
Pending unit test on https://github.com/Opti-domains/dispute-game-lookup
However, it works manual testing: https://app.ens.domains/disputegame.eth?tab=records (On Sepolia testnet)
Hi @Arachnid @makoto
Sorry for the delay, I have been busy for these weeks!
Helper contracts and libraries have been merged into the repo and a deployment script to deterministically deploy OPOutputLookup have been added.
Some trick has been implemented to be able to import @eth-optimism/contracts-bedrock
into the contracts rather than copying the code.
Current contract and gateway (with app variable moved into a local variable) has been successfully tested on current implementation.
https://app.ens.domains/disputegame.eth?tab=records (Sepolia)
An improved approach to #36
In this version, there's no need to split the code into two different files. We first try to find the index using the dispute game. If the dispute game is unavailable, we will fall back to using L2OutputOracle.
The function that needs L2OutputOracle has been replaced with OptimismPortalProxy, which is the core of the OP Stack. OptimismPortalProxy can derive both L2OutputOracle and DisputeGameFactory.
This implementation has been tested and works well.