sequencersignatureverifier

package
v4.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SequencerSignatureVerifierABI = SequencerSignatureVerifierMetaData.ABI

SequencerSignatureVerifierABI is the input ABI used to generate the binding from. Deprecated: Use SequencerSignatureVerifierMetaData.ABI instead.

View Source
var SequencerSignatureVerifierMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"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\":\"SEQUENCER\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"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\":\"function\",\"name\":\"verifyStateUpdate\",\"inputs\":[{\"name\":\"l2BlockNumber\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"appHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"l1BlockHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"view\"},{\"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\":\"InvalidSequencerSignature\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"MethodNotImplemented\",\"inputs\":[]}]",
}

SequencerSignatureVerifierMetaData contains all meta data concerning the SequencerSignatureVerifier contract.

Functions

This section is empty.

Types

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

type OpIcs23ProofPath struct {
	Prefix []byte
	Suffix []byte
}

OpIcs23ProofPath is an auto generated low-level Go binding around an user-defined struct.

type SequencerSignatureVerifier

type SequencerSignatureVerifier struct {
	SequencerSignatureVerifierCaller     // Read-only binding to the contract
	SequencerSignatureVerifierTransactor // Write-only binding to the contract
	SequencerSignatureVerifierFilterer   // Log filterer for contract events
}

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

func NewSequencerSignatureVerifier

func NewSequencerSignatureVerifier(address common.Address, backend bind.ContractBackend) (*SequencerSignatureVerifier, error)

NewSequencerSignatureVerifier creates a new instance of SequencerSignatureVerifier, bound to a specific deployed contract.

type SequencerSignatureVerifierCaller

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

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

func NewSequencerSignatureVerifierCaller

func NewSequencerSignatureVerifierCaller(address common.Address, caller bind.ContractCaller) (*SequencerSignatureVerifierCaller, error)

NewSequencerSignatureVerifierCaller creates a new read-only instance of SequencerSignatureVerifier, bound to a specific deployed contract.

func (*SequencerSignatureVerifierCaller) CHAINID

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCaller) 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 (*SequencerSignatureVerifierCaller) SEQUENCER

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCaller) 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 (*SequencerSignatureVerifierCaller) VerifyMembership

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCaller) 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 (*SequencerSignatureVerifierCaller) VerifyNonMembership

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCaller) 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()

func (*SequencerSignatureVerifierCaller) VerifyStateUpdate

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCaller) VerifyStateUpdate(opts *bind.CallOpts, l2BlockNumber *big.Int, appHash [32]byte, l1BlockHash [32]byte, signature []byte) error

VerifyStateUpdate is a free data retrieval call binding the contract method 0xe8d90039.

Solidity: function verifyStateUpdate(uint256 l2BlockNumber, bytes32 appHash, bytes32 l1BlockHash, bytes signature) view returns()

type SequencerSignatureVerifierCallerRaw

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

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

func (*SequencerSignatureVerifierCallerRaw) Call

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCallerRaw) 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 SequencerSignatureVerifierCallerSession

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

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

func (*SequencerSignatureVerifierCallerSession) CHAINID

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCallerSession) CHAINID() ([32]byte, error)

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

Solidity: function CHAIN_ID() view returns(bytes32)

func (*SequencerSignatureVerifierCallerSession) SEQUENCER

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCallerSession) SEQUENCER() (common.Address, error)

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

Solidity: function SEQUENCER() view returns(address)

func (*SequencerSignatureVerifierCallerSession) VerifyMembership

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCallerSession) 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 (*SequencerSignatureVerifierCallerSession) VerifyNonMembership

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCallerSession) 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()

func (*SequencerSignatureVerifierCallerSession) VerifyStateUpdate

func (_SequencerSignatureVerifier *SequencerSignatureVerifierCallerSession) VerifyStateUpdate(l2BlockNumber *big.Int, appHash [32]byte, l1BlockHash [32]byte, signature []byte) error

VerifyStateUpdate is a free data retrieval call binding the contract method 0xe8d90039.

Solidity: function verifyStateUpdate(uint256 l2BlockNumber, bytes32 appHash, bytes32 l1BlockHash, bytes signature) view returns()

type SequencerSignatureVerifierFilterer

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

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

func NewSequencerSignatureVerifierFilterer

func NewSequencerSignatureVerifierFilterer(address common.Address, filterer bind.ContractFilterer) (*SequencerSignatureVerifierFilterer, error)

NewSequencerSignatureVerifierFilterer creates a new log filterer instance of SequencerSignatureVerifier, bound to a specific deployed contract.

type SequencerSignatureVerifierRaw

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

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

func (*SequencerSignatureVerifierRaw) Call

func (_SequencerSignatureVerifier *SequencerSignatureVerifierRaw) 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 (*SequencerSignatureVerifierRaw) Transact

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

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

func (*SequencerSignatureVerifierRaw) Transfer

func (_SequencerSignatureVerifier *SequencerSignatureVerifierRaw) 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 SequencerSignatureVerifierSession

type SequencerSignatureVerifierSession struct {
	Contract     *SequencerSignatureVerifier // 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
}

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

func (*SequencerSignatureVerifierSession) CHAINID

func (_SequencerSignatureVerifier *SequencerSignatureVerifierSession) CHAINID() ([32]byte, error)

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

Solidity: function CHAIN_ID() view returns(bytes32)

func (*SequencerSignatureVerifierSession) SEQUENCER

func (_SequencerSignatureVerifier *SequencerSignatureVerifierSession) SEQUENCER() (common.Address, error)

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

Solidity: function SEQUENCER() view returns(address)

func (*SequencerSignatureVerifierSession) VerifyMembership

func (_SequencerSignatureVerifier *SequencerSignatureVerifierSession) 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 (*SequencerSignatureVerifierSession) VerifyNonMembership

func (_SequencerSignatureVerifier *SequencerSignatureVerifierSession) 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()

func (*SequencerSignatureVerifierSession) VerifyStateUpdate

func (_SequencerSignatureVerifier *SequencerSignatureVerifierSession) VerifyStateUpdate(l2BlockNumber *big.Int, appHash [32]byte, l1BlockHash [32]byte, signature []byte) error

VerifyStateUpdate is a free data retrieval call binding the contract method 0xe8d90039.

Solidity: function verifyStateUpdate(uint256 l2BlockNumber, bytes32 appHash, bytes32 l1BlockHash, bytes signature) view returns()

type SequencerSignatureVerifierTransactor

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

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

func NewSequencerSignatureVerifierTransactor

func NewSequencerSignatureVerifierTransactor(address common.Address, transactor bind.ContractTransactor) (*SequencerSignatureVerifierTransactor, error)

NewSequencerSignatureVerifierTransactor creates a new write-only instance of SequencerSignatureVerifier, bound to a specific deployed contract.

type SequencerSignatureVerifierTransactorRaw

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

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

func (*SequencerSignatureVerifierTransactorRaw) Transact

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

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

func (*SequencerSignatureVerifierTransactorRaw) Transfer

func (_SequencerSignatureVerifier *SequencerSignatureVerifierTransactorRaw) 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 SequencerSignatureVerifierTransactorSession

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

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

Jump to

Keyboard shortcuts

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