@tokamak-network/thanos-contracts
Version:
1 lines • 19.5 kB
JSON
{"abi":[],"bytecode":{"object":"0x","linkReferences":{}},"deployedBytecode":{"object":"0x","linkReferences":{}},"ast":{"absolutePath":"src/dispute/lib/Errors.sol","id":54406,"exportedSymbols":{"AlreadyInitialized":[54309],"AnchorRootNotFound":[54384],"BadAuth":[54399],"BadExtraData":[54321],"BlockNumberMatches":[54393],"BondTransferFailed":[54318],"CannotDefendRootClaim":[54324],"Claim":[54755],"ClaimAboveSplit":[54366],"ClaimAlreadyExists":[54327],"ClaimAlreadyResolved":[54363],"Clock":[54663],"ClockNotExpired":[54339],"ClockTimeExceeded":[54336],"DuplicateStep":[54381],"Duration":[54787],"GameAlreadyExists":[54300],"GameDepthExceeded":[54342],"GameId":[54717],"GameNotInProgress":[54333],"GameType":[54847],"Hash":[54802],"IncorrectBondAmount":[54312],"InvalidChallengePeriod":[54375],"InvalidClockExtension":[54372],"InvalidDisputedClaimIndex":[54330],"InvalidGameStatus":[54405],"InvalidHeaderRLP":[54390],"InvalidLocalIdent":[54357],"InvalidOutputRootProof":[54387],"InvalidParent":[54345],"InvalidPrestate":[54348],"InvalidSplitDepth":[54369],"L1HeadTooOld":[54354],"L2BlockNumberChallenged":[54396],"LibClaim":[54785],"LibClock":[54715],"LibDuration":[54800],"LibGameId":[54753],"LibGameType":[54860],"LibHash":[54815],"LibPosition":[54626],"LibTimestamp":[54830],"LibVMStatus":[54845],"MaxDepthTooLarge":[54378],"NoCreditToClaim":[54315],"NoImplementation":[54294],"OutOfOrderResolution":[54360],"Position":[54413],"Timestamp":[54817],"UnexpectedRootClaim":[54306],"UnregisteredGame":[54402],"VMStatus":[54832],"ValidStep":[54351]},"nodeType":"SourceUnit","src":"32:5467:57","nodes":[{"id":54287,"nodeType":"PragmaDirective","src":"32:24:57","nodes":[],"literals":["solidity","^","0.8",".15"]},{"id":54288,"nodeType":"ImportDirective","src":"58:36:57","nodes":[],"absolutePath":"src/dispute/lib/LibUDT.sol","file":"src/dispute/lib/LibUDT.sol","nameLocation":"-1:-1:-1","scope":54406,"sourceUnit":54861,"symbolAliases":[],"unitAlias":""},{"id":54294,"nodeType":"ErrorDefinition","src":"436:42:57","nodes":[],"documentation":{"id":54289,"nodeType":"StructuredDocumentation","src":"292:144:57","text":"@notice Thrown when a dispute game is attempted to be created with an unsupported game type.\n @param gameType The unsupported game type."},"errorSelector":"031c6de4","name":"NoImplementation","nameLocation":"442:16:57","parameters":{"id":54293,"nodeType":"ParameterList","parameters":[{"constant":false,"id":54292,"mutability":"mutable","name":"gameType","nameLocation":"468:8:57","nodeType":"VariableDeclaration","scope":54294,"src":"459:17:57","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_GameType_$54847","typeString":"GameType"},"typeName":{"id":54291,"nodeType":"UserDefinedTypeName","pathNode":{"id":54290,"name":"GameType","nameLocations":["459:8:57"],"nodeType":"IdentifierPath","referencedDeclaration":54847,"src":"459:8:57"},"referencedDeclaration":54847,"src":"459:8:57","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_GameType_$54847","typeString":"GameType"}},"visibility":"internal"}],"src":"458:19:57"}},{"id":54300,"nodeType":"ErrorDefinition","src":"633:35:57","nodes":[],"documentation":{"id":54295,"nodeType":"StructuredDocumentation","src":"480:153:57","text":"@notice Thrown when a dispute game that already exists is attempted to be created.\n @param uuid The UUID of the dispute game that already exists."},"errorSelector":"014f6fe5","name":"GameAlreadyExists","nameLocation":"639:17:57","parameters":{"id":54299,"nodeType":"ParameterList","parameters":[{"constant":false,"id":54298,"mutability":"mutable","name":"uuid","nameLocation":"662:4:57","nodeType":"VariableDeclaration","scope":54300,"src":"657:9:57","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_Hash_$54802","typeString":"Hash"},"typeName":{"id":54297,"nodeType":"UserDefinedTypeName","pathNode":{"id":54296,"name":"Hash","nameLocations":["657:4:57"],"nodeType":"IdentifierPath","referencedDeclaration":54802,"src":"657:4:57"},"referencedDeclaration":54802,"src":"657:4:57","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_Hash_$54802","typeString":"Hash"}},"visibility":"internal"}],"src":"656:11:57"}},{"id":54306,"nodeType":"ErrorDefinition","src":"873:43:57","nodes":[],"documentation":{"id":54301,"nodeType":"StructuredDocumentation","src":"670:203:57","text":"@notice Thrown when the root claim has an unexpected VM status.\n Some games can only start with a root-claim with a specific status.\n @param rootClaim is the claim that was unexpected."},"errorSelector":"f40239db","name":"UnexpectedRootClaim","nameLocation":"879:19:57","parameters":{"id":54305,"nodeType":"ParameterList","parameters":[{"constant":false,"id":54304,"mutability":"mutable","name":"rootClaim","nameLocation":"905:9:57","nodeType":"VariableDeclaration","scope":54306,"src":"899:15:57","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_Claim_$54755","typeString":"Claim"},"typeName":{"id":54303,"nodeType":"UserDefinedTypeName","pathNode":{"id":54302,"name":"Claim","nameLocations":["899:5:57"],"nodeType":"IdentifierPath","referencedDeclaration":54755,"src":"899:5:57"},"referencedDeclaration":54755,"src":"899:5:57","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_Claim_$54755","typeString":"Claim"}},"visibility":"internal"}],"src":"898:17:57"}},{"id":54309,"nodeType":"ErrorDefinition","src":"1183:27:57","nodes":[],"documentation":{"id":54307,"nodeType":"StructuredDocumentation","src":"1114:69:57","text":"@notice Thrown when a dispute game has already been initialized."},"errorSelector":"0dc149f0","name":"AlreadyInitialized","nameLocation":"1189:18:57","parameters":{"id":54308,"nodeType":"ParameterList","parameters":[],"src":"1207:2:57"}},{"id":54312,"nodeType":"ErrorDefinition","src":"1331:28:57","nodes":[],"documentation":{"id":54310,"nodeType":"StructuredDocumentation","src":"1212:119:57","text":"@notice Thrown when a supplied bond is not equal to the required bond amount to cover the cost of the interaction."},"errorSelector":"8620aa19","name":"IncorrectBondAmount","nameLocation":"1337:19:57","parameters":{"id":54311,"nodeType":"ParameterList","parameters":[],"src":"1356:2:57"}},{"id":54315,"nodeType":"ErrorDefinition","src":"1431:24:57","nodes":[],"documentation":{"id":54313,"nodeType":"StructuredDocumentation","src":"1361:70:57","text":"@notice Thrown when a credit claim is attempted for a value of 0."},"errorSelector":"17bfe5f7","name":"NoCreditToClaim","nameLocation":"1437:15:57","parameters":{"id":54314,"nodeType":"ParameterList","parameters":[],"src":"1452:2:57"}},{"id":54318,"nodeType":"ErrorDefinition","src":"1536:27:57","nodes":[],"documentation":{"id":54316,"nodeType":"StructuredDocumentation","src":"1457:79:57","text":"@notice Thrown when the transfer of credit to a recipient account reverts."},"errorSelector":"83e6cc6b","name":"BondTransferFailed","nameLocation":"1542:18:57","parameters":{"id":54317,"nodeType":"ParameterList","parameters":[],"src":"1560:2:57"}},{"id":54321,"nodeType":"ErrorDefinition","src":"1686:21:57","nodes":[],"documentation":{"id":54319,"nodeType":"StructuredDocumentation","src":"1565:121:57","text":"@notice Thrown when the `extraData` passed to the CWIA proxy is of improper length, or contains invalid information."},"errorSelector":"9824bdab","name":"BadExtraData","nameLocation":"1692:12:57","parameters":{"id":54320,"nodeType":"ParameterList","parameters":[],"src":"1704:2:57"}},{"id":54324,"nodeType":"ErrorDefinition","src":"1780:30:57","nodes":[],"documentation":{"id":54322,"nodeType":"StructuredDocumentation","src":"1709:71:57","text":"@notice Thrown when a defense against the root claim is attempted."},"errorSelector":"a42637bc","name":"CannotDefendRootClaim","nameLocation":"1786:21:57","parameters":{"id":54323,"nodeType":"ParameterList","parameters":[],"src":"1807:2:57"}},{"id":54327,"nodeType":"ErrorDefinition","src":"1890:27:57","nodes":[],"documentation":{"id":54325,"nodeType":"StructuredDocumentation","src":"1812:78:57","text":"@notice Thrown when a claim is attempting to be made that already exists."},"errorSelector":"80497e3b","name":"ClaimAlreadyExists","nameLocation":"1896:18:57","parameters":{"id":54326,"nodeType":"ParameterList","parameters":[],"src":"1914:2:57"}},{"id":54330,"nodeType":"ErrorDefinition","src":"1998:34:57","nodes":[],"documentation":{"id":54328,"nodeType":"StructuredDocumentation","src":"1919:79:57","text":"@notice Thrown when a disputed claim does not match its index in the game."},"errorSelector":"30140332","name":"InvalidDisputedClaimIndex","nameLocation":"2004:25:57","parameters":{"id":54329,"nodeType":"ParameterList","parameters":[],"src":"2029:2:57"}},{"id":54333,"nodeType":"ErrorDefinition","src":"2168:26:57","nodes":[],"documentation":{"id":54331,"nodeType":"StructuredDocumentation","src":"2034:134:57","text":"@notice Thrown when an action that requires the game to be `IN_PROGRESS` is invoked when\n the game is not in progress."},"errorSelector":"67fe1950","name":"GameNotInProgress","nameLocation":"2174:17:57","parameters":{"id":54332,"nodeType":"ParameterList","parameters":[],"src":"2191:2:57"}},{"id":54336,"nodeType":"ErrorDefinition","src":"2282:26:57","nodes":[],"documentation":{"id":54334,"nodeType":"StructuredDocumentation","src":"2196:86:57","text":"@notice Thrown when a move is attempted to be made after the clock has timed out."},"errorSelector":"3381d114","name":"ClockTimeExceeded","nameLocation":"2288:17:57","parameters":{"id":54335,"nodeType":"ParameterList","parameters":[],"src":"2305:2:57"}},{"id":54339,"nodeType":"ErrorDefinition","src":"2382:24:57","nodes":[],"documentation":{"id":54337,"nodeType":"StructuredDocumentation","src":"2310:72:57","text":"@notice Thrown when the game is attempted to be resolved too early."},"errorSelector":"f2440b53","name":"ClockNotExpired","nameLocation":"2388:15:57","parameters":{"id":54338,"nodeType":"ParameterList","parameters":[],"src":"2403:2:57"}},{"id":54342,"nodeType":"ErrorDefinition","src":"2509:26:57","nodes":[],"documentation":{"id":54340,"nodeType":"StructuredDocumentation","src":"2408:101:57","text":"@notice Thrown when a move is attempted to be made at or greater than the max depth of the game."},"errorSelector":"56f57b2b","name":"GameDepthExceeded","nameLocation":"2515:17:57","parameters":{"id":54341,"nodeType":"ParameterList","parameters":[],"src":"2532:2:57"}},{"id":54345,"nodeType":"ErrorDefinition","src":"2611:22:57","nodes":[],"documentation":{"id":54343,"nodeType":"StructuredDocumentation","src":"2537:74:57","text":"@notice Thrown when a step is attempted above the maximum game depth."},"errorSelector":"5f53dd98","name":"InvalidParent","nameLocation":"2617:13:57","parameters":{"id":54344,"nodeType":"ParameterList","parameters":[],"src":"2630:2:57"}},{"id":54348,"nodeType":"ErrorDefinition","src":"2702:24:57","nodes":[],"documentation":{"id":54346,"nodeType":"StructuredDocumentation","src":"2635:67:57","text":"@notice Thrown when an invalid prestate is supplied to `step`."},"errorSelector":"696550ff","name":"InvalidPrestate","nameLocation":"2708:15:57","parameters":{"id":54347,"nodeType":"ParameterList","parameters":[],"src":"2723:2:57"}},{"id":54351,"nodeType":"ErrorDefinition","src":"2816:18:57","nodes":[],"documentation":{"id":54349,"nodeType":"StructuredDocumentation","src":"2728:88:57","text":"@notice Thrown when a step is made that computes the expected post state correctly."},"errorSelector":"fb4e40dd","name":"ValidStep","nameLocation":"2822:9:57","parameters":{"id":54350,"nodeType":"ParameterList","parameters":[],"src":"2831:2:57"}},{"id":54354,"nodeType":"ErrorDefinition","src":"2974:21:57","nodes":[],"documentation":{"id":54352,"nodeType":"StructuredDocumentation","src":"2836:138:57","text":"@notice Thrown when a game is attempted to be initialized with an L1 head that does\n not contain the disputed output root."},"errorSelector":"13809ba5","name":"L1HeadTooOld","nameLocation":"2980:12:57","parameters":{"id":54353,"nodeType":"ParameterList","parameters":[],"src":"2992:2:57"}},{"id":54357,"nodeType":"ErrorDefinition","src":"3091:26:57","nodes":[],"documentation":{"id":54355,"nodeType":"StructuredDocumentation","src":"2997:94:57","text":"@notice Thrown when an invalid local identifier is passed to the `addLocalData` function."},"errorSelector":"ff137e65","name":"InvalidLocalIdent","nameLocation":"3097:17:57","parameters":{"id":54356,"nodeType":"ParameterList","parameters":[],"src":"3114:2:57"}},{"id":54360,"nodeType":"ErrorDefinition","src":"3174:29:57","nodes":[],"documentation":{"id":54358,"nodeType":"StructuredDocumentation","src":"3119:55:57","text":"@notice Thrown when resolving claims out of order."},"errorSelector":"9a076646","name":"OutOfOrderResolution","nameLocation":"3180:20:57","parameters":{"id":54359,"nodeType":"ParameterList","parameters":[],"src":"3200:2:57"}},{"id":54363,"nodeType":"ErrorDefinition","src":"3279:29:57","nodes":[],"documentation":{"id":54361,"nodeType":"StructuredDocumentation","src":"3205:74:57","text":"@notice Thrown when resolving a claim that has already been resolved."},"errorSelector":"f1a94581","name":"ClaimAlreadyResolved","nameLocation":"3285:20:57","parameters":{"id":54362,"nodeType":"ParameterList","parameters":[],"src":"3305:2:57"}},{"id":54366,"nodeType":"ErrorDefinition","src":"3451:24:57","nodes":[],"documentation":{"id":54364,"nodeType":"StructuredDocumentation","src":"3310:141:57","text":"@notice Thrown when a parent output root is attempted to be found on a claim that is in\n the output root portion of the tree."},"errorSelector":"b34b5c22","name":"ClaimAboveSplit","nameLocation":"3457:15:57","parameters":{"id":54365,"nodeType":"ParameterList","parameters":[],"src":"3472:2:57"}},{"id":54369,"nodeType":"ErrorDefinition","src":"3596:26:57","nodes":[],"documentation":{"id":54367,"nodeType":"StructuredDocumentation","src":"3477:119:57","text":"@notice Thrown on deployment if the split depth is greater than or equal to the max\n depth of the game."},"errorSelector":"e62ccf39","name":"InvalidSplitDepth","nameLocation":"3602:17:57","parameters":{"id":54368,"nodeType":"ParameterList","parameters":[],"src":"3619:2:57"}},{"id":54372,"nodeType":"ErrorDefinition","src":"3729:30:57","nodes":[],"documentation":{"id":54370,"nodeType":"StructuredDocumentation","src":"3624:105:57","text":"@notice Thrown on deployment if the max clock duration is less than or equal to the clock extension."},"errorSelector":"8d77ecac","name":"InvalidClockExtension","nameLocation":"3735:21:57","parameters":{"id":54371,"nodeType":"ParameterList","parameters":[],"src":"3756:2:57"}},{"id":54375,"nodeType":"ErrorDefinition","src":"3846:31:57","nodes":[],"documentation":{"id":54373,"nodeType":"StructuredDocumentation","src":"3761:85:57","text":"@notice Thrown on deployment if the PreimageOracle challenge period is too high."},"errorSelector":"b4e12433","name":"InvalidChallengePeriod","nameLocation":"3852:22:57","parameters":{"id":54374,"nodeType":"ParameterList","parameters":[],"src":"3874:2:57"}},{"id":54378,"nodeType":"ErrorDefinition","src":"3960:25:57","nodes":[],"documentation":{"id":54376,"nodeType":"StructuredDocumentation","src":"3879:81:57","text":"@notice Thrown on deployment if the max depth is greater than `LibPosition.`"},"errorSelector":"77dfe332","name":"MaxDepthTooLarge","nameLocation":"3966:16:57","parameters":{"id":54377,"nodeType":"ParameterList","parameters":[],"src":"3982:2:57"}},{"id":54381,"nodeType":"ErrorDefinition","src":"4135:22:57","nodes":[],"documentation":{"id":54379,"nodeType":"StructuredDocumentation","src":"3987:148:57","text":"@notice Thrown when trying to step against a claim for a second time, after it has already been countered with\n an instruction step."},"errorSelector":"9071e6af","name":"DuplicateStep","nameLocation":"4141:13:57","parameters":{"id":54380,"nodeType":"ParameterList","parameters":[],"src":"4154:2:57"}},{"id":54384,"nodeType":"ErrorDefinition","src":"4234:27:57","nodes":[],"documentation":{"id":54382,"nodeType":"StructuredDocumentation","src":"4159:75:57","text":"@notice Thrown when an anchor root is not found for a given game type."},"errorSelector":"6a6bc3b2","name":"AnchorRootNotFound","nameLocation":"4240:18:57","parameters":{"id":54383,"nodeType":"ParameterList","parameters":[],"src":"4258:2:57"}},{"id":54387,"nodeType":"ErrorDefinition","src":"4320:31:57","nodes":[],"documentation":{"id":54385,"nodeType":"StructuredDocumentation","src":"4263:57:57","text":"@notice Thrown when an output root proof is invalid."},"errorSelector":"9cc00b5b","name":"InvalidOutputRootProof","nameLocation":"4326:22:57","parameters":{"id":54386,"nodeType":"ParameterList","parameters":[],"src":"4348:2:57"}},{"id":54390,"nodeType":"ErrorDefinition","src":"4455:25:57","nodes":[],"documentation":{"id":54388,"nodeType":"StructuredDocumentation","src":"4353:102:57","text":"@notice Thrown when header RLP is invalid with respect to the block hash in an output root proof."},"errorSelector":"d81d583b","name":"InvalidHeaderRLP","nameLocation":"4461:16:57","parameters":{"id":54389,"nodeType":"ParameterList","parameters":[],"src":"4477:2:57"}},{"id":54393,"nodeType":"ErrorDefinition","src":"4635:27:57","nodes":[],"documentation":{"id":54391,"nodeType":"StructuredDocumentation","src":"4482:153:57","text":"@notice Thrown when there is a match between the block number in the output root proof and the block number\n claimed in the dispute game."},"errorSelector":"b8ed8830","name":"BlockNumberMatches","nameLocation":"4641:18:57","parameters":{"id":54392,"nodeType":"ParameterList","parameters":[],"src":"4659:2:57"}},{"id":54396,"nodeType":"ErrorDefinition","src":"4743:32:57","nodes":[],"documentation":{"id":54394,"nodeType":"StructuredDocumentation","src":"4664:79:57","text":"@notice Thrown when the L2 block number claim has already been challenged."},"errorSelector":"0ea2e752","name":"L2BlockNumberChallenged","nameLocation":"4749:23:57","parameters":{"id":54395,"nodeType":"ParameterList","parameters":[],"src":"4772:2:57"}},{"id":54399,"nodeType":"ErrorDefinition","src":"5057:16:57","nodes":[],"documentation":{"id":54397,"nodeType":"StructuredDocumentation","src":"4973:84:57","text":"@notice Thrown when an unauthorized address attempts to interact with the game."},"errorSelector":"d386ef3e","name":"BadAuth","nameLocation":"5063:7:57","parameters":{"id":54398,"nodeType":"ParameterList","parameters":[],"src":"5070:2:57"}},{"id":54402,"nodeType":"ErrorDefinition","src":"5357:25:57","nodes":[],"documentation":{"id":54400,"nodeType":"StructuredDocumentation","src":"5271:86:57","text":"@notice Thrown when attempting to set an anchor state using an unregistered game."},"errorSelector":"6b0f6891","name":"UnregisteredGame","nameLocation":"5363:16:57","parameters":{"id":54401,"nodeType":"ParameterList","parameters":[],"src":"5379:2:57"}},{"id":54405,"nodeType":"ErrorDefinition","src":"5472:26:57","nodes":[],"documentation":{"id":54403,"nodeType":"StructuredDocumentation","src":"5384:88:57","text":"@notice Thrown when attempting to set an anchor state using an invalid game result."},"errorSelector":"8f8af25f","name":"InvalidGameStatus","nameLocation":"5478:17:57","parameters":{"id":54404,"nodeType":"ParameterList","parameters":[],"src":"5495:2:57"}}],"license":"MIT"},"id":57}