Documentation ¶
Index ¶
- Variables
- type DummyLightClient
- type DummyLightClientCaller
- func (_DummyLightClient *DummyLightClientCaller) AddOpConsensusState(opts *bind.CallOpts, arg0 L1Header, arg1 OpL2StateProof, arg2 *big.Int, ...) (struct{ ... }, error)
- func (_DummyLightClient *DummyLightClientCaller) GetFraudProofEndtime(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_DummyLightClient *DummyLightClientCaller) GetState(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_DummyLightClient *DummyLightClientCaller) VerifyMembership(opts *bind.CallOpts, proof Ics23Proof, arg1 []byte, arg2 []byte) error
- func (_DummyLightClient *DummyLightClientCaller) VerifyNonMembership(opts *bind.CallOpts, proof Ics23Proof, arg1 []byte) error
- type DummyLightClientCallerRaw
- type DummyLightClientCallerSession
- func (_DummyLightClient *DummyLightClientCallerSession) AddOpConsensusState(arg0 L1Header, arg1 OpL2StateProof, arg2 *big.Int, arg3 *big.Int) (struct{ ... }, error)
- func (_DummyLightClient *DummyLightClientCallerSession) GetFraudProofEndtime(arg0 *big.Int) (*big.Int, error)
- func (_DummyLightClient *DummyLightClientCallerSession) GetState(arg0 *big.Int) (struct{ ... }, error)
- func (_DummyLightClient *DummyLightClientCallerSession) VerifyMembership(proof Ics23Proof, arg1 []byte, arg2 []byte) error
- func (_DummyLightClient *DummyLightClientCallerSession) VerifyNonMembership(proof Ics23Proof, arg1 []byte) error
- type DummyLightClientFilterer
- type DummyLightClientRaw
- func (_DummyLightClient *DummyLightClientRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_DummyLightClient *DummyLightClientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_DummyLightClient *DummyLightClientRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DummyLightClientSession
- func (_DummyLightClient *DummyLightClientSession) AddOpConsensusState(arg0 L1Header, arg1 OpL2StateProof, arg2 *big.Int, arg3 *big.Int) (struct{ ... }, error)
- func (_DummyLightClient *DummyLightClientSession) GetFraudProofEndtime(arg0 *big.Int) (*big.Int, error)
- func (_DummyLightClient *DummyLightClientSession) GetState(arg0 *big.Int) (struct{ ... }, error)
- func (_DummyLightClient *DummyLightClientSession) VerifyMembership(proof Ics23Proof, arg1 []byte, arg2 []byte) error
- func (_DummyLightClient *DummyLightClientSession) VerifyNonMembership(proof Ics23Proof, arg1 []byte) error
- type DummyLightClientTransactor
- type DummyLightClientTransactorRaw
- type DummyLightClientTransactorSession
- type Ics23Proof
- type L1Header
- type OpIcs23Proof
- type OpIcs23ProofPath
- type OpL2StateProof
Constants ¶
This section is empty.
Variables ¶
var DummyLightClientABI = DummyLightClientMetaData.ABI
DummyLightClientABI is the input ABI used to generate the binding from. Deprecated: Use DummyLightClientMetaData.ABI instead.
var DummyLightClientMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"addOpConsensusState\",\"inputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structL1Header\",\"components\":[{\"name\":\"header\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"stateRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"number\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"\",\"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\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"endTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"ended\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getFraudProofEndtime\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"endTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getState\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"appHash\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"fraudProofEndtime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"ended\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"pure\"},{\"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\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"pure\"},{\"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\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"pure\"},{\"type\":\"error\",\"name\":\"InvalidDummyMembershipProof\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidDummyNonMembershipProof\",\"inputs\":[]}]",
}
DummyLightClientMetaData contains all meta data concerning the DummyLightClient contract.
Functions ¶
This section is empty.
Types ¶
type DummyLightClient ¶
type DummyLightClient struct { DummyLightClientCaller // Read-only binding to the contract DummyLightClientTransactor // Write-only binding to the contract DummyLightClientFilterer // Log filterer for contract events }
DummyLightClient is an auto generated Go binding around an Ethereum contract.
func NewDummyLightClient ¶
func NewDummyLightClient(address common.Address, backend bind.ContractBackend) (*DummyLightClient, error)
NewDummyLightClient creates a new instance of DummyLightClient, bound to a specific deployed contract.
type DummyLightClientCaller ¶
type DummyLightClientCaller struct {
// contains filtered or unexported fields
}
DummyLightClientCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDummyLightClientCaller ¶
func NewDummyLightClientCaller(address common.Address, caller bind.ContractCaller) (*DummyLightClientCaller, error)
NewDummyLightClientCaller creates a new read-only instance of DummyLightClient, bound to a specific deployed contract.
func (*DummyLightClientCaller) AddOpConsensusState ¶
func (_DummyLightClient *DummyLightClientCaller) AddOpConsensusState(opts *bind.CallOpts, arg0 L1Header, arg1 OpL2StateProof, arg2 *big.Int, arg3 *big.Int) (struct { EndTime *big.Int Ended bool }, error)
AddOpConsensusState is a free data retrieval call binding the contract method 0x5922f420.
Solidity: function addOpConsensusState((bytes[],bytes32,uint64) , (bytes[],bytes[],bytes32,bytes32) , uint256 , uint256 ) pure returns(uint256 endTime, bool ended)
func (*DummyLightClientCaller) GetFraudProofEndtime ¶
func (_DummyLightClient *DummyLightClientCaller) GetFraudProofEndtime(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
GetFraudProofEndtime is a free data retrieval call binding the contract method 0xd56ff842.
Solidity: function getFraudProofEndtime(uint256 ) pure returns(uint256 endTime)
func (*DummyLightClientCaller) GetState ¶
func (_DummyLightClient *DummyLightClientCaller) GetState(opts *bind.CallOpts, arg0 *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 ) pure returns(uint256 appHash, uint256 fraudProofEndtime, bool ended)
func (*DummyLightClientCaller) VerifyMembership ¶
func (_DummyLightClient *DummyLightClientCaller) VerifyMembership(opts *bind.CallOpts, proof Ics23Proof, arg1 []byte, arg2 []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 , bytes ) pure returns()
func (*DummyLightClientCaller) VerifyNonMembership ¶
func (_DummyLightClient *DummyLightClientCaller) VerifyNonMembership(opts *bind.CallOpts, proof Ics23Proof, arg1 []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 ) pure returns()
type DummyLightClientCallerRaw ¶
type DummyLightClientCallerRaw struct {
Contract *DummyLightClientCaller // Generic read-only contract binding to access the raw methods on
}
DummyLightClientCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DummyLightClientCallerRaw) Call ¶
func (_DummyLightClient *DummyLightClientCallerRaw) 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 DummyLightClientCallerSession ¶
type DummyLightClientCallerSession struct { Contract *DummyLightClientCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
DummyLightClientCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*DummyLightClientCallerSession) AddOpConsensusState ¶
func (_DummyLightClient *DummyLightClientCallerSession) AddOpConsensusState(arg0 L1Header, arg1 OpL2StateProof, arg2 *big.Int, arg3 *big.Int) (struct { EndTime *big.Int Ended bool }, error)
AddOpConsensusState is a free data retrieval call binding the contract method 0x5922f420.
Solidity: function addOpConsensusState((bytes[],bytes32,uint64) , (bytes[],bytes[],bytes32,bytes32) , uint256 , uint256 ) pure returns(uint256 endTime, bool ended)
func (*DummyLightClientCallerSession) GetFraudProofEndtime ¶
func (_DummyLightClient *DummyLightClientCallerSession) GetFraudProofEndtime(arg0 *big.Int) (*big.Int, error)
GetFraudProofEndtime is a free data retrieval call binding the contract method 0xd56ff842.
Solidity: function getFraudProofEndtime(uint256 ) pure returns(uint256 endTime)
func (*DummyLightClientCallerSession) GetState ¶
func (_DummyLightClient *DummyLightClientCallerSession) GetState(arg0 *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 ) pure returns(uint256 appHash, uint256 fraudProofEndtime, bool ended)
func (*DummyLightClientCallerSession) VerifyMembership ¶
func (_DummyLightClient *DummyLightClientCallerSession) VerifyMembership(proof Ics23Proof, arg1 []byte, arg2 []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 , bytes ) pure returns()
func (*DummyLightClientCallerSession) VerifyNonMembership ¶
func (_DummyLightClient *DummyLightClientCallerSession) VerifyNonMembership(proof Ics23Proof, arg1 []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 ) pure returns()
type DummyLightClientFilterer ¶
type DummyLightClientFilterer struct {
// contains filtered or unexported fields
}
DummyLightClientFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDummyLightClientFilterer ¶
func NewDummyLightClientFilterer(address common.Address, filterer bind.ContractFilterer) (*DummyLightClientFilterer, error)
NewDummyLightClientFilterer creates a new log filterer instance of DummyLightClient, bound to a specific deployed contract.
type DummyLightClientRaw ¶
type DummyLightClientRaw struct {
Contract *DummyLightClient // Generic contract binding to access the raw methods on
}
DummyLightClientRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DummyLightClientRaw) Call ¶
func (_DummyLightClient *DummyLightClientRaw) 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 (*DummyLightClientRaw) Transact ¶
func (_DummyLightClient *DummyLightClientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DummyLightClientRaw) Transfer ¶
func (_DummyLightClient *DummyLightClientRaw) 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 DummyLightClientSession ¶
type DummyLightClientSession struct { Contract *DummyLightClient // 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 }
DummyLightClientSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DummyLightClientSession) AddOpConsensusState ¶
func (_DummyLightClient *DummyLightClientSession) AddOpConsensusState(arg0 L1Header, arg1 OpL2StateProof, arg2 *big.Int, arg3 *big.Int) (struct { EndTime *big.Int Ended bool }, error)
AddOpConsensusState is a free data retrieval call binding the contract method 0x5922f420.
Solidity: function addOpConsensusState((bytes[],bytes32,uint64) , (bytes[],bytes[],bytes32,bytes32) , uint256 , uint256 ) pure returns(uint256 endTime, bool ended)
func (*DummyLightClientSession) GetFraudProofEndtime ¶
func (_DummyLightClient *DummyLightClientSession) GetFraudProofEndtime(arg0 *big.Int) (*big.Int, error)
GetFraudProofEndtime is a free data retrieval call binding the contract method 0xd56ff842.
Solidity: function getFraudProofEndtime(uint256 ) pure returns(uint256 endTime)
func (*DummyLightClientSession) GetState ¶
func (_DummyLightClient *DummyLightClientSession) GetState(arg0 *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 ) pure returns(uint256 appHash, uint256 fraudProofEndtime, bool ended)
func (*DummyLightClientSession) VerifyMembership ¶
func (_DummyLightClient *DummyLightClientSession) VerifyMembership(proof Ics23Proof, arg1 []byte, arg2 []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 , bytes ) pure returns()
func (*DummyLightClientSession) VerifyNonMembership ¶
func (_DummyLightClient *DummyLightClientSession) VerifyNonMembership(proof Ics23Proof, arg1 []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 ) pure returns()
type DummyLightClientTransactor ¶
type DummyLightClientTransactor struct {
// contains filtered or unexported fields
}
DummyLightClientTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDummyLightClientTransactor ¶
func NewDummyLightClientTransactor(address common.Address, transactor bind.ContractTransactor) (*DummyLightClientTransactor, error)
NewDummyLightClientTransactor creates a new write-only instance of DummyLightClient, bound to a specific deployed contract.
type DummyLightClientTransactorRaw ¶
type DummyLightClientTransactorRaw struct {
Contract *DummyLightClientTransactor // Generic write-only contract binding to access the raw methods on
}
DummyLightClientTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DummyLightClientTransactorRaw) Transact ¶
func (_DummyLightClient *DummyLightClientTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DummyLightClientTransactorRaw) Transfer ¶
func (_DummyLightClient *DummyLightClientTransactorRaw) 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 DummyLightClientTransactorSession ¶
type DummyLightClientTransactorSession struct { Contract *DummyLightClientTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DummyLightClientTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
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.