github.com/koko1123/flow-go-1@v0.29.6/engine/execution/ingestion/ingest_rpc.go (about)

     1  package ingestion
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/koko1123/flow-go-1/model/flow"
     7  )
     8  
     9  // IngestRPC represents the RPC calls that the execution ingest engine exposes to support the Access Node API calls
    10  type IngestRPC interface {
    11  
    12  	// ExecuteScriptAtBlockID executes a script at the given Block id
    13  	ExecuteScriptAtBlockID(ctx context.Context, script []byte, arguments [][]byte, blockID flow.Identifier) ([]byte, error)
    14  
    15  	// GetAccount returns the Account details at the given Block id
    16  	GetAccount(ctx context.Context, address flow.Address, blockID flow.Identifier) (*flow.Account, error)
    17  
    18  	// GetRegisterAtBlockID returns the value of a register at the given Block id (if available)
    19  	GetRegisterAtBlockID(ctx context.Context, owner, key []byte, blockID flow.Identifier) ([]byte, error)
    20  }