mockcrossl2proverv2

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MockCrossL2ProverV2ABI = MockCrossL2ProverV2MetaData.ABI

MockCrossL2ProverV2ABI is the input ABI used to generate the binding from. Deprecated: Use MockCrossL2ProverV2MetaData.ABI instead.

View Source
var MockCrossL2ProverV2MetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"clientType_\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"sequencer_\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"chainId_\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"CHAIN_ID\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"LIGHT_CLIENT_TYPE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"enumLightClientType\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"SEQUENCER\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"clientType\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"generateAndEmitProof\",\"inputs\":[{\"name\":\"chainId_\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"emitter\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"topics\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"generateAndSendProof\",\"inputs\":[{\"name\":\"chainId_\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"emitter\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"topics\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"validatorContract\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"generateMockProof\",\"inputs\":[{\"name\":\"chainId_\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"numTopics\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"emitter\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"topics_\",\"type\":\"bytes32[]\",\"internalType\":\"bytes32[]\"},{\"name\":\"unindexedData_\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"inspectLogIdentifier\",\"inputs\":[{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"srcChain\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"blockNumber\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"receiptIndex\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"logIndex\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"inspectPolymerState\",\"inputs\":[{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"stateRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"height\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"parseEvent\",\"inputs\":[{\"name\":\"rawEvent\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"numTopics\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"outputs\":[{\"name\":\"emittingContract\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"topics\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"unindexedData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"validateEvent\",\"inputs\":[{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"chainId\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"emittingContract\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"topics\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"unindexedData\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"verifyMembership\",\"inputs\":[{\"name\":\"root\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"key\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"value\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"proof\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"pure\"},{\"type\":\"event\",\"name\":\"ProofGenerated\",\"inputs\":[{\"name\":\"proof\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"InvalidProofKey\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidProofRoot\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidProofValue\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidSequencerSignature\",\"inputs\":[]}]",
}

MockCrossL2ProverV2MetaData contains all meta data concerning the MockCrossL2ProverV2 contract.

Functions

This section is empty.

Types

type MockCrossL2ProverV2

type MockCrossL2ProverV2 struct {
	MockCrossL2ProverV2Caller     // Read-only binding to the contract
	MockCrossL2ProverV2Transactor // Write-only binding to the contract
	MockCrossL2ProverV2Filterer   // Log filterer for contract events
}

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

func NewMockCrossL2ProverV2

func NewMockCrossL2ProverV2(address common.Address, backend bind.ContractBackend) (*MockCrossL2ProverV2, error)

NewMockCrossL2ProverV2 creates a new instance of MockCrossL2ProverV2, bound to a specific deployed contract.

type MockCrossL2ProverV2Caller

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

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

func NewMockCrossL2ProverV2Caller

func NewMockCrossL2ProverV2Caller(address common.Address, caller bind.ContractCaller) (*MockCrossL2ProverV2Caller, error)

NewMockCrossL2ProverV2Caller creates a new read-only instance of MockCrossL2ProverV2, bound to a specific deployed contract.

func (*MockCrossL2ProverV2Caller) CHAINID

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Caller) CHAINID(opts *bind.CallOpts) ([32]byte, error)

CHAINID is a free data retrieval call binding the contract method 0x85e1f4d0.

Solidity: function CHAIN_ID() view returns(bytes32)

func (*MockCrossL2ProverV2Caller) ClientType

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Caller) ClientType(opts *bind.CallOpts) (string, error)

ClientType is a free data retrieval call binding the contract method 0xb3768f0d.

Solidity: function clientType() view returns(string)

func (*MockCrossL2ProverV2Caller) GenerateMockProof

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Caller) GenerateMockProof(opts *bind.CallOpts, chainId_ uint32, numTopics uint8, emitter common.Address, topics_ [][32]byte, unindexedData_ []byte) ([]byte, error)

GenerateMockProof is a free data retrieval call binding the contract method 0x4a0dad13.

Solidity: function generateMockProof(uint32 chainId_, uint8 numTopics, address emitter, bytes32[] topics_, bytes unindexedData_) pure returns(bytes)

func (*MockCrossL2ProverV2Caller) InspectLogIdentifier

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Caller) InspectLogIdentifier(opts *bind.CallOpts, proof []byte) (struct {
	SrcChain     uint32
	BlockNumber  uint64
	ReceiptIndex uint16
	LogIndex     uint8
}, error)

InspectLogIdentifier is a free data retrieval call binding the contract method 0x9e79c3f0.

Solidity: function inspectLogIdentifier(bytes proof) pure returns(uint32 srcChain, uint64 blockNumber, uint16 receiptIndex, uint8 logIndex)

func (*MockCrossL2ProverV2Caller) InspectPolymerState

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Caller) InspectPolymerState(opts *bind.CallOpts, proof []byte) (struct {
	StateRoot [32]byte
	Height    uint64
	Signature []byte
}, error)

InspectPolymerState is a free data retrieval call binding the contract method 0xd9615898.

Solidity: function inspectPolymerState(bytes proof) pure returns(bytes32 stateRoot, uint64 height, bytes signature)

func (*MockCrossL2ProverV2Caller) LIGHTCLIENTTYPE

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Caller) 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 (*MockCrossL2ProverV2Caller) ParseEvent

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Caller) ParseEvent(opts *bind.CallOpts, rawEvent []byte, numTopics uint8) (struct {
	EmittingContract common.Address
	Topics           []byte
	UnindexedData    []byte
}, error)

ParseEvent is a free data retrieval call binding the contract method 0x0d15d928.

Solidity: function parseEvent(bytes rawEvent, uint8 numTopics) pure returns(address emittingContract, bytes topics, bytes unindexedData)

func (*MockCrossL2ProverV2Caller) SEQUENCER

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Caller) SEQUENCER(opts *bind.CallOpts) (common.Address, error)

SEQUENCER is a free data retrieval call binding the contract method 0x75fd4ca9.

Solidity: function SEQUENCER() view returns(address)

func (*MockCrossL2ProverV2Caller) ValidateEvent

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Caller) ValidateEvent(opts *bind.CallOpts, proof []byte) (struct {
	ChainId          uint32
	EmittingContract common.Address
	Topics           []byte
	UnindexedData    []byte
}, error)

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

Solidity: function validateEvent(bytes proof) view returns(uint32 chainId, address emittingContract, bytes topics, bytes unindexedData)

func (*MockCrossL2ProverV2Caller) VerifyMembership

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Caller) VerifyMembership(opts *bind.CallOpts, root [32]byte, key []byte, value [32]byte, proof []byte) error

VerifyMembership is a free data retrieval call binding the contract method 0x861f2843.

Solidity: function verifyMembership(bytes32 root, bytes key, bytes32 value, bytes proof) pure returns()

type MockCrossL2ProverV2CallerRaw

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

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

func (*MockCrossL2ProverV2CallerRaw) Call

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerRaw) 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 MockCrossL2ProverV2CallerSession

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

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

func (*MockCrossL2ProverV2CallerSession) CHAINID

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerSession) CHAINID() ([32]byte, error)

CHAINID is a free data retrieval call binding the contract method 0x85e1f4d0.

Solidity: function CHAIN_ID() view returns(bytes32)

func (*MockCrossL2ProverV2CallerSession) ClientType

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerSession) ClientType() (string, error)

ClientType is a free data retrieval call binding the contract method 0xb3768f0d.

Solidity: function clientType() view returns(string)

func (*MockCrossL2ProverV2CallerSession) GenerateMockProof

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerSession) GenerateMockProof(chainId_ uint32, numTopics uint8, emitter common.Address, topics_ [][32]byte, unindexedData_ []byte) ([]byte, error)

GenerateMockProof is a free data retrieval call binding the contract method 0x4a0dad13.

Solidity: function generateMockProof(uint32 chainId_, uint8 numTopics, address emitter, bytes32[] topics_, bytes unindexedData_) pure returns(bytes)

func (*MockCrossL2ProverV2CallerSession) InspectLogIdentifier

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerSession) InspectLogIdentifier(proof []byte) (struct {
	SrcChain     uint32
	BlockNumber  uint64
	ReceiptIndex uint16
	LogIndex     uint8
}, error)

InspectLogIdentifier is a free data retrieval call binding the contract method 0x9e79c3f0.

Solidity: function inspectLogIdentifier(bytes proof) pure returns(uint32 srcChain, uint64 blockNumber, uint16 receiptIndex, uint8 logIndex)

func (*MockCrossL2ProverV2CallerSession) InspectPolymerState

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerSession) InspectPolymerState(proof []byte) (struct {
	StateRoot [32]byte
	Height    uint64
	Signature []byte
}, error)

InspectPolymerState is a free data retrieval call binding the contract method 0xd9615898.

Solidity: function inspectPolymerState(bytes proof) pure returns(bytes32 stateRoot, uint64 height, bytes signature)

func (*MockCrossL2ProverV2CallerSession) LIGHTCLIENTTYPE

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerSession) LIGHTCLIENTTYPE() (uint8, error)

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

Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)

func (*MockCrossL2ProverV2CallerSession) ParseEvent

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerSession) ParseEvent(rawEvent []byte, numTopics uint8) (struct {
	EmittingContract common.Address
	Topics           []byte
	UnindexedData    []byte
}, error)

ParseEvent is a free data retrieval call binding the contract method 0x0d15d928.

Solidity: function parseEvent(bytes rawEvent, uint8 numTopics) pure returns(address emittingContract, bytes topics, bytes unindexedData)

func (*MockCrossL2ProverV2CallerSession) SEQUENCER

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerSession) SEQUENCER() (common.Address, error)

SEQUENCER is a free data retrieval call binding the contract method 0x75fd4ca9.

Solidity: function SEQUENCER() view returns(address)

func (*MockCrossL2ProverV2CallerSession) ValidateEvent

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerSession) ValidateEvent(proof []byte) (struct {
	ChainId          uint32
	EmittingContract common.Address
	Topics           []byte
	UnindexedData    []byte
}, error)

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

Solidity: function validateEvent(bytes proof) view returns(uint32 chainId, address emittingContract, bytes topics, bytes unindexedData)

func (*MockCrossL2ProverV2CallerSession) VerifyMembership

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2CallerSession) VerifyMembership(root [32]byte, key []byte, value [32]byte, proof []byte) error

VerifyMembership is a free data retrieval call binding the contract method 0x861f2843.

Solidity: function verifyMembership(bytes32 root, bytes key, bytes32 value, bytes proof) pure returns()

type MockCrossL2ProverV2Filterer

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

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

func NewMockCrossL2ProverV2Filterer

func NewMockCrossL2ProverV2Filterer(address common.Address, filterer bind.ContractFilterer) (*MockCrossL2ProverV2Filterer, error)

NewMockCrossL2ProverV2Filterer creates a new log filterer instance of MockCrossL2ProverV2, bound to a specific deployed contract.

func (*MockCrossL2ProverV2Filterer) FilterProofGenerated

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Filterer) FilterProofGenerated(opts *bind.FilterOpts) (*MockCrossL2ProverV2ProofGeneratedIterator, error)

FilterProofGenerated is a free log retrieval operation binding the contract event 0x4844f9b37904a6125b8c8c6df00b455fb018fac712949a4144c2f9adddb49822.

Solidity: event ProofGenerated(bytes proof)

func (*MockCrossL2ProverV2Filterer) ParseProofGenerated

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Filterer) ParseProofGenerated(log types.Log) (*MockCrossL2ProverV2ProofGenerated, error)

ParseProofGenerated is a log parse operation binding the contract event 0x4844f9b37904a6125b8c8c6df00b455fb018fac712949a4144c2f9adddb49822.

Solidity: event ProofGenerated(bytes proof)

func (*MockCrossL2ProverV2Filterer) WatchProofGenerated

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Filterer) WatchProofGenerated(opts *bind.WatchOpts, sink chan<- *MockCrossL2ProverV2ProofGenerated) (event.Subscription, error)

WatchProofGenerated is a free log subscription operation binding the contract event 0x4844f9b37904a6125b8c8c6df00b455fb018fac712949a4144c2f9adddb49822.

Solidity: event ProofGenerated(bytes proof)

type MockCrossL2ProverV2ProofGenerated

type MockCrossL2ProverV2ProofGenerated struct {
	Proof []byte
	Raw   types.Log // Blockchain specific contextual infos
}

MockCrossL2ProverV2ProofGenerated represents a ProofGenerated event raised by the MockCrossL2ProverV2 contract.

type MockCrossL2ProverV2ProofGeneratedIterator

type MockCrossL2ProverV2ProofGeneratedIterator struct {
	Event *MockCrossL2ProverV2ProofGenerated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MockCrossL2ProverV2ProofGeneratedIterator is returned from FilterProofGenerated and is used to iterate over the raw logs and unpacked data for ProofGenerated events raised by the MockCrossL2ProverV2 contract.

func (*MockCrossL2ProverV2ProofGeneratedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*MockCrossL2ProverV2ProofGeneratedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MockCrossL2ProverV2ProofGeneratedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type MockCrossL2ProverV2Raw

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

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

func (*MockCrossL2ProverV2Raw) Call

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Raw) 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 (*MockCrossL2ProverV2Raw) Transact

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

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

func (*MockCrossL2ProverV2Raw) Transfer

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Raw) 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 MockCrossL2ProverV2Session

type MockCrossL2ProverV2Session struct {
	Contract     *MockCrossL2ProverV2 // 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
}

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

func (*MockCrossL2ProverV2Session) CHAINID

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) CHAINID() ([32]byte, error)

CHAINID is a free data retrieval call binding the contract method 0x85e1f4d0.

Solidity: function CHAIN_ID() view returns(bytes32)

func (*MockCrossL2ProverV2Session) ClientType

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) ClientType() (string, error)

ClientType is a free data retrieval call binding the contract method 0xb3768f0d.

Solidity: function clientType() view returns(string)

func (*MockCrossL2ProverV2Session) GenerateAndEmitProof

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) GenerateAndEmitProof(chainId_ uint32, emitter common.Address, topics [][32]byte, data []byte) (*types.Transaction, error)

GenerateAndEmitProof is a paid mutator transaction binding the contract method 0xafc489ee.

Solidity: function generateAndEmitProof(uint32 chainId_, address emitter, bytes32[] topics, bytes data) returns(bytes)

func (*MockCrossL2ProverV2Session) GenerateAndSendProof

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) GenerateAndSendProof(chainId_ uint32, emitter common.Address, topics [][32]byte, data []byte, validatorContract common.Address) (*types.Transaction, error)

GenerateAndSendProof is a paid mutator transaction binding the contract method 0xc4a0f968.

Solidity: function generateAndSendProof(uint32 chainId_, address emitter, bytes32[] topics, bytes data, address validatorContract) returns(bytes)

func (*MockCrossL2ProverV2Session) GenerateMockProof

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) GenerateMockProof(chainId_ uint32, numTopics uint8, emitter common.Address, topics_ [][32]byte, unindexedData_ []byte) ([]byte, error)

GenerateMockProof is a free data retrieval call binding the contract method 0x4a0dad13.

Solidity: function generateMockProof(uint32 chainId_, uint8 numTopics, address emitter, bytes32[] topics_, bytes unindexedData_) pure returns(bytes)

func (*MockCrossL2ProverV2Session) InspectLogIdentifier

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) InspectLogIdentifier(proof []byte) (struct {
	SrcChain     uint32
	BlockNumber  uint64
	ReceiptIndex uint16
	LogIndex     uint8
}, error)

InspectLogIdentifier is a free data retrieval call binding the contract method 0x9e79c3f0.

Solidity: function inspectLogIdentifier(bytes proof) pure returns(uint32 srcChain, uint64 blockNumber, uint16 receiptIndex, uint8 logIndex)

func (*MockCrossL2ProverV2Session) InspectPolymerState

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) InspectPolymerState(proof []byte) (struct {
	StateRoot [32]byte
	Height    uint64
	Signature []byte
}, error)

InspectPolymerState is a free data retrieval call binding the contract method 0xd9615898.

Solidity: function inspectPolymerState(bytes proof) pure returns(bytes32 stateRoot, uint64 height, bytes signature)

func (*MockCrossL2ProverV2Session) LIGHTCLIENTTYPE

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) LIGHTCLIENTTYPE() (uint8, error)

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

Solidity: function LIGHT_CLIENT_TYPE() view returns(uint8)

func (*MockCrossL2ProverV2Session) ParseEvent

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) ParseEvent(rawEvent []byte, numTopics uint8) (struct {
	EmittingContract common.Address
	Topics           []byte
	UnindexedData    []byte
}, error)

ParseEvent is a free data retrieval call binding the contract method 0x0d15d928.

Solidity: function parseEvent(bytes rawEvent, uint8 numTopics) pure returns(address emittingContract, bytes topics, bytes unindexedData)

func (*MockCrossL2ProverV2Session) SEQUENCER

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) SEQUENCER() (common.Address, error)

SEQUENCER is a free data retrieval call binding the contract method 0x75fd4ca9.

Solidity: function SEQUENCER() view returns(address)

func (*MockCrossL2ProverV2Session) ValidateEvent

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) ValidateEvent(proof []byte) (struct {
	ChainId          uint32
	EmittingContract common.Address
	Topics           []byte
	UnindexedData    []byte
}, error)

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

Solidity: function validateEvent(bytes proof) view returns(uint32 chainId, address emittingContract, bytes topics, bytes unindexedData)

func (*MockCrossL2ProverV2Session) VerifyMembership

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Session) VerifyMembership(root [32]byte, key []byte, value [32]byte, proof []byte) error

VerifyMembership is a free data retrieval call binding the contract method 0x861f2843.

Solidity: function verifyMembership(bytes32 root, bytes key, bytes32 value, bytes proof) pure returns()

type MockCrossL2ProverV2Transactor

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

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

func NewMockCrossL2ProverV2Transactor

func NewMockCrossL2ProverV2Transactor(address common.Address, transactor bind.ContractTransactor) (*MockCrossL2ProverV2Transactor, error)

NewMockCrossL2ProverV2Transactor creates a new write-only instance of MockCrossL2ProverV2, bound to a specific deployed contract.

func (*MockCrossL2ProverV2Transactor) GenerateAndEmitProof

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Transactor) GenerateAndEmitProof(opts *bind.TransactOpts, chainId_ uint32, emitter common.Address, topics [][32]byte, data []byte) (*types.Transaction, error)

GenerateAndEmitProof is a paid mutator transaction binding the contract method 0xafc489ee.

Solidity: function generateAndEmitProof(uint32 chainId_, address emitter, bytes32[] topics, bytes data) returns(bytes)

func (*MockCrossL2ProverV2Transactor) GenerateAndSendProof

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2Transactor) GenerateAndSendProof(opts *bind.TransactOpts, chainId_ uint32, emitter common.Address, topics [][32]byte, data []byte, validatorContract common.Address) (*types.Transaction, error)

GenerateAndSendProof is a paid mutator transaction binding the contract method 0xc4a0f968.

Solidity: function generateAndSendProof(uint32 chainId_, address emitter, bytes32[] topics, bytes data, address validatorContract) returns(bytes)

type MockCrossL2ProverV2TransactorRaw

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

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

func (*MockCrossL2ProverV2TransactorRaw) Transact

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

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

func (*MockCrossL2ProverV2TransactorRaw) Transfer

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2TransactorRaw) 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 MockCrossL2ProverV2TransactorSession

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

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

func (*MockCrossL2ProverV2TransactorSession) GenerateAndEmitProof

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2TransactorSession) GenerateAndEmitProof(chainId_ uint32, emitter common.Address, topics [][32]byte, data []byte) (*types.Transaction, error)

GenerateAndEmitProof is a paid mutator transaction binding the contract method 0xafc489ee.

Solidity: function generateAndEmitProof(uint32 chainId_, address emitter, bytes32[] topics, bytes data) returns(bytes)

func (*MockCrossL2ProverV2TransactorSession) GenerateAndSendProof

func (_MockCrossL2ProverV2 *MockCrossL2ProverV2TransactorSession) GenerateAndSendProof(chainId_ uint32, emitter common.Address, topics [][32]byte, data []byte, validatorContract common.Address) (*types.Transaction, error)

GenerateAndSendProof is a paid mutator transaction binding the contract method 0xc4a0f968.

Solidity: function generateAndSendProof(uint32 chainId_, address emitter, bytes32[] topics, bytes data, address validatorContract) returns(bytes)

Jump to

Keyboard shortcuts

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