module

package
v0.22.8-patch-4-ledger... Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

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