dummyproofverifier

package
v3.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DummyProofVerifierABI = DummyProofVerifierMetaData.ABI

DummyProofVerifierABI is the input ABI used to generate the binding from. Deprecated: Use DummyProofVerifierMetaData.ABI instead.

View Source
var DummyProofVerifierMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"verifyMembership\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"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\":\"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\":\"\",\"type\":\"tuple\",\"internalType\":\"structL1Header\",\"components\":[{\"name\":\"header\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"stateRoot\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"number\",\"type\":\"uint64\",\"internalType\":\"uint64\"}]},{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structOpL2StateProof\",\"components\":[{\"name\":\"accountProof\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"outputRootProof\",\"type\":\"bytes[]\",\"internalType\":\"bytes[]\"},{\"name\":\"l2OutputProposalKey\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"l2BlockHash\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[],\"stateMutability\":\"pure\"},{\"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\":[]}]",
}

DummyProofVerifierMetaData contains all meta data concerning the DummyProofVerifier contract.

Functions

This section is empty.

Types

type DummyProofVerifier

type DummyProofVerifier struct {
	DummyProofVerifierCaller     // Read-only binding to the contract
	DummyProofVerifierTransactor // Write-only binding to the contract
	DummyProofVerifierFilterer   // Log filterer for contract events
}

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

func NewDummyProofVerifier

func NewDummyProofVerifier(address common.Address, backend bind.ContractBackend) (*DummyProofVerifier, error)

NewDummyProofVerifier creates a new instance of DummyProofVerifier, bound to a specific deployed contract.

type DummyProofVerifierCaller

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

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

func NewDummyProofVerifierCaller

func NewDummyProofVerifierCaller(address common.Address, caller bind.ContractCaller) (*DummyProofVerifierCaller, error)

NewDummyProofVerifierCaller creates a new read-only instance of DummyProofVerifier, bound to a specific deployed contract.

func (*DummyProofVerifierCaller) VerifyMembership

func (_DummyProofVerifier *DummyProofVerifierCaller) VerifyMembership(opts *bind.CallOpts, arg0 [32]byte, arg1 []byte, arg2 []byte, arg3 Ics23Proof) error

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

Solidity: function verifyMembership(bytes32 , bytes , bytes , (((bytes,bytes)[],bytes,bytes,bytes)[],uint256) ) pure returns()

func (*DummyProofVerifierCaller) VerifyNonMembership

func (_DummyProofVerifier *DummyProofVerifierCaller) 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 (*DummyProofVerifierCaller) VerifyStateUpdate

func (_DummyProofVerifier *DummyProofVerifierCaller) VerifyStateUpdate(opts *bind.CallOpts, arg0 L1Header, arg1 OpL2StateProof, arg2 [32]byte, arg3 [32]byte, arg4 uint64) error

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

Solidity: function verifyStateUpdate((bytes[],bytes32,uint64) , (bytes[],bytes[],bytes32,bytes32) , bytes32 , bytes32 , uint64 ) pure returns()

type DummyProofVerifierCallerRaw

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

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

func (*DummyProofVerifierCallerRaw) Call

func (_DummyProofVerifier *DummyProofVerifierCallerRaw) 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 DummyProofVerifierCallerSession

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

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

func (*DummyProofVerifierCallerSession) VerifyMembership

func (_DummyProofVerifier *DummyProofVerifierCallerSession) VerifyMembership(arg0 [32]byte, arg1 []byte, arg2 []byte, arg3 Ics23Proof) error

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

Solidity: function verifyMembership(bytes32 , bytes , bytes , (((bytes,bytes)[],bytes,bytes,bytes)[],uint256) ) pure returns()

func (*DummyProofVerifierCallerSession) VerifyNonMembership

func (_DummyProofVerifier *DummyProofVerifierCallerSession) 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 (*DummyProofVerifierCallerSession) VerifyStateUpdate

func (_DummyProofVerifier *DummyProofVerifierCallerSession) VerifyStateUpdate(arg0 L1Header, arg1 OpL2StateProof, arg2 [32]byte, arg3 [32]byte, arg4 uint64) error

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

Solidity: function verifyStateUpdate((bytes[],bytes32,uint64) , (bytes[],bytes[],bytes32,bytes32) , bytes32 , bytes32 , uint64 ) pure returns()

type DummyProofVerifierFilterer

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

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

func NewDummyProofVerifierFilterer

func NewDummyProofVerifierFilterer(address common.Address, filterer bind.ContractFilterer) (*DummyProofVerifierFilterer, error)

NewDummyProofVerifierFilterer creates a new log filterer instance of DummyProofVerifier, bound to a specific deployed contract.

type DummyProofVerifierRaw

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

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

func (*DummyProofVerifierRaw) Call

func (_DummyProofVerifier *DummyProofVerifierRaw) 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 (*DummyProofVerifierRaw) Transact

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

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

func (*DummyProofVerifierRaw) Transfer

func (_DummyProofVerifier *DummyProofVerifierRaw) 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 DummyProofVerifierSession

type DummyProofVerifierSession struct {
	Contract     *DummyProofVerifier // 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
}

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

func (*DummyProofVerifierSession) VerifyMembership

func (_DummyProofVerifier *DummyProofVerifierSession) VerifyMembership(arg0 [32]byte, arg1 []byte, arg2 []byte, arg3 Ics23Proof) error

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

Solidity: function verifyMembership(bytes32 , bytes , bytes , (((bytes,bytes)[],bytes,bytes,bytes)[],uint256) ) pure returns()

func (*DummyProofVerifierSession) VerifyNonMembership

func (_DummyProofVerifier *DummyProofVerifierSession) 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 (*DummyProofVerifierSession) VerifyStateUpdate

func (_DummyProofVerifier *DummyProofVerifierSession) VerifyStateUpdate(arg0 L1Header, arg1 OpL2StateProof, arg2 [32]byte, arg3 [32]byte, arg4 uint64) error

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

Solidity: function verifyStateUpdate((bytes[],bytes32,uint64) , (bytes[],bytes[],bytes32,bytes32) , bytes32 , bytes32 , uint64 ) pure returns()

type DummyProofVerifierTransactor

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

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

func NewDummyProofVerifierTransactor

func NewDummyProofVerifierTransactor(address common.Address, transactor bind.ContractTransactor) (*DummyProofVerifierTransactor, error)

NewDummyProofVerifierTransactor creates a new write-only instance of DummyProofVerifier, bound to a specific deployed contract.

type DummyProofVerifierTransactorRaw

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

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

func (*DummyProofVerifierTransactorRaw) Transact

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

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

func (*DummyProofVerifierTransactorRaw) Transfer

func (_DummyProofVerifier *DummyProofVerifierTransactorRaw) 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 DummyProofVerifierTransactorSession

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

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

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 L1Header

type L1Header struct {
	Header    [][]byte
	StateRoot [32]byte
	Number    uint64
}

L1Header 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 OpL2StateProof

type OpL2StateProof struct {
	AccountProof        [][]byte
	OutputRootProof     [][]byte
	L2OutputProposalKey [32]byte
	L2BlockHash         [32]byte
}

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

Jump to

Keyboard shortcuts

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