Documentation ¶
Index ¶
- Variables
- type CrossL2Prover
- type CrossL2ProverCaller
- func (_CrossL2Prover *CrossL2ProverCaller) GetState(opts *bind.CallOpts, height *big.Int) (*big.Int, error)
- func (_CrossL2Prover *CrossL2ProverCaller) LIGHTCLIENTTYPE(opts *bind.CallOpts) (uint8, error)
- func (_CrossL2Prover *CrossL2ProverCaller) PeptideAppHashes(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_CrossL2Prover *CrossL2ProverCaller) PeptideClientId(opts *bind.CallOpts) (string, error)
- func (_CrossL2Prover *CrossL2ProverCaller) ValidateEvent(opts *bind.CallOpts, receiptIndex []byte, receiptRLPEncodedBytes []byte, ...) (bool, error)
- func (_CrossL2Prover *CrossL2ProverCaller) ValidateReceipt(opts *bind.CallOpts, receiptIndex []byte, receiptRLPEncodedBytes []byte, ...) (bool, error)
- func (_CrossL2Prover *CrossL2ProverCaller) Verifier(opts *bind.CallOpts) (common.Address, error)
- func (_CrossL2Prover *CrossL2ProverCaller) VerifyMembership(opts *bind.CallOpts, appHash [32]byte, key []byte, value []byte, ...) error
- func (_CrossL2Prover *CrossL2ProverCaller) VerifyNonMembership(opts *bind.CallOpts, arg0 [32]byte, arg1 []byte, arg2 Ics23Proof) error
- type CrossL2ProverCallerRaw
- type CrossL2ProverCallerSession
- func (_CrossL2Prover *CrossL2ProverCallerSession) GetState(height *big.Int) (*big.Int, error)
- func (_CrossL2Prover *CrossL2ProverCallerSession) LIGHTCLIENTTYPE() (uint8, error)
- func (_CrossL2Prover *CrossL2ProverCallerSession) PeptideAppHashes(arg0 *big.Int) (*big.Int, error)
- func (_CrossL2Prover *CrossL2ProverCallerSession) PeptideClientId() (string, error)
- func (_CrossL2Prover *CrossL2ProverCallerSession) ValidateEvent(receiptIndex []byte, receiptRLPEncodedBytes []byte, logIndex *big.Int, ...) (bool, error)
- func (_CrossL2Prover *CrossL2ProverCallerSession) ValidateReceipt(receiptIndex []byte, receiptRLPEncodedBytes []byte, proof []byte) (bool, error)
- func (_CrossL2Prover *CrossL2ProverCallerSession) Verifier() (common.Address, error)
- func (_CrossL2Prover *CrossL2ProverCallerSession) VerifyMembership(appHash [32]byte, key []byte, value []byte, proofs Ics23Proof) error
- func (_CrossL2Prover *CrossL2ProverCallerSession) VerifyNonMembership(arg0 [32]byte, arg1 []byte, arg2 Ics23Proof) error
- type CrossL2ProverFilterer
- type CrossL2ProverRaw
- func (_CrossL2Prover *CrossL2ProverRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_CrossL2Prover *CrossL2ProverRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_CrossL2Prover *CrossL2ProverRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type CrossL2ProverSession
- func (_CrossL2Prover *CrossL2ProverSession) GetState(height *big.Int) (*big.Int, error)
- func (_CrossL2Prover *CrossL2ProverSession) LIGHTCLIENTTYPE() (uint8, error)
- func (_CrossL2Prover *CrossL2ProverSession) PeptideAppHashes(arg0 *big.Int) (*big.Int, error)
- func (_CrossL2Prover *CrossL2ProverSession) PeptideClientId() (string, error)
- func (_CrossL2Prover *CrossL2ProverSession) UpdateClient(proof []byte, peptideHeight *big.Int, peptideAppHash *big.Int) (*types.Transaction, error)
- func (_CrossL2Prover *CrossL2ProverSession) ValidateEvent(receiptIndex []byte, receiptRLPEncodedBytes []byte, logIndex *big.Int, ...) (bool, error)
- func (_CrossL2Prover *CrossL2ProverSession) ValidateReceipt(receiptIndex []byte, receiptRLPEncodedBytes []byte, proof []byte) (bool, error)
- func (_CrossL2Prover *CrossL2ProverSession) Verifier() (common.Address, error)
- func (_CrossL2Prover *CrossL2ProverSession) VerifyMembership(appHash [32]byte, key []byte, value []byte, proofs Ics23Proof) error
- func (_CrossL2Prover *CrossL2ProverSession) VerifyNonMembership(arg0 [32]byte, arg1 []byte, arg2 Ics23Proof) error
- type CrossL2ProverTransactor
- type CrossL2ProverTransactorRaw
- type CrossL2ProverTransactorSession
- type Ics23Proof
- type OpIcs23Proof
- type OpIcs23ProofPath
Constants ¶
This section is empty.
Variables ¶
var CrossL2ProverABI = CrossL2ProverMetaData.ABI
CrossL2ProverABI is the input ABI used to generate the binding from. Deprecated: Use CrossL2ProverMetaData.ABI instead.
var CrossL2ProverMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"verifier_\",\"type\":\"address\",\"internalType\":\"contractISignatureVerifier\"},{\"name\":\"peptideClientId_\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"LIGHT_CLIENT_TYPE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumLightClientType\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getState\",\"inputs\":[{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"peptideAppHashes\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"peptideClientId\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"updateClient\",\"inputs\":[{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"peptideHeight\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"peptideAppHash\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"validateEvent\",\"inputs\":[{\"name\":\"receiptIndex\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"receiptRLPEncodedBytes\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"logIndex\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"logBytes\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"validateReceipt\",\"inputs\":[{\"name\":\"receiptIndex\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"receiptRLPEncodedBytes\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"valid\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifier\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractISignatureVerifier\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifyMembership\",\"inputs\":[{\"name\":\"appHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"key\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"value\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"proofs\",\"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\"}]}],\"outputs\":[],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"verifyNonMembership\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"\",\"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\"}]}],\"outputs\":[],\"stateMutability\":\"pure\"},{\"type\":\"error\",\"name\":\"CannotUpdateClientWithDifferentAppHash\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidAppHash\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidIbcStateProof\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidL1BlockHash\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidL1BlockNumber\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidPacketProof\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidProofKey\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidProofValue\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidRLPEncodedL1BlockNumber\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidRLPEncodedL1StateRoot\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"MethodNotImplemented\",\"inputs\":[]}]",
}
CrossL2ProverMetaData contains all meta data concerning the CrossL2Prover contract.
Functions ¶
This section is empty.
Types ¶
type CrossL2Prover ¶
type CrossL2Prover struct { CrossL2ProverCaller // Read-only binding to the contract CrossL2ProverTransactor // Write-only binding to the contract CrossL2ProverFilterer // Log filterer for contract events }
CrossL2Prover is an auto generated Go binding around an Ethereum contract.
func NewCrossL2Prover ¶
func NewCrossL2Prover(address common.Address, backend bind.ContractBackend) (*CrossL2Prover, error)
NewCrossL2Prover creates a new instance of CrossL2Prover, bound to a specific deployed contract.
type CrossL2ProverCaller ¶
type CrossL2ProverCaller struct {
// contains filtered or unexported fields
}
CrossL2ProverCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewCrossL2ProverCaller ¶
func NewCrossL2ProverCaller(address common.Address, caller bind.ContractCaller) (*CrossL2ProverCaller, error)
NewCrossL2ProverCaller creates a new read-only instance of CrossL2Prover, bound to a specific deployed contract.
func (*CrossL2ProverCaller) GetState ¶
func (_CrossL2Prover *CrossL2ProverCaller) GetState(opts *bind.CallOpts, height *big.Int) (*big.Int, error)
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 height) view returns(uint256)
func (*CrossL2ProverCaller) LIGHTCLIENTTYPE ¶
func (_CrossL2Prover *CrossL2ProverCaller) LIGHTCLIENTTYPE(opts *bind.CallOpts) (uint8, error)
LIGHTCLIENTTYPE is a free data retrieval call binding the contract method 0x57c1c5f4.
Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)
func (*CrossL2ProverCaller) PeptideAppHashes ¶
func (_CrossL2Prover *CrossL2ProverCaller) PeptideAppHashes(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
PeptideAppHashes is a free data retrieval call binding the contract method 0xc67e15f7.
Solidity: function peptideAppHashes(uint256 ) view returns(uint256)
func (*CrossL2ProverCaller) PeptideClientId ¶
func (_CrossL2Prover *CrossL2ProverCaller) PeptideClientId(opts *bind.CallOpts) (string, error)
PeptideClientId is a free data retrieval call binding the contract method 0xa2198c95.
Solidity: function peptideClientId() view returns(string)
func (*CrossL2ProverCaller) ValidateEvent ¶
func (_CrossL2Prover *CrossL2ProverCaller) ValidateEvent(opts *bind.CallOpts, receiptIndex []byte, receiptRLPEncodedBytes []byte, logIndex *big.Int, logBytes []byte, proof []byte) (bool, error)
ValidateEvent is a free data retrieval call binding the contract method 0x81ce4d34.
Solidity: function validateEvent(bytes receiptIndex, bytes receiptRLPEncodedBytes, uint256 logIndex, bytes logBytes, bytes proof) view returns(bool)
func (*CrossL2ProverCaller) ValidateReceipt ¶
func (_CrossL2Prover *CrossL2ProverCaller) ValidateReceipt(opts *bind.CallOpts, receiptIndex []byte, receiptRLPEncodedBytes []byte, proof []byte) (bool, error)
ValidateReceipt is a free data retrieval call binding the contract method 0x85532872.
Solidity: function validateReceipt(bytes receiptIndex, bytes receiptRLPEncodedBytes, bytes proof) view returns(bool valid)
func (*CrossL2ProverCaller) Verifier ¶
Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.
Solidity: function verifier() view returns(address)
func (*CrossL2ProverCaller) VerifyMembership ¶
func (_CrossL2Prover *CrossL2ProverCaller) VerifyMembership(opts *bind.CallOpts, appHash [32]byte, key []byte, value []byte, proofs Ics23Proof) error
VerifyMembership is a free data retrieval call binding the contract method 0xc2f0329f.
Solidity: function verifyMembership(bytes32 appHash, bytes key, bytes value, (((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proofs) pure returns()
func (*CrossL2ProverCaller) VerifyNonMembership ¶
func (_CrossL2Prover *CrossL2ProverCaller) VerifyNonMembership(opts *bind.CallOpts, arg0 [32]byte, arg1 []byte, arg2 Ics23Proof) error
VerifyNonMembership is a free data retrieval call binding the contract method 0x2a6ded74.
Solidity: function verifyNonMembership(bytes32 , bytes , (((bytes,bytes)[],bytes,bytes,bytes)[],uint256) ) pure returns()
type CrossL2ProverCallerRaw ¶
type CrossL2ProverCallerRaw struct {
Contract *CrossL2ProverCaller // Generic read-only contract binding to access the raw methods on
}
CrossL2ProverCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*CrossL2ProverCallerRaw) Call ¶
func (_CrossL2Prover *CrossL2ProverCallerRaw) 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 CrossL2ProverCallerSession ¶
type CrossL2ProverCallerSession struct { Contract *CrossL2ProverCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
CrossL2ProverCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*CrossL2ProverCallerSession) GetState ¶
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 height) view returns(uint256)
func (*CrossL2ProverCallerSession) LIGHTCLIENTTYPE ¶
func (_CrossL2Prover *CrossL2ProverCallerSession) LIGHTCLIENTTYPE() (uint8, error)
LIGHTCLIENTTYPE is a free data retrieval call binding the contract method 0x57c1c5f4.
Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)
func (*CrossL2ProverCallerSession) PeptideAppHashes ¶
PeptideAppHashes is a free data retrieval call binding the contract method 0xc67e15f7.
Solidity: function peptideAppHashes(uint256 ) view returns(uint256)
func (*CrossL2ProverCallerSession) PeptideClientId ¶
func (_CrossL2Prover *CrossL2ProverCallerSession) PeptideClientId() (string, error)
PeptideClientId is a free data retrieval call binding the contract method 0xa2198c95.
Solidity: function peptideClientId() view returns(string)
func (*CrossL2ProverCallerSession) ValidateEvent ¶
func (_CrossL2Prover *CrossL2ProverCallerSession) ValidateEvent(receiptIndex []byte, receiptRLPEncodedBytes []byte, logIndex *big.Int, logBytes []byte, proof []byte) (bool, error)
ValidateEvent is a free data retrieval call binding the contract method 0x81ce4d34.
Solidity: function validateEvent(bytes receiptIndex, bytes receiptRLPEncodedBytes, uint256 logIndex, bytes logBytes, bytes proof) view returns(bool)
func (*CrossL2ProverCallerSession) ValidateReceipt ¶
func (_CrossL2Prover *CrossL2ProverCallerSession) ValidateReceipt(receiptIndex []byte, receiptRLPEncodedBytes []byte, proof []byte) (bool, error)
ValidateReceipt is a free data retrieval call binding the contract method 0x85532872.
Solidity: function validateReceipt(bytes receiptIndex, bytes receiptRLPEncodedBytes, bytes proof) view returns(bool valid)
func (*CrossL2ProverCallerSession) Verifier ¶
func (_CrossL2Prover *CrossL2ProverCallerSession) Verifier() (common.Address, error)
Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.
Solidity: function verifier() view returns(address)
func (*CrossL2ProverCallerSession) VerifyMembership ¶
func (_CrossL2Prover *CrossL2ProverCallerSession) VerifyMembership(appHash [32]byte, key []byte, value []byte, proofs Ics23Proof) error
VerifyMembership is a free data retrieval call binding the contract method 0xc2f0329f.
Solidity: function verifyMembership(bytes32 appHash, bytes key, bytes value, (((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proofs) pure returns()
func (*CrossL2ProverCallerSession) VerifyNonMembership ¶
func (_CrossL2Prover *CrossL2ProverCallerSession) VerifyNonMembership(arg0 [32]byte, arg1 []byte, arg2 Ics23Proof) error
VerifyNonMembership is a free data retrieval call binding the contract method 0x2a6ded74.
Solidity: function verifyNonMembership(bytes32 , bytes , (((bytes,bytes)[],bytes,bytes,bytes)[],uint256) ) pure returns()
type CrossL2ProverFilterer ¶
type CrossL2ProverFilterer struct {
// contains filtered or unexported fields
}
CrossL2ProverFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewCrossL2ProverFilterer ¶
func NewCrossL2ProverFilterer(address common.Address, filterer bind.ContractFilterer) (*CrossL2ProverFilterer, error)
NewCrossL2ProverFilterer creates a new log filterer instance of CrossL2Prover, bound to a specific deployed contract.
type CrossL2ProverRaw ¶
type CrossL2ProverRaw struct {
Contract *CrossL2Prover // Generic contract binding to access the raw methods on
}
CrossL2ProverRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*CrossL2ProverRaw) Call ¶
func (_CrossL2Prover *CrossL2ProverRaw) 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 (*CrossL2ProverRaw) Transact ¶
func (_CrossL2Prover *CrossL2ProverRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CrossL2ProverRaw) Transfer ¶
func (_CrossL2Prover *CrossL2ProverRaw) 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 CrossL2ProverSession ¶
type CrossL2ProverSession struct { Contract *CrossL2Prover // 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 }
CrossL2ProverSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*CrossL2ProverSession) GetState ¶
GetState is a free data retrieval call binding the contract method 0x44c9af28.
Solidity: function getState(uint256 height) view returns(uint256)
func (*CrossL2ProverSession) LIGHTCLIENTTYPE ¶
func (_CrossL2Prover *CrossL2ProverSession) LIGHTCLIENTTYPE() (uint8, error)
LIGHTCLIENTTYPE is a free data retrieval call binding the contract method 0x57c1c5f4.
Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)
func (*CrossL2ProverSession) PeptideAppHashes ¶
PeptideAppHashes is a free data retrieval call binding the contract method 0xc67e15f7.
Solidity: function peptideAppHashes(uint256 ) view returns(uint256)
func (*CrossL2ProverSession) PeptideClientId ¶
func (_CrossL2Prover *CrossL2ProverSession) PeptideClientId() (string, error)
PeptideClientId is a free data retrieval call binding the contract method 0xa2198c95.
Solidity: function peptideClientId() view returns(string)
func (*CrossL2ProverSession) UpdateClient ¶
func (_CrossL2Prover *CrossL2ProverSession) UpdateClient(proof []byte, peptideHeight *big.Int, peptideAppHash *big.Int) (*types.Transaction, error)
UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.
Solidity: function updateClient(bytes proof, uint256 peptideHeight, uint256 peptideAppHash) returns()
func (*CrossL2ProverSession) ValidateEvent ¶
func (_CrossL2Prover *CrossL2ProverSession) ValidateEvent(receiptIndex []byte, receiptRLPEncodedBytes []byte, logIndex *big.Int, logBytes []byte, proof []byte) (bool, error)
ValidateEvent is a free data retrieval call binding the contract method 0x81ce4d34.
Solidity: function validateEvent(bytes receiptIndex, bytes receiptRLPEncodedBytes, uint256 logIndex, bytes logBytes, bytes proof) view returns(bool)
func (*CrossL2ProverSession) ValidateReceipt ¶
func (_CrossL2Prover *CrossL2ProverSession) ValidateReceipt(receiptIndex []byte, receiptRLPEncodedBytes []byte, proof []byte) (bool, error)
ValidateReceipt is a free data retrieval call binding the contract method 0x85532872.
Solidity: function validateReceipt(bytes receiptIndex, bytes receiptRLPEncodedBytes, bytes proof) view returns(bool valid)
func (*CrossL2ProverSession) Verifier ¶
func (_CrossL2Prover *CrossL2ProverSession) Verifier() (common.Address, error)
Verifier is a free data retrieval call binding the contract method 0x2b7ac3f3.
Solidity: function verifier() view returns(address)
func (*CrossL2ProverSession) VerifyMembership ¶
func (_CrossL2Prover *CrossL2ProverSession) VerifyMembership(appHash [32]byte, key []byte, value []byte, proofs Ics23Proof) error
VerifyMembership is a free data retrieval call binding the contract method 0xc2f0329f.
Solidity: function verifyMembership(bytes32 appHash, bytes key, bytes value, (((bytes,bytes)[],bytes,bytes,bytes)[],uint256) proofs) pure returns()
func (*CrossL2ProverSession) VerifyNonMembership ¶
func (_CrossL2Prover *CrossL2ProverSession) VerifyNonMembership(arg0 [32]byte, arg1 []byte, arg2 Ics23Proof) error
VerifyNonMembership is a free data retrieval call binding the contract method 0x2a6ded74.
Solidity: function verifyNonMembership(bytes32 , bytes , (((bytes,bytes)[],bytes,bytes,bytes)[],uint256) ) pure returns()
type CrossL2ProverTransactor ¶
type CrossL2ProverTransactor struct {
// contains filtered or unexported fields
}
CrossL2ProverTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewCrossL2ProverTransactor ¶
func NewCrossL2ProverTransactor(address common.Address, transactor bind.ContractTransactor) (*CrossL2ProverTransactor, error)
NewCrossL2ProverTransactor creates a new write-only instance of CrossL2Prover, bound to a specific deployed contract.
func (*CrossL2ProverTransactor) UpdateClient ¶
func (_CrossL2Prover *CrossL2ProverTransactor) UpdateClient(opts *bind.TransactOpts, proof []byte, peptideHeight *big.Int, peptideAppHash *big.Int) (*types.Transaction, error)
UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.
Solidity: function updateClient(bytes proof, uint256 peptideHeight, uint256 peptideAppHash) returns()
type CrossL2ProverTransactorRaw ¶
type CrossL2ProverTransactorRaw struct {
Contract *CrossL2ProverTransactor // Generic write-only contract binding to access the raw methods on
}
CrossL2ProverTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*CrossL2ProverTransactorRaw) Transact ¶
func (_CrossL2Prover *CrossL2ProverTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CrossL2ProverTransactorRaw) Transfer ¶
func (_CrossL2Prover *CrossL2ProverTransactorRaw) 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 CrossL2ProverTransactorSession ¶
type CrossL2ProverTransactorSession struct { Contract *CrossL2ProverTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CrossL2ProverTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*CrossL2ProverTransactorSession) UpdateClient ¶
func (_CrossL2Prover *CrossL2ProverTransactorSession) UpdateClient(proof []byte, peptideHeight *big.Int, peptideAppHash *big.Int) (*types.Transaction, error)
UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.
Solidity: function updateClient(bytes proof, uint256 peptideHeight, uint256 peptideAppHash) 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.