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
Click to show internal directories.
Click to hide internal directories.