Commit 477dbc66 authored by Aurélien's avatar Aurélien Committed by GitHub

feat: add OP_SUCCINCT game type (#13780)

* feat: add OP_SUCCINCT game type

* fix: change OP_SUCCINCT to 5

* add ASTERISC_KONA
parent 5f4757cb
......@@ -29,6 +29,7 @@ const (
AsteriscGameType GameType = 2
AsteriscKonaGameType GameType = 3
SuperCannonGameType GameType = 4
OPSuccinctGameType GameType = 6
FastGameType GameType = 254
AlphabetGameType GameType = 255
UnknownGameType GameType = math.MaxUint32
......@@ -50,6 +51,8 @@ func (t GameType) String() string {
return "asterisc-kona"
case SuperCannonGameType:
return "super-cannon"
case OPSuccinctGameType:
return "op-succinct"
case FastGameType:
return "fast"
case AlphabetGameType:
......
......@@ -840,6 +840,8 @@ contract Deploy is Deployer {
gameTypeString = "Cannon";
} else if (rawGameType == GameTypes.ALPHABET.raw()) {
gameTypeString = "Alphabet";
} else if (rawGameType == GameTypes.OP_SUCCINCT.raw()) {
gameTypeString = "OP Succinct";
} else {
gameTypeString = "Unknown";
}
......
......@@ -51,12 +51,18 @@ library GameTypes {
/// @dev A dispute game type the uses the cannon vm.
GameType internal constant CANNON = GameType.wrap(0);
/// @dev A permissioned dispute game type the uses the cannon vm.
/// @dev A permissioned dispute game type that uses the cannon vm.
GameType internal constant PERMISSIONED_CANNON = GameType.wrap(1);
/// @notice A dispute game type the uses the asterisc VM
/// @notice A dispute game type that uses the asterisc VM
GameType internal constant ASTERISC = GameType.wrap(2);
/// @notice A dispute game type that uses the asterisc VM with Kona
GameType internal constant ASTERISC_KONA = GameType.wrap(3);
/// @notice A dispute game type that uses OP Succinct
GameType internal constant OP_SUCCINCT = GameType.wrap(6);
/// @notice A dispute game type with short game duration for testing withdrawals.
/// Not intended for production use.
GameType internal constant FAST = GameType.wrap(254);
......
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