challengegen

package
v0.0.0-...-5793453 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChallengeLibABI = ChallengeLibMetaData.ABI

ChallengeLibABI is the input ABI used to generate the binding from. Deprecated: Use ChallengeLibMetaData.ABI instead.

View Source
var ChallengeLibBin = ChallengeLibMetaData.Bin

ChallengeLibBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ChallengeLibMetaData.Bin instead.

View Source
var ChallengeLibMetaData = &bind.MetaData{
	ABI: "[]",
	Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220be45a96ce6243b77a059183fe5e02a3439a1cffd58f2017cfb910ec79b578a3c64736f6c63430008090033",
}

ChallengeLibMetaData contains all meta data concerning the ChallengeLib contract.

View Source
var ChallengeManagerABI = ChallengeManagerMetaData.ABI

ChallengeManagerABI is the input ABI used to generate the binding from. Deprecated: Use ChallengeManagerMetaData.ABI instead.

View Source
var ChallengeManagerBin = ChallengeManagerMetaData.Bin

ChallengeManagerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ChallengeManagerMetaData.Bin instead.

View Source
var ChallengeManagerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"NotOwner\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"challengeRoot\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"challengedSegmentStart\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"challengedSegmentLength\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"chainHashes\",\"type\":\"bytes32[]\"}],\"name\":\"Bisected\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"enumIChallengeManager.ChallengeTerminationType\",\"name\":\"kind\",\"type\":\"uint8\"}],\"name\":\"ChallengeEnded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"blockSteps\",\"type\":\"uint256\"}],\"name\":\"ExecutionChallengeBegun\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"bytes32[2]\",\"name\":\"bytes32Vals\",\"type\":\"bytes32[2]\"},{\"internalType\":\"uint64[2]\",\"name\":\"u64Vals\",\"type\":\"uint64[2]\"}],\"indexed\":false,\"internalType\":\"structGlobalState\",\"name\":\"startState\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32[2]\",\"name\":\"bytes32Vals\",\"type\":\"bytes32[2]\"},{\"internalType\":\"uint64[2]\",\"name\":\"u64Vals\",\"type\":\"uint64[2]\"}],\"indexed\":false,\"internalType\":\"structGlobalState\",\"name\":\"endState\",\"type\":\"tuple\"}],\"name\":\"InitiatedChallenge\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"}],\"name\":\"OneStepProofCompleted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"oldSegmentsStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"oldSegmentsLength\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"oldSegments\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"challengePosition\",\"type\":\"uint256\"}],\"internalType\":\"structChallengeLib.SegmentSelection\",\"name\":\"selection\",\"type\":\"tuple\"},{\"internalType\":\"bytes32[]\",\"name\":\"newSegments\",\"type\":\"bytes32[]\"}],\"name\":\"bisectExecution\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridge\",\"outputs\":[{\"internalType\":\"contractIBridge\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"oldSegmentsStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"oldSegmentsLength\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"oldSegments\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"challengePosition\",\"type\":\"uint256\"}],\"internalType\":\"structChallengeLib.SegmentSelection\",\"name\":\"selection\",\"type\":\"tuple\"},{\"internalType\":\"enumMachineStatus[2]\",\"name\":\"machineStatuses\",\"type\":\"uint8[2]\"},{\"internalType\":\"bytes32[2]\",\"name\":\"globalStateHashes\",\"type\":\"bytes32[2]\"},{\"internalType\":\"uint256\",\"name\":\"numSteps\",\"type\":\"uint256\"}],\"name\":\"challengeExecution\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"}],\"name\":\"challengeInfo\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"timeLeft\",\"type\":\"uint256\"}],\"internalType\":\"structChallengeLib.Participant\",\"name\":\"current\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"timeLeft\",\"type\":\"uint256\"}],\"internalType\":\"structChallengeLib.Participant\",\"name\":\"next\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"lastMoveTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"wasmModuleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"challengeStateHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"maxInboxMessages\",\"type\":\"uint64\"},{\"internalType\":\"enumChallengeLib.ChallengeMode\",\"name\":\"mode\",\"type\":\"uint8\"}],\"internalType\":\"structChallengeLib.Challenge\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"challenges\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"timeLeft\",\"type\":\"uint256\"}],\"internalType\":\"structChallengeLib.Participant\",\"name\":\"current\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"timeLeft\",\"type\":\"uint256\"}],\"internalType\":\"structChallengeLib.Participant\",\"name\":\"next\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"lastMoveTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"wasmModuleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"challengeStateHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"maxInboxMessages\",\"type\":\"uint64\"},{\"internalType\":\"enumChallengeLib.ChallengeMode\",\"name\":\"mode\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"}],\"name\":\"clearChallenge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"wasmModuleRoot_\",\"type\":\"bytes32\"},{\"internalType\":\"enumMachineStatus[2]\",\"name\":\"startAndEndMachineStatuses_\",\"type\":\"uint8[2]\"},{\"components\":[{\"internalType\":\"bytes32[2]\",\"name\":\"bytes32Vals\",\"type\":\"bytes32[2]\"},{\"internalType\":\"uint64[2]\",\"name\":\"u64Vals\",\"type\":\"uint64[2]\"}],\"internalType\":\"structGlobalState[2]\",\"name\":\"startAndEndGlobalStates_\",\"type\":\"tuple[2]\"},{\"internalType\":\"uint64\",\"name\":\"numBlocks\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"asserter_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"challenger_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"asserterTimeLeft_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"challengerTimeLeft_\",\"type\":\"uint256\"}],\"name\":\"createChallenge\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"}],\"name\":\"currentResponder\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIChallengeResultReceiver\",\"name\":\"resultReceiver_\",\"type\":\"address\"},{\"internalType\":\"contractISequencerInbox\",\"name\":\"sequencerInbox_\",\"type\":\"address\"},{\"internalType\":\"contractIBridge\",\"name\":\"bridge_\",\"type\":\"address\"},{\"internalType\":\"contractIOneStepProofEntry\",\"name\":\"osp_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"}],\"name\":\"isTimedOut\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"oldSegmentsStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"oldSegmentsLength\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"oldSegments\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"challengePosition\",\"type\":\"uint256\"}],\"internalType\":\"structChallengeLib.SegmentSelection\",\"name\":\"selection\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"}],\"name\":\"oneStepProveExecution\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"osp\",\"outputs\":[{\"internalType\":\"contractIOneStepProofEntry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIOneStepProofEntry\",\"name\":\"osp_\",\"type\":\"address\"}],\"name\":\"postUpgradeInit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resultReceiver\",\"outputs\":[{\"internalType\":\"contractIChallengeResultReceiver\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sequencerInbox\",\"outputs\":[{\"internalType\":\"contractISequencerInbox\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"}],\"name\":\"timeout\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalChallengesCreated\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x60a06040523060805234801561001457600080fd5b5060805161312f61003760003960008181610e02015261130d015261312f6000f3fe608060405234801561001057600080fd5b50600436106100eb5760003560e01c80639ede42b9116100925780639ede42b91461025c578063a521b0321461027f578063c474d2c514610292578063d248d124146102a5578063e78cea92146102b8578063ee35f327146102cb578063f26a62c6146102de578063f8c8765e146102f1578063fb7be0a11461030457600080fd5b806314eab5e7146100f05780631b45c86a1461012057806323a9ef23146101355780633504f1d71461016057806356e9df97146101735780635ef489e6146101865780637fd07a9c146101995780638f1d3776146101b9575b600080fd5b6101036100fe36600461269b565b610317565b6040516001600160401b0390911681526020015b60405180910390f35b61013361012e36600461272e565b61061f565b005b61014861014336600461272e565b6106ef565b6040516001600160a01b039091168152602001610117565b600254610148906001600160a01b031681565b61013361018136600461272e565b610713565b600054610103906001600160401b031681565b6101ac6101a736600461272e565b610881565b604051610117919061278b565b6102496101c73660046127fd565b6001602081815260009283526040928390208351808501855281546001600160a01b0390811682529382015481840152845180860190955260028201549093168452600381015491840191909152600481015460058201546006830154600790930154939493919290916001600160401b03811690600160401b900460ff1687565b6040516101179796959493929190612816565b61026f61026a36600461272e565b61095a565b6040519015158152602001610117565b61013361028d366004612873565b610981565b6101336102a0366004612917565b610df7565b6101336102b3366004612934565b610ec1565b600454610148906001600160a01b031681565b600354610148906001600160a01b031681565b600554610148906001600160a01b031681565b6101336102ff3660046129c6565b611302565b610133610312366004612a22565b61142e565b6002546000906001600160a01b0316331461036c5760405162461bcd60e51b815260206004820152601060248201526f13d3931657d493d313155417d0d2105360821b60448201526064015b60405180910390fd5b6040805160028082526060820183526000926020830190803683370190505090506103c261039d60208b018b612ac6565b6103bd8a60005b608002018036038101906103b89190612b85565b611a9e565b611b1f565b816000815181106103d5576103d5612ab0565b60209081029190910101526104048960016020020160208101906103f99190612ac6565b6103bd8a60016103a4565b8160018151811061041757610417612ab0565b6020908102919091010152600080548190819061043c906001600160401b0316612c33565b91906101000a8154816001600160401b0302191690836001600160401b031602179055905060006001600160401b0316816001600160401b0316141561048457610484612c5a565b6001600160401b0381166000908152600160205260408120600581018d9055906104be6104b9368d90038d0160808e01612b85565b611c43565b905060026104d260408e0160208f01612ac6565b60038111156104e3576104e3612761565b148061051157506000610506610501368e90038e0160808f01612b85565b611c58565b6001600160401b0316115b15610524578061052081612c33565b9150505b6007820180546040805180820182526001600160a01b038d811680835260209283018d90526002880180546001600160a01b03199081169092179055600388018d905583518085018552918e16808352919092018b90528654909116178555600185018990554260048601556001600160401b0384811668ffffffffffffffffff1990931692909217600160401b179092559051908416907f76604fe17af46c9b5f53ffe99ff23e0f655dab91886b07ac1fc0254319f7145a906105ee908e906080820190612cba565b60405180910390a261060c8360008c6001600160401b031687611c67565b5090925050505b98975050505050505050565b60006001600160401b038216600090815260016020526040902060070154600160401b900460ff16600281111561065857610658612761565b1415604051806040016040528060078152602001661393d7d0d2105360ca1b815250906106985760405162461bcd60e51b81526004016103639190612cd6565b506106a28161095a565b6106e15760405162461bcd60e51b815260206004820152601060248201526f54494d454f55545f444541444c494e4560801b6044820152606401610363565b6106ec816000611cfd565b50565b6001600160401b03166000908152600160205260409020546001600160a01b031690565b6002546001600160a01b031633146107605760405162461bcd60e51b815260206004820152601060248201526f2727aa2fa922a9afa922a1a2a4ab22a960811b6044820152606401610363565b60006001600160401b038216600090815260016020526040902060070154600160401b900460ff16600281111561079957610799612761565b1415604051806040016040528060078152602001661393d7d0d2105360ca1b815250906107d95760405162461bcd60e51b81526004016103639190612cd6565b506001600160401b038116600081815260016020819052604080832080546001600160a01b031990811682559281018490556002810180549093169092556003808301849055600483018490556005830184905560068301939093556007909101805468ffffffffffffffffff19169055517ffdaece6c274a4b56af16761f83fd6b1062823192630ea08e019fdf9b2d747f409161087691612d2b565b60405180910390a250565b6108896125f6565b6001600160401b0382811660009081526001602081815260409283902083516101208101855281546001600160a01b0390811660e0830190815294830154610100830152938152845180860186526002808401549095168152600383015481850152928101929092526004810154938201939093526005830154606082015260068301546080820152600783015493841660a08201529260c0840191600160401b90910460ff169081111561094057610940612761565b600281111561095157610951612761565b90525092915050565b6001600160401b038116600090815260016020526040812061097b90611e2b565b92915050565b6001600160401b0384166000908152600160205260408120859185916109a6846106ef565b6001600160a01b0316336001600160a01b0316146109d65760405162461bcd60e51b815260040161036390612d45565b6109df8461095a565b156109fc5760405162461bcd60e51b815260040161036390612d6a565b6000826002811115610a1057610a10612761565b1415610a7e5760006007820154600160401b900460ff166002811115610a3857610a38612761565b1415604051806040016040528060078152602001661393d7d0d2105360ca1b81525090610a785760405162461bcd60e51b81526004016103639190612cd6565b50610b3d565b6001826002811115610a9257610a92612761565b1415610adc5760016007820154600160401b900460ff166002811115610aba57610aba612761565b14610ad75760405162461bcd60e51b815260040161036390612d91565b610b3d565b6002826002811115610af057610af0612761565b1415610b355760026007820154600160401b900460ff166002811115610b1857610b18612761565b14610ad75760405162461bcd60e51b815260040161036390612db9565b610b3d612c5a565b610b8b83356020850135610b546040870187612de5565b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611e4392505050565b816006015414610bad5760405162461bcd60e51b815260040161036390612e35565b6002610bbc6040850185612de5565b90501080610be757506001610bd46040850185612de5565b610bdf929150612e58565b836060013510155b15610c045760405162461bcd60e51b815260040161036390612e6f565b600080610c1089611e7a565b9150915060018111610c505760405162461bcd60e51b81526020600482015260096024820152681513d3d7d4d213d49560ba1b6044820152606401610363565b806028811115610c5e575060285b610c69816001612e9a565b8814610ca65760405162461bcd60e51b815260206004820152600c60248201526b57524f4e475f44454752454560a01b6044820152606401610363565b50610cf08989896000818110610cbe57610cbe612ab0565b602002919091013590508a8a610cd5600182612e58565b818110610ce457610ce4612ab0565b90506020020135611f0b565b610d2f8a83838b8b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611c6792505050565b50600090505b6007820154600160401b900460ff166002811115610d5557610d55612761565b1415610d615750610dee565b6040805180820190915281546001600160a01b03168152600182015460208201526004820154610d919042612e58565b81602001818151610da29190612e58565b90525060028201805483546001600160a01b038083166001600160a01b031992831617865560038601805460018801558551929093169116179091556020909101519055426004909101555b50505050505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610e405760405162461bcd60e51b815260040161036390612eb2565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61038054336001600160a01b03821614610e9d57604051631194af8760e11b81523360048201526001600160a01b0382166024820152604401610363565b5050600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160401b038416600090815260016020526040902084908490600290610ee9846106ef565b6001600160a01b0316336001600160a01b031614610f195760405162461bcd60e51b815260040161036390612d45565b610f228461095a565b15610f3f5760405162461bcd60e51b815260040161036390612d6a565b6000826002811115610f5357610f53612761565b1415610fc15760006007820154600160401b900460ff166002811115610f7b57610f7b612761565b1415604051806040016040528060078152602001661393d7d0d2105360ca1b81525090610fbb5760405162461bcd60e51b81526004016103639190612cd6565b50611080565b6001826002811115610fd557610fd5612761565b141561101f5760016007820154600160401b900460ff166002811115610ffd57610ffd612761565b1461101a5760405162461bcd60e51b815260040161036390612d91565b611080565b600282600281111561103357611033612761565b14156110785760026007820154600160401b900460ff16600281111561105b5761105b612761565b1461101a5760405162461bcd60e51b815260040161036390612db9565b611080612c5a565b61109783356020850135610b546040870187612de5565b8160060154146110b95760405162461bcd60e51b815260040161036390612e35565b60026110c86040850185612de5565b905010806110f3575060016110e06040850185612de5565b6110eb929150612e58565b836060013510155b156111105760405162461bcd60e51b815260040161036390612e6f565b6001600160401b038816600090815260016020526040812090806111338a611e7a565b9092509050600181146111585760405162461bcd60e51b815260040161036390612efe565b5060055460408051808201825260078501546001600160401b031681526004546001600160a01b0390811660208301526000931691635d3adcfb919085906111a2908f018f612de5565b8f606001358181106111b6576111b6612ab0565b905060200201358d8d6040518663ffffffff1660e01b81526004016111df959493929190612f20565b60206040518083038186803b1580156111f757600080fd5b505afa15801561120b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122f9190612f77565b905061123e60408b018b612de5565b61124d60608d01356001612e9a565b81811061125c5761125c612ab0565b905060200201358114156112a15760405162461bcd60e51b815260206004820152600c60248201526b14d0535157d3d4d417d1539160a21b6044820152606401610363565b6040516001600160401b038c16907fc2cc42e04ff8c36de71c6a2937ea9f161dd0dd9e175f00caa26e5200643c781e90600090a26112f68b6001600160401b0316600090815260016020526040812060060155565b5060009150610d359050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561134b5760405162461bcd60e51b815260040161036390612eb2565b6002546001600160a01b0316156113935760405162461bcd60e51b815260206004820152600c60248201526b1053149150511657d253925560a21b6044820152606401610363565b6001600160a01b0384166113de5760405162461bcd60e51b81526020600482015260126024820152712727afa922a9aaa62a2fa922a1a2a4ab22a960711b6044820152606401610363565b600280546001600160a01b039586166001600160a01b0319918216179091556003805494861694821694909417909355600480549285169284169290921790915560058054919093169116179055565b6001600160401b038516600090815260016020819052604090912086918691611456846106ef565b6001600160a01b0316336001600160a01b0316146114865760405162461bcd60e51b815260040161036390612d45565b61148f8461095a565b156114ac5760405162461bcd60e51b815260040161036390612d6a565b60008260028111156114c0576114c0612761565b141561152e5760006007820154600160401b900460ff1660028111156114e8576114e8612761565b1415604051806040016040528060078152602001661393d7d0d2105360ca1b815250906115285760405162461bcd60e51b81526004016103639190612cd6565b506115ed565b600182600281111561154257611542612761565b141561158c5760016007820154600160401b900460ff16600281111561156a5761156a612761565b146115875760405162461bcd60e51b815260040161036390612d91565b6115ed565b60028260028111156115a0576115a0612761565b14156115e55760026007820154600160401b900460ff1660028111156115c8576115c8612761565b146115875760405162461bcd60e51b815260040161036390612db9565b6115ed612c5a565b61160483356020850135610b546040870187612de5565b8160060154146116265760405162461bcd60e51b815260040161036390612e35565b60026116356040850185612de5565b905010806116605750600161164d6040850185612de5565b611658929150612e58565b836060013510155b1561167d5760405162461bcd60e51b815260040161036390612e6f565b60018510156116c45760405162461bcd60e51b815260206004820152601360248201527210d2105313115391d157d513d3d7d4d213d495606a1b6044820152606401610363565b6508000000000085111561170f5760405162461bcd60e51b81526020600482015260126024820152714348414c4c454e47455f544f4f5f4c4f4e4760701b6044820152606401610363565b6117518861173161172360208b018b612ac6565b8960005b6020020135611b1f565b61174c61174460408c0160208d01612ac6565b8a6001611727565b611f0b565b6001600160401b038916600090815260016020526040812090806117748b611e7a565b91509150806001146117985760405162461bcd60e51b815260040161036390612efe565b60016117a760208c018c612ac6565b60038111156117b8576117b8612761565b14611872576117cd60408b0160208c01612ac6565b60038111156117de576117de612761565b6117eb60208c018c612ac6565b60038111156117fc576117fc612761565b14801561180d5750883560208a0135145b6118495760405162461bcd60e51b815260206004820152600d60248201526c48414c5445445f4348414e474560981b6044820152606401610363565b61186a8c6001600160401b0316600090815260016020526040812060060155565b5050506119d9565b600261188460408c0160208d01612ac6565b600381111561189557611895612761565b14156118de57883560208a0135146118de5760405162461bcd60e51b815260206004820152600c60248201526b4552524f525f4348414e474560a01b6044820152606401610363565b6040805160028082526060820183526000926020830190803683375050506005850154909150611910908b3590611fe0565b8160008151811061192357611923612ab0565b60209081029190910101526119518b60016020020160208101906119479190612ac6565b60208c013561216c565b8160018151811061196457611964612ab0565b602090810291909101015260078401805460ff60401b1916600160411b1790556119918d60008b84611c67565b8c6001600160401b03167f24e032e170243bbea97e140174b22dc7e54fb85925afbf52c70e001cd6af16db846040516119cc91815260200190565b60405180910390a2505050505b60006007820154600160401b900460ff1660028111156119fb576119fb612761565b1415611a075750611a94565b6040805180820190915281546001600160a01b03168152600182015460208201526004820154611a379042612e58565b81602001818151611a489190612e58565b90525060028201805483546001600160a01b038083166001600160a01b031992831617865560038601805460018801558551929093169116179091556020909101519055426004909101555b5050505050505050565b80518051602091820151828401518051908401516040516c23b637b130b61039ba30ba329d60991b95810195909552602d850193909352604d8401919091526001600160c01b031960c091821b8116606d85015291901b166075820152600090607d015b604051602081830303815290604052805190602001209050919050565b60006001836003811115611b3557611b35612761565b1415611b7b576040516b213637b1b59039ba30ba329d60a11b6020820152602c8101839052604c015b60405160208183030381529060405280519060200120905061097b565b6002836003811115611b8f57611b8f612761565b1415611bc55760405174213637b1b59039ba30ba32961032b93937b932b21d60591b602082015260358101839052605501611b5e565b6003836003811115611bd957611bd9612761565b1415611c085760405174213637b1b59039ba30ba3296103a37b7903330b91d60591b6020820152603501611b5e565b60405162461bcd60e51b815260206004820152601060248201526f4241445f424c4f434b5f53544154555360801b6044820152606401610363565b6020810151600090815b602002015192915050565b60208101516000906001611c4d565b6001821015611c7857611c78612c5a565b600281511015611c8a57611c8a612c5a565b6000611c97848484611e43565b6001600160401b038616600081815260016020526040908190206006018390555191925082917f86b34e9455464834eca718f62d4481437603bb929d8a78ccde5d1bc79fa06d6890611cee90889088908890612f90565b60405180910390a35050505050565b6001600160401b03821660008181526001602081905260408083206002808201805483546001600160a01b0319808216865596850188905595811690915560038301869055600480840187905560058401879055600684019690965560078301805468ffffffffffffffffff1916905590549251630357aa4960e01b8152948501959095526001600160a01b03948516602485018190529285166044850181905290949293909290911690630357aa4990606401600060405180830381600087803b158015611dcb57600080fd5b505af1158015611ddf573d6000803e3d6000fd5b50505050846001600160401b03167ffdaece6c274a4b56af16761f83fd6b1062823192630ea08e019fdf9b2d747f4085604051611e1c9190612d2b565b60405180910390a25050505050565b6001810154600090611e3c83612215565b1192915050565b6000838383604051602001611e5a93929190612fe5565b6040516020818303038152906040528051906020012090505b9392505050565b600080806001611e8d6040860186612de5565b611e98929150612e58565b9050611ea881602086013561303d565b9150611eb8606085013583613051565b611ec3908535612e9a565b92506002611ed46040860186612de5565b611edf929150612e58565b84606001351415611f0557611ef8816020860135613070565b611f029083612e9a565b91505b50915091565b81611f196040850185612de5565b8560600135818110611f2d57611f2d612ab0565b9050602002013514611f6f5760405162461bcd60e51b815260206004820152600b60248201526a15d493d391d7d4d510549560aa1b6044820152606401610363565b80611f7d6040850185612de5565b611f8c60608701356001612e9a565b818110611f9b57611f9b612ab0565b905060200201351415611fdb5760405162461bcd60e51b815260206004820152600860248201526714d0535157d1539160c21b6044820152606401610363565b505050565b60408051600380825260808201909252600091829190816020015b6040805180820190915260008082526020820152815260200190600190039081611ffb57505060408051808201825260008082526020918201819052825180840190935260048352908201529091508160008151811061205d5761205d612ab0565b60200260200101819052506120726000612227565b8160018151811061208557612085612ab0565b602002602001018190525061209a6000612227565b816002815181106120ad576120ad612ab0565b60209081029190910181019190915260408051808301825283815281518083019092528082526000928201929092526120fd60408051606080820183529181019182529081526000602082015290565b604080518082018252606080825260006020808401829052845161012081018652828152908101879052938401859052908301829052608083018a905260a0830181905260c0830181905260e083015261010082018890529061215f8161225a565b9998505050505050505050565b6000600183600381111561218257612182612761565b14156121995781604051602001611b5e9190613084565b60028360038111156121ad576121ad612761565b14156121d7576040516f26b0b1b434b7329032b93937b932b21d60811b6020820152603001611b5e565b60038360038111156121eb576121eb612761565b1415611c08576040516f26b0b1b434b732903a37b7903330b91d60811b6020820152603001611b5e565b600081600401544261097b9190612e58565b604080518082019091526000808252602082015250604080518082019091526000815263ffffffff909116602082015290565b6000808251600381111561227057612270612761565b1415612326576122838260200151612413565b6122908360400151612413565b61229d8460600151612498565b608085015160a086015160c087015160e0808901516101008a01516040516f26b0b1b434b73290393ab73734b7339d60811b602082015260308101999099526050890197909752607088019590955260908701939093526001600160e01b031991831b821660b0870152821b811660b486015291901b1660b883015260bc82015260dc01611b02565b60018251600381111561233b5761233b612761565b1415612356578160800151604051602001611b029190613084565b60028251600381111561236b5761236b612761565b1415612395576040516f26b0b1b434b7329032b93937b932b21d60811b6020820152603001611b02565b6003825160038111156123aa576123aa612761565b14156123d4576040516f26b0b1b434b732903a37b7903330b91d60811b6020820152603001611b02565b60405162461bcd60e51b815260206004820152600f60248201526e4241445f4d4143485f53544154555360881b6044820152606401610363565b919050565b60208101518151515160005b8181101561249157835161243c906124379083612531565b612569565b6040516b2b30b63ab29039ba30b1b59d60a11b6020820152602c810191909152604c8101849052606c016040516020818303038152906040528051906020012092508080612489906130a9565b91505061241f565b5050919050565b602081015160005b82515181101561252b576124d0836000015182815181106124c3576124c3612ab0565b6020026020010151612586565b6040517129ba30b1b590333930b6b29039ba30b1b59d60711b60208201526032810191909152605281018390526072016040516020818303038152906040528051906020012091508080612523906130a9565b9150506124a0565b50919050565b6040805180820190915260008082526020820152825180518390811061255957612559612ab0565b6020026020010151905092915050565b600081600001518260200151604051602001611b029291906130c4565b60006125958260000151612569565b602080840151604080860151606087015191516b29ba30b1b590333930b6b29d60a11b94810194909452602c840194909452604c8301919091526001600160e01b031960e093841b8116606c840152921b9091166070820152607401611b02565b604080516101208101909152600060e0820181815261010083019190915281908152602001612635604080518082019091526000808252602082015290565b815260006020820181905260408201819052606082018190526080820181905260a09091015290565b806040810183101561097b57600080fd5b80356001600160401b038116811461240e57600080fd5b6001600160a01b03811681146106ec57600080fd5b600080600080600080600080610200898b0312156126b857600080fd5b883597506126c98a60208b0161265e565b965061016089018a8111156126dd57600080fd5b60608a0196506126ec8161266f565b9550506101808901356126fe81612686565b93506101a089013561270f81612686565b979a96995094979396929592945050506101c0820135916101e0013590565b60006020828403121561274057600080fd5b611e738261266f565b80516001600160a01b03168252602090810151910152565b634e487b7160e01b600052602160045260246000fd5b6003811061278757612787612761565b9052565b60006101208201905061279f828451612749565b60208301516127b16040840182612749565b5060408301516080830152606083015160a0830152608083015160c08301526001600160401b0360a08401511660e083015260c08301516127f6610100840182612777565b5092915050565b60006020828403121561280f57600080fd5b5035919050565b6101208101612825828a612749565b6128326040830189612749565b8660808301528560a08301528460c08301526001600160401b03841660e0830152610613610100830184612777565b60006080828403121561252b57600080fd5b6000806000806060858703121561288957600080fd5b6128928561266f565b935060208501356001600160401b03808211156128ae57600080fd5b6128ba88838901612861565b945060408701359150808211156128d057600080fd5b818701915087601f8301126128e457600080fd5b8135818111156128f357600080fd5b8860208260051b850101111561290857600080fd5b95989497505060200194505050565b60006020828403121561292957600080fd5b8135611e7381612686565b6000806000806060858703121561294a57600080fd5b6129538561266f565b935060208501356001600160401b038082111561296f57600080fd5b61297b88838901612861565b9450604087013591508082111561299157600080fd5b818701915087601f8301126129a557600080fd5b8135818111156129b457600080fd5b88602082850101111561290857600080fd5b600080600080608085870312156129dc57600080fd5b84356129e781612686565b935060208501356129f781612686565b92506040850135612a0781612686565b91506060850135612a1781612686565b939692955090935050565b600080600080600060e08688031215612a3a57600080fd5b612a438661266f565b945060208601356001600160401b03811115612a5e57600080fd5b612a6a88828901612861565b945050612a7a876040880161265e565b9250612a89876080880161265e565b9497939650919460c0013592915050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060208284031215612ad857600080fd5b813560048110611e7357600080fd5b604080519081016001600160401b0381118282101715612b0957612b09612a9a565b60405290565b600082601f830112612b2057600080fd5b604051604081018181106001600160401b0382111715612b4257612b42612a9a565b8060405250806040840185811115612b5957600080fd5b845b81811015612b7a57612b6c8161266f565b835260209283019201612b5b565b509195945050505050565b600060808284031215612b9757600080fd5b604051604081018181106001600160401b0382111715612bb957612bb9612a9a565b604052601f83018413612bcb57600080fd5b612bd3612ae7565b806040850186811115612be557600080fd5b855b81811015612bff578035845260209384019301612be7565b50818452612c0d8782612b0f565b6020850152509195945050505050565b634e487b7160e01b600052601160045260246000fd5b60006001600160401b0380831681811415612c5057612c50612c1d565b6001019392505050565b634e487b7160e01b600052600160045260246000fd5b604081833760006040838101828152908301915b6002811015612cb3576001600160401b03612c9e8461266f565b16825260209283019290910190600101612c84565b5050505050565b6101008101612cc98285612c70565b611e736080830184612c70565b600060208083528351808285015260005b81811015612d0357858101830151858201604001528201612ce7565b81811115612d15576000604083870101525b50601f01601f1916929092016040019392505050565b6020810160048310612d3f57612d3f612761565b91905290565b6020808252600b908201526a21a420a62fa9a2a72222a960a91b604082015260600190565b6020808252600d908201526c4348414c5f444541444c494e4560981b604082015260600190565b6020808252600e908201526d4348414c5f4e4f545f424c4f434b60901b604082015260600190565b60208082526012908201527121a420a62fa727aa2fa2ac22a1aaaa24a7a760711b604082015260600190565b6000808335601e19843603018112612dfc57600080fd5b8301803591506001600160401b03821115612e1657600080fd5b6020019150600581901b3603821315612e2e57600080fd5b9250929050565b6020808252600990820152684249535f535441544560b81b604082015260600190565b600082821015612e6a57612e6a612c1d565b500390565b6020808252601190820152704241445f4348414c4c454e47455f504f5360781b604082015260600190565b60008219821115612ead57612ead612c1d565b500190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b602080825260089082015267544f4f5f4c4f4e4760c01b604082015260600190565b8551815260018060a01b03602087015116602082015284604082015283606082015260a060808201528160a0820152818360c0830137600081830160c090810191909152601f909201601f19160101949350505050565b600060208284031215612f8957600080fd5b5051919050565b6000606082018583526020858185015260606040850152818551808452608086019150828701935060005b81811015612fd757845183529383019391830191600101612fbb565b509098975050505050505050565b83815260006020848184015260408301845182860160005b8281101561301957815184529284019290840190600101612ffd565b509198975050505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261304c5761304c613027565b500490565b600081600019048311821515161561306b5761306b612c1d565b500290565b60008261307f5761307f613027565b500690565b7026b0b1b434b732903334b734b9b432b21d60791b8152601181019190915260310190565b60006000198214156130bd576130bd612c1d565b5060010190565b652b30b63ab29d60d11b81526000600784106130e2576130e2612761565b5060f89290921b600683015260078201526027019056fea26469706673582212204e9beb8667db81401ddf0d2848d4f1418bb69fc687e03f3e46f3c6878310471464736f6c63430008090033",
}

ChallengeManagerMetaData contains all meta data concerning the ChallengeManager contract.

View Source
var IChallengeManagerABI = IChallengeManagerMetaData.ABI

IChallengeManagerABI is the input ABI used to generate the binding from. Deprecated: Use IChallengeManagerMetaData.ABI instead.

View Source
var IChallengeManagerMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"challengeRoot\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"challengedSegmentStart\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"challengedSegmentLength\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"chainHashes\",\"type\":\"bytes32[]\"}],\"name\":\"Bisected\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"enumIChallengeManager.ChallengeTerminationType\",\"name\":\"kind\",\"type\":\"uint8\"}],\"name\":\"ChallengeEnded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"blockSteps\",\"type\":\"uint256\"}],\"name\":\"ExecutionChallengeBegun\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"bytes32[2]\",\"name\":\"bytes32Vals\",\"type\":\"bytes32[2]\"},{\"internalType\":\"uint64[2]\",\"name\":\"u64Vals\",\"type\":\"uint64[2]\"}],\"indexed\":false,\"internalType\":\"structGlobalState\",\"name\":\"startState\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes32[2]\",\"name\":\"bytes32Vals\",\"type\":\"bytes32[2]\"},{\"internalType\":\"uint64[2]\",\"name\":\"u64Vals\",\"type\":\"uint64[2]\"}],\"indexed\":false,\"internalType\":\"structGlobalState\",\"name\":\"endState\",\"type\":\"tuple\"}],\"name\":\"InitiatedChallenge\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"}],\"name\":\"OneStepProofCompleted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex_\",\"type\":\"uint64\"}],\"name\":\"challengeInfo\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"timeLeft\",\"type\":\"uint256\"}],\"internalType\":\"structChallengeLib.Participant\",\"name\":\"current\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"timeLeft\",\"type\":\"uint256\"}],\"internalType\":\"structChallengeLib.Participant\",\"name\":\"next\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"lastMoveTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"wasmModuleRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"challengeStateHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"maxInboxMessages\",\"type\":\"uint64\"},{\"internalType\":\"enumChallengeLib.ChallengeMode\",\"name\":\"mode\",\"type\":\"uint8\"}],\"internalType\":\"structChallengeLib.Challenge\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex_\",\"type\":\"uint64\"}],\"name\":\"clearChallenge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"wasmModuleRoot_\",\"type\":\"bytes32\"},{\"internalType\":\"enumMachineStatus[2]\",\"name\":\"startAndEndMachineStatuses_\",\"type\":\"uint8[2]\"},{\"components\":[{\"internalType\":\"bytes32[2]\",\"name\":\"bytes32Vals\",\"type\":\"bytes32[2]\"},{\"internalType\":\"uint64[2]\",\"name\":\"u64Vals\",\"type\":\"uint64[2]\"}],\"internalType\":\"structGlobalState[2]\",\"name\":\"startAndEndGlobalStates_\",\"type\":\"tuple[2]\"},{\"internalType\":\"uint64\",\"name\":\"numBlocks\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"asserter_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"challenger_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"asserterTimeLeft_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"challengerTimeLeft_\",\"type\":\"uint256\"}],\"name\":\"createChallenge\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"}],\"name\":\"currentResponder\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIChallengeResultReceiver\",\"name\":\"resultReceiver_\",\"type\":\"address\"},{\"internalType\":\"contractISequencerInbox\",\"name\":\"sequencerInbox_\",\"type\":\"address\"},{\"internalType\":\"contractIBridge\",\"name\":\"bridge_\",\"type\":\"address\"},{\"internalType\":\"contractIOneStepProofEntry\",\"name\":\"osp_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex\",\"type\":\"uint64\"}],\"name\":\"isTimedOut\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"challengeIndex_\",\"type\":\"uint64\"}],\"name\":\"timeout\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IChallengeManagerMetaData contains all meta data concerning the IChallengeManager contract.

View Source
var IChallengeResultReceiverABI = IChallengeResultReceiverMetaData.ABI

IChallengeResultReceiverABI is the input ABI used to generate the binding from. Deprecated: Use IChallengeResultReceiverMetaData.ABI instead.

View Source
var IChallengeResultReceiverMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"challengeIndex\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"winner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"loser\",\"type\":\"address\"}],\"name\":\"completeChallenge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IChallengeResultReceiverMetaData contains all meta data concerning the IChallengeResultReceiver contract.

Functions

This section is empty.

Types

type ChallengeLib

type ChallengeLib struct {
	ChallengeLibCaller     // Read-only binding to the contract
	ChallengeLibTransactor // Write-only binding to the contract
	ChallengeLibFilterer   // Log filterer for contract events
}

ChallengeLib is an auto generated Go binding around an Ethereum contract.

func DeployChallengeLib

func DeployChallengeLib(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ChallengeLib, error)

DeployChallengeLib deploys a new Ethereum contract, binding an instance of ChallengeLib to it.

func NewChallengeLib

func NewChallengeLib(address common.Address, backend bind.ContractBackend) (*ChallengeLib, error)

NewChallengeLib creates a new instance of ChallengeLib, bound to a specific deployed contract.

type ChallengeLibCaller

type ChallengeLibCaller struct {
	// contains filtered or unexported fields
}

ChallengeLibCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewChallengeLibCaller

func NewChallengeLibCaller(address common.Address, caller bind.ContractCaller) (*ChallengeLibCaller, error)

NewChallengeLibCaller creates a new read-only instance of ChallengeLib, bound to a specific deployed contract.

type ChallengeLibCallerRaw

type ChallengeLibCallerRaw struct {
	Contract *ChallengeLibCaller // Generic read-only contract binding to access the raw methods on
}

ChallengeLibCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ChallengeLibCallerRaw) Call

func (_ChallengeLib *ChallengeLibCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ChallengeLibCallerSession

type ChallengeLibCallerSession struct {
	Contract *ChallengeLibCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts       // Call options to use throughout this session
}

ChallengeLibCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

type ChallengeLibChallenge

type ChallengeLibChallenge struct {
	Current            ChallengeLibParticipant
	Next               ChallengeLibParticipant
	LastMoveTimestamp  *big.Int
	WasmModuleRoot     [32]byte
	ChallengeStateHash [32]byte
	MaxInboxMessages   uint64
	Mode               uint8
}

ChallengeLibChallenge is an auto generated low-level Go binding around an user-defined struct.

type ChallengeLibFilterer

type ChallengeLibFilterer struct {
	// contains filtered or unexported fields
}

ChallengeLibFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewChallengeLibFilterer

func NewChallengeLibFilterer(address common.Address, filterer bind.ContractFilterer) (*ChallengeLibFilterer, error)

NewChallengeLibFilterer creates a new log filterer instance of ChallengeLib, bound to a specific deployed contract.

type ChallengeLibParticipant

type ChallengeLibParticipant struct {
	Addr     common.Address
	TimeLeft *big.Int
}

ChallengeLibParticipant is an auto generated low-level Go binding around an user-defined struct.

type ChallengeLibRaw

type ChallengeLibRaw struct {
	Contract *ChallengeLib // Generic contract binding to access the raw methods on
}

ChallengeLibRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ChallengeLibRaw) Call

func (_ChallengeLib *ChallengeLibRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ChallengeLibRaw) Transact

func (_ChallengeLib *ChallengeLibRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ChallengeLibRaw) Transfer

func (_ChallengeLib *ChallengeLibRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ChallengeLibSegmentSelection

type ChallengeLibSegmentSelection struct {
	OldSegmentsStart  *big.Int
	OldSegmentsLength *big.Int
	OldSegments       [][32]byte
	ChallengePosition *big.Int
}

ChallengeLibSegmentSelection is an auto generated low-level Go binding around an user-defined struct.

type ChallengeLibSession

type ChallengeLibSession struct {
	Contract     *ChallengeLib     // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ChallengeLibSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

type ChallengeLibTransactor

type ChallengeLibTransactor struct {
	// contains filtered or unexported fields
}

ChallengeLibTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewChallengeLibTransactor

func NewChallengeLibTransactor(address common.Address, transactor bind.ContractTransactor) (*ChallengeLibTransactor, error)

NewChallengeLibTransactor creates a new write-only instance of ChallengeLib, bound to a specific deployed contract.

type ChallengeLibTransactorRaw

type ChallengeLibTransactorRaw struct {
	Contract *ChallengeLibTransactor // Generic write-only contract binding to access the raw methods on
}

ChallengeLibTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ChallengeLibTransactorRaw) Transact

func (_ChallengeLib *ChallengeLibTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ChallengeLibTransactorRaw) Transfer

func (_ChallengeLib *ChallengeLibTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ChallengeLibTransactorSession

type ChallengeLibTransactorSession struct {
	Contract     *ChallengeLibTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts       // Transaction auth options to use throughout this session
}

ChallengeLibTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

type ChallengeManager

type ChallengeManager struct {
	ChallengeManagerCaller     // Read-only binding to the contract
	ChallengeManagerTransactor // Write-only binding to the contract
	ChallengeManagerFilterer   // Log filterer for contract events
}

ChallengeManager is an auto generated Go binding around an Ethereum contract.

func DeployChallengeManager

func DeployChallengeManager(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ChallengeManager, error)

DeployChallengeManager deploys a new Ethereum contract, binding an instance of ChallengeManager to it.

func NewChallengeManager

func NewChallengeManager(address common.Address, backend bind.ContractBackend) (*ChallengeManager, error)

NewChallengeManager creates a new instance of ChallengeManager, bound to a specific deployed contract.

type ChallengeManagerBisected

type ChallengeManagerBisected struct {
	ChallengeIndex          uint64
	ChallengeRoot           [32]byte
	ChallengedSegmentStart  *big.Int
	ChallengedSegmentLength *big.Int
	ChainHashes             [][32]byte
	Raw                     types.Log // Blockchain specific contextual infos
}

ChallengeManagerBisected represents a Bisected event raised by the ChallengeManager contract.

type ChallengeManagerBisectedIterator

type ChallengeManagerBisectedIterator struct {
	Event *ChallengeManagerBisected // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ChallengeManagerBisectedIterator is returned from FilterBisected and is used to iterate over the raw logs and unpacked data for Bisected events raised by the ChallengeManager contract.

func (*ChallengeManagerBisectedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ChallengeManagerBisectedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChallengeManagerBisectedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ChallengeManagerCaller

type ChallengeManagerCaller struct {
	// contains filtered or unexported fields
}

ChallengeManagerCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewChallengeManagerCaller

func NewChallengeManagerCaller(address common.Address, caller bind.ContractCaller) (*ChallengeManagerCaller, error)

NewChallengeManagerCaller creates a new read-only instance of ChallengeManager, bound to a specific deployed contract.

func (*ChallengeManagerCaller) Bridge

func (_ChallengeManager *ChallengeManagerCaller) Bridge(opts *bind.CallOpts) (common.Address, error)

Bridge is a free data retrieval call binding the contract method 0xe78cea92.

Solidity: function bridge() view returns(address)

func (*ChallengeManagerCaller) ChallengeInfo

func (_ChallengeManager *ChallengeManagerCaller) ChallengeInfo(opts *bind.CallOpts, challengeIndex uint64) (ChallengeLibChallenge, error)

ChallengeInfo is a free data retrieval call binding the contract method 0x7fd07a9c.

Solidity: function challengeInfo(uint64 challengeIndex) view returns(((address,uint256),(address,uint256),uint256,bytes32,bytes32,uint64,uint8))

func (*ChallengeManagerCaller) Challenges

func (_ChallengeManager *ChallengeManagerCaller) Challenges(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Current            ChallengeLibParticipant
	Next               ChallengeLibParticipant
	LastMoveTimestamp  *big.Int
	WasmModuleRoot     [32]byte
	ChallengeStateHash [32]byte
	MaxInboxMessages   uint64
	Mode               uint8
}, error)

Challenges is a free data retrieval call binding the contract method 0x8f1d3776.

Solidity: function challenges(uint256 ) view returns((address,uint256) current, (address,uint256) next, uint256 lastMoveTimestamp, bytes32 wasmModuleRoot, bytes32 challengeStateHash, uint64 maxInboxMessages, uint8 mode)

func (*ChallengeManagerCaller) CurrentResponder

func (_ChallengeManager *ChallengeManagerCaller) CurrentResponder(opts *bind.CallOpts, challengeIndex uint64) (common.Address, error)

CurrentResponder is a free data retrieval call binding the contract method 0x23a9ef23.

Solidity: function currentResponder(uint64 challengeIndex) view returns(address)

func (*ChallengeManagerCaller) IsTimedOut

func (_ChallengeManager *ChallengeManagerCaller) IsTimedOut(opts *bind.CallOpts, challengeIndex uint64) (bool, error)

IsTimedOut is a free data retrieval call binding the contract method 0x9ede42b9.

Solidity: function isTimedOut(uint64 challengeIndex) view returns(bool)

func (*ChallengeManagerCaller) Osp

func (_ChallengeManager *ChallengeManagerCaller) Osp(opts *bind.CallOpts) (common.Address, error)

Osp is a free data retrieval call binding the contract method 0xf26a62c6.

Solidity: function osp() view returns(address)

func (*ChallengeManagerCaller) ResultReceiver

func (_ChallengeManager *ChallengeManagerCaller) ResultReceiver(opts *bind.CallOpts) (common.Address, error)

ResultReceiver is a free data retrieval call binding the contract method 0x3504f1d7.

Solidity: function resultReceiver() view returns(address)

func (*ChallengeManagerCaller) SequencerInbox

func (_ChallengeManager *ChallengeManagerCaller) SequencerInbox(opts *bind.CallOpts) (common.Address, error)

SequencerInbox is a free data retrieval call binding the contract method 0xee35f327.

Solidity: function sequencerInbox() view returns(address)

func (*ChallengeManagerCaller) TotalChallengesCreated

func (_ChallengeManager *ChallengeManagerCaller) TotalChallengesCreated(opts *bind.CallOpts) (uint64, error)

TotalChallengesCreated is a free data retrieval call binding the contract method 0x5ef489e6.

Solidity: function totalChallengesCreated() view returns(uint64)

type ChallengeManagerCallerRaw

type ChallengeManagerCallerRaw struct {
	Contract *ChallengeManagerCaller // Generic read-only contract binding to access the raw methods on
}

ChallengeManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ChallengeManagerCallerRaw) Call

func (_ChallengeManager *ChallengeManagerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ChallengeManagerCallerSession

type ChallengeManagerCallerSession struct {
	Contract *ChallengeManagerCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts           // Call options to use throughout this session
}

ChallengeManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ChallengeManagerCallerSession) Bridge

func (_ChallengeManager *ChallengeManagerCallerSession) Bridge() (common.Address, error)

Bridge is a free data retrieval call binding the contract method 0xe78cea92.

Solidity: function bridge() view returns(address)

func (*ChallengeManagerCallerSession) ChallengeInfo

func (_ChallengeManager *ChallengeManagerCallerSession) ChallengeInfo(challengeIndex uint64) (ChallengeLibChallenge, error)

ChallengeInfo is a free data retrieval call binding the contract method 0x7fd07a9c.

Solidity: function challengeInfo(uint64 challengeIndex) view returns(((address,uint256),(address,uint256),uint256,bytes32,bytes32,uint64,uint8))

func (*ChallengeManagerCallerSession) Challenges

func (_ChallengeManager *ChallengeManagerCallerSession) Challenges(arg0 *big.Int) (struct {
	Current            ChallengeLibParticipant
	Next               ChallengeLibParticipant
	LastMoveTimestamp  *big.Int
	WasmModuleRoot     [32]byte
	ChallengeStateHash [32]byte
	MaxInboxMessages   uint64
	Mode               uint8
}, error)

Challenges is a free data retrieval call binding the contract method 0x8f1d3776.

Solidity: function challenges(uint256 ) view returns((address,uint256) current, (address,uint256) next, uint256 lastMoveTimestamp, bytes32 wasmModuleRoot, bytes32 challengeStateHash, uint64 maxInboxMessages, uint8 mode)

func (*ChallengeManagerCallerSession) CurrentResponder

func (_ChallengeManager *ChallengeManagerCallerSession) CurrentResponder(challengeIndex uint64) (common.Address, error)

CurrentResponder is a free data retrieval call binding the contract method 0x23a9ef23.

Solidity: function currentResponder(uint64 challengeIndex) view returns(address)

func (*ChallengeManagerCallerSession) IsTimedOut

func (_ChallengeManager *ChallengeManagerCallerSession) IsTimedOut(challengeIndex uint64) (bool, error)

IsTimedOut is a free data retrieval call binding the contract method 0x9ede42b9.

Solidity: function isTimedOut(uint64 challengeIndex) view returns(bool)

func (*ChallengeManagerCallerSession) Osp

func (_ChallengeManager *ChallengeManagerCallerSession) Osp() (common.Address, error)

Osp is a free data retrieval call binding the contract method 0xf26a62c6.

Solidity: function osp() view returns(address)

func (*ChallengeManagerCallerSession) ResultReceiver

func (_ChallengeManager *ChallengeManagerCallerSession) ResultReceiver() (common.Address, error)

ResultReceiver is a free data retrieval call binding the contract method 0x3504f1d7.

Solidity: function resultReceiver() view returns(address)

func (*ChallengeManagerCallerSession) SequencerInbox

func (_ChallengeManager *ChallengeManagerCallerSession) SequencerInbox() (common.Address, error)

SequencerInbox is a free data retrieval call binding the contract method 0xee35f327.

Solidity: function sequencerInbox() view returns(address)

func (*ChallengeManagerCallerSession) TotalChallengesCreated

func (_ChallengeManager *ChallengeManagerCallerSession) TotalChallengesCreated() (uint64, error)

TotalChallengesCreated is a free data retrieval call binding the contract method 0x5ef489e6.

Solidity: function totalChallengesCreated() view returns(uint64)

type ChallengeManagerChallengeEnded

type ChallengeManagerChallengeEnded struct {
	ChallengeIndex uint64
	Kind           uint8
	Raw            types.Log // Blockchain specific contextual infos
}

ChallengeManagerChallengeEnded represents a ChallengeEnded event raised by the ChallengeManager contract.

type ChallengeManagerChallengeEndedIterator

type ChallengeManagerChallengeEndedIterator struct {
	Event *ChallengeManagerChallengeEnded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ChallengeManagerChallengeEndedIterator is returned from FilterChallengeEnded and is used to iterate over the raw logs and unpacked data for ChallengeEnded events raised by the ChallengeManager contract.

func (*ChallengeManagerChallengeEndedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ChallengeManagerChallengeEndedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChallengeManagerChallengeEndedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ChallengeManagerExecutionChallengeBegun

type ChallengeManagerExecutionChallengeBegun struct {
	ChallengeIndex uint64
	BlockSteps     *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

ChallengeManagerExecutionChallengeBegun represents a ExecutionChallengeBegun event raised by the ChallengeManager contract.

type ChallengeManagerExecutionChallengeBegunIterator

type ChallengeManagerExecutionChallengeBegunIterator struct {
	Event *ChallengeManagerExecutionChallengeBegun // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ChallengeManagerExecutionChallengeBegunIterator is returned from FilterExecutionChallengeBegun and is used to iterate over the raw logs and unpacked data for ExecutionChallengeBegun events raised by the ChallengeManager contract.

func (*ChallengeManagerExecutionChallengeBegunIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ChallengeManagerExecutionChallengeBegunIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChallengeManagerExecutionChallengeBegunIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ChallengeManagerFilterer

type ChallengeManagerFilterer struct {
	// contains filtered or unexported fields
}

ChallengeManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewChallengeManagerFilterer

func NewChallengeManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*ChallengeManagerFilterer, error)

NewChallengeManagerFilterer creates a new log filterer instance of ChallengeManager, bound to a specific deployed contract.

func (*ChallengeManagerFilterer) FilterBisected

func (_ChallengeManager *ChallengeManagerFilterer) FilterBisected(opts *bind.FilterOpts, challengeIndex []uint64, challengeRoot [][32]byte) (*ChallengeManagerBisectedIterator, error)

FilterBisected is a free log retrieval operation binding the contract event 0x86b34e9455464834eca718f62d4481437603bb929d8a78ccde5d1bc79fa06d68.

Solidity: event Bisected(uint64 indexed challengeIndex, bytes32 indexed challengeRoot, uint256 challengedSegmentStart, uint256 challengedSegmentLength, bytes32[] chainHashes)

func (*ChallengeManagerFilterer) FilterChallengeEnded

func (_ChallengeManager *ChallengeManagerFilterer) FilterChallengeEnded(opts *bind.FilterOpts, challengeIndex []uint64) (*ChallengeManagerChallengeEndedIterator, error)

FilterChallengeEnded is a free log retrieval operation binding the contract event 0xfdaece6c274a4b56af16761f83fd6b1062823192630ea08e019fdf9b2d747f40.

Solidity: event ChallengeEnded(uint64 indexed challengeIndex, uint8 kind)

func (*ChallengeManagerFilterer) FilterExecutionChallengeBegun

func (_ChallengeManager *ChallengeManagerFilterer) FilterExecutionChallengeBegun(opts *bind.FilterOpts, challengeIndex []uint64) (*ChallengeManagerExecutionChallengeBegunIterator, error)

FilterExecutionChallengeBegun is a free log retrieval operation binding the contract event 0x24e032e170243bbea97e140174b22dc7e54fb85925afbf52c70e001cd6af16db.

Solidity: event ExecutionChallengeBegun(uint64 indexed challengeIndex, uint256 blockSteps)

func (*ChallengeManagerFilterer) FilterInitiatedChallenge

func (_ChallengeManager *ChallengeManagerFilterer) FilterInitiatedChallenge(opts *bind.FilterOpts, challengeIndex []uint64) (*ChallengeManagerInitiatedChallengeIterator, error)

FilterInitiatedChallenge is a free log retrieval operation binding the contract event 0x76604fe17af46c9b5f53ffe99ff23e0f655dab91886b07ac1fc0254319f7145a.

Solidity: event InitiatedChallenge(uint64 indexed challengeIndex, (bytes32[2],uint64[2]) startState, (bytes32[2],uint64[2]) endState)

func (*ChallengeManagerFilterer) FilterOneStepProofCompleted

func (_ChallengeManager *ChallengeManagerFilterer) FilterOneStepProofCompleted(opts *bind.FilterOpts, challengeIndex []uint64) (*ChallengeManagerOneStepProofCompletedIterator, error)

FilterOneStepProofCompleted is a free log retrieval operation binding the contract event 0xc2cc42e04ff8c36de71c6a2937ea9f161dd0dd9e175f00caa26e5200643c781e.

Solidity: event OneStepProofCompleted(uint64 indexed challengeIndex)

func (*ChallengeManagerFilterer) ParseBisected

func (_ChallengeManager *ChallengeManagerFilterer) ParseBisected(log types.Log) (*ChallengeManagerBisected, error)

ParseBisected is a log parse operation binding the contract event 0x86b34e9455464834eca718f62d4481437603bb929d8a78ccde5d1bc79fa06d68.

Solidity: event Bisected(uint64 indexed challengeIndex, bytes32 indexed challengeRoot, uint256 challengedSegmentStart, uint256 challengedSegmentLength, bytes32[] chainHashes)

func (*ChallengeManagerFilterer) ParseChallengeEnded

func (_ChallengeManager *ChallengeManagerFilterer) ParseChallengeEnded(log types.Log) (*ChallengeManagerChallengeEnded, error)

ParseChallengeEnded is a log parse operation binding the contract event 0xfdaece6c274a4b56af16761f83fd6b1062823192630ea08e019fdf9b2d747f40.

Solidity: event ChallengeEnded(uint64 indexed challengeIndex, uint8 kind)

func (*ChallengeManagerFilterer) ParseExecutionChallengeBegun

func (_ChallengeManager *ChallengeManagerFilterer) ParseExecutionChallengeBegun(log types.Log) (*ChallengeManagerExecutionChallengeBegun, error)

ParseExecutionChallengeBegun is a log parse operation binding the contract event 0x24e032e170243bbea97e140174b22dc7e54fb85925afbf52c70e001cd6af16db.

Solidity: event ExecutionChallengeBegun(uint64 indexed challengeIndex, uint256 blockSteps)

func (*ChallengeManagerFilterer) ParseInitiatedChallenge

func (_ChallengeManager *ChallengeManagerFilterer) ParseInitiatedChallenge(log types.Log) (*ChallengeManagerInitiatedChallenge, error)

ParseInitiatedChallenge is a log parse operation binding the contract event 0x76604fe17af46c9b5f53ffe99ff23e0f655dab91886b07ac1fc0254319f7145a.

Solidity: event InitiatedChallenge(uint64 indexed challengeIndex, (bytes32[2],uint64[2]) startState, (bytes32[2],uint64[2]) endState)

func (*ChallengeManagerFilterer) ParseOneStepProofCompleted

func (_ChallengeManager *ChallengeManagerFilterer) ParseOneStepProofCompleted(log types.Log) (*ChallengeManagerOneStepProofCompleted, error)

ParseOneStepProofCompleted is a log parse operation binding the contract event 0xc2cc42e04ff8c36de71c6a2937ea9f161dd0dd9e175f00caa26e5200643c781e.

Solidity: event OneStepProofCompleted(uint64 indexed challengeIndex)

func (*ChallengeManagerFilterer) WatchBisected

func (_ChallengeManager *ChallengeManagerFilterer) WatchBisected(opts *bind.WatchOpts, sink chan<- *ChallengeManagerBisected, challengeIndex []uint64, challengeRoot [][32]byte) (event.Subscription, error)

WatchBisected is a free log subscription operation binding the contract event 0x86b34e9455464834eca718f62d4481437603bb929d8a78ccde5d1bc79fa06d68.

Solidity: event Bisected(uint64 indexed challengeIndex, bytes32 indexed challengeRoot, uint256 challengedSegmentStart, uint256 challengedSegmentLength, bytes32[] chainHashes)

func (*ChallengeManagerFilterer) WatchChallengeEnded

func (_ChallengeManager *ChallengeManagerFilterer) WatchChallengeEnded(opts *bind.WatchOpts, sink chan<- *ChallengeManagerChallengeEnded, challengeIndex []uint64) (event.Subscription, error)

WatchChallengeEnded is a free log subscription operation binding the contract event 0xfdaece6c274a4b56af16761f83fd6b1062823192630ea08e019fdf9b2d747f40.

Solidity: event ChallengeEnded(uint64 indexed challengeIndex, uint8 kind)

func (*ChallengeManagerFilterer) WatchExecutionChallengeBegun

func (_ChallengeManager *ChallengeManagerFilterer) WatchExecutionChallengeBegun(opts *bind.WatchOpts, sink chan<- *ChallengeManagerExecutionChallengeBegun, challengeIndex []uint64) (event.Subscription, error)

WatchExecutionChallengeBegun is a free log subscription operation binding the contract event 0x24e032e170243bbea97e140174b22dc7e54fb85925afbf52c70e001cd6af16db.

Solidity: event ExecutionChallengeBegun(uint64 indexed challengeIndex, uint256 blockSteps)

func (*ChallengeManagerFilterer) WatchInitiatedChallenge

func (_ChallengeManager *ChallengeManagerFilterer) WatchInitiatedChallenge(opts *bind.WatchOpts, sink chan<- *ChallengeManagerInitiatedChallenge, challengeIndex []uint64) (event.Subscription, error)

WatchInitiatedChallenge is a free log subscription operation binding the contract event 0x76604fe17af46c9b5f53ffe99ff23e0f655dab91886b07ac1fc0254319f7145a.

Solidity: event InitiatedChallenge(uint64 indexed challengeIndex, (bytes32[2],uint64[2]) startState, (bytes32[2],uint64[2]) endState)

func (*ChallengeManagerFilterer) WatchOneStepProofCompleted

func (_ChallengeManager *ChallengeManagerFilterer) WatchOneStepProofCompleted(opts *bind.WatchOpts, sink chan<- *ChallengeManagerOneStepProofCompleted, challengeIndex []uint64) (event.Subscription, error)

WatchOneStepProofCompleted is a free log subscription operation binding the contract event 0xc2cc42e04ff8c36de71c6a2937ea9f161dd0dd9e175f00caa26e5200643c781e.

Solidity: event OneStepProofCompleted(uint64 indexed challengeIndex)

type ChallengeManagerInitiatedChallenge

type ChallengeManagerInitiatedChallenge struct {
	ChallengeIndex uint64
	StartState     GlobalState
	EndState       GlobalState
	Raw            types.Log // Blockchain specific contextual infos
}

ChallengeManagerInitiatedChallenge represents a InitiatedChallenge event raised by the ChallengeManager contract.

type ChallengeManagerInitiatedChallengeIterator

type ChallengeManagerInitiatedChallengeIterator struct {
	Event *ChallengeManagerInitiatedChallenge // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ChallengeManagerInitiatedChallengeIterator is returned from FilterInitiatedChallenge and is used to iterate over the raw logs and unpacked data for InitiatedChallenge events raised by the ChallengeManager contract.

func (*ChallengeManagerInitiatedChallengeIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ChallengeManagerInitiatedChallengeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChallengeManagerInitiatedChallengeIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ChallengeManagerOneStepProofCompleted

type ChallengeManagerOneStepProofCompleted struct {
	ChallengeIndex uint64
	Raw            types.Log // Blockchain specific contextual infos
}

ChallengeManagerOneStepProofCompleted represents a OneStepProofCompleted event raised by the ChallengeManager contract.

type ChallengeManagerOneStepProofCompletedIterator

type ChallengeManagerOneStepProofCompletedIterator struct {
	Event *ChallengeManagerOneStepProofCompleted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ChallengeManagerOneStepProofCompletedIterator is returned from FilterOneStepProofCompleted and is used to iterate over the raw logs and unpacked data for OneStepProofCompleted events raised by the ChallengeManager contract.

func (*ChallengeManagerOneStepProofCompletedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ChallengeManagerOneStepProofCompletedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChallengeManagerOneStepProofCompletedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ChallengeManagerRaw

type ChallengeManagerRaw struct {
	Contract *ChallengeManager // Generic contract binding to access the raw methods on
}

ChallengeManagerRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ChallengeManagerRaw) Call

func (_ChallengeManager *ChallengeManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ChallengeManagerRaw) Transact

func (_ChallengeManager *ChallengeManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ChallengeManagerRaw) Transfer

func (_ChallengeManager *ChallengeManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ChallengeManagerSession

type ChallengeManagerSession struct {
	Contract     *ChallengeManager // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ChallengeManagerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ChallengeManagerSession) BisectExecution

func (_ChallengeManager *ChallengeManagerSession) BisectExecution(challengeIndex uint64, selection ChallengeLibSegmentSelection, newSegments [][32]byte) (*types.Transaction, error)

BisectExecution is a paid mutator transaction binding the contract method 0xa521b032.

Solidity: function bisectExecution(uint64 challengeIndex, (uint256,uint256,bytes32[],uint256) selection, bytes32[] newSegments) returns()

func (*ChallengeManagerSession) Bridge

func (_ChallengeManager *ChallengeManagerSession) Bridge() (common.Address, error)

Bridge is a free data retrieval call binding the contract method 0xe78cea92.

Solidity: function bridge() view returns(address)

func (*ChallengeManagerSession) ChallengeExecution

func (_ChallengeManager *ChallengeManagerSession) ChallengeExecution(challengeIndex uint64, selection ChallengeLibSegmentSelection, machineStatuses [2]uint8, globalStateHashes [2][32]byte, numSteps *big.Int) (*types.Transaction, error)

ChallengeExecution is a paid mutator transaction binding the contract method 0xfb7be0a1.

Solidity: function challengeExecution(uint64 challengeIndex, (uint256,uint256,bytes32[],uint256) selection, uint8[2] machineStatuses, bytes32[2] globalStateHashes, uint256 numSteps) returns()

func (*ChallengeManagerSession) ChallengeInfo

func (_ChallengeManager *ChallengeManagerSession) ChallengeInfo(challengeIndex uint64) (ChallengeLibChallenge, error)

ChallengeInfo is a free data retrieval call binding the contract method 0x7fd07a9c.

Solidity: function challengeInfo(uint64 challengeIndex) view returns(((address,uint256),(address,uint256),uint256,bytes32,bytes32,uint64,uint8))

func (*ChallengeManagerSession) Challenges

func (_ChallengeManager *ChallengeManagerSession) Challenges(arg0 *big.Int) (struct {
	Current            ChallengeLibParticipant
	Next               ChallengeLibParticipant
	LastMoveTimestamp  *big.Int
	WasmModuleRoot     [32]byte
	ChallengeStateHash [32]byte
	MaxInboxMessages   uint64
	Mode               uint8
}, error)

Challenges is a free data retrieval call binding the contract method 0x8f1d3776.

Solidity: function challenges(uint256 ) view returns((address,uint256) current, (address,uint256) next, uint256 lastMoveTimestamp, bytes32 wasmModuleRoot, bytes32 challengeStateHash, uint64 maxInboxMessages, uint8 mode)

func (*ChallengeManagerSession) ClearChallenge

func (_ChallengeManager *ChallengeManagerSession) ClearChallenge(challengeIndex uint64) (*types.Transaction, error)

ClearChallenge is a paid mutator transaction binding the contract method 0x56e9df97.

Solidity: function clearChallenge(uint64 challengeIndex) returns()

func (*ChallengeManagerSession) CreateChallenge

func (_ChallengeManager *ChallengeManagerSession) CreateChallenge(wasmModuleRoot_ [32]byte, startAndEndMachineStatuses_ [2]uint8, startAndEndGlobalStates_ [2]GlobalState, numBlocks uint64, asserter_ common.Address, challenger_ common.Address, asserterTimeLeft_ *big.Int, challengerTimeLeft_ *big.Int) (*types.Transaction, error)

CreateChallenge is a paid mutator transaction binding the contract method 0x14eab5e7.

Solidity: function createChallenge(bytes32 wasmModuleRoot_, uint8[2] startAndEndMachineStatuses_, (bytes32[2],uint64[2])[2] startAndEndGlobalStates_, uint64 numBlocks, address asserter_, address challenger_, uint256 asserterTimeLeft_, uint256 challengerTimeLeft_) returns(uint64)

func (*ChallengeManagerSession) CurrentResponder

func (_ChallengeManager *ChallengeManagerSession) CurrentResponder(challengeIndex uint64) (common.Address, error)

CurrentResponder is a free data retrieval call binding the contract method 0x23a9ef23.

Solidity: function currentResponder(uint64 challengeIndex) view returns(address)

func (*ChallengeManagerSession) Initialize

func (_ChallengeManager *ChallengeManagerSession) Initialize(resultReceiver_ common.Address, sequencerInbox_ common.Address, bridge_ common.Address, osp_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address resultReceiver_, address sequencerInbox_, address bridge_, address osp_) returns()

func (*ChallengeManagerSession) IsTimedOut

func (_ChallengeManager *ChallengeManagerSession) IsTimedOut(challengeIndex uint64) (bool, error)

IsTimedOut is a free data retrieval call binding the contract method 0x9ede42b9.

Solidity: function isTimedOut(uint64 challengeIndex) view returns(bool)

func (*ChallengeManagerSession) OneStepProveExecution

func (_ChallengeManager *ChallengeManagerSession) OneStepProveExecution(challengeIndex uint64, selection ChallengeLibSegmentSelection, proof []byte) (*types.Transaction, error)

OneStepProveExecution is a paid mutator transaction binding the contract method 0xd248d124.

Solidity: function oneStepProveExecution(uint64 challengeIndex, (uint256,uint256,bytes32[],uint256) selection, bytes proof) returns()

func (*ChallengeManagerSession) Osp

func (_ChallengeManager *ChallengeManagerSession) Osp() (common.Address, error)

Osp is a free data retrieval call binding the contract method 0xf26a62c6.

Solidity: function osp() view returns(address)

func (*ChallengeManagerSession) PostUpgradeInit

func (_ChallengeManager *ChallengeManagerSession) PostUpgradeInit(osp_ common.Address) (*types.Transaction, error)

PostUpgradeInit is a paid mutator transaction binding the contract method 0xc474d2c5.

Solidity: function postUpgradeInit(address osp_) returns()

func (*ChallengeManagerSession) ResultReceiver

func (_ChallengeManager *ChallengeManagerSession) ResultReceiver() (common.Address, error)

ResultReceiver is a free data retrieval call binding the contract method 0x3504f1d7.

Solidity: function resultReceiver() view returns(address)

func (*ChallengeManagerSession) SequencerInbox

func (_ChallengeManager *ChallengeManagerSession) SequencerInbox() (common.Address, error)

SequencerInbox is a free data retrieval call binding the contract method 0xee35f327.

Solidity: function sequencerInbox() view returns(address)

func (*ChallengeManagerSession) Timeout

func (_ChallengeManager *ChallengeManagerSession) Timeout(challengeIndex uint64) (*types.Transaction, error)

Timeout is a paid mutator transaction binding the contract method 0x1b45c86a.

Solidity: function timeout(uint64 challengeIndex) returns()

func (*ChallengeManagerSession) TotalChallengesCreated

func (_ChallengeManager *ChallengeManagerSession) TotalChallengesCreated() (uint64, error)

TotalChallengesCreated is a free data retrieval call binding the contract method 0x5ef489e6.

Solidity: function totalChallengesCreated() view returns(uint64)

type ChallengeManagerTransactor

type ChallengeManagerTransactor struct {
	// contains filtered or unexported fields
}

ChallengeManagerTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewChallengeManagerTransactor

func NewChallengeManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*ChallengeManagerTransactor, error)

NewChallengeManagerTransactor creates a new write-only instance of ChallengeManager, bound to a specific deployed contract.

func (*ChallengeManagerTransactor) BisectExecution

func (_ChallengeManager *ChallengeManagerTransactor) BisectExecution(opts *bind.TransactOpts, challengeIndex uint64, selection ChallengeLibSegmentSelection, newSegments [][32]byte) (*types.Transaction, error)

BisectExecution is a paid mutator transaction binding the contract method 0xa521b032.

Solidity: function bisectExecution(uint64 challengeIndex, (uint256,uint256,bytes32[],uint256) selection, bytes32[] newSegments) returns()

func (*ChallengeManagerTransactor) ChallengeExecution

func (_ChallengeManager *ChallengeManagerTransactor) ChallengeExecution(opts *bind.TransactOpts, challengeIndex uint64, selection ChallengeLibSegmentSelection, machineStatuses [2]uint8, globalStateHashes [2][32]byte, numSteps *big.Int) (*types.Transaction, error)

ChallengeExecution is a paid mutator transaction binding the contract method 0xfb7be0a1.

Solidity: function challengeExecution(uint64 challengeIndex, (uint256,uint256,bytes32[],uint256) selection, uint8[2] machineStatuses, bytes32[2] globalStateHashes, uint256 numSteps) returns()

func (*ChallengeManagerTransactor) ClearChallenge

func (_ChallengeManager *ChallengeManagerTransactor) ClearChallenge(opts *bind.TransactOpts, challengeIndex uint64) (*types.Transaction, error)

ClearChallenge is a paid mutator transaction binding the contract method 0x56e9df97.

Solidity: function clearChallenge(uint64 challengeIndex) returns()

func (*ChallengeManagerTransactor) CreateChallenge

func (_ChallengeManager *ChallengeManagerTransactor) CreateChallenge(opts *bind.TransactOpts, wasmModuleRoot_ [32]byte, startAndEndMachineStatuses_ [2]uint8, startAndEndGlobalStates_ [2]GlobalState, numBlocks uint64, asserter_ common.Address, challenger_ common.Address, asserterTimeLeft_ *big.Int, challengerTimeLeft_ *big.Int) (*types.Transaction, error)

CreateChallenge is a paid mutator transaction binding the contract method 0x14eab5e7.

Solidity: function createChallenge(bytes32 wasmModuleRoot_, uint8[2] startAndEndMachineStatuses_, (bytes32[2],uint64[2])[2] startAndEndGlobalStates_, uint64 numBlocks, address asserter_, address challenger_, uint256 asserterTimeLeft_, uint256 challengerTimeLeft_) returns(uint64)

func (*ChallengeManagerTransactor) Initialize

func (_ChallengeManager *ChallengeManagerTransactor) Initialize(opts *bind.TransactOpts, resultReceiver_ common.Address, sequencerInbox_ common.Address, bridge_ common.Address, osp_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address resultReceiver_, address sequencerInbox_, address bridge_, address osp_) returns()

func (*ChallengeManagerTransactor) OneStepProveExecution

func (_ChallengeManager *ChallengeManagerTransactor) OneStepProveExecution(opts *bind.TransactOpts, challengeIndex uint64, selection ChallengeLibSegmentSelection, proof []byte) (*types.Transaction, error)

OneStepProveExecution is a paid mutator transaction binding the contract method 0xd248d124.

Solidity: function oneStepProveExecution(uint64 challengeIndex, (uint256,uint256,bytes32[],uint256) selection, bytes proof) returns()

func (*ChallengeManagerTransactor) PostUpgradeInit

func (_ChallengeManager *ChallengeManagerTransactor) PostUpgradeInit(opts *bind.TransactOpts, osp_ common.Address) (*types.Transaction, error)

PostUpgradeInit is a paid mutator transaction binding the contract method 0xc474d2c5.

Solidity: function postUpgradeInit(address osp_) returns()

func (*ChallengeManagerTransactor) Timeout

func (_ChallengeManager *ChallengeManagerTransactor) Timeout(opts *bind.TransactOpts, challengeIndex uint64) (*types.Transaction, error)

Timeout is a paid mutator transaction binding the contract method 0x1b45c86a.

Solidity: function timeout(uint64 challengeIndex) returns()

type ChallengeManagerTransactorRaw

type ChallengeManagerTransactorRaw struct {
	Contract *ChallengeManagerTransactor // Generic write-only contract binding to access the raw methods on
}

ChallengeManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ChallengeManagerTransactorRaw) Transact

func (_ChallengeManager *ChallengeManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ChallengeManagerTransactorRaw) Transfer

func (_ChallengeManager *ChallengeManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ChallengeManagerTransactorSession

type ChallengeManagerTransactorSession struct {
	Contract     *ChallengeManagerTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts           // Transaction auth options to use throughout this session
}

ChallengeManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ChallengeManagerTransactorSession) BisectExecution

func (_ChallengeManager *ChallengeManagerTransactorSession) BisectExecution(challengeIndex uint64, selection ChallengeLibSegmentSelection, newSegments [][32]byte) (*types.Transaction, error)

BisectExecution is a paid mutator transaction binding the contract method 0xa521b032.

Solidity: function bisectExecution(uint64 challengeIndex, (uint256,uint256,bytes32[],uint256) selection, bytes32[] newSegments) returns()

func (*ChallengeManagerTransactorSession) ChallengeExecution

func (_ChallengeManager *ChallengeManagerTransactorSession) ChallengeExecution(challengeIndex uint64, selection ChallengeLibSegmentSelection, machineStatuses [2]uint8, globalStateHashes [2][32]byte, numSteps *big.Int) (*types.Transaction, error)

ChallengeExecution is a paid mutator transaction binding the contract method 0xfb7be0a1.

Solidity: function challengeExecution(uint64 challengeIndex, (uint256,uint256,bytes32[],uint256) selection, uint8[2] machineStatuses, bytes32[2] globalStateHashes, uint256 numSteps) returns()

func (*ChallengeManagerTransactorSession) ClearChallenge

func (_ChallengeManager *ChallengeManagerTransactorSession) ClearChallenge(challengeIndex uint64) (*types.Transaction, error)

ClearChallenge is a paid mutator transaction binding the contract method 0x56e9df97.

Solidity: function clearChallenge(uint64 challengeIndex) returns()

func (*ChallengeManagerTransactorSession) CreateChallenge

func (_ChallengeManager *ChallengeManagerTransactorSession) CreateChallenge(wasmModuleRoot_ [32]byte, startAndEndMachineStatuses_ [2]uint8, startAndEndGlobalStates_ [2]GlobalState, numBlocks uint64, asserter_ common.Address, challenger_ common.Address, asserterTimeLeft_ *big.Int, challengerTimeLeft_ *big.Int) (*types.Transaction, error)

CreateChallenge is a paid mutator transaction binding the contract method 0x14eab5e7.

Solidity: function createChallenge(bytes32 wasmModuleRoot_, uint8[2] startAndEndMachineStatuses_, (bytes32[2],uint64[2])[2] startAndEndGlobalStates_, uint64 numBlocks, address asserter_, address challenger_, uint256 asserterTimeLeft_, uint256 challengerTimeLeft_) returns(uint64)

func (*ChallengeManagerTransactorSession) Initialize

func (_ChallengeManager *ChallengeManagerTransactorSession) Initialize(resultReceiver_ common.Address, sequencerInbox_ common.Address, bridge_ common.Address, osp_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address resultReceiver_, address sequencerInbox_, address bridge_, address osp_) returns()

func (*ChallengeManagerTransactorSession) OneStepProveExecution

func (_ChallengeManager *ChallengeManagerTransactorSession) OneStepProveExecution(challengeIndex uint64, selection ChallengeLibSegmentSelection, proof []byte) (*types.Transaction, error)

OneStepProveExecution is a paid mutator transaction binding the contract method 0xd248d124.

Solidity: function oneStepProveExecution(uint64 challengeIndex, (uint256,uint256,bytes32[],uint256) selection, bytes proof) returns()

func (*ChallengeManagerTransactorSession) PostUpgradeInit

func (_ChallengeManager *ChallengeManagerTransactorSession) PostUpgradeInit(osp_ common.Address) (*types.Transaction, error)

PostUpgradeInit is a paid mutator transaction binding the contract method 0xc474d2c5.

Solidity: function postUpgradeInit(address osp_) returns()

func (*ChallengeManagerTransactorSession) Timeout

func (_ChallengeManager *ChallengeManagerTransactorSession) Timeout(challengeIndex uint64) (*types.Transaction, error)

Timeout is a paid mutator transaction binding the contract method 0x1b45c86a.

Solidity: function timeout(uint64 challengeIndex) returns()

type GlobalState

type GlobalState struct {
	Bytes32Vals [2][32]byte
	U64Vals     [2]uint64
}

GlobalState is an auto generated low-level Go binding around an user-defined struct.

type IChallengeManager

type IChallengeManager struct {
	IChallengeManagerCaller     // Read-only binding to the contract
	IChallengeManagerTransactor // Write-only binding to the contract
	IChallengeManagerFilterer   // Log filterer for contract events
}

IChallengeManager is an auto generated Go binding around an Ethereum contract.

func NewIChallengeManager

func NewIChallengeManager(address common.Address, backend bind.ContractBackend) (*IChallengeManager, error)

NewIChallengeManager creates a new instance of IChallengeManager, bound to a specific deployed contract.

type IChallengeManagerBisected

type IChallengeManagerBisected struct {
	ChallengeIndex          uint64
	ChallengeRoot           [32]byte
	ChallengedSegmentStart  *big.Int
	ChallengedSegmentLength *big.Int
	ChainHashes             [][32]byte
	Raw                     types.Log // Blockchain specific contextual infos
}

IChallengeManagerBisected represents a Bisected event raised by the IChallengeManager contract.

type IChallengeManagerBisectedIterator

type IChallengeManagerBisectedIterator struct {
	Event *IChallengeManagerBisected // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

IChallengeManagerBisectedIterator is returned from FilterBisected and is used to iterate over the raw logs and unpacked data for Bisected events raised by the IChallengeManager contract.

func (*IChallengeManagerBisectedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*IChallengeManagerBisectedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IChallengeManagerBisectedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type IChallengeManagerCaller

type IChallengeManagerCaller struct {
	// contains filtered or unexported fields
}

IChallengeManagerCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewIChallengeManagerCaller

func NewIChallengeManagerCaller(address common.Address, caller bind.ContractCaller) (*IChallengeManagerCaller, error)

NewIChallengeManagerCaller creates a new read-only instance of IChallengeManager, bound to a specific deployed contract.

func (*IChallengeManagerCaller) ChallengeInfo

func (_IChallengeManager *IChallengeManagerCaller) ChallengeInfo(opts *bind.CallOpts, challengeIndex_ uint64) (ChallengeLibChallenge, error)

ChallengeInfo is a free data retrieval call binding the contract method 0x7fd07a9c.

Solidity: function challengeInfo(uint64 challengeIndex_) view returns(((address,uint256),(address,uint256),uint256,bytes32,bytes32,uint64,uint8))

func (*IChallengeManagerCaller) CurrentResponder

func (_IChallengeManager *IChallengeManagerCaller) CurrentResponder(opts *bind.CallOpts, challengeIndex uint64) (common.Address, error)

CurrentResponder is a free data retrieval call binding the contract method 0x23a9ef23.

Solidity: function currentResponder(uint64 challengeIndex) view returns(address)

func (*IChallengeManagerCaller) IsTimedOut

func (_IChallengeManager *IChallengeManagerCaller) IsTimedOut(opts *bind.CallOpts, challengeIndex uint64) (bool, error)

IsTimedOut is a free data retrieval call binding the contract method 0x9ede42b9.

Solidity: function isTimedOut(uint64 challengeIndex) view returns(bool)

type IChallengeManagerCallerRaw

type IChallengeManagerCallerRaw struct {
	Contract *IChallengeManagerCaller // Generic read-only contract binding to access the raw methods on
}

IChallengeManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*IChallengeManagerCallerRaw) Call

func (_IChallengeManager *IChallengeManagerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type IChallengeManagerCallerSession

type IChallengeManagerCallerSession struct {
	Contract *IChallengeManagerCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts            // Call options to use throughout this session
}

IChallengeManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*IChallengeManagerCallerSession) ChallengeInfo

func (_IChallengeManager *IChallengeManagerCallerSession) ChallengeInfo(challengeIndex_ uint64) (ChallengeLibChallenge, error)

ChallengeInfo is a free data retrieval call binding the contract method 0x7fd07a9c.

Solidity: function challengeInfo(uint64 challengeIndex_) view returns(((address,uint256),(address,uint256),uint256,bytes32,bytes32,uint64,uint8))

func (*IChallengeManagerCallerSession) CurrentResponder

func (_IChallengeManager *IChallengeManagerCallerSession) CurrentResponder(challengeIndex uint64) (common.Address, error)

CurrentResponder is a free data retrieval call binding the contract method 0x23a9ef23.

Solidity: function currentResponder(uint64 challengeIndex) view returns(address)

func (*IChallengeManagerCallerSession) IsTimedOut

func (_IChallengeManager *IChallengeManagerCallerSession) IsTimedOut(challengeIndex uint64) (bool, error)

IsTimedOut is a free data retrieval call binding the contract method 0x9ede42b9.

Solidity: function isTimedOut(uint64 challengeIndex) view returns(bool)

type IChallengeManagerChallengeEnded

type IChallengeManagerChallengeEnded struct {
	ChallengeIndex uint64
	Kind           uint8
	Raw            types.Log // Blockchain specific contextual infos
}

IChallengeManagerChallengeEnded represents a ChallengeEnded event raised by the IChallengeManager contract.

type IChallengeManagerChallengeEndedIterator

type IChallengeManagerChallengeEndedIterator struct {
	Event *IChallengeManagerChallengeEnded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

IChallengeManagerChallengeEndedIterator is returned from FilterChallengeEnded and is used to iterate over the raw logs and unpacked data for ChallengeEnded events raised by the IChallengeManager contract.

func (*IChallengeManagerChallengeEndedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*IChallengeManagerChallengeEndedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IChallengeManagerChallengeEndedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type IChallengeManagerExecutionChallengeBegun

type IChallengeManagerExecutionChallengeBegun struct {
	ChallengeIndex uint64
	BlockSteps     *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

IChallengeManagerExecutionChallengeBegun represents a ExecutionChallengeBegun event raised by the IChallengeManager contract.

type IChallengeManagerExecutionChallengeBegunIterator

type IChallengeManagerExecutionChallengeBegunIterator struct {
	Event *IChallengeManagerExecutionChallengeBegun // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

IChallengeManagerExecutionChallengeBegunIterator is returned from FilterExecutionChallengeBegun and is used to iterate over the raw logs and unpacked data for ExecutionChallengeBegun events raised by the IChallengeManager contract.

func (*IChallengeManagerExecutionChallengeBegunIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*IChallengeManagerExecutionChallengeBegunIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IChallengeManagerExecutionChallengeBegunIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type IChallengeManagerFilterer

type IChallengeManagerFilterer struct {
	// contains filtered or unexported fields
}

IChallengeManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewIChallengeManagerFilterer

func NewIChallengeManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*IChallengeManagerFilterer, error)

NewIChallengeManagerFilterer creates a new log filterer instance of IChallengeManager, bound to a specific deployed contract.

func (*IChallengeManagerFilterer) FilterBisected

func (_IChallengeManager *IChallengeManagerFilterer) FilterBisected(opts *bind.FilterOpts, challengeIndex []uint64, challengeRoot [][32]byte) (*IChallengeManagerBisectedIterator, error)

FilterBisected is a free log retrieval operation binding the contract event 0x86b34e9455464834eca718f62d4481437603bb929d8a78ccde5d1bc79fa06d68.

Solidity: event Bisected(uint64 indexed challengeIndex, bytes32 indexed challengeRoot, uint256 challengedSegmentStart, uint256 challengedSegmentLength, bytes32[] chainHashes)

func (*IChallengeManagerFilterer) FilterChallengeEnded

func (_IChallengeManager *IChallengeManagerFilterer) FilterChallengeEnded(opts *bind.FilterOpts, challengeIndex []uint64) (*IChallengeManagerChallengeEndedIterator, error)

FilterChallengeEnded is a free log retrieval operation binding the contract event 0xfdaece6c274a4b56af16761f83fd6b1062823192630ea08e019fdf9b2d747f40.

Solidity: event ChallengeEnded(uint64 indexed challengeIndex, uint8 kind)

func (*IChallengeManagerFilterer) FilterExecutionChallengeBegun

func (_IChallengeManager *IChallengeManagerFilterer) FilterExecutionChallengeBegun(opts *bind.FilterOpts, challengeIndex []uint64) (*IChallengeManagerExecutionChallengeBegunIterator, error)

FilterExecutionChallengeBegun is a free log retrieval operation binding the contract event 0x24e032e170243bbea97e140174b22dc7e54fb85925afbf52c70e001cd6af16db.

Solidity: event ExecutionChallengeBegun(uint64 indexed challengeIndex, uint256 blockSteps)

func (*IChallengeManagerFilterer) FilterInitiatedChallenge

func (_IChallengeManager *IChallengeManagerFilterer) FilterInitiatedChallenge(opts *bind.FilterOpts, challengeIndex []uint64) (*IChallengeManagerInitiatedChallengeIterator, error)

FilterInitiatedChallenge is a free log retrieval operation binding the contract event 0x76604fe17af46c9b5f53ffe99ff23e0f655dab91886b07ac1fc0254319f7145a.

Solidity: event InitiatedChallenge(uint64 indexed challengeIndex, (bytes32[2],uint64[2]) startState, (bytes32[2],uint64[2]) endState)

func (*IChallengeManagerFilterer) FilterOneStepProofCompleted

func (_IChallengeManager *IChallengeManagerFilterer) FilterOneStepProofCompleted(opts *bind.FilterOpts, challengeIndex []uint64) (*IChallengeManagerOneStepProofCompletedIterator, error)

FilterOneStepProofCompleted is a free log retrieval operation binding the contract event 0xc2cc42e04ff8c36de71c6a2937ea9f161dd0dd9e175f00caa26e5200643c781e.

Solidity: event OneStepProofCompleted(uint64 indexed challengeIndex)

func (*IChallengeManagerFilterer) ParseBisected

func (_IChallengeManager *IChallengeManagerFilterer) ParseBisected(log types.Log) (*IChallengeManagerBisected, error)

ParseBisected is a log parse operation binding the contract event 0x86b34e9455464834eca718f62d4481437603bb929d8a78ccde5d1bc79fa06d68.

Solidity: event Bisected(uint64 indexed challengeIndex, bytes32 indexed challengeRoot, uint256 challengedSegmentStart, uint256 challengedSegmentLength, bytes32[] chainHashes)

func (*IChallengeManagerFilterer) ParseChallengeEnded

func (_IChallengeManager *IChallengeManagerFilterer) ParseChallengeEnded(log types.Log) (*IChallengeManagerChallengeEnded, error)

ParseChallengeEnded is a log parse operation binding the contract event 0xfdaece6c274a4b56af16761f83fd6b1062823192630ea08e019fdf9b2d747f40.

Solidity: event ChallengeEnded(uint64 indexed challengeIndex, uint8 kind)

func (*IChallengeManagerFilterer) ParseExecutionChallengeBegun

func (_IChallengeManager *IChallengeManagerFilterer) ParseExecutionChallengeBegun(log types.Log) (*IChallengeManagerExecutionChallengeBegun, error)

ParseExecutionChallengeBegun is a log parse operation binding the contract event 0x24e032e170243bbea97e140174b22dc7e54fb85925afbf52c70e001cd6af16db.

Solidity: event ExecutionChallengeBegun(uint64 indexed challengeIndex, uint256 blockSteps)

func (*IChallengeManagerFilterer) ParseInitiatedChallenge

func (_IChallengeManager *IChallengeManagerFilterer) ParseInitiatedChallenge(log types.Log) (*IChallengeManagerInitiatedChallenge, error)

ParseInitiatedChallenge is a log parse operation binding the contract event 0x76604fe17af46c9b5f53ffe99ff23e0f655dab91886b07ac1fc0254319f7145a.

Solidity: event InitiatedChallenge(uint64 indexed challengeIndex, (bytes32[2],uint64[2]) startState, (bytes32[2],uint64[2]) endState)

func (*IChallengeManagerFilterer) ParseOneStepProofCompleted

func (_IChallengeManager *IChallengeManagerFilterer) ParseOneStepProofCompleted(log types.Log) (*IChallengeManagerOneStepProofCompleted, error)

ParseOneStepProofCompleted is a log parse operation binding the contract event 0xc2cc42e04ff8c36de71c6a2937ea9f161dd0dd9e175f00caa26e5200643c781e.

Solidity: event OneStepProofCompleted(uint64 indexed challengeIndex)

func (*IChallengeManagerFilterer) WatchBisected

func (_IChallengeManager *IChallengeManagerFilterer) WatchBisected(opts *bind.WatchOpts, sink chan<- *IChallengeManagerBisected, challengeIndex []uint64, challengeRoot [][32]byte) (event.Subscription, error)

WatchBisected is a free log subscription operation binding the contract event 0x86b34e9455464834eca718f62d4481437603bb929d8a78ccde5d1bc79fa06d68.

Solidity: event Bisected(uint64 indexed challengeIndex, bytes32 indexed challengeRoot, uint256 challengedSegmentStart, uint256 challengedSegmentLength, bytes32[] chainHashes)

func (*IChallengeManagerFilterer) WatchChallengeEnded

func (_IChallengeManager *IChallengeManagerFilterer) WatchChallengeEnded(opts *bind.WatchOpts, sink chan<- *IChallengeManagerChallengeEnded, challengeIndex []uint64) (event.Subscription, error)

WatchChallengeEnded is a free log subscription operation binding the contract event 0xfdaece6c274a4b56af16761f83fd6b1062823192630ea08e019fdf9b2d747f40.

Solidity: event ChallengeEnded(uint64 indexed challengeIndex, uint8 kind)

func (*IChallengeManagerFilterer) WatchExecutionChallengeBegun

func (_IChallengeManager *IChallengeManagerFilterer) WatchExecutionChallengeBegun(opts *bind.WatchOpts, sink chan<- *IChallengeManagerExecutionChallengeBegun, challengeIndex []uint64) (event.Subscription, error)

WatchExecutionChallengeBegun is a free log subscription operation binding the contract event 0x24e032e170243bbea97e140174b22dc7e54fb85925afbf52c70e001cd6af16db.

Solidity: event ExecutionChallengeBegun(uint64 indexed challengeIndex, uint256 blockSteps)

func (*IChallengeManagerFilterer) WatchInitiatedChallenge

func (_IChallengeManager *IChallengeManagerFilterer) WatchInitiatedChallenge(opts *bind.WatchOpts, sink chan<- *IChallengeManagerInitiatedChallenge, challengeIndex []uint64) (event.Subscription, error)

WatchInitiatedChallenge is a free log subscription operation binding the contract event 0x76604fe17af46c9b5f53ffe99ff23e0f655dab91886b07ac1fc0254319f7145a.

Solidity: event InitiatedChallenge(uint64 indexed challengeIndex, (bytes32[2],uint64[2]) startState, (bytes32[2],uint64[2]) endState)

func (*IChallengeManagerFilterer) WatchOneStepProofCompleted

func (_IChallengeManager *IChallengeManagerFilterer) WatchOneStepProofCompleted(opts *bind.WatchOpts, sink chan<- *IChallengeManagerOneStepProofCompleted, challengeIndex []uint64) (event.Subscription, error)

WatchOneStepProofCompleted is a free log subscription operation binding the contract event 0xc2cc42e04ff8c36de71c6a2937ea9f161dd0dd9e175f00caa26e5200643c781e.

Solidity: event OneStepProofCompleted(uint64 indexed challengeIndex)

type IChallengeManagerInitiatedChallenge

type IChallengeManagerInitiatedChallenge struct {
	ChallengeIndex uint64
	StartState     GlobalState
	EndState       GlobalState
	Raw            types.Log // Blockchain specific contextual infos
}

IChallengeManagerInitiatedChallenge represents a InitiatedChallenge event raised by the IChallengeManager contract.

type IChallengeManagerInitiatedChallengeIterator

type IChallengeManagerInitiatedChallengeIterator struct {
	Event *IChallengeManagerInitiatedChallenge // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

IChallengeManagerInitiatedChallengeIterator is returned from FilterInitiatedChallenge and is used to iterate over the raw logs and unpacked data for InitiatedChallenge events raised by the IChallengeManager contract.

func (*IChallengeManagerInitiatedChallengeIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*IChallengeManagerInitiatedChallengeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IChallengeManagerInitiatedChallengeIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type IChallengeManagerOneStepProofCompleted

type IChallengeManagerOneStepProofCompleted struct {
	ChallengeIndex uint64
	Raw            types.Log // Blockchain specific contextual infos
}

IChallengeManagerOneStepProofCompleted represents a OneStepProofCompleted event raised by the IChallengeManager contract.

type IChallengeManagerOneStepProofCompletedIterator

type IChallengeManagerOneStepProofCompletedIterator struct {
	Event *IChallengeManagerOneStepProofCompleted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

IChallengeManagerOneStepProofCompletedIterator is returned from FilterOneStepProofCompleted and is used to iterate over the raw logs and unpacked data for OneStepProofCompleted events raised by the IChallengeManager contract.

func (*IChallengeManagerOneStepProofCompletedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*IChallengeManagerOneStepProofCompletedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IChallengeManagerOneStepProofCompletedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type IChallengeManagerRaw

type IChallengeManagerRaw struct {
	Contract *IChallengeManager // Generic contract binding to access the raw methods on
}

IChallengeManagerRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*IChallengeManagerRaw) Call

func (_IChallengeManager *IChallengeManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*IChallengeManagerRaw) Transact

func (_IChallengeManager *IChallengeManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*IChallengeManagerRaw) Transfer

func (_IChallengeManager *IChallengeManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type IChallengeManagerSession

type IChallengeManagerSession struct {
	Contract     *IChallengeManager // Generic contract binding to set the session for
	CallOpts     bind.CallOpts      // Call options to use throughout this session
	TransactOpts bind.TransactOpts  // Transaction auth options to use throughout this session
}

IChallengeManagerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*IChallengeManagerSession) ChallengeInfo

func (_IChallengeManager *IChallengeManagerSession) ChallengeInfo(challengeIndex_ uint64) (ChallengeLibChallenge, error)

ChallengeInfo is a free data retrieval call binding the contract method 0x7fd07a9c.

Solidity: function challengeInfo(uint64 challengeIndex_) view returns(((address,uint256),(address,uint256),uint256,bytes32,bytes32,uint64,uint8))

func (*IChallengeManagerSession) ClearChallenge

func (_IChallengeManager *IChallengeManagerSession) ClearChallenge(challengeIndex_ uint64) (*types.Transaction, error)

ClearChallenge is a paid mutator transaction binding the contract method 0x56e9df97.

Solidity: function clearChallenge(uint64 challengeIndex_) returns()

func (*IChallengeManagerSession) CreateChallenge

func (_IChallengeManager *IChallengeManagerSession) CreateChallenge(wasmModuleRoot_ [32]byte, startAndEndMachineStatuses_ [2]uint8, startAndEndGlobalStates_ [2]GlobalState, numBlocks uint64, asserter_ common.Address, challenger_ common.Address, asserterTimeLeft_ *big.Int, challengerTimeLeft_ *big.Int) (*types.Transaction, error)

CreateChallenge is a paid mutator transaction binding the contract method 0x14eab5e7.

Solidity: function createChallenge(bytes32 wasmModuleRoot_, uint8[2] startAndEndMachineStatuses_, (bytes32[2],uint64[2])[2] startAndEndGlobalStates_, uint64 numBlocks, address asserter_, address challenger_, uint256 asserterTimeLeft_, uint256 challengerTimeLeft_) returns(uint64)

func (*IChallengeManagerSession) CurrentResponder

func (_IChallengeManager *IChallengeManagerSession) CurrentResponder(challengeIndex uint64) (common.Address, error)

CurrentResponder is a free data retrieval call binding the contract method 0x23a9ef23.

Solidity: function currentResponder(uint64 challengeIndex) view returns(address)

func (*IChallengeManagerSession) Initialize

func (_IChallengeManager *IChallengeManagerSession) Initialize(resultReceiver_ common.Address, sequencerInbox_ common.Address, bridge_ common.Address, osp_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address resultReceiver_, address sequencerInbox_, address bridge_, address osp_) returns()

func (*IChallengeManagerSession) IsTimedOut

func (_IChallengeManager *IChallengeManagerSession) IsTimedOut(challengeIndex uint64) (bool, error)

IsTimedOut is a free data retrieval call binding the contract method 0x9ede42b9.

Solidity: function isTimedOut(uint64 challengeIndex) view returns(bool)

func (*IChallengeManagerSession) Timeout

func (_IChallengeManager *IChallengeManagerSession) Timeout(challengeIndex_ uint64) (*types.Transaction, error)

Timeout is a paid mutator transaction binding the contract method 0x1b45c86a.

Solidity: function timeout(uint64 challengeIndex_) returns()

type IChallengeManagerTransactor

type IChallengeManagerTransactor struct {
	// contains filtered or unexported fields
}

IChallengeManagerTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewIChallengeManagerTransactor

func NewIChallengeManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*IChallengeManagerTransactor, error)

NewIChallengeManagerTransactor creates a new write-only instance of IChallengeManager, bound to a specific deployed contract.

func (*IChallengeManagerTransactor) ClearChallenge

func (_IChallengeManager *IChallengeManagerTransactor) ClearChallenge(opts *bind.TransactOpts, challengeIndex_ uint64) (*types.Transaction, error)

ClearChallenge is a paid mutator transaction binding the contract method 0x56e9df97.

Solidity: function clearChallenge(uint64 challengeIndex_) returns()

func (*IChallengeManagerTransactor) CreateChallenge

func (_IChallengeManager *IChallengeManagerTransactor) CreateChallenge(opts *bind.TransactOpts, wasmModuleRoot_ [32]byte, startAndEndMachineStatuses_ [2]uint8, startAndEndGlobalStates_ [2]GlobalState, numBlocks uint64, asserter_ common.Address, challenger_ common.Address, asserterTimeLeft_ *big.Int, challengerTimeLeft_ *big.Int) (*types.Transaction, error)

CreateChallenge is a paid mutator transaction binding the contract method 0x14eab5e7.

Solidity: function createChallenge(bytes32 wasmModuleRoot_, uint8[2] startAndEndMachineStatuses_, (bytes32[2],uint64[2])[2] startAndEndGlobalStates_, uint64 numBlocks, address asserter_, address challenger_, uint256 asserterTimeLeft_, uint256 challengerTimeLeft_) returns(uint64)

func (*IChallengeManagerTransactor) Initialize

func (_IChallengeManager *IChallengeManagerTransactor) Initialize(opts *bind.TransactOpts, resultReceiver_ common.Address, sequencerInbox_ common.Address, bridge_ common.Address, osp_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address resultReceiver_, address sequencerInbox_, address bridge_, address osp_) returns()

func (*IChallengeManagerTransactor) Timeout

func (_IChallengeManager *IChallengeManagerTransactor) Timeout(opts *bind.TransactOpts, challengeIndex_ uint64) (*types.Transaction, error)

Timeout is a paid mutator transaction binding the contract method 0x1b45c86a.

Solidity: function timeout(uint64 challengeIndex_) returns()

type IChallengeManagerTransactorRaw

type IChallengeManagerTransactorRaw struct {
	Contract *IChallengeManagerTransactor // Generic write-only contract binding to access the raw methods on
}

IChallengeManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*IChallengeManagerTransactorRaw) Transact

func (_IChallengeManager *IChallengeManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*IChallengeManagerTransactorRaw) Transfer

func (_IChallengeManager *IChallengeManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type IChallengeManagerTransactorSession

type IChallengeManagerTransactorSession struct {
	Contract     *IChallengeManagerTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts            // Transaction auth options to use throughout this session
}

IChallengeManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*IChallengeManagerTransactorSession) ClearChallenge

func (_IChallengeManager *IChallengeManagerTransactorSession) ClearChallenge(challengeIndex_ uint64) (*types.Transaction, error)

ClearChallenge is a paid mutator transaction binding the contract method 0x56e9df97.

Solidity: function clearChallenge(uint64 challengeIndex_) returns()

func (*IChallengeManagerTransactorSession) CreateChallenge

func (_IChallengeManager *IChallengeManagerTransactorSession) CreateChallenge(wasmModuleRoot_ [32]byte, startAndEndMachineStatuses_ [2]uint8, startAndEndGlobalStates_ [2]GlobalState, numBlocks uint64, asserter_ common.Address, challenger_ common.Address, asserterTimeLeft_ *big.Int, challengerTimeLeft_ *big.Int) (*types.Transaction, error)

CreateChallenge is a paid mutator transaction binding the contract method 0x14eab5e7.

Solidity: function createChallenge(bytes32 wasmModuleRoot_, uint8[2] startAndEndMachineStatuses_, (bytes32[2],uint64[2])[2] startAndEndGlobalStates_, uint64 numBlocks, address asserter_, address challenger_, uint256 asserterTimeLeft_, uint256 challengerTimeLeft_) returns(uint64)

func (*IChallengeManagerTransactorSession) Initialize

func (_IChallengeManager *IChallengeManagerTransactorSession) Initialize(resultReceiver_ common.Address, sequencerInbox_ common.Address, bridge_ common.Address, osp_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xf8c8765e.

Solidity: function initialize(address resultReceiver_, address sequencerInbox_, address bridge_, address osp_) returns()

func (*IChallengeManagerTransactorSession) Timeout

func (_IChallengeManager *IChallengeManagerTransactorSession) Timeout(challengeIndex_ uint64) (*types.Transaction, error)

Timeout is a paid mutator transaction binding the contract method 0x1b45c86a.

Solidity: function timeout(uint64 challengeIndex_) returns()

type IChallengeResultReceiver

type IChallengeResultReceiver struct {
	IChallengeResultReceiverCaller     // Read-only binding to the contract
	IChallengeResultReceiverTransactor // Write-only binding to the contract
	IChallengeResultReceiverFilterer   // Log filterer for contract events
}

IChallengeResultReceiver is an auto generated Go binding around an Ethereum contract.

func NewIChallengeResultReceiver

func NewIChallengeResultReceiver(address common.Address, backend bind.ContractBackend) (*IChallengeResultReceiver, error)

NewIChallengeResultReceiver creates a new instance of IChallengeResultReceiver, bound to a specific deployed contract.

type IChallengeResultReceiverCaller

type IChallengeResultReceiverCaller struct {
	// contains filtered or unexported fields
}

IChallengeResultReceiverCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewIChallengeResultReceiverCaller

func NewIChallengeResultReceiverCaller(address common.Address, caller bind.ContractCaller) (*IChallengeResultReceiverCaller, error)

NewIChallengeResultReceiverCaller creates a new read-only instance of IChallengeResultReceiver, bound to a specific deployed contract.

type IChallengeResultReceiverCallerRaw

type IChallengeResultReceiverCallerRaw struct {
	Contract *IChallengeResultReceiverCaller // Generic read-only contract binding to access the raw methods on
}

IChallengeResultReceiverCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*IChallengeResultReceiverCallerRaw) Call

func (_IChallengeResultReceiver *IChallengeResultReceiverCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type IChallengeResultReceiverCallerSession

type IChallengeResultReceiverCallerSession struct {
	Contract *IChallengeResultReceiverCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts                   // Call options to use throughout this session
}

IChallengeResultReceiverCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

type IChallengeResultReceiverFilterer

type IChallengeResultReceiverFilterer struct {
	// contains filtered or unexported fields
}

IChallengeResultReceiverFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewIChallengeResultReceiverFilterer

func NewIChallengeResultReceiverFilterer(address common.Address, filterer bind.ContractFilterer) (*IChallengeResultReceiverFilterer, error)

NewIChallengeResultReceiverFilterer creates a new log filterer instance of IChallengeResultReceiver, bound to a specific deployed contract.

type IChallengeResultReceiverRaw

type IChallengeResultReceiverRaw struct {
	Contract *IChallengeResultReceiver // Generic contract binding to access the raw methods on
}

IChallengeResultReceiverRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*IChallengeResultReceiverRaw) Call

func (_IChallengeResultReceiver *IChallengeResultReceiverRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*IChallengeResultReceiverRaw) Transact

func (_IChallengeResultReceiver *IChallengeResultReceiverRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*IChallengeResultReceiverRaw) Transfer

func (_IChallengeResultReceiver *IChallengeResultReceiverRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type IChallengeResultReceiverSession

type IChallengeResultReceiverSession struct {
	Contract     *IChallengeResultReceiver // Generic contract binding to set the session for
	CallOpts     bind.CallOpts             // Call options to use throughout this session
	TransactOpts bind.TransactOpts         // Transaction auth options to use throughout this session
}

IChallengeResultReceiverSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*IChallengeResultReceiverSession) CompleteChallenge

func (_IChallengeResultReceiver *IChallengeResultReceiverSession) CompleteChallenge(challengeIndex *big.Int, winner common.Address, loser common.Address) (*types.Transaction, error)

CompleteChallenge is a paid mutator transaction binding the contract method 0x0357aa49.

Solidity: function completeChallenge(uint256 challengeIndex, address winner, address loser) returns()

type IChallengeResultReceiverTransactor

type IChallengeResultReceiverTransactor struct {
	// contains filtered or unexported fields
}

IChallengeResultReceiverTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewIChallengeResultReceiverTransactor

func NewIChallengeResultReceiverTransactor(address common.Address, transactor bind.ContractTransactor) (*IChallengeResultReceiverTransactor, error)

NewIChallengeResultReceiverTransactor creates a new write-only instance of IChallengeResultReceiver, bound to a specific deployed contract.

func (*IChallengeResultReceiverTransactor) CompleteChallenge

func (_IChallengeResultReceiver *IChallengeResultReceiverTransactor) CompleteChallenge(opts *bind.TransactOpts, challengeIndex *big.Int, winner common.Address, loser common.Address) (*types.Transaction, error)

CompleteChallenge is a paid mutator transaction binding the contract method 0x0357aa49.

Solidity: function completeChallenge(uint256 challengeIndex, address winner, address loser) returns()

type IChallengeResultReceiverTransactorRaw

type IChallengeResultReceiverTransactorRaw struct {
	Contract *IChallengeResultReceiverTransactor // Generic write-only contract binding to access the raw methods on
}

IChallengeResultReceiverTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*IChallengeResultReceiverTransactorRaw) Transact

func (_IChallengeResultReceiver *IChallengeResultReceiverTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*IChallengeResultReceiverTransactorRaw) Transfer

func (_IChallengeResultReceiver *IChallengeResultReceiverTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type IChallengeResultReceiverTransactorSession

type IChallengeResultReceiverTransactorSession struct {
	Contract     *IChallengeResultReceiverTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts                   // Transaction auth options to use throughout this session
}

IChallengeResultReceiverTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*IChallengeResultReceiverTransactorSession) CompleteChallenge

func (_IChallengeResultReceiver *IChallengeResultReceiverTransactorSession) CompleteChallenge(challengeIndex *big.Int, winner common.Address, loser common.Address) (*types.Transaction, error)

CompleteChallenge is a paid mutator transaction binding the contract method 0x0357aa49.

Solidity: function completeChallenge(uint256 challengeIndex, address winner, address loser) returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL