Documentation
¶
Index ¶
- func WithCacheSize(size uint64) func(*Config)
- type Cache
- type Config
- type Invoker
- func (i *Invoker) Account(height uint64, address flow.Address) (*flow.Account, error)
- func (i *Invoker) ByHeightFrom(height uint64, header *flow.Header) (*flow.Header, error)
- func (i *Invoker) Key(height uint64, address flow.Address, index int) (*flow.AccountPublicKey, error)
- func (i *Invoker) Script(height uint64, script []byte, arguments []cadence.Value) (cadence.Value, error)
- type VirtualMachine
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.
func (*Invoker) ByHeightFrom ¶ added in v0.31.4
type VirtualMachine ¶
type VirtualMachine interface {
Run(ctx fvm.Context, proc fvm.Procedure, v state.View) error
GetAccount(ctx fvm.Context, address flow.Address, v state.StorageSnapshot) (*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.