icrossl2prover

package
v4.0.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ICrossL2ProverABI = ICrossL2ProverMetaData.ABI

ICrossL2ProverABI is the input ABI used to generate the binding from. Deprecated: Use ICrossL2ProverMetaData.ABI instead.

View Source
var ICrossL2ProverMetaData = &bind.MetaData{
	ABI: "[{\"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\":\"updateClient\",\"inputs\":[{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"height\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"appHash\",\"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\":\"nonpayable\"},{\"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\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"nonpayable\"}]",
}

ICrossL2ProverMetaData contains all meta data concerning the ICrossL2Prover contract.

Functions

This section is empty.

Types

type ICrossL2Prover

type ICrossL2Prover struct {
	ICrossL2ProverCaller     // Read-only binding to the contract
	ICrossL2ProverTransactor // Write-only binding to the contract
	ICrossL2ProverFilterer   // Log filterer for contract events
}

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

func NewICrossL2Prover

func NewICrossL2Prover(address common.Address, backend bind.ContractBackend) (*ICrossL2Prover, error)

NewICrossL2Prover creates a new instance of ICrossL2Prover, bound to a specific deployed contract.

type ICrossL2ProverCaller

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

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

func NewICrossL2ProverCaller

func NewICrossL2ProverCaller(address common.Address, caller bind.ContractCaller) (*ICrossL2ProverCaller, error)

NewICrossL2ProverCaller creates a new read-only instance of ICrossL2Prover, bound to a specific deployed contract.

func (*ICrossL2ProverCaller) GetState

func (_ICrossL2Prover *ICrossL2ProverCaller) 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 (*ICrossL2ProverCaller) LIGHTCLIENTTYPE

func (_ICrossL2Prover *ICrossL2ProverCaller) 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)

type ICrossL2ProverCallerRaw

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

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

func (*ICrossL2ProverCallerRaw) Call

func (_ICrossL2Prover *ICrossL2ProverCallerRaw) 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 ICrossL2ProverCallerSession

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

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

func (*ICrossL2ProverCallerSession) GetState

func (_ICrossL2Prover *ICrossL2ProverCallerSession) GetState(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 (*ICrossL2ProverCallerSession) LIGHTCLIENTTYPE

func (_ICrossL2Prover *ICrossL2ProverCallerSession) LIGHTCLIENTTYPE() (uint8, error)

LIGHTCLIENTTYPE is a free data retrieval call binding the contract method 0x57c1c5f4.

Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)

type ICrossL2ProverFilterer

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

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

func NewICrossL2ProverFilterer

func NewICrossL2ProverFilterer(address common.Address, filterer bind.ContractFilterer) (*ICrossL2ProverFilterer, error)

NewICrossL2ProverFilterer creates a new log filterer instance of ICrossL2Prover, bound to a specific deployed contract.

type ICrossL2ProverRaw

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

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

func (*ICrossL2ProverRaw) Call

func (_ICrossL2Prover *ICrossL2ProverRaw) 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 (*ICrossL2ProverRaw) Transact

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

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

func (*ICrossL2ProverRaw) Transfer

func (_ICrossL2Prover *ICrossL2ProverRaw) 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 ICrossL2ProverSession

type ICrossL2ProverSession struct {
	Contract     *ICrossL2Prover   // 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
}

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

func (*ICrossL2ProverSession) GetState

func (_ICrossL2Prover *ICrossL2ProverSession) GetState(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 (*ICrossL2ProverSession) LIGHTCLIENTTYPE

func (_ICrossL2Prover *ICrossL2ProverSession) LIGHTCLIENTTYPE() (uint8, error)

LIGHTCLIENTTYPE is a free data retrieval call binding the contract method 0x57c1c5f4.

Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)

func (*ICrossL2ProverSession) UpdateClient

func (_ICrossL2Prover *ICrossL2ProverSession) UpdateClient(proof []byte, height *big.Int, appHash *big.Int) (*types.Transaction, error)

UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.

Solidity: function updateClient(bytes proof, uint256 height, uint256 appHash) returns()

func (*ICrossL2ProverSession) ValidateEvent

func (_ICrossL2Prover *ICrossL2ProverSession) ValidateEvent(receiptIndex []byte, receiptRLPEncodedBytes []byte, logIndex *big.Int, logBytes []byte, proof []byte) (*types.Transaction, error)

ValidateEvent is a paid mutator transaction binding the contract method 0x81ce4d34.

Solidity: function validateEvent(bytes receiptIndex, bytes receiptRLPEncodedBytes, uint256 logIndex, bytes logBytes, bytes proof) returns(bool)

func (*ICrossL2ProverSession) ValidateReceipt

func (_ICrossL2Prover *ICrossL2ProverSession) ValidateReceipt(receiptIndex []byte, receiptRLPEncodedBytes []byte, proof []byte) (*types.Transaction, error)

ValidateReceipt is a paid mutator transaction binding the contract method 0x85532872.

Solidity: function validateReceipt(bytes receiptIndex, bytes receiptRLPEncodedBytes, bytes proof) returns(bool)

type ICrossL2ProverTransactor

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

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

func NewICrossL2ProverTransactor

func NewICrossL2ProverTransactor(address common.Address, transactor bind.ContractTransactor) (*ICrossL2ProverTransactor, error)

NewICrossL2ProverTransactor creates a new write-only instance of ICrossL2Prover, bound to a specific deployed contract.

func (*ICrossL2ProverTransactor) UpdateClient

func (_ICrossL2Prover *ICrossL2ProverTransactor) UpdateClient(opts *bind.TransactOpts, proof []byte, height *big.Int, appHash *big.Int) (*types.Transaction, error)

UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.

Solidity: function updateClient(bytes proof, uint256 height, uint256 appHash) returns()

func (*ICrossL2ProverTransactor) ValidateEvent

func (_ICrossL2Prover *ICrossL2ProverTransactor) ValidateEvent(opts *bind.TransactOpts, receiptIndex []byte, receiptRLPEncodedBytes []byte, logIndex *big.Int, logBytes []byte, proof []byte) (*types.Transaction, error)

ValidateEvent is a paid mutator transaction binding the contract method 0x81ce4d34.

Solidity: function validateEvent(bytes receiptIndex, bytes receiptRLPEncodedBytes, uint256 logIndex, bytes logBytes, bytes proof) returns(bool)

func (*ICrossL2ProverTransactor) ValidateReceipt

func (_ICrossL2Prover *ICrossL2ProverTransactor) ValidateReceipt(opts *bind.TransactOpts, receiptIndex []byte, receiptRLPEncodedBytes []byte, proof []byte) (*types.Transaction, error)

ValidateReceipt is a paid mutator transaction binding the contract method 0x85532872.

Solidity: function validateReceipt(bytes receiptIndex, bytes receiptRLPEncodedBytes, bytes proof) returns(bool)

type ICrossL2ProverTransactorRaw

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

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

func (*ICrossL2ProverTransactorRaw) Transact

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

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

func (*ICrossL2ProverTransactorRaw) Transfer

func (_ICrossL2Prover *ICrossL2ProverTransactorRaw) 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 ICrossL2ProverTransactorSession

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

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

func (*ICrossL2ProverTransactorSession) UpdateClient

func (_ICrossL2Prover *ICrossL2ProverTransactorSession) UpdateClient(proof []byte, height *big.Int, appHash *big.Int) (*types.Transaction, error)

UpdateClient is a paid mutator transaction binding the contract method 0x49ff245e.

Solidity: function updateClient(bytes proof, uint256 height, uint256 appHash) returns()

func (*ICrossL2ProverTransactorSession) ValidateEvent

func (_ICrossL2Prover *ICrossL2ProverTransactorSession) ValidateEvent(receiptIndex []byte, receiptRLPEncodedBytes []byte, logIndex *big.Int, logBytes []byte, proof []byte) (*types.Transaction, error)

ValidateEvent is a paid mutator transaction binding the contract method 0x81ce4d34.

Solidity: function validateEvent(bytes receiptIndex, bytes receiptRLPEncodedBytes, uint256 logIndex, bytes logBytes, bytes proof) returns(bool)

func (*ICrossL2ProverTransactorSession) ValidateReceipt

func (_ICrossL2Prover *ICrossL2ProverTransactorSession) ValidateReceipt(receiptIndex []byte, receiptRLPEncodedBytes []byte, proof []byte) (*types.Transaction, error)

ValidateReceipt is a paid mutator transaction binding the contract method 0x85532872.

Solidity: function validateReceipt(bytes receiptIndex, bytes receiptRLPEncodedBytes, bytes proof) returns(bool)

Jump to

Keyboard shortcuts

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