UNPKG

@tokamak-network/thanos-contracts

Version:
1 lines 19.8 kB
{"abi":[],"bytecode":{"object":"0x","linkReferences":{}},"deployedBytecode":{"object":"0x","linkReferences":{}},"ast":{"absolutePath":"src/dispute/lib/Errors.sol","id":110147,"exportedSymbols":{"AlreadyInitialized":[110050],"AnchorRootNotFound":[110125],"BadAuth":[110140],"BadExtraData":[110062],"BlockNumberMatches":[110134],"BondTransferFailed":[110059],"CannotDefendRootClaim":[110065],"Claim":[110496],"ClaimAboveSplit":[110107],"ClaimAlreadyExists":[110068],"ClaimAlreadyResolved":[110104],"Clock":[110404],"ClockNotExpired":[110080],"ClockTimeExceeded":[110077],"DuplicateStep":[110122],"Duration":[110528],"GameAlreadyExists":[110041],"GameDepthExceeded":[110083],"GameId":[110458],"GameNotInProgress":[110074],"GameType":[110588],"Hash":[110543],"IncorrectBondAmount":[110053],"InvalidChallengePeriod":[110116],"InvalidClockExtension":[110113],"InvalidDisputedClaimIndex":[110071],"InvalidGameStatus":[110146],"InvalidHeaderRLP":[110131],"InvalidLocalIdent":[110098],"InvalidOutputRootProof":[110128],"InvalidParent":[110086],"InvalidPrestate":[110089],"InvalidSplitDepth":[110110],"L1HeadTooOld":[110095],"L2BlockNumberChallenged":[110137],"LibClaim":[110526],"LibClock":[110456],"LibDuration":[110541],"LibGameId":[110494],"LibGameType":[110601],"LibHash":[110556],"LibPosition":[110367],"LibTimestamp":[110571],"LibVMStatus":[110586],"MaxDepthTooLarge":[110119],"NoCreditToClaim":[110056],"NoImplementation":[110035],"OutOfOrderResolution":[110101],"Position":[110154],"Timestamp":[110558],"UnexpectedRootClaim":[110047],"UnregisteredGame":[110143],"VMStatus":[110573],"ValidStep":[110092]},"nodeType":"SourceUnit","src":"32:5467:196","nodes":[{"id":110028,"nodeType":"PragmaDirective","src":"32:24:196","nodes":[],"literals":["solidity","^","0.8",".15"]},{"id":110029,"nodeType":"ImportDirective","src":"58:36:196","nodes":[],"absolutePath":"src/dispute/lib/LibUDT.sol","file":"src/dispute/lib/LibUDT.sol","nameLocation":"-1:-1:-1","scope":110147,"sourceUnit":110602,"symbolAliases":[],"unitAlias":""},{"id":110035,"nodeType":"ErrorDefinition","src":"436:42:196","nodes":[],"documentation":{"id":110030,"nodeType":"StructuredDocumentation","src":"292:144:196","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:196","parameters":{"id":110034,"nodeType":"ParameterList","parameters":[{"constant":false,"id":110033,"mutability":"mutable","name":"gameType","nameLocation":"468:8:196","nodeType":"VariableDeclaration","scope":110035,"src":"459:17:196","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_GameType_$110588","typeString":"GameType"},"typeName":{"id":110032,"nodeType":"UserDefinedTypeName","pathNode":{"id":110031,"name":"GameType","nodeType":"IdentifierPath","referencedDeclaration":110588,"src":"459:8:196"},"referencedDeclaration":110588,"src":"459:8:196","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_GameType_$110588","typeString":"GameType"}},"visibility":"internal"}],"src":"458:19:196"}},{"id":110041,"nodeType":"ErrorDefinition","src":"633:35:196","nodes":[],"documentation":{"id":110036,"nodeType":"StructuredDocumentation","src":"480:153:196","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:196","parameters":{"id":110040,"nodeType":"ParameterList","parameters":[{"constant":false,"id":110039,"mutability":"mutable","name":"uuid","nameLocation":"662:4:196","nodeType":"VariableDeclaration","scope":110041,"src":"657:9:196","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_Hash_$110543","typeString":"Hash"},"typeName":{"id":110038,"nodeType":"UserDefinedTypeName","pathNode":{"id":110037,"name":"Hash","nodeType":"IdentifierPath","referencedDeclaration":110543,"src":"657:4:196"},"referencedDeclaration":110543,"src":"657:4:196","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_Hash_$110543","typeString":"Hash"}},"visibility":"internal"}],"src":"656:11:196"}},{"id":110047,"nodeType":"ErrorDefinition","src":"873:43:196","nodes":[],"documentation":{"id":110042,"nodeType":"StructuredDocumentation","src":"670:203:196","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:196","parameters":{"id":110046,"nodeType":"ParameterList","parameters":[{"constant":false,"id":110045,"mutability":"mutable","name":"rootClaim","nameLocation":"905:9:196","nodeType":"VariableDeclaration","scope":110047,"src":"899:15:196","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_Claim_$110496","typeString":"Claim"},"typeName":{"id":110044,"nodeType":"UserDefinedTypeName","pathNode":{"id":110043,"name":"Claim","nodeType":"IdentifierPath","referencedDeclaration":110496,"src":"899:5:196"},"referencedDeclaration":110496,"src":"899:5:196","typeDescriptions":{"typeIdentifier":"t_userDefinedValueType$_Claim_$110496","typeString":"Claim"}},"visibility":"internal"}],"src":"898:17:196"}},{"id":110050,"nodeType":"ErrorDefinition","src":"1183:27:196","nodes":[],"documentation":{"id":110048,"nodeType":"StructuredDocumentation","src":"1114:69:196","text":"@notice Thrown when a dispute game has already been initialized."},"errorSelector":"0dc149f0","name":"AlreadyInitialized","nameLocation":"1189:18:196","parameters":{"id":110049,"nodeType":"ParameterList","parameters":[],"src":"1207:2:196"}},{"id":110053,"nodeType":"ErrorDefinition","src":"1331:28:196","nodes":[],"documentation":{"id":110051,"nodeType":"StructuredDocumentation","src":"1212:119:196","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:196","parameters":{"id":110052,"nodeType":"ParameterList","parameters":[],"src":"1356:2:196"}},{"id":110056,"nodeType":"ErrorDefinition","src":"1431:24:196","nodes":[],"documentation":{"id":110054,"nodeType":"StructuredDocumentation","src":"1361:70:196","text":"@notice Thrown when a credit claim is attempted for a value of 0."},"errorSelector":"17bfe5f7","name":"NoCreditToClaim","nameLocation":"1437:15:196","parameters":{"id":110055,"nodeType":"ParameterList","parameters":[],"src":"1452:2:196"}},{"id":110059,"nodeType":"ErrorDefinition","src":"1536:27:196","nodes":[],"documentation":{"id":110057,"nodeType":"StructuredDocumentation","src":"1457:79:196","text":"@notice Thrown when the transfer of credit to a recipient account reverts."},"errorSelector":"83e6cc6b","name":"BondTransferFailed","nameLocation":"1542:18:196","parameters":{"id":110058,"nodeType":"ParameterList","parameters":[],"src":"1560:2:196"}},{"id":110062,"nodeType":"ErrorDefinition","src":"1686:21:196","nodes":[],"documentation":{"id":110060,"nodeType":"StructuredDocumentation","src":"1565:121:196","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:196","parameters":{"id":110061,"nodeType":"ParameterList","parameters":[],"src":"1704:2:196"}},{"id":110065,"nodeType":"ErrorDefinition","src":"1780:30:196","nodes":[],"documentation":{"id":110063,"nodeType":"StructuredDocumentation","src":"1709:71:196","text":"@notice Thrown when a defense against the root claim is attempted."},"errorSelector":"a42637bc","name":"CannotDefendRootClaim","nameLocation":"1786:21:196","parameters":{"id":110064,"nodeType":"ParameterList","parameters":[],"src":"1807:2:196"}},{"id":110068,"nodeType":"ErrorDefinition","src":"1890:27:196","nodes":[],"documentation":{"id":110066,"nodeType":"StructuredDocumentation","src":"1812:78:196","text":"@notice Thrown when a claim is attempting to be made that already exists."},"errorSelector":"80497e3b","name":"ClaimAlreadyExists","nameLocation":"1896:18:196","parameters":{"id":110067,"nodeType":"ParameterList","parameters":[],"src":"1914:2:196"}},{"id":110071,"nodeType":"ErrorDefinition","src":"1998:34:196","nodes":[],"documentation":{"id":110069,"nodeType":"StructuredDocumentation","src":"1919:79:196","text":"@notice Thrown when a disputed claim does not match its index in the game."},"errorSelector":"30140332","name":"InvalidDisputedClaimIndex","nameLocation":"2004:25:196","parameters":{"id":110070,"nodeType":"ParameterList","parameters":[],"src":"2029:2:196"}},{"id":110074,"nodeType":"ErrorDefinition","src":"2168:26:196","nodes":[],"documentation":{"id":110072,"nodeType":"StructuredDocumentation","src":"2034:134:196","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:196","parameters":{"id":110073,"nodeType":"ParameterList","parameters":[],"src":"2191:2:196"}},{"id":110077,"nodeType":"ErrorDefinition","src":"2282:26:196","nodes":[],"documentation":{"id":110075,"nodeType":"StructuredDocumentation","src":"2196:86:196","text":"@notice Thrown when a move is attempted to be made after the clock has timed out."},"errorSelector":"3381d114","name":"ClockTimeExceeded","nameLocation":"2288:17:196","parameters":{"id":110076,"nodeType":"ParameterList","parameters":[],"src":"2305:2:196"}},{"id":110080,"nodeType":"ErrorDefinition","src":"2382:24:196","nodes":[],"documentation":{"id":110078,"nodeType":"StructuredDocumentation","src":"2310:72:196","text":"@notice Thrown when the game is attempted to be resolved too early."},"errorSelector":"f2440b53","name":"ClockNotExpired","nameLocation":"2388:15:196","parameters":{"id":110079,"nodeType":"ParameterList","parameters":[],"src":"2403:2:196"}},{"id":110083,"nodeType":"ErrorDefinition","src":"2509:26:196","nodes":[],"documentation":{"id":110081,"nodeType":"StructuredDocumentation","src":"2408:101:196","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:196","parameters":{"id":110082,"nodeType":"ParameterList","parameters":[],"src":"2532:2:196"}},{"id":110086,"nodeType":"ErrorDefinition","src":"2611:22:196","nodes":[],"documentation":{"id":110084,"nodeType":"StructuredDocumentation","src":"2537:74:196","text":"@notice Thrown when a step is attempted above the maximum game depth."},"errorSelector":"5f53dd98","name":"InvalidParent","nameLocation":"2617:13:196","parameters":{"id":110085,"nodeType":"ParameterList","parameters":[],"src":"2630:2:196"}},{"id":110089,"nodeType":"ErrorDefinition","src":"2702:24:196","nodes":[],"documentation":{"id":110087,"nodeType":"StructuredDocumentation","src":"2635:67:196","text":"@notice Thrown when an invalid prestate is supplied to `step`."},"errorSelector":"696550ff","name":"InvalidPrestate","nameLocation":"2708:15:196","parameters":{"id":110088,"nodeType":"ParameterList","parameters":[],"src":"2723:2:196"}},{"id":110092,"nodeType":"ErrorDefinition","src":"2816:18:196","nodes":[],"documentation":{"id":110090,"nodeType":"StructuredDocumentation","src":"2728:88:196","text":"@notice Thrown when a step is made that computes the expected post state correctly."},"errorSelector":"fb4e40dd","name":"ValidStep","nameLocation":"2822:9:196","parameters":{"id":110091,"nodeType":"ParameterList","parameters":[],"src":"2831:2:196"}},{"id":110095,"nodeType":"ErrorDefinition","src":"2974:21:196","nodes":[],"documentation":{"id":110093,"nodeType":"StructuredDocumentation","src":"2836:138:196","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:196","parameters":{"id":110094,"nodeType":"ParameterList","parameters":[],"src":"2992:2:196"}},{"id":110098,"nodeType":"ErrorDefinition","src":"3091:26:196","nodes":[],"documentation":{"id":110096,"nodeType":"StructuredDocumentation","src":"2997:94:196","text":"@notice Thrown when an invalid local identifier is passed to the `addLocalData` function."},"errorSelector":"ff137e65","name":"InvalidLocalIdent","nameLocation":"3097:17:196","parameters":{"id":110097,"nodeType":"ParameterList","parameters":[],"src":"3114:2:196"}},{"id":110101,"nodeType":"ErrorDefinition","src":"3174:29:196","nodes":[],"documentation":{"id":110099,"nodeType":"StructuredDocumentation","src":"3119:55:196","text":"@notice Thrown when resolving claims out of order."},"errorSelector":"9a076646","name":"OutOfOrderResolution","nameLocation":"3180:20:196","parameters":{"id":110100,"nodeType":"ParameterList","parameters":[],"src":"3200:2:196"}},{"id":110104,"nodeType":"ErrorDefinition","src":"3279:29:196","nodes":[],"documentation":{"id":110102,"nodeType":"StructuredDocumentation","src":"3205:74:196","text":"@notice Thrown when resolving a claim that has already been resolved."},"errorSelector":"f1a94581","name":"ClaimAlreadyResolved","nameLocation":"3285:20:196","parameters":{"id":110103,"nodeType":"ParameterList","parameters":[],"src":"3305:2:196"}},{"id":110107,"nodeType":"ErrorDefinition","src":"3451:24:196","nodes":[],"documentation":{"id":110105,"nodeType":"StructuredDocumentation","src":"3310:141:196","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:196","parameters":{"id":110106,"nodeType":"ParameterList","parameters":[],"src":"3472:2:196"}},{"id":110110,"nodeType":"ErrorDefinition","src":"3596:26:196","nodes":[],"documentation":{"id":110108,"nodeType":"StructuredDocumentation","src":"3477:119:196","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:196","parameters":{"id":110109,"nodeType":"ParameterList","parameters":[],"src":"3619:2:196"}},{"id":110113,"nodeType":"ErrorDefinition","src":"3729:30:196","nodes":[],"documentation":{"id":110111,"nodeType":"StructuredDocumentation","src":"3624:105:196","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:196","parameters":{"id":110112,"nodeType":"ParameterList","parameters":[],"src":"3756:2:196"}},{"id":110116,"nodeType":"ErrorDefinition","src":"3846:31:196","nodes":[],"documentation":{"id":110114,"nodeType":"StructuredDocumentation","src":"3761:85:196","text":"@notice Thrown on deployment if the PreimageOracle challenge period is too high."},"errorSelector":"b4e12433","name":"InvalidChallengePeriod","nameLocation":"3852:22:196","parameters":{"id":110115,"nodeType":"ParameterList","parameters":[],"src":"3874:2:196"}},{"id":110119,"nodeType":"ErrorDefinition","src":"3960:25:196","nodes":[],"documentation":{"id":110117,"nodeType":"StructuredDocumentation","src":"3879:81:196","text":"@notice Thrown on deployment if the max depth is greater than `LibPosition.`"},"errorSelector":"77dfe332","name":"MaxDepthTooLarge","nameLocation":"3966:16:196","parameters":{"id":110118,"nodeType":"ParameterList","parameters":[],"src":"3982:2:196"}},{"id":110122,"nodeType":"ErrorDefinition","src":"4135:22:196","nodes":[],"documentation":{"id":110120,"nodeType":"StructuredDocumentation","src":"3987:148:196","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:196","parameters":{"id":110121,"nodeType":"ParameterList","parameters":[],"src":"4154:2:196"}},{"id":110125,"nodeType":"ErrorDefinition","src":"4234:27:196","nodes":[],"documentation":{"id":110123,"nodeType":"StructuredDocumentation","src":"4159:75:196","text":"@notice Thrown when an anchor root is not found for a given game type."},"errorSelector":"6a6bc3b2","name":"AnchorRootNotFound","nameLocation":"4240:18:196","parameters":{"id":110124,"nodeType":"ParameterList","parameters":[],"src":"4258:2:196"}},{"id":110128,"nodeType":"ErrorDefinition","src":"4320:31:196","nodes":[],"documentation":{"id":110126,"nodeType":"StructuredDocumentation","src":"4263:57:196","text":"@notice Thrown when an output root proof is invalid."},"errorSelector":"9cc00b5b","name":"InvalidOutputRootProof","nameLocation":"4326:22:196","parameters":{"id":110127,"nodeType":"ParameterList","parameters":[],"src":"4348:2:196"}},{"id":110131,"nodeType":"ErrorDefinition","src":"4455:25:196","nodes":[],"documentation":{"id":110129,"nodeType":"StructuredDocumentation","src":"4353:102:196","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:196","parameters":{"id":110130,"nodeType":"ParameterList","parameters":[],"src":"4477:2:196"}},{"id":110134,"nodeType":"ErrorDefinition","src":"4635:27:196","nodes":[],"documentation":{"id":110132,"nodeType":"StructuredDocumentation","src":"4482:153:196","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:196","parameters":{"id":110133,"nodeType":"ParameterList","parameters":[],"src":"4659:2:196"}},{"id":110137,"nodeType":"ErrorDefinition","src":"4743:32:196","nodes":[],"documentation":{"id":110135,"nodeType":"StructuredDocumentation","src":"4664:79:196","text":"@notice Thrown when the L2 block number claim has already been challenged."},"errorSelector":"0ea2e752","name":"L2BlockNumberChallenged","nameLocation":"4749:23:196","parameters":{"id":110136,"nodeType":"ParameterList","parameters":[],"src":"4772:2:196"}},{"id":110140,"nodeType":"ErrorDefinition","src":"5057:16:196","nodes":[],"documentation":{"id":110138,"nodeType":"StructuredDocumentation","src":"4973:84:196","text":"@notice Thrown when an unauthorized address attempts to interact with the game."},"errorSelector":"d386ef3e","name":"BadAuth","nameLocation":"5063:7:196","parameters":{"id":110139,"nodeType":"ParameterList","parameters":[],"src":"5070:2:196"}},{"id":110143,"nodeType":"ErrorDefinition","src":"5357:25:196","nodes":[],"documentation":{"id":110141,"nodeType":"StructuredDocumentation","src":"5271:86:196","text":"@notice Thrown when attempting to set an anchor state using an unregistered game."},"errorSelector":"6b0f6891","name":"UnregisteredGame","nameLocation":"5363:16:196","parameters":{"id":110142,"nodeType":"ParameterList","parameters":[],"src":"5379:2:196"}},{"id":110146,"nodeType":"ErrorDefinition","src":"5472:26:196","nodes":[],"documentation":{"id":110144,"nodeType":"StructuredDocumentation","src":"5384:88:196","text":"@notice Thrown when attempting to set an anchor state using an invalid game result."},"errorSelector":"8f8af25f","name":"InvalidGameStatus","nameLocation":"5478:17:196","parameters":{"id":110145,"nodeType":"ParameterList","parameters":[],"src":"5495:2:196"}}],"license":"MIT"},"id":196}