grpc

package
v0.2.0-beta7-bridge-tmp Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggchainProofClient

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

AggchainProofClient provides an implementation for the AggchainProofClient interface

func NewAggchainProofClient

func NewAggchainProofClient(serverAddr string,
	generateProofTimeout time.Duration) (*AggchainProofClient, error)

NewAggchainProofClient initializes a new AggchainProof instance

func (*AggchainProofClient) GenerateAggchainProof

func (c *AggchainProofClient) GenerateAggchainProof(
	lastProvenBlock uint64,
	requestedEndBlock uint64,
	l1InfoTreeRootHash common.Hash,
	l1InfoTreeLeaf l1infotreesync.L1InfoTreeLeaf,
	l1InfoTreeMerkleProof agglayer.MerkleProof,
	gerLeavesWithBlockNumber map[common.Hash]*agglayer.ProvenInsertedGERWithBlockNumber,
	importedBridgeExitsWithBlockNumber []*agglayer.ImportedBridgeExitWithBlockNumber,
) (*types.AggchainProof, error)

type AggchainProofClientInterface

type AggchainProofClientInterface interface {
	GenerateAggchainProof(
		lastProvenBlock uint64,
		requestedEndBlock uint64,
		l1InfoTreeRootHash common.Hash,
		l1InfoTreeLeaf l1infotreesync.L1InfoTreeLeaf,
		l1InfoTreeMerkleProof agglayer.MerkleProof,
		gerLeavesWithBlockNumber map[common.Hash]*agglayer.ProvenInsertedGERWithBlockNumber,
		importedBridgeExitsWithBlockNumber []*agglayer.ImportedBridgeExitWithBlockNumber,
	) (*types.AggchainProof, error)
}

AggchainProofClientInterface defines an interface for aggchain proof client

Jump to

Keyboard shortcuts

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