Skip to content

Commit

Permalink
add Kailua dispute game type
Browse files Browse the repository at this point in the history
  • Loading branch information
hashcashier committed Jan 26, 2025
1 parent 4720bc7 commit a0cf6fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions op-challenger/game/fault/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const (
OPSuccinctGameType GameType = 6
FastGameType GameType = 254
AlphabetGameType GameType = 255
KailuaGameType GameType = 1337
UnknownGameType GameType = math.MaxUint32
)

Expand All @@ -57,6 +58,8 @@ func (t GameType) String() string {
return "fast"
case AlphabetGameType:
return "alphabet"
case KailuaGameType:
return "kailua"
default:
return fmt.Sprintf("<invalid: %d>", t)
}
Expand Down
2 changes: 2 additions & 0 deletions packages/contracts-bedrock/scripts/deploy/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,8 @@ contract Deploy is Deployer {
gameTypeString = "Alphabet";
} else if (rawGameType == GameTypes.OP_SUCCINCT.raw()) {
gameTypeString = "OP Succinct";
} else if (rawGameType == GameTypes.KAILUA.raw()) {
gameTypeString = "Kailua";
} else {
gameTypeString = "Unknown";
}
Expand Down
3 changes: 3 additions & 0 deletions packages/contracts-bedrock/src/dispute/lib/Types.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ library GameTypes {
/// @notice A dispute game type that uses an alphabet vm.
/// Not intended for production use.
GameType internal constant ALPHABET = GameType.wrap(255);

/// @notice A dispute game type that uses RISC Zero's Kailua
GameType internal constant KAILUA = GameType.wrap(1337);
}

/// @title VMStatuses
Expand Down

0 comments on commit a0cf6fc

Please sign in to comment.