Skip to content

Commit 53f51da

Browse files
committed
isGameAirgapped
1 parent 4844149 commit 53f51da

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/contracts-bedrock/interfaces/dispute/IAnchorStateRegistry.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface IAnchorStateRegistry {
2929
)
3030
external;
3131

32-
function isGameBeyondAirgap(IDisputeGame _game) external view returns (bool);
32+
function isGameAirgapped(IDisputeGame _game) external view returns (bool);
3333
function isGameBlacklisted(IDisputeGame _game) external view returns (bool);
3434
function isGameProper(IDisputeGame _game) external view returns (bool);
3535
function isGameRegistered(IDisputeGame _game) external view returns (bool);

packages/contracts-bedrock/snapshots/abi/AnchorStateRegistry.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"type": "address"
121121
}
122122
],
123-
"name": "isGameBeyondAirgap",
123+
"name": "isGameAirgapped",
124124
"outputs": [
125125
{
126126
"internalType": "bool",
@@ -397,4 +397,4 @@
397397
"name": "AnchorStateRegistry_Unauthorized",
398398
"type": "error"
399399
}
400-
]
400+
]

packages/contracts-bedrock/src/dispute/AnchorStateRegistry.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ contract AnchorStateRegistry is Initializable, ISemver {
163163
/// @notice Returns whether a game is beyond the airgap period.
164164
/// @param _game The game to check.
165165
/// @return Whether the game is beyond the airgap period.
166-
function isGameBeyondAirgap(IDisputeGame _game) public view returns (bool) {
166+
function isGameAirgapped(IDisputeGame _game) public view returns (bool) {
167167
return block.timestamp - _game.resolvedAt().raw() > portal.disputeGameFinalityDelaySeconds();
168168
}
169169

@@ -215,7 +215,7 @@ contract AnchorStateRegistry is Initializable, ISemver {
215215
}
216216

217217
// Game must be beyond the airgap period.
218-
if (!isGameBeyondAirgap(_game)) {
218+
if (!isGameAirgapped(_game)) {
219219
return false;
220220
}
221221

packages/contracts-bedrock/test/universal/Specs.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ contract Specification_Test is CommonTest {
558558
_addSpec({ _name: "AnchorStateRegistry", _sel: _getSel("getAnchorRoot()") });
559559
_addSpec({ _name: "AnchorStateRegistry", _sel: _getSel("disputeGameFactory()") });
560560
_addSpec({ _name: "AnchorStateRegistry", _sel: _getSel("initialize(address,address,address,(bytes32,uint256))") });
561-
_addSpec({ _name: "AnchorStateRegistry", _sel: _getSel("isGameBeyondAirgap(address)") });
561+
_addSpec({ _name: "AnchorStateRegistry", _sel: _getSel("isGameAirgapped(address)") });
562562
_addSpec({ _name: "AnchorStateRegistry", _sel: _getSel("isGameBlacklisted(address)") });
563563
_addSpec({ _name: "AnchorStateRegistry", _sel: _getSel("isGameClaimValid(address)") });
564564
_addSpec({ _name: "AnchorStateRegistry", _sel: _getSel("isGameFinalized(address)") });

0 commit comments

Comments
 (0)