Commit 1d2054e8 authored by clabby's avatar clabby Committed by GitHub

feat(ctb): Subgame rez changes (#10148)

* fault-proofs: Fix subgame resolution mechanics

* Fix tests

* test changes + off-by-one

* :broom:

* reuse clock code

* bindgen, lint, etc.

* semver

* bindings, locks, etc.

* bindings, locks, etc.

* Unhide dup rez check

* Remove subgameAtRootResolved

---------
Co-authored-by: default avatarinphi <mlaw2501@gmail.com>
parent caaa0d08
This diff is collapsed.
...@@ -112,8 +112,8 @@ ...@@ -112,8 +112,8 @@
"sourceCodeHash": "0x8545910bdb40f5e706a0ae5ed274cabc6d1f17be92d497a490d5732d74ac9c59" "sourceCodeHash": "0x8545910bdb40f5e706a0ae5ed274cabc6d1f17be92d497a490d5732d74ac9c59"
}, },
"src/dispute/FaultDisputeGame.sol": { "src/dispute/FaultDisputeGame.sol": {
"initCodeHash": "0xcd35529eb99878f434b2e899d1937365204fd014333c1448a0eae8b1c765349b", "initCodeHash": "0x4ea53ec8274b7a25012aab6655cd84a60b4cbcdba95ad199085fd81910731bee",
"sourceCodeHash": "0xc5f90543341e426d0fbc834e997a727c9b71e118491a935afd61fe053c134811" "sourceCodeHash": "0x778aafed19b2d8dddd61a44d39e94fb3139a89e416a314572534064ab8823ee1"
}, },
"src/dispute/weth/DelayedWETH.sol": { "src/dispute/weth/DelayedWETH.sol": {
"initCodeHash": "0x7b6ec89eaec09e369426e73161a9c6932223bb1f974377190c3f6f552995da35", "initCodeHash": "0x7b6ec89eaec09e369426e73161a9c6932223bb1f974377190c3f6f552995da35",
......
...@@ -299,6 +299,25 @@ ...@@ -299,6 +299,25 @@
"stateMutability": "view", "stateMutability": "view",
"type": "function" "type": "function"
}, },
{
"inputs": [
{
"internalType": "uint256",
"name": "_claimIndex",
"type": "uint256"
}
],
"name": "getChallengerDuration",
"outputs": [
{
"internalType": "Duration",
"name": "duration_",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{ {
"inputs": [ "inputs": [
{ {
......
...@@ -309,6 +309,25 @@ ...@@ -309,6 +309,25 @@
"stateMutability": "view", "stateMutability": "view",
"type": "function" "type": "function"
}, },
{
"inputs": [
{
"internalType": "uint256",
"name": "_claimIndex",
"type": "uint256"
}
],
"name": "getChallengerDuration",
"outputs": [
{
"internalType": "Duration",
"name": "duration_",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{ {
"inputs": [ "inputs": [
{ {
......
...@@ -49,24 +49,24 @@ ...@@ -49,24 +49,24 @@
"type": "mapping(uint256 => uint256[])" "type": "mapping(uint256 => uint256[])"
}, },
{ {
"bytes": "1", "bytes": "32",
"label": "subgameAtRootResolved", "label": "resolvedSubgames",
"offset": 0, "offset": 0,
"slot": "5", "slot": "5",
"type": "bool" "type": "mapping(uint256 => bool)"
}, },
{ {
"bytes": "1", "bytes": "1",
"label": "initialized", "label": "initialized",
"offset": 1, "offset": 0,
"slot": "5", "slot": "6",
"type": "bool" "type": "bool"
}, },
{ {
"bytes": "64", "bytes": "64",
"label": "startingOutputRoot", "label": "startingOutputRoot",
"offset": 0, "offset": 0,
"slot": "6", "slot": "7",
"type": "struct OutputRoot" "type": "struct OutputRoot"
} }
] ]
\ No newline at end of file
...@@ -49,24 +49,24 @@ ...@@ -49,24 +49,24 @@
"type": "mapping(uint256 => uint256[])" "type": "mapping(uint256 => uint256[])"
}, },
{ {
"bytes": "1", "bytes": "32",
"label": "subgameAtRootResolved", "label": "resolvedSubgames",
"offset": 0, "offset": 0,
"slot": "5", "slot": "5",
"type": "bool" "type": "mapping(uint256 => bool)"
}, },
{ {
"bytes": "1", "bytes": "1",
"label": "initialized", "label": "initialized",
"offset": 1, "offset": 0,
"slot": "5", "slot": "6",
"type": "bool" "type": "bool"
}, },
{ {
"bytes": "64", "bytes": "64",
"label": "startingOutputRoot", "label": "startingOutputRoot",
"offset": 0, "offset": 0,
"slot": "6", "slot": "7",
"type": "struct OutputRoot" "type": "struct OutputRoot"
} }
] ]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment