module

package
v0.23.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmulatorClient

type EmulatorClient struct {
	// contains filtered or unexported fields
}

EmulatorClient is a wrapper around the emulator to implement the same interface used by the SDK client. Used for testing against the emulator.

func NewEmulatorClient

func NewEmulatorClient(blockchain *emulator.Blockchain) *EmulatorClient

func (*EmulatorClient) ExecuteScriptAtBlockID

func (c *EmulatorClient) ExecuteScriptAtBlockID(ctx context.Context, blockID sdk.Identifier, script []byte, args []cadence.Value, opts ...grpc.CallOption) (cadence.Value, error)

func (*EmulatorClient) ExecuteScriptAtLatestBlock

func (c *EmulatorClient) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, args []cadence.Value, opts ...grpc.CallOption) (cadence.Value, error)

func (*EmulatorClient) GetAccount

func (c *EmulatorClient) GetAccount(ctx context.Context, address sdk.Address, opts ...grpc.CallOption) (*sdk.Account, error)

func (*EmulatorClient) GetAccountAtLatestBlock

func (c *EmulatorClient) GetAccountAtLatestBlock(ctx context.Context, address sdk.Address, opts ...grpc.CallOption) (*sdk.Account, error)

func (*EmulatorClient) GetLatestBlock

func (c *EmulatorClient) GetLatestBlock(ctx context.Context, isSealed bool, opts ...grpc.CallOption) (*sdk.Block, error)

func (*EmulatorClient) GetTransactionResult

func (c *EmulatorClient) GetTransactionResult(ctx context.Context, txID sdk.Identifier, opts ...grpc.CallOption) (*sdk.TransactionResult, error)

func (*EmulatorClient) SendTransaction

func (c *EmulatorClient) SendTransaction(ctx context.Context, tx sdk.Transaction, opts ...grpc.CallOption) error

func (*EmulatorClient) Submit

func (c *EmulatorClient) Submit(tx *sdk.Transaction) (*flow.Block, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL