Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCacheSize ¶
WithCacheSize specifies the size of the cache the invoker uses.
Types ¶
type Cache ¶
type Cache interface { Get(key interface{}) (interface{}, bool) Set(key, value interface{}, cost int64) bool }
Cache represents a key/value store to use as a cache.
type Invoker ¶
type Invoker struct {
// contains filtered or unexported fields
}
Invoker retrieves account information from and executes Cadence scripts against the Flow virtual machine.
type VirtualMachine ¶
type VirtualMachine interface { Run(ctx fvm.Context, proc fvm.Procedure, v state.View, programs *programs.Programs) error GetAccount(ctx fvm.Context, address flow.Address, v state.View, programs *programs.Programs) (*flow.Account, error) }
VirtualMachine represents a Flow Virtual Machine on which to run scripts and retrieve accounts.
Click to show internal directories.
Click to hide internal directories.