Documentation ¶
Index ¶
- Variables
- type ILightClient
- type ILightClientCaller
- type ILightClientCallerRaw
- type ILightClientCallerSession
- type ILightClientFilterer
- type ILightClientRaw
- func (_ILightClient *ILightClientRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ILightClient *ILightClientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ILightClient *ILightClientRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ILightClientSession
- func (_ILightClient *ILightClientSession) AddOpConsensusState(l1header L1Header, proof OpL2StateProof, height *big.Int, appHash *big.Int) (*types.Transaction, error)
- func (_ILightClient *ILightClientSession) GetFraudProofEndtime(height *big.Int) (*types.Transaction, error)
- func (_ILightClient *ILightClientSession) GetState(height *big.Int) (struct{ ... }, error)
- func (_ILightClient *ILightClientSession) VerifyMembership(proof Ics23Proof, key []byte, expectedValue []byte) (*types.Transaction, error)
- func (_ILightClient *ILightClientSession) VerifyNonMembership(proof Ics23Proof, key []byte) (*types.Transaction, error)
- type ILightClientTransactor
- func (_ILightClient *ILightClientTransactor) AddOpConsensusState(opts *bind.TransactOpts, l1header L1Header, proof OpL2StateProof, ...) (*types.Transaction, error)
- func (_ILightClient *ILightClientTransactor) GetFraudProofEndtime(opts *bind.TransactOpts, height *big.Int) (*types.Transaction, error)
- func (_ILightClient *ILightClientTransactor) VerifyMembership(opts *bind.TransactOpts, proof Ics23Proof, key []byte, expectedValue []byte) (*types.Transaction, error)
- func (_ILightClient *ILightClientTransactor) VerifyNonMembership(opts *bind.TransactOpts, proof Ics23Proof, key []byte) (*types.Transaction, error)
- type ILightClientTransactorRaw
- type ILightClientTransactorSession
- func (_ILightClient *ILightClientTransactorSession) AddOpConsensusState(l1header L1Header, proof OpL2StateProof, height *big.Int, appHash *big.Int) (*types.Transaction, error)
- func (_ILightClient *ILightClientTransactorSession) GetFraudProofEndtime(height *big.Int) (*types.Transaction, error)
- func (_ILightClient *ILightClientTransactorSession) VerifyMembership(proof Ics23Proof, key []byte, expectedValue []byte) (*types.Transaction, error)
- func (_ILightClient *ILightClientTransactorSession) VerifyNonMembership(proof Ics23Proof, key []byte) (*types.Transaction, error)
- type Ics23Proof
- type L1Header
- type OpIcs23Proof
- type OpIcs23ProofPath
- type OpL2StateProof
Constants ¶
This section is empty.
Variables ¶
var ILightClientABI = ILightClientMetaData.ABI
ILightClientABI is the input ABI used to generate the binding from. Deprecated: Use ILightClientMetaData.ABI instead.
var ILightClientMetaData = &bind.MetaData{
ABI: "[{\"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\":\"getFraudProofEndtime\",\"inputs\":[{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"endTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"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\":\"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\":\"nonpayable\"},{\"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\":\"nonpayable\"}]",
}
ILightClientMetaData contains all meta data concerning the ILightClient contract.
Functions ¶
This section is empty.
Types ¶
type ILightClient ¶
type ILightClient struct { ILightClientCaller // Read-only binding to the contract ILightClientTransactor // Write-only binding to the contract ILightClientFilterer // Log filterer for contract events }
ILightClient is an auto generated Go binding around an Ethereum contract.
func NewILightClient ¶
func NewILightClient(address common.Address, backend bind.ContractBackend) (*ILightClient, error)
NewILightClient creates a new instance of ILightClient, bound to a specific deployed contract.
type ILightClientCaller ¶
type ILightClientCaller struct {
// contains filtered or unexported fields
}
ILightClientCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewILightClientCaller ¶
func NewILightClientCaller(address common.Address, caller bind.ContractCaller) (*ILightClientCaller, error)
NewILightClientCaller creates a new read-only instance of ILightClient, bound to a specific deployed contract.
func (*ILightClientCaller) GetState ¶
func (_ILightClient *ILightClientCaller) 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)
type ILightClientCallerRaw ¶
type ILightClientCallerRaw struct {
Contract *ILightClientCaller // Generic read-only contract binding to access the raw methods on
}
ILightClientCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ILightClientCallerRaw) Call ¶
func (_ILightClient *ILightClientCallerRaw) 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 ILightClientCallerSession ¶
type ILightClientCallerSession struct { Contract *ILightClientCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ILightClientCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ILightClientCallerSession) GetState ¶
func (_ILightClient *ILightClientCallerSession) 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)
type ILightClientFilterer ¶
type ILightClientFilterer struct {
// contains filtered or unexported fields
}
ILightClientFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewILightClientFilterer ¶
func NewILightClientFilterer(address common.Address, filterer bind.ContractFilterer) (*ILightClientFilterer, error)
NewILightClientFilterer creates a new log filterer instance of ILightClient, bound to a specific deployed contract.
type ILightClientRaw ¶
type ILightClientRaw struct {
Contract *ILightClient // Generic contract binding to access the raw methods on
}
ILightClientRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ILightClientRaw) Call ¶
func (_ILightClient *ILightClientRaw) 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 (*ILightClientRaw) Transact ¶
func (_ILightClient *ILightClientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ILightClientRaw) Transfer ¶
func (_ILightClient *ILightClientRaw) 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 ILightClientSession ¶
type ILightClientSession struct { Contract *ILightClient // 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 }
ILightClientSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ILightClientSession) AddOpConsensusState ¶
func (_ILightClient *ILightClientSession) 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 (*ILightClientSession) GetFraudProofEndtime ¶
func (_ILightClient *ILightClientSession) GetFraudProofEndtime(height *big.Int) (*types.Transaction, error)
GetFraudProofEndtime is a paid mutator transaction binding the contract method 0xd56ff842.
Solidity: function getFraudProofEndtime(uint256 height) returns(uint256 endTime)
func (*ILightClientSession) GetState ¶
func (_ILightClient *ILightClientSession) 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 (*ILightClientSession) VerifyMembership ¶
func (_ILightClient *ILightClientSession) VerifyMembership(proof Ics23Proof, key []byte, expectedValue []byte) (*types.Transaction, error)
VerifyMembership is a paid mutator transaction binding the contract method 0xcb535ab5.
Solidity: function verifyMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key, bytes expectedValue) returns()
func (*ILightClientSession) VerifyNonMembership ¶
func (_ILightClient *ILightClientSession) VerifyNonMembership(proof Ics23Proof, key []byte) (*types.Transaction, error)
VerifyNonMembership is a paid mutator transaction binding the contract method 0xfdaab4e5.
Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key) returns()
type ILightClientTransactor ¶
type ILightClientTransactor struct {
// contains filtered or unexported fields
}
ILightClientTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewILightClientTransactor ¶
func NewILightClientTransactor(address common.Address, transactor bind.ContractTransactor) (*ILightClientTransactor, error)
NewILightClientTransactor creates a new write-only instance of ILightClient, bound to a specific deployed contract.
func (*ILightClientTransactor) AddOpConsensusState ¶
func (_ILightClient *ILightClientTransactor) 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)
func (*ILightClientTransactor) GetFraudProofEndtime ¶
func (_ILightClient *ILightClientTransactor) GetFraudProofEndtime(opts *bind.TransactOpts, height *big.Int) (*types.Transaction, error)
GetFraudProofEndtime is a paid mutator transaction binding the contract method 0xd56ff842.
Solidity: function getFraudProofEndtime(uint256 height) returns(uint256 endTime)
func (*ILightClientTransactor) VerifyMembership ¶
func (_ILightClient *ILightClientTransactor) VerifyMembership(opts *bind.TransactOpts, proof Ics23Proof, key []byte, expectedValue []byte) (*types.Transaction, error)
VerifyMembership is a paid mutator transaction binding the contract method 0xcb535ab5.
Solidity: function verifyMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key, bytes expectedValue) returns()
func (*ILightClientTransactor) VerifyNonMembership ¶
func (_ILightClient *ILightClientTransactor) VerifyNonMembership(opts *bind.TransactOpts, proof Ics23Proof, key []byte) (*types.Transaction, error)
VerifyNonMembership is a paid mutator transaction binding the contract method 0xfdaab4e5.
Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key) returns()
type ILightClientTransactorRaw ¶
type ILightClientTransactorRaw struct {
Contract *ILightClientTransactor // Generic write-only contract binding to access the raw methods on
}
ILightClientTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ILightClientTransactorRaw) Transact ¶
func (_ILightClient *ILightClientTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ILightClientTransactorRaw) Transfer ¶
func (_ILightClient *ILightClientTransactorRaw) 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 ILightClientTransactorSession ¶
type ILightClientTransactorSession struct { Contract *ILightClientTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ILightClientTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ILightClientTransactorSession) AddOpConsensusState ¶
func (_ILightClient *ILightClientTransactorSession) 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 (*ILightClientTransactorSession) GetFraudProofEndtime ¶
func (_ILightClient *ILightClientTransactorSession) GetFraudProofEndtime(height *big.Int) (*types.Transaction, error)
GetFraudProofEndtime is a paid mutator transaction binding the contract method 0xd56ff842.
Solidity: function getFraudProofEndtime(uint256 height) returns(uint256 endTime)
func (*ILightClientTransactorSession) VerifyMembership ¶
func (_ILightClient *ILightClientTransactorSession) VerifyMembership(proof Ics23Proof, key []byte, expectedValue []byte) (*types.Transaction, error)
VerifyMembership is a paid mutator transaction binding the contract method 0xcb535ab5.
Solidity: function verifyMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key, bytes expectedValue) returns()
func (*ILightClientTransactorSession) VerifyNonMembership ¶
func (_ILightClient *ILightClientTransactorSession) VerifyNonMembership(proof Ics23Proof, key []byte) (*types.Transaction, error)
VerifyNonMembership is a paid mutator transaction binding the contract method 0xfdaab4e5.
Solidity: function verifyNonMembership((((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proof, bytes key) returns()
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 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 ¶
OpIcs23ProofPath is an auto generated low-level Go binding around an user-defined struct.