optimisticlightclient

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OptimisticLightClientABI = OptimisticLightClientMetaData.ABI

OptimisticLightClientABI is the input ABI used to generate the binding from. Deprecated: Use OptimisticLightClientMetaData.ABI instead.

View Source
var OptimisticLightClientMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"fraudProofWindowSeconds_\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"verifier_\",\"type\":\"address\",\"internalType\":\"contractIProofVerifier\"},{\"name\":\"_l1BlockProvider\",\"type\":\"address\",\"internalType\":\"contractL1Block\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"addOpConsensusState\",\"inputs\":[{\"name\":\"l1header\",\"type\":\"tuple\",\"internalType\":\"structL1Header\",\"components\":[{\"name\":\"header\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"stateRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"number\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"proof\",\"type\":\"tuple\",\"internalType\":\"structOpL2StateProof\",\"components\":[{\"name\":\"accountProof\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"outputRootProof\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"l2OutputProposalKey\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"l2BlockHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"appHash\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"fraudProofEndTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"ended\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"consensusStates\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"fraudProofEndtime\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"fraudProofWindowSeconds\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFraudProofEndtime\",\"inputs\":[{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"fraudProofEndTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getInternalState\",\"inputs\":[{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"appHash\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"fraudProofEndTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"ended\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getState\",\"inputs\":[{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"appHash\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"fraudProofEndTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"ended\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"l1BlockProvider\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractL1Block\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifier\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIProofVerifier\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifyMembership\",\"inputs\":[{\"name\":\"proof\",\"type\":\"tuple\",\"internalType\":\"structIcs23Proof\",\"components\":[{\"name\":\"proof\",\"type\":\"tuple[]\",\"internalType\":\"structOpIcs23Proof[]\",\"components\":[{\"name\":\"path\",\"type\":\"tuple[]\",\"internalType\":\"structOpIcs23ProofPath[]\",\"components\":[{\"name\":\"prefix\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"suffix\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"key\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"value\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"prefix\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"key\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"expectedValue\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifyNonMembership\",\"inputs\":[{\"name\":\"proof\",\"type\":\"tuple\",\"internalType\":\"structIcs23Proof\",\"components\":[{\"name\":\"proof\",\"type\":\"tuple[]\",\"internalType\":\"structOpIcs23Proof[]\",\"components\":[{\"name\":\"path\",\"type\":\"tuple[]\",\"internalType\":\"structOpIcs23ProofPath[]\",\"components\":[{\"name\":\"prefix\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"suffix\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"key\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"value\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"prefix\",\"type\":\"bytes\",\"internalType\":\"bytes\"}]},{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"name\":\"key\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"type\":\"error\",\"name\":\"AppHashHasNotPassedFraudProofWindow\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"CannotUpdatePendingOptimisticConsensusState\",\"inputs\":[]}]",
}

OptimisticLightClientMetaData contains all meta data concerning the OptimisticLightClient contract.

Functions

This section is empty.

Types

type Ics23Proof

type Ics23Proof struct {
	Proof  []OpIcs23Proof
	Height *big.Int
}

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

type L1Header

type L1Header struct {
	Header    [][]byte
	StateRoot [32]byte
	Number    uint64
}

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

type OpIcs23Proof

type OpIcs23Proof struct {
	Path   []OpIcs23ProofPath
	Key    []byte
	Value  []byte
	Prefix []byte
}

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

type OpIcs23ProofPath

type OpIcs23ProofPath struct {
	Prefix []byte
	Suffix []byte
}

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

type OpL2StateProof

type OpL2StateProof struct {
	AccountProof        [][]byte
	OutputRootProof     [][]byte
	L2OutputProposalKey [32]byte
	L2BlockHash         [32]byte
}

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

type OptimisticLightClient

type OptimisticLightClient struct {
	OptimisticLightClientCaller     // Read-only binding to the contract
	OptimisticLightClientTransactor // Write-only binding to the contract
	OptimisticLightClientFilterer   // Log filterer for contract events
}

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

func NewOptimisticLightClient

func NewOptimisticLightClient(address common.Address, backend bind.ContractBackend) (*OptimisticLightClient, error)

NewOptimisticLightClient creates a new instance of OptimisticLightClient, bound to a specific deployed contract.

type OptimisticLightClientCaller

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

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

func NewOptimisticLightClientCaller

func NewOptimisticLightClientCaller(address common.Address, caller bind.ContractCaller) (*OptimisticLightClientCaller, error)

NewOptimisticLightClientCaller creates a new read-only instance of OptimisticLightClient, bound to a specific deployed contract.

func (*OptimisticLightClientCaller) ConsensusStates

func (_OptimisticLightClient *OptimisticLightClientCaller) ConsensusStates(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

ConsensusStates is a free data retrieval call binding the contract method 0x1b738a22.

Solidity: function consensusStates(uint256 ) view returns(uint256)

func (*OptimisticLightClientCaller) FraudProofEndtime

func (_OptimisticLightClient *OptimisticLightClientCaller) FraudProofEndtime(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

FraudProofEndtime is a free data retrieval call binding the contract method 0x34b80a41.

Solidity: function fraudProofEndtime(uint256 ) view returns(uint256)

func (*OptimisticLightClientCaller) FraudProofWindowSeconds

func (_OptimisticLightClient *OptimisticLightClientCaller) FraudProofWindowSeconds(opts *bind.CallOpts) (*big.Int, error)

FraudProofWindowSeconds is a free data retrieval call binding the contract method 0x63042720.

Solidity: function fraudProofWindowSeconds() view returns(uint256)

func (*OptimisticLightClientCaller) GetFraudProofEndtime

func (_OptimisticLightClient *OptimisticLightClientCaller) GetFraudProofEndtime(opts *bind.CallOpts, height *big.Int) (*big.Int, error)

GetFraudProofEndtime is a free data retrieval call binding the contract method 0xd56ff842.

Solidity: function getFraudProofEndtime(uint256 height) view returns(uint256 fraudProofEndTime)

func (*OptimisticLightClientCaller) GetInternalState

func (_OptimisticLightClient *OptimisticLightClientCaller) GetInternalState(opts *bind.CallOpts, height *big.Int) (struct {
	AppHash           *big.Int
	FraudProofEndTime *big.Int
	Ended             bool
}, error)

GetInternalState is a free data retrieval call binding the contract method 0x1bc97a78.

Solidity: function getInternalState(uint256 height) view returns(uint256 appHash, uint256 fraudProofEndTime, bool ended)

func (*OptimisticLightClientCaller) GetState

func (_OptimisticLightClient *OptimisticLightClientCaller) GetState(opts *bind.CallOpts, height *big.Int) (struct {
	AppHash           *big.Int
	FraudProofEndTime *big.Int
	Ended             bool
}, error)

GetState is a free data retrieval call binding the contract method 0x44c9af28.

Solidity: function getState(uint256 height) view returns(uint256 appHash, uint256 fraudProofEndTime, bool ended)

func (*OptimisticLightClientCaller) L1BlockProvider

func (_OptimisticLightClient *OptimisticLightClientCaller) L1BlockProvider(opts *bind.CallOpts) (common.Address, error)

L1BlockProvider is a free data retrieval call binding the contract method 0xeb772058.

Solidity: function l1BlockProvider() view returns(address)

func (*OptimisticLightClientCaller) Verifier

func (_OptimisticLightClient *OptimisticLightClientCaller) Verifier(opts *bind.CallOpts) (common.Address, error)

Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.

Solidity: function verifier() view returns(address)

func (*OptimisticLightClientCaller) VerifyMembership

func (_OptimisticLightClient *OptimisticLightClientCaller) VerifyMembership(opts *bind.CallOpts, proof Ics23Proof, key []byte, expectedValue []byte) error

VerifyMembership is a free data retrieval call binding the contract method 0xcb535ab5.

Solidity: function verifyMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key, bytes expectedValue) view returns()

func (*OptimisticLightClientCaller) VerifyNonMembership

func (_OptimisticLightClient *OptimisticLightClientCaller) VerifyNonMembership(opts *bind.CallOpts, proof Ics23Proof, key []byte) error

VerifyNonMembership is a free data retrieval call binding the contract method 0xfdaab4e5.

Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key) view returns()

type OptimisticLightClientCallerRaw

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

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

func (*OptimisticLightClientCallerRaw) Call

func (_OptimisticLightClient *OptimisticLightClientCallerRaw) 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 OptimisticLightClientCallerSession

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

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

func (*OptimisticLightClientCallerSession) ConsensusStates

func (_OptimisticLightClient *OptimisticLightClientCallerSession) ConsensusStates(arg0 *big.Int) (*big.Int, error)

ConsensusStates is a free data retrieval call binding the contract method 0x1b738a22.

Solidity: function consensusStates(uint256 ) view returns(uint256)

func (*OptimisticLightClientCallerSession) FraudProofEndtime

func (_OptimisticLightClient *OptimisticLightClientCallerSession) FraudProofEndtime(arg0 *big.Int) (*big.Int, error)

FraudProofEndtime is a free data retrieval call binding the contract method 0x34b80a41.

Solidity: function fraudProofEndtime(uint256 ) view returns(uint256)

func (*OptimisticLightClientCallerSession) FraudProofWindowSeconds

func (_OptimisticLightClient *OptimisticLightClientCallerSession) FraudProofWindowSeconds() (*big.Int, error)

FraudProofWindowSeconds is a free data retrieval call binding the contract method 0x63042720.

Solidity: function fraudProofWindowSeconds() view returns(uint256)

func (*OptimisticLightClientCallerSession) GetFraudProofEndtime

func (_OptimisticLightClient *OptimisticLightClientCallerSession) GetFraudProofEndtime(height *big.Int) (*big.Int, error)

GetFraudProofEndtime is a free data retrieval call binding the contract method 0xd56ff842.

Solidity: function getFraudProofEndtime(uint256 height) view returns(uint256 fraudProofEndTime)

func (*OptimisticLightClientCallerSession) GetInternalState

func (_OptimisticLightClient *OptimisticLightClientCallerSession) GetInternalState(height *big.Int) (struct {
	AppHash           *big.Int
	FraudProofEndTime *big.Int
	Ended             bool
}, error)

GetInternalState is a free data retrieval call binding the contract method 0x1bc97a78.

Solidity: function getInternalState(uint256 height) view returns(uint256 appHash, uint256 fraudProofEndTime, bool ended)

func (*OptimisticLightClientCallerSession) GetState

func (_OptimisticLightClient *OptimisticLightClientCallerSession) GetState(height *big.Int) (struct {
	AppHash           *big.Int
	FraudProofEndTime *big.Int
	Ended             bool
}, error)

GetState is a free data retrieval call binding the contract method 0x44c9af28.

Solidity: function getState(uint256 height) view returns(uint256 appHash, uint256 fraudProofEndTime, bool ended)

func (*OptimisticLightClientCallerSession) L1BlockProvider

func (_OptimisticLightClient *OptimisticLightClientCallerSession) L1BlockProvider() (common.Address, error)

L1BlockProvider is a free data retrieval call binding the contract method 0xeb772058.

Solidity: function l1BlockProvider() view returns(address)

func (*OptimisticLightClientCallerSession) Verifier

func (_OptimisticLightClient *OptimisticLightClientCallerSession) Verifier() (common.Address, error)

Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.

Solidity: function verifier() view returns(address)

func (*OptimisticLightClientCallerSession) VerifyMembership

func (_OptimisticLightClient *OptimisticLightClientCallerSession) VerifyMembership(proof Ics23Proof, key []byte, expectedValue []byte) error

VerifyMembership is a free data retrieval call binding the contract method 0xcb535ab5.

Solidity: function verifyMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key, bytes expectedValue) view returns()

func (*OptimisticLightClientCallerSession) VerifyNonMembership

func (_OptimisticLightClient *OptimisticLightClientCallerSession) VerifyNonMembership(proof Ics23Proof, key []byte) error

VerifyNonMembership is a free data retrieval call binding the contract method 0xfdaab4e5.

Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key) view returns()

type OptimisticLightClientFilterer

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

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

func NewOptimisticLightClientFilterer

func NewOptimisticLightClientFilterer(address common.Address, filterer bind.ContractFilterer) (*OptimisticLightClientFilterer, error)

NewOptimisticLightClientFilterer creates a new log filterer instance of OptimisticLightClient, bound to a specific deployed contract.

type OptimisticLightClientRaw

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

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

func (*OptimisticLightClientRaw) Call

func (_OptimisticLightClient *OptimisticLightClientRaw) 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 (*OptimisticLightClientRaw) Transact

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

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

func (*OptimisticLightClientRaw) Transfer

func (_OptimisticLightClient *OptimisticLightClientRaw) 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 OptimisticLightClientSession

type OptimisticLightClientSession struct {
	Contract     *OptimisticLightClient // 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
}

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

func (*OptimisticLightClientSession) AddOpConsensusState

func (_OptimisticLightClient *OptimisticLightClientSession) AddOpConsensusState(l1header L1Header, proof OpL2StateProof, height *big.Int, appHash *big.Int) (*types.Transaction, error)

AddOpConsensusState is a paid mutator transaction binding the contract method 0x5922f420.

Solidity: function addOpConsensusState((bytes[],bytes32,uint64) l1header, (bytes[],bytes[],bytes32,bytes32) proof, uint256 height, uint256 appHash) returns(uint256 fraudProofEndTime, bool ended)

func (*OptimisticLightClientSession) ConsensusStates

func (_OptimisticLightClient *OptimisticLightClientSession) ConsensusStates(arg0 *big.Int) (*big.Int, error)

ConsensusStates is a free data retrieval call binding the contract method 0x1b738a22.

Solidity: function consensusStates(uint256 ) view returns(uint256)

func (*OptimisticLightClientSession) FraudProofEndtime

func (_OptimisticLightClient *OptimisticLightClientSession) FraudProofEndtime(arg0 *big.Int) (*big.Int, error)

FraudProofEndtime is a free data retrieval call binding the contract method 0x34b80a41.

Solidity: function fraudProofEndtime(uint256 ) view returns(uint256)

func (*OptimisticLightClientSession) FraudProofWindowSeconds

func (_OptimisticLightClient *OptimisticLightClientSession) FraudProofWindowSeconds() (*big.Int, error)

FraudProofWindowSeconds is a free data retrieval call binding the contract method 0x63042720.

Solidity: function fraudProofWindowSeconds() view returns(uint256)

func (*OptimisticLightClientSession) GetFraudProofEndtime

func (_OptimisticLightClient *OptimisticLightClientSession) GetFraudProofEndtime(height *big.Int) (*big.Int, error)

GetFraudProofEndtime is a free data retrieval call binding the contract method 0xd56ff842.

Solidity: function getFraudProofEndtime(uint256 height) view returns(uint256 fraudProofEndTime)

func (*OptimisticLightClientSession) GetInternalState

func (_OptimisticLightClient *OptimisticLightClientSession) GetInternalState(height *big.Int) (struct {
	AppHash           *big.Int
	FraudProofEndTime *big.Int
	Ended             bool
}, error)

GetInternalState is a free data retrieval call binding the contract method 0x1bc97a78.

Solidity: function getInternalState(uint256 height) view returns(uint256 appHash, uint256 fraudProofEndTime, bool ended)

func (*OptimisticLightClientSession) GetState

func (_OptimisticLightClient *OptimisticLightClientSession) GetState(height *big.Int) (struct {
	AppHash           *big.Int
	FraudProofEndTime *big.Int
	Ended             bool
}, error)

GetState is a free data retrieval call binding the contract method 0x44c9af28.

Solidity: function getState(uint256 height) view returns(uint256 appHash, uint256 fraudProofEndTime, bool ended)

func (*OptimisticLightClientSession) L1BlockProvider

func (_OptimisticLightClient *OptimisticLightClientSession) L1BlockProvider() (common.Address, error)

L1BlockProvider is a free data retrieval call binding the contract method 0xeb772058.

Solidity: function l1BlockProvider() view returns(address)

func (*OptimisticLightClientSession) Verifier

func (_OptimisticLightClient *OptimisticLightClientSession) Verifier() (common.Address, error)

Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.

Solidity: function verifier() view returns(address)

func (*OptimisticLightClientSession) VerifyMembership

func (_OptimisticLightClient *OptimisticLightClientSession) VerifyMembership(proof Ics23Proof, key []byte, expectedValue []byte) error

VerifyMembership is a free data retrieval call binding the contract method 0xcb535ab5.

Solidity: function verifyMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key, bytes expectedValue) view returns()

func (*OptimisticLightClientSession) VerifyNonMembership

func (_OptimisticLightClient *OptimisticLightClientSession) VerifyNonMembership(proof Ics23Proof, key []byte) error

VerifyNonMembership is a free data retrieval call binding the contract method 0xfdaab4e5.

Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key) view returns()

type OptimisticLightClientTransactor

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

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

func NewOptimisticLightClientTransactor

func NewOptimisticLightClientTransactor(address common.Address, transactor bind.ContractTransactor) (*OptimisticLightClientTransactor, error)

NewOptimisticLightClientTransactor creates a new write-only instance of OptimisticLightClient, bound to a specific deployed contract.

func (*OptimisticLightClientTransactor) AddOpConsensusState

func (_OptimisticLightClient *OptimisticLightClientTransactor) AddOpConsensusState(opts *bind.TransactOpts, l1header L1Header, proof OpL2StateProof, height *big.Int, appHash *big.Int) (*types.Transaction, error)

AddOpConsensusState is a paid mutator transaction binding the contract method 0x5922f420.

Solidity: function addOpConsensusState((bytes[],bytes32,uint64) l1header, (bytes[],bytes[],bytes32,bytes32) proof, uint256 height, uint256 appHash) returns(uint256 fraudProofEndTime, bool ended)

type OptimisticLightClientTransactorRaw

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

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

func (*OptimisticLightClientTransactorRaw) Transact

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

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

func (*OptimisticLightClientTransactorRaw) Transfer

func (_OptimisticLightClient *OptimisticLightClientTransactorRaw) 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 OptimisticLightClientTransactorSession

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

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

func (*OptimisticLightClientTransactorSession) AddOpConsensusState

func (_OptimisticLightClient *OptimisticLightClientTransactorSession) AddOpConsensusState(l1header L1Header, proof OpL2StateProof, height *big.Int, appHash *big.Int) (*types.Transaction, error)

AddOpConsensusState is a paid mutator transaction binding the contract method 0x5922f420.

Solidity: function addOpConsensusState((bytes[],bytes32,uint64) l1header, (bytes[],bytes[],bytes32,bytes32) proof, uint256 height, uint256 appHash) returns(uint256 fraudProofEndTime, bool ended)

Jump to

Keyboard shortcuts

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