sync

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APISYNC = "sync"

APISYNC is the namespace of the sync service

Variables

This section is empty.

Functions

This section is empty.

Types

type DBInterface

type DBInterface interface {
	BeginStateTransaction(ctx context.Context) (pgx.Tx, error)
	GetOffChainData(ctx context.Context, key common.Hash, dbTx pgx.Tx) (rpc.ArgBytes, error)
}

DBInterface is the interface needed by the sync service

type SyncEndpoints

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

SyncEndpoints contains implementations for the "zkevm" RPC endpoints

func NewSyncEndpoints

func NewSyncEndpoints(db DBInterface) *SyncEndpoints

NewSyncEndpoints returns ZKEVMEndpoints

func (*SyncEndpoints) GetOffChainData

func (z *SyncEndpoints) GetOffChainData(hash rpc.ArgHash) (interface{}, rpc.Error)

GetOffChainData returns the image of the given hash

Jump to

Keyboard shortcuts

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