icrossl2prover

package
v4.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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\":\"logIndex\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"chainId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"emittingContract\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"topics\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"unindexedData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"validateReceipt\",\"inputs\":[{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"srcChainId\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"receiptRLP\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"}]",
}

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)

func (*ICrossL2ProverCaller) ValidateEvent added in v4.0.17

func (_ICrossL2Prover *ICrossL2ProverCaller) ValidateEvent(opts *bind.CallOpts, logIndex *big.Int, proof []byte) (struct {
	ChainId          string
	EmittingContract common.Address
	Topics           [][]byte
	UnindexedData    []byte
}, error)

ValidateEvent is a free data retrieval call binding the contract method 0x25dc9f2b.

Solidity: function validateEvent(uint256 logIndex, bytes proof) view returns(string chainId, address emittingContract, bytes[] topics, bytes unindexedData)

func (*ICrossL2ProverCaller) ValidateReceipt added in v4.0.17

func (_ICrossL2Prover *ICrossL2ProverCaller) ValidateReceipt(opts *bind.CallOpts, proof []byte) (struct {
	SrcChainId string
	ReceiptRLP []byte
}, error)

ValidateReceipt is a free data retrieval call binding the contract method 0x2cd78e77.

Solidity: function validateReceipt(bytes proof) view returns(string srcChainId, bytes receiptRLP)

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)

func (*ICrossL2ProverCallerSession) ValidateEvent added in v4.0.17

func (_ICrossL2Prover *ICrossL2ProverCallerSession) ValidateEvent(logIndex *big.Int, proof []byte) (struct {
	ChainId          string
	EmittingContract common.Address
	Topics           [][]byte
	UnindexedData    []byte
}, error)

ValidateEvent is a free data retrieval call binding the contract method 0x25dc9f2b.

Solidity: function validateEvent(uint256 logIndex, bytes proof) view returns(string chainId, address emittingContract, bytes[] topics, bytes unindexedData)

func (*ICrossL2ProverCallerSession) ValidateReceipt added in v4.0.17

func (_ICrossL2Prover *ICrossL2ProverCallerSession) ValidateReceipt(proof []byte) (struct {
	SrcChainId string
	ReceiptRLP []byte
}, error)

ValidateReceipt is a free data retrieval call binding the contract method 0x2cd78e77.

Solidity: function validateReceipt(bytes proof) view returns(string srcChainId, bytes receiptRLP)

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(logIndex *big.Int, proof []byte) (struct {
	ChainId          string
	EmittingContract common.Address
	Topics           [][]byte
	UnindexedData    []byte
}, error)

ValidateEvent is a free data retrieval call binding the contract method 0x25dc9f2b.

Solidity: function validateEvent(uint256 logIndex, bytes proof) view returns(string chainId, address emittingContract, bytes[] topics, bytes unindexedData)

func (*ICrossL2ProverSession) ValidateReceipt

func (_ICrossL2Prover *ICrossL2ProverSession) ValidateReceipt(proof []byte) (struct {
	SrcChainId string
	ReceiptRLP []byte
}, error)

ValidateReceipt is a free data retrieval call binding the contract method 0x2cd78e77.

Solidity: function validateReceipt(bytes proof) view returns(string srcChainId, bytes receiptRLP)

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()

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()

Jump to

Keyboard shortcuts

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