Documentation
¶
Index ¶
- type Scripts
- func (b *Scripts) ExecuteScriptAtBlockHeight(ctx context.Context, blockHeight uint64, script []byte, arguments [][]byte) ([]byte, error)
- func (b *Scripts) ExecuteScriptAtBlockID(ctx context.Context, blockID flow.Identifier, script []byte, ...) ([]byte, error)
- func (b *Scripts) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, arguments [][]byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scripts ¶
type Scripts struct {
// contains filtered or unexported fields
}
func NewScriptsBackend ¶
func NewScriptsBackend( log zerolog.Logger, metrics module.BackendScriptsMetrics, headers storage.Headers, state protocol.State, connFactory connection.ConnectionFactory, nodeCommunicator node_communicator.Communicator, scriptExecutor execution.ScriptExecutor, scriptExecMode query_mode.IndexQueryMode, nodeProvider *commonrpc.ExecutionNodeIdentitiesProvider, loggedScripts *lru.Cache[[md5.Size]byte, time.Time], maxScriptAndArgumentSize uint, ) (*Scripts, error)
func (*Scripts) ExecuteScriptAtBlockHeight ¶
func (b *Scripts) ExecuteScriptAtBlockHeight( ctx context.Context, blockHeight uint64, script []byte, arguments [][]byte, ) ([]byte, error)
ExecuteScriptAtBlockHeight executes provided script at the provided block height.
Click to show internal directories.
Click to hide internal directories.