Documentation ¶
Index ¶
- Variables
- type Challenge
- type ChallengeBisected
- type ChallengeBisectedIterator
- type ChallengeCaller
- func (_Challenge *ChallengeCaller) BisectionHash(opts *bind.CallOpts) ([32]byte, error)
- func (_Challenge *ChallengeCaller) Challenger(opts *bind.CallOpts) (common.Address, error)
- func (_Challenge *ChallengeCaller) ChallengerTimeLeft(opts *bind.CallOpts) (*big.Int, error)
- func (_Challenge *ChallengeCaller) CurrentBisected(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Challenge *ChallengeCaller) CurrentResponder(opts *bind.CallOpts) (common.Address, error)
- func (_Challenge *ChallengeCaller) CurrentResponderTimeLeft(opts *bind.CallOpts) (*big.Int, error)
- func (_Challenge *ChallengeCaller) Defender(opts *bind.CallOpts) (common.Address, error)
- func (_Challenge *ChallengeCaller) DefenderTimeLeft(opts *bind.CallOpts) (*big.Int, error)
- func (_Challenge *ChallengeCaller) LastMoveBlockTime(opts *bind.CallOpts) (*big.Int, error)
- func (_Challenge *ChallengeCaller) PrevBisection(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
- func (_Challenge *ChallengeCaller) Rollback(opts *bind.CallOpts) (bool, error)
- func (_Challenge *ChallengeCaller) StartInboxSize(opts *bind.CallOpts) (*big.Int, error)
- func (_Challenge *ChallengeCaller) Turn(opts *bind.CallOpts) (uint8, error)
- func (_Challenge *ChallengeCaller) Winner(opts *bind.CallOpts) (common.Address, error)
- type ChallengeCallerRaw
- type ChallengeCallerSession
- func (_Challenge *ChallengeCallerSession) BisectionHash() ([32]byte, error)
- func (_Challenge *ChallengeCallerSession) Challenger() (common.Address, error)
- func (_Challenge *ChallengeCallerSession) ChallengerTimeLeft() (*big.Int, error)
- func (_Challenge *ChallengeCallerSession) CurrentBisected() (struct{ ... }, error)
- func (_Challenge *ChallengeCallerSession) CurrentResponder() (common.Address, error)
- func (_Challenge *ChallengeCallerSession) CurrentResponderTimeLeft() (*big.Int, error)
- func (_Challenge *ChallengeCallerSession) Defender() (common.Address, error)
- func (_Challenge *ChallengeCallerSession) DefenderTimeLeft() (*big.Int, error)
- func (_Challenge *ChallengeCallerSession) LastMoveBlockTime() (*big.Int, error)
- func (_Challenge *ChallengeCallerSession) PrevBisection(arg0 *big.Int) ([32]byte, error)
- func (_Challenge *ChallengeCallerSession) Rollback() (bool, error)
- func (_Challenge *ChallengeCallerSession) StartInboxSize() (*big.Int, error)
- func (_Challenge *ChallengeCallerSession) Turn() (uint8, error)
- func (_Challenge *ChallengeCallerSession) Winner() (common.Address, error)
- type ChallengeChallengeCompleted
- type ChallengeChallengeCompletedIterator
- type ChallengeFilterer
- func (_Challenge *ChallengeFilterer) FilterBisected(opts *bind.FilterOpts) (*ChallengeBisectedIterator, error)
- func (_Challenge *ChallengeFilterer) FilterChallengeCompleted(opts *bind.FilterOpts) (*ChallengeChallengeCompletedIterator, error)
- func (_Challenge *ChallengeFilterer) ParseBisected(log types.Log) (*ChallengeBisected, error)
- func (_Challenge *ChallengeFilterer) ParseChallengeCompleted(log types.Log) (*ChallengeChallengeCompleted, error)
- func (_Challenge *ChallengeFilterer) WatchBisected(opts *bind.WatchOpts, sink chan<- *ChallengeBisected) (event.Subscription, error)
- func (_Challenge *ChallengeFilterer) WatchChallengeCompleted(opts *bind.WatchOpts, sink chan<- *ChallengeChallengeCompleted) (event.Subscription, error)
- type ChallengeRaw
- func (_Challenge *ChallengeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Challenge *ChallengeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Challenge *ChallengeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ChallengeSession
- func (_Challenge *ChallengeSession) BisectExecution(bisection [3][32]byte, challengedSegmentIndex *big.Int, ...) (*types.Transaction, error)
- func (_Challenge *ChallengeSession) BisectionHash() ([32]byte, error)
- func (_Challenge *ChallengeSession) Challenger() (common.Address, error)
- func (_Challenge *ChallengeSession) ChallengerTimeLeft() (*big.Int, error)
- func (_Challenge *ChallengeSession) CompleteChallenge(result bool) (*types.Transaction, error)
- func (_Challenge *ChallengeSession) CurrentBisected() (struct{ ... }, error)
- func (_Challenge *ChallengeSession) CurrentResponder() (common.Address, error)
- func (_Challenge *ChallengeSession) CurrentResponderTimeLeft() (*big.Int, error)
- func (_Challenge *ChallengeSession) Defender() (common.Address, error)
- func (_Challenge *ChallengeSession) DefenderTimeLeft() (*big.Int, error)
- func (_Challenge *ChallengeSession) Initialize(_defender common.Address, _challenger common.Address, _verifier common.Address, ...) (*types.Transaction, error)
- func (_Challenge *ChallengeSession) InitializeChallengeLength(checkStateHash [32]byte, _numSteps *big.Int) (*types.Transaction, error)
- func (_Challenge *ChallengeSession) LastMoveBlockTime() (*big.Int, error)
- func (_Challenge *ChallengeSession) PrevBisection(arg0 *big.Int) ([32]byte, error)
- func (_Challenge *ChallengeSession) Rollback() (bool, error)
- func (_Challenge *ChallengeSession) SetRollback() (*types.Transaction, error)
- func (_Challenge *ChallengeSession) StartInboxSize() (*big.Int, error)
- func (_Challenge *ChallengeSession) Timeout() (*types.Transaction, error)
- func (_Challenge *ChallengeSession) Turn() (uint8, error)
- func (_Challenge *ChallengeSession) VerifyOneStepProof(ctx VerificationContextContext, verifyType uint8, proof []byte, ...) (*types.Transaction, error)
- func (_Challenge *ChallengeSession) Winner() (common.Address, error)
- type ChallengeTransactor
- func (_Challenge *ChallengeTransactor) BisectExecution(opts *bind.TransactOpts, bisection [3][32]byte, ...) (*types.Transaction, error)
- func (_Challenge *ChallengeTransactor) CompleteChallenge(opts *bind.TransactOpts, result bool) (*types.Transaction, error)
- func (_Challenge *ChallengeTransactor) Initialize(opts *bind.TransactOpts, _defender common.Address, _challenger common.Address, ...) (*types.Transaction, error)
- func (_Challenge *ChallengeTransactor) InitializeChallengeLength(opts *bind.TransactOpts, checkStateHash [32]byte, _numSteps *big.Int) (*types.Transaction, error)
- func (_Challenge *ChallengeTransactor) SetRollback(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Challenge *ChallengeTransactor) Timeout(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Challenge *ChallengeTransactor) VerifyOneStepProof(opts *bind.TransactOpts, ctx VerificationContextContext, verifyType uint8, ...) (*types.Transaction, error)
- type ChallengeTransactorRaw
- type ChallengeTransactorSession
- func (_Challenge *ChallengeTransactorSession) BisectExecution(bisection [3][32]byte, challengedSegmentIndex *big.Int, ...) (*types.Transaction, error)
- func (_Challenge *ChallengeTransactorSession) CompleteChallenge(result bool) (*types.Transaction, error)
- func (_Challenge *ChallengeTransactorSession) Initialize(_defender common.Address, _challenger common.Address, _verifier common.Address, ...) (*types.Transaction, error)
- func (_Challenge *ChallengeTransactorSession) InitializeChallengeLength(checkStateHash [32]byte, _numSteps *big.Int) (*types.Transaction, error)
- func (_Challenge *ChallengeTransactorSession) SetRollback() (*types.Transaction, error)
- func (_Challenge *ChallengeTransactorSession) Timeout() (*types.Transaction, error)
- func (_Challenge *ChallengeTransactorSession) VerifyOneStepProof(ctx VerificationContextContext, verifyType uint8, proof []byte, ...) (*types.Transaction, error)
- type EVMTypesLibTransaction
- type VerificationContextContext
Constants ¶
This section is empty.
Variables ¶
var ChallengeABI = ChallengeMetaData.ABI
ChallengeABI is the input ABI used to generate the binding from. Deprecated: Use ChallengeMetaData.ABI instead.
var ChallengeMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"startState\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"midState\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"endState\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"blockNum\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"blockTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"challengedSegmentStart\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"challengedSegmentLength\",\"type\":\"uint256\"}],\"name\":\"Bisected\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"winner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"loser\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"enumIChallenge.CompletionReason\",\"name\":\"reason\",\"type\":\"uint8\"}],\"name\":\"ChallengeCompleted\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32[3]\",\"name\":\"bisection\",\"type\":\"bytes32[3]\"},{\"internalType\":\"uint256\",\"name\":\"challengedSegmentIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"challengedSegmentStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"challengedSegmentLength\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"prevChallengedSegmentStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"prevChallengedSegmentLength\",\"type\":\"uint256\"}],\"name\":\"bisectExecution\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bisectionHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"challenger\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"challengerTimeLeft\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"result\",\"type\":\"bool\"}],\"name\":\"completeChallenge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentBisected\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"startState\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"midState\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"endState\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"blockNum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"challengedSegmentStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"challengedSegmentLength\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentResponder\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentResponderTimeLeft\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defender\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defenderTimeLeft\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_defender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_challenger\",\"type\":\"address\"},{\"internalType\":\"contractIVerifierEntry\",\"name\":\"_verifier\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_resultReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_startInboxSize\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_startStateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_endStateHash\",\"type\":\"bytes32\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"checkStateHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_numSteps\",\"type\":\"uint256\"}],\"name\":\"initializeChallengeLength\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastMoveBlockTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"prevBisection\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rollback\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"setRollback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startInboxSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"timeout\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"turn\",\"outputs\":[{\"internalType\":\"enumChallenge.Turn\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"coinbase\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"origin\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"nonce\",\"type\":\"uint64\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"gas\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"v\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"r\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"s\",\"type\":\"uint256\"}],\"internalType\":\"structEVMTypesLib.Transaction\",\"name\":\"transaction\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"inputRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"}],\"internalType\":\"structVerificationContext.Context\",\"name\":\"ctx\",\"type\":\"tuple\"},{\"internalType\":\"uint8\",\"name\":\"verifyType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"challengedStepIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"prevChallengedSegmentStart\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"prevChallengedSegmentLength\",\"type\":\"uint256\"}],\"name\":\"verifyOneStepProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"winner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
ChallengeMetaData contains all meta data concerning the Challenge contract.
Functions ¶
This section is empty.
Types ¶
type Challenge ¶
type Challenge struct { ChallengeCaller // Read-only binding to the contract ChallengeTransactor // Write-only binding to the contract ChallengeFilterer // Log filterer for contract events }
Challenge is an auto generated Go binding around an Ethereum contract.
func NewChallenge ¶
NewChallenge creates a new instance of Challenge, bound to a specific deployed contract.
type ChallengeBisected ¶
type ChallengeBisected struct { StartState [32]byte MidState [32]byte EndState [32]byte BlockNum *big.Int BlockTime *big.Int ChallengedSegmentStart *big.Int ChallengedSegmentLength *big.Int Raw types.Log // Blockchain specific contextual infos }
ChallengeBisected represents a Bisected event raised by the Challenge contract.
type ChallengeBisectedIterator ¶
type ChallengeBisectedIterator struct { Event *ChallengeBisected // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ChallengeBisectedIterator is returned from FilterBisected and is used to iterate over the raw logs and unpacked data for Bisected events raised by the Challenge contract.
func (*ChallengeBisectedIterator) Close ¶
func (it *ChallengeBisectedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ChallengeBisectedIterator) Error ¶
func (it *ChallengeBisectedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ChallengeBisectedIterator) Next ¶
func (it *ChallengeBisectedIterator) Next() bool
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 ChallengeCaller ¶
type ChallengeCaller struct {
// contains filtered or unexported fields
}
ChallengeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewChallengeCaller ¶
func NewChallengeCaller(address common.Address, caller bind.ContractCaller) (*ChallengeCaller, error)
NewChallengeCaller creates a new read-only instance of Challenge, bound to a specific deployed contract.
func (*ChallengeCaller) BisectionHash ¶
func (_Challenge *ChallengeCaller) BisectionHash(opts *bind.CallOpts) ([32]byte, error)
BisectionHash is a free data retrieval call binding the contract method 0x2a51f6f7.
Solidity: function bisectionHash() view returns(bytes32)
func (*ChallengeCaller) Challenger ¶
Challenger is a free data retrieval call binding the contract method 0x534db0e2.
Solidity: function challenger() view returns(address)
func (*ChallengeCaller) ChallengerTimeLeft ¶
ChallengerTimeLeft is a free data retrieval call binding the contract method 0x41e8510c.
Solidity: function challengerTimeLeft() view returns(uint256)
func (*ChallengeCaller) CurrentBisected ¶
func (_Challenge *ChallengeCaller) CurrentBisected(opts *bind.CallOpts) (struct { StartState [32]byte MidState [32]byte EndState [32]byte BlockNum *big.Int BlockTime *big.Int ChallengedSegmentStart *big.Int ChallengedSegmentLength *big.Int }, error)
CurrentBisected is a free data retrieval call binding the contract method 0x732e6961.
Solidity: function currentBisected() view returns(bytes32 startState, bytes32 midState, bytes32 endState, uint256 blockNum, uint256 blockTime, uint256 challengedSegmentStart, uint256 challengedSegmentLength)
func (*ChallengeCaller) CurrentResponder ¶
CurrentResponder is a free data retrieval call binding the contract method 0x8a8cd218.
Solidity: function currentResponder() view returns(address)
func (*ChallengeCaller) CurrentResponderTimeLeft ¶
CurrentResponderTimeLeft is a free data retrieval call binding the contract method 0xe87e3589.
Solidity: function currentResponderTimeLeft() view returns(uint256)
func (*ChallengeCaller) Defender ¶
Defender is a free data retrieval call binding the contract method 0x7f4c91c5.
Solidity: function defender() view returns(address)
func (*ChallengeCaller) DefenderTimeLeft ¶
DefenderTimeLeft is a free data retrieval call binding the contract method 0x5f41e3d6.
Solidity: function defenderTimeLeft() view returns(uint256)
func (*ChallengeCaller) LastMoveBlockTime ¶
LastMoveBlockTime is a free data retrieval call binding the contract method 0xed5b1303.
Solidity: function lastMoveBlockTime() view returns(uint256)
func (*ChallengeCaller) PrevBisection ¶
func (_Challenge *ChallengeCaller) PrevBisection(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
PrevBisection is a free data retrieval call binding the contract method 0xafeae965.
Solidity: function prevBisection(uint256 ) view returns(bytes32)
func (*ChallengeCaller) Rollback ¶
func (_Challenge *ChallengeCaller) Rollback(opts *bind.CallOpts) (bool, error)
Rollback is a free data retrieval call binding the contract method 0x9afd9d78.
Solidity: function rollback() view returns(bool)
func (*ChallengeCaller) StartInboxSize ¶
StartInboxSize is a free data retrieval call binding the contract method 0xfaeff41b.
Solidity: function startInboxSize() view returns(uint256)
type ChallengeCallerRaw ¶
type ChallengeCallerRaw struct {
Contract *ChallengeCaller // Generic read-only contract binding to access the raw methods on
}
ChallengeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ChallengeCallerRaw) Call ¶
func (_Challenge *ChallengeCallerRaw) 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 ChallengeCallerSession ¶
type ChallengeCallerSession struct { Contract *ChallengeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ChallengeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ChallengeCallerSession) BisectionHash ¶
func (_Challenge *ChallengeCallerSession) BisectionHash() ([32]byte, error)
BisectionHash is a free data retrieval call binding the contract method 0x2a51f6f7.
Solidity: function bisectionHash() view returns(bytes32)
func (*ChallengeCallerSession) Challenger ¶
func (_Challenge *ChallengeCallerSession) Challenger() (common.Address, error)
Challenger is a free data retrieval call binding the contract method 0x534db0e2.
Solidity: function challenger() view returns(address)
func (*ChallengeCallerSession) ChallengerTimeLeft ¶
func (_Challenge *ChallengeCallerSession) ChallengerTimeLeft() (*big.Int, error)
ChallengerTimeLeft is a free data retrieval call binding the contract method 0x41e8510c.
Solidity: function challengerTimeLeft() view returns(uint256)
func (*ChallengeCallerSession) CurrentBisected ¶
func (_Challenge *ChallengeCallerSession) CurrentBisected() (struct { StartState [32]byte MidState [32]byte EndState [32]byte BlockNum *big.Int BlockTime *big.Int ChallengedSegmentStart *big.Int ChallengedSegmentLength *big.Int }, error)
CurrentBisected is a free data retrieval call binding the contract method 0x732e6961.
Solidity: function currentBisected() view returns(bytes32 startState, bytes32 midState, bytes32 endState, uint256 blockNum, uint256 blockTime, uint256 challengedSegmentStart, uint256 challengedSegmentLength)
func (*ChallengeCallerSession) CurrentResponder ¶
func (_Challenge *ChallengeCallerSession) CurrentResponder() (common.Address, error)
CurrentResponder is a free data retrieval call binding the contract method 0x8a8cd218.
Solidity: function currentResponder() view returns(address)
func (*ChallengeCallerSession) CurrentResponderTimeLeft ¶
func (_Challenge *ChallengeCallerSession) CurrentResponderTimeLeft() (*big.Int, error)
CurrentResponderTimeLeft is a free data retrieval call binding the contract method 0xe87e3589.
Solidity: function currentResponderTimeLeft() view returns(uint256)
func (*ChallengeCallerSession) Defender ¶
func (_Challenge *ChallengeCallerSession) Defender() (common.Address, error)
Defender is a free data retrieval call binding the contract method 0x7f4c91c5.
Solidity: function defender() view returns(address)
func (*ChallengeCallerSession) DefenderTimeLeft ¶
func (_Challenge *ChallengeCallerSession) DefenderTimeLeft() (*big.Int, error)
DefenderTimeLeft is a free data retrieval call binding the contract method 0x5f41e3d6.
Solidity: function defenderTimeLeft() view returns(uint256)
func (*ChallengeCallerSession) LastMoveBlockTime ¶
func (_Challenge *ChallengeCallerSession) LastMoveBlockTime() (*big.Int, error)
LastMoveBlockTime is a free data retrieval call binding the contract method 0xed5b1303.
Solidity: function lastMoveBlockTime() view returns(uint256)
func (*ChallengeCallerSession) PrevBisection ¶
func (_Challenge *ChallengeCallerSession) PrevBisection(arg0 *big.Int) ([32]byte, error)
PrevBisection is a free data retrieval call binding the contract method 0xafeae965.
Solidity: function prevBisection(uint256 ) view returns(bytes32)
func (*ChallengeCallerSession) Rollback ¶
func (_Challenge *ChallengeCallerSession) Rollback() (bool, error)
Rollback is a free data retrieval call binding the contract method 0x9afd9d78.
Solidity: function rollback() view returns(bool)
func (*ChallengeCallerSession) StartInboxSize ¶
func (_Challenge *ChallengeCallerSession) StartInboxSize() (*big.Int, error)
StartInboxSize is a free data retrieval call binding the contract method 0xfaeff41b.
Solidity: function startInboxSize() view returns(uint256)
func (*ChallengeCallerSession) Turn ¶
func (_Challenge *ChallengeCallerSession) Turn() (uint8, error)
Turn is a free data retrieval call binding the contract method 0x8b299903.
Solidity: function turn() view returns(uint8)
type ChallengeChallengeCompleted ¶
type ChallengeChallengeCompleted struct { Winner common.Address Loser common.Address Reason uint8 Raw types.Log // Blockchain specific contextual infos }
ChallengeChallengeCompleted represents a ChallengeCompleted event raised by the Challenge contract.
type ChallengeChallengeCompletedIterator ¶
type ChallengeChallengeCompletedIterator struct { Event *ChallengeChallengeCompleted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ChallengeChallengeCompletedIterator is returned from FilterChallengeCompleted and is used to iterate over the raw logs and unpacked data for ChallengeCompleted events raised by the Challenge contract.
func (*ChallengeChallengeCompletedIterator) Close ¶
func (it *ChallengeChallengeCompletedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ChallengeChallengeCompletedIterator) Error ¶
func (it *ChallengeChallengeCompletedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ChallengeChallengeCompletedIterator) Next ¶
func (it *ChallengeChallengeCompletedIterator) Next() bool
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 ChallengeFilterer ¶
type ChallengeFilterer struct {
// contains filtered or unexported fields
}
ChallengeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewChallengeFilterer ¶
func NewChallengeFilterer(address common.Address, filterer bind.ContractFilterer) (*ChallengeFilterer, error)
NewChallengeFilterer creates a new log filterer instance of Challenge, bound to a specific deployed contract.
func (*ChallengeFilterer) FilterBisected ¶
func (_Challenge *ChallengeFilterer) FilterBisected(opts *bind.FilterOpts) (*ChallengeBisectedIterator, error)
FilterBisected is a free log retrieval operation binding the contract event 0x71809f4d4f7bf3c208a85ccd3c922c984024f8e3cef51e3d03ae677e4217097d.
Solidity: event Bisected(bytes32 startState, bytes32 midState, bytes32 endState, uint256 blockNum, uint256 blockTime, uint256 challengedSegmentStart, uint256 challengedSegmentLength)
func (*ChallengeFilterer) FilterChallengeCompleted ¶
func (_Challenge *ChallengeFilterer) FilterChallengeCompleted(opts *bind.FilterOpts) (*ChallengeChallengeCompletedIterator, error)
FilterChallengeCompleted is a free log retrieval operation binding the contract event 0x03f929a9a6b1f0aef5e43cb12b56f862da97ec3de3fda02a52e85f9f3974fb6a.
Solidity: event ChallengeCompleted(address winner, address loser, uint8 reason)
func (*ChallengeFilterer) ParseBisected ¶
func (_Challenge *ChallengeFilterer) ParseBisected(log types.Log) (*ChallengeBisected, error)
ParseBisected is a log parse operation binding the contract event 0x71809f4d4f7bf3c208a85ccd3c922c984024f8e3cef51e3d03ae677e4217097d.
Solidity: event Bisected(bytes32 startState, bytes32 midState, bytes32 endState, uint256 blockNum, uint256 blockTime, uint256 challengedSegmentStart, uint256 challengedSegmentLength)
func (*ChallengeFilterer) ParseChallengeCompleted ¶
func (_Challenge *ChallengeFilterer) ParseChallengeCompleted(log types.Log) (*ChallengeChallengeCompleted, error)
ParseChallengeCompleted is a log parse operation binding the contract event 0x03f929a9a6b1f0aef5e43cb12b56f862da97ec3de3fda02a52e85f9f3974fb6a.
Solidity: event ChallengeCompleted(address winner, address loser, uint8 reason)
func (*ChallengeFilterer) WatchBisected ¶
func (_Challenge *ChallengeFilterer) WatchBisected(opts *bind.WatchOpts, sink chan<- *ChallengeBisected) (event.Subscription, error)
WatchBisected is a free log subscription operation binding the contract event 0x71809f4d4f7bf3c208a85ccd3c922c984024f8e3cef51e3d03ae677e4217097d.
Solidity: event Bisected(bytes32 startState, bytes32 midState, bytes32 endState, uint256 blockNum, uint256 blockTime, uint256 challengedSegmentStart, uint256 challengedSegmentLength)
func (*ChallengeFilterer) WatchChallengeCompleted ¶
func (_Challenge *ChallengeFilterer) WatchChallengeCompleted(opts *bind.WatchOpts, sink chan<- *ChallengeChallengeCompleted) (event.Subscription, error)
WatchChallengeCompleted is a free log subscription operation binding the contract event 0x03f929a9a6b1f0aef5e43cb12b56f862da97ec3de3fda02a52e85f9f3974fb6a.
Solidity: event ChallengeCompleted(address winner, address loser, uint8 reason)
type ChallengeRaw ¶
type ChallengeRaw struct {
Contract *Challenge // Generic contract binding to access the raw methods on
}
ChallengeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ChallengeRaw) Call ¶
func (_Challenge *ChallengeRaw) 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 (*ChallengeRaw) Transact ¶
func (_Challenge *ChallengeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ChallengeRaw) Transfer ¶
func (_Challenge *ChallengeRaw) 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 ChallengeSession ¶
type ChallengeSession struct { Contract *Challenge // 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 }
ChallengeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ChallengeSession) BisectExecution ¶
func (_Challenge *ChallengeSession) BisectExecution(bisection [3][32]byte, challengedSegmentIndex *big.Int, challengedSegmentStart *big.Int, challengedSegmentLength *big.Int, prevChallengedSegmentStart *big.Int, prevChallengedSegmentLength *big.Int) (*types.Transaction, error)
BisectExecution is a paid mutator transaction binding the contract method 0x8f2400a8.
Solidity: function bisectExecution(bytes32[3] bisection, uint256 challengedSegmentIndex, uint256 challengedSegmentStart, uint256 challengedSegmentLength, uint256 prevChallengedSegmentStart, uint256 prevChallengedSegmentLength) returns()
func (*ChallengeSession) BisectionHash ¶
func (_Challenge *ChallengeSession) BisectionHash() ([32]byte, error)
BisectionHash is a free data retrieval call binding the contract method 0x2a51f6f7.
Solidity: function bisectionHash() view returns(bytes32)
func (*ChallengeSession) Challenger ¶
func (_Challenge *ChallengeSession) Challenger() (common.Address, error)
Challenger is a free data retrieval call binding the contract method 0x534db0e2.
Solidity: function challenger() view returns(address)
func (*ChallengeSession) ChallengerTimeLeft ¶
func (_Challenge *ChallengeSession) ChallengerTimeLeft() (*big.Int, error)
ChallengerTimeLeft is a free data retrieval call binding the contract method 0x41e8510c.
Solidity: function challengerTimeLeft() view returns(uint256)
func (*ChallengeSession) CompleteChallenge ¶
func (_Challenge *ChallengeSession) CompleteChallenge(result bool) (*types.Transaction, error)
CompleteChallenge is a paid mutator transaction binding the contract method 0xf2858aa3.
Solidity: function completeChallenge(bool result) returns()
func (*ChallengeSession) CurrentBisected ¶
func (_Challenge *ChallengeSession) CurrentBisected() (struct { StartState [32]byte MidState [32]byte EndState [32]byte BlockNum *big.Int BlockTime *big.Int ChallengedSegmentStart *big.Int ChallengedSegmentLength *big.Int }, error)
CurrentBisected is a free data retrieval call binding the contract method 0x732e6961.
Solidity: function currentBisected() view returns(bytes32 startState, bytes32 midState, bytes32 endState, uint256 blockNum, uint256 blockTime, uint256 challengedSegmentStart, uint256 challengedSegmentLength)
func (*ChallengeSession) CurrentResponder ¶
func (_Challenge *ChallengeSession) CurrentResponder() (common.Address, error)
CurrentResponder is a free data retrieval call binding the contract method 0x8a8cd218.
Solidity: function currentResponder() view returns(address)
func (*ChallengeSession) CurrentResponderTimeLeft ¶
func (_Challenge *ChallengeSession) CurrentResponderTimeLeft() (*big.Int, error)
CurrentResponderTimeLeft is a free data retrieval call binding the contract method 0xe87e3589.
Solidity: function currentResponderTimeLeft() view returns(uint256)
func (*ChallengeSession) Defender ¶
func (_Challenge *ChallengeSession) Defender() (common.Address, error)
Defender is a free data retrieval call binding the contract method 0x7f4c91c5.
Solidity: function defender() view returns(address)
func (*ChallengeSession) DefenderTimeLeft ¶
func (_Challenge *ChallengeSession) DefenderTimeLeft() (*big.Int, error)
DefenderTimeLeft is a free data retrieval call binding the contract method 0x5f41e3d6.
Solidity: function defenderTimeLeft() view returns(uint256)
func (*ChallengeSession) Initialize ¶
func (_Challenge *ChallengeSession) Initialize(_defender common.Address, _challenger common.Address, _verifier common.Address, _resultReceiver common.Address, _startInboxSize *big.Int, _startStateHash [32]byte, _endStateHash [32]byte) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xabf48013.
Solidity: function initialize(address _defender, address _challenger, address _verifier, address _resultReceiver, uint256 _startInboxSize, bytes32 _startStateHash, bytes32 _endStateHash) returns()
func (*ChallengeSession) InitializeChallengeLength ¶
func (_Challenge *ChallengeSession) InitializeChallengeLength(checkStateHash [32]byte, _numSteps *big.Int) (*types.Transaction, error)
InitializeChallengeLength is a paid mutator transaction binding the contract method 0x18ef160d.
Solidity: function initializeChallengeLength(bytes32 checkStateHash, uint256 _numSteps) returns()
func (*ChallengeSession) LastMoveBlockTime ¶
func (_Challenge *ChallengeSession) LastMoveBlockTime() (*big.Int, error)
LastMoveBlockTime is a free data retrieval call binding the contract method 0xed5b1303.
Solidity: function lastMoveBlockTime() view returns(uint256)
func (*ChallengeSession) PrevBisection ¶
func (_Challenge *ChallengeSession) PrevBisection(arg0 *big.Int) ([32]byte, error)
PrevBisection is a free data retrieval call binding the contract method 0xafeae965.
Solidity: function prevBisection(uint256 ) view returns(bytes32)
func (*ChallengeSession) Rollback ¶
func (_Challenge *ChallengeSession) Rollback() (bool, error)
Rollback is a free data retrieval call binding the contract method 0x9afd9d78.
Solidity: function rollback() view returns(bool)
func (*ChallengeSession) SetRollback ¶
func (_Challenge *ChallengeSession) SetRollback() (*types.Transaction, error)
SetRollback is a paid mutator transaction binding the contract method 0x631acced.
Solidity: function setRollback() returns()
func (*ChallengeSession) StartInboxSize ¶
func (_Challenge *ChallengeSession) StartInboxSize() (*big.Int, error)
StartInboxSize is a free data retrieval call binding the contract method 0xfaeff41b.
Solidity: function startInboxSize() view returns(uint256)
func (*ChallengeSession) Timeout ¶
func (_Challenge *ChallengeSession) Timeout() (*types.Transaction, error)
Timeout is a paid mutator transaction binding the contract method 0x70dea79a.
Solidity: function timeout() returns()
func (*ChallengeSession) Turn ¶
func (_Challenge *ChallengeSession) Turn() (uint8, error)
Turn is a free data retrieval call binding the contract method 0x8b299903.
Solidity: function turn() view returns(uint8)
func (*ChallengeSession) VerifyOneStepProof ¶
func (_Challenge *ChallengeSession) VerifyOneStepProof(ctx VerificationContextContext, verifyType uint8, proof []byte, challengedStepIndex *big.Int, prevChallengedSegmentStart *big.Int, prevChallengedSegmentLength *big.Int) (*types.Transaction, error)
VerifyOneStepProof is a paid mutator transaction binding the contract method 0xf03a7fcb.
Solidity: function verifyOneStepProof((address,uint256,uint256,address,(uint64,uint256,uint64,address,uint256,bytes,uint256,uint256,uint256),bytes32,bytes32) ctx, uint8 verifyType, bytes proof, uint256 challengedStepIndex, uint256 prevChallengedSegmentStart, uint256 prevChallengedSegmentLength) returns()
type ChallengeTransactor ¶
type ChallengeTransactor struct {
// contains filtered or unexported fields
}
ChallengeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewChallengeTransactor ¶
func NewChallengeTransactor(address common.Address, transactor bind.ContractTransactor) (*ChallengeTransactor, error)
NewChallengeTransactor creates a new write-only instance of Challenge, bound to a specific deployed contract.
func (*ChallengeTransactor) BisectExecution ¶
func (_Challenge *ChallengeTransactor) BisectExecution(opts *bind.TransactOpts, bisection [3][32]byte, challengedSegmentIndex *big.Int, challengedSegmentStart *big.Int, challengedSegmentLength *big.Int, prevChallengedSegmentStart *big.Int, prevChallengedSegmentLength *big.Int) (*types.Transaction, error)
BisectExecution is a paid mutator transaction binding the contract method 0x8f2400a8.
Solidity: function bisectExecution(bytes32[3] bisection, uint256 challengedSegmentIndex, uint256 challengedSegmentStart, uint256 challengedSegmentLength, uint256 prevChallengedSegmentStart, uint256 prevChallengedSegmentLength) returns()
func (*ChallengeTransactor) CompleteChallenge ¶
func (_Challenge *ChallengeTransactor) CompleteChallenge(opts *bind.TransactOpts, result bool) (*types.Transaction, error)
CompleteChallenge is a paid mutator transaction binding the contract method 0xf2858aa3.
Solidity: function completeChallenge(bool result) returns()
func (*ChallengeTransactor) Initialize ¶
func (_Challenge *ChallengeTransactor) Initialize(opts *bind.TransactOpts, _defender common.Address, _challenger common.Address, _verifier common.Address, _resultReceiver common.Address, _startInboxSize *big.Int, _startStateHash [32]byte, _endStateHash [32]byte) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xabf48013.
Solidity: function initialize(address _defender, address _challenger, address _verifier, address _resultReceiver, uint256 _startInboxSize, bytes32 _startStateHash, bytes32 _endStateHash) returns()
func (*ChallengeTransactor) InitializeChallengeLength ¶
func (_Challenge *ChallengeTransactor) InitializeChallengeLength(opts *bind.TransactOpts, checkStateHash [32]byte, _numSteps *big.Int) (*types.Transaction, error)
InitializeChallengeLength is a paid mutator transaction binding the contract method 0x18ef160d.
Solidity: function initializeChallengeLength(bytes32 checkStateHash, uint256 _numSteps) returns()
func (*ChallengeTransactor) SetRollback ¶
func (_Challenge *ChallengeTransactor) SetRollback(opts *bind.TransactOpts) (*types.Transaction, error)
SetRollback is a paid mutator transaction binding the contract method 0x631acced.
Solidity: function setRollback() returns()
func (*ChallengeTransactor) Timeout ¶
func (_Challenge *ChallengeTransactor) Timeout(opts *bind.TransactOpts) (*types.Transaction, error)
Timeout is a paid mutator transaction binding the contract method 0x70dea79a.
Solidity: function timeout() returns()
func (*ChallengeTransactor) VerifyOneStepProof ¶
func (_Challenge *ChallengeTransactor) VerifyOneStepProof(opts *bind.TransactOpts, ctx VerificationContextContext, verifyType uint8, proof []byte, challengedStepIndex *big.Int, prevChallengedSegmentStart *big.Int, prevChallengedSegmentLength *big.Int) (*types.Transaction, error)
VerifyOneStepProof is a paid mutator transaction binding the contract method 0xf03a7fcb.
Solidity: function verifyOneStepProof((address,uint256,uint256,address,(uint64,uint256,uint64,address,uint256,bytes,uint256,uint256,uint256),bytes32,bytes32) ctx, uint8 verifyType, bytes proof, uint256 challengedStepIndex, uint256 prevChallengedSegmentStart, uint256 prevChallengedSegmentLength) returns()
type ChallengeTransactorRaw ¶
type ChallengeTransactorRaw struct {
Contract *ChallengeTransactor // Generic write-only contract binding to access the raw methods on
}
ChallengeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ChallengeTransactorRaw) Transact ¶
func (_Challenge *ChallengeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ChallengeTransactorRaw) Transfer ¶
func (_Challenge *ChallengeTransactorRaw) 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 ChallengeTransactorSession ¶
type ChallengeTransactorSession struct { Contract *ChallengeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ChallengeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ChallengeTransactorSession) BisectExecution ¶
func (_Challenge *ChallengeTransactorSession) BisectExecution(bisection [3][32]byte, challengedSegmentIndex *big.Int, challengedSegmentStart *big.Int, challengedSegmentLength *big.Int, prevChallengedSegmentStart *big.Int, prevChallengedSegmentLength *big.Int) (*types.Transaction, error)
BisectExecution is a paid mutator transaction binding the contract method 0x8f2400a8.
Solidity: function bisectExecution(bytes32[3] bisection, uint256 challengedSegmentIndex, uint256 challengedSegmentStart, uint256 challengedSegmentLength, uint256 prevChallengedSegmentStart, uint256 prevChallengedSegmentLength) returns()
func (*ChallengeTransactorSession) CompleteChallenge ¶
func (_Challenge *ChallengeTransactorSession) CompleteChallenge(result bool) (*types.Transaction, error)
CompleteChallenge is a paid mutator transaction binding the contract method 0xf2858aa3.
Solidity: function completeChallenge(bool result) returns()
func (*ChallengeTransactorSession) Initialize ¶
func (_Challenge *ChallengeTransactorSession) Initialize(_defender common.Address, _challenger common.Address, _verifier common.Address, _resultReceiver common.Address, _startInboxSize *big.Int, _startStateHash [32]byte, _endStateHash [32]byte) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xabf48013.
Solidity: function initialize(address _defender, address _challenger, address _verifier, address _resultReceiver, uint256 _startInboxSize, bytes32 _startStateHash, bytes32 _endStateHash) returns()
func (*ChallengeTransactorSession) InitializeChallengeLength ¶
func (_Challenge *ChallengeTransactorSession) InitializeChallengeLength(checkStateHash [32]byte, _numSteps *big.Int) (*types.Transaction, error)
InitializeChallengeLength is a paid mutator transaction binding the contract method 0x18ef160d.
Solidity: function initializeChallengeLength(bytes32 checkStateHash, uint256 _numSteps) returns()
func (*ChallengeTransactorSession) SetRollback ¶
func (_Challenge *ChallengeTransactorSession) SetRollback() (*types.Transaction, error)
SetRollback is a paid mutator transaction binding the contract method 0x631acced.
Solidity: function setRollback() returns()
func (*ChallengeTransactorSession) Timeout ¶
func (_Challenge *ChallengeTransactorSession) Timeout() (*types.Transaction, error)
Timeout is a paid mutator transaction binding the contract method 0x70dea79a.
Solidity: function timeout() returns()
func (*ChallengeTransactorSession) VerifyOneStepProof ¶
func (_Challenge *ChallengeTransactorSession) VerifyOneStepProof(ctx VerificationContextContext, verifyType uint8, proof []byte, challengedStepIndex *big.Int, prevChallengedSegmentStart *big.Int, prevChallengedSegmentLength *big.Int) (*types.Transaction, error)
VerifyOneStepProof is a paid mutator transaction binding the contract method 0xf03a7fcb.
Solidity: function verifyOneStepProof((address,uint256,uint256,address,(uint64,uint256,uint64,address,uint256,bytes,uint256,uint256,uint256),bytes32,bytes32) ctx, uint8 verifyType, bytes proof, uint256 challengedStepIndex, uint256 prevChallengedSegmentStart, uint256 prevChallengedSegmentLength) returns()
type EVMTypesLibTransaction ¶
type EVMTypesLibTransaction struct { Nonce uint64 GasPrice *big.Int Gas uint64 To common.Address Value *big.Int Data []byte V *big.Int R *big.Int S *big.Int }
EVMTypesLibTransaction is an auto generated low-level Go binding around an user-defined struct.
type VerificationContextContext ¶
type VerificationContextContext struct { Coinbase common.Address Timestamp *big.Int Number *big.Int Origin common.Address Transaction EVMTypesLibTransaction InputRoot [32]byte TxHash [32]byte }
VerificationContextContext is an auto generated low-level Go binding around an user-defined struct.