Documentation ¶
Index ¶
- type EmulatorClient
- func (c *EmulatorClient) ExecuteScriptAtBlockID(ctx context.Context, blockID sdk.Identifier, script []byte, ...) (cadence.Value, error)
- func (c *EmulatorClient) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, args []cadence.Value, ...) (cadence.Value, error)
- func (c *EmulatorClient) GetAccount(ctx context.Context, address sdk.Address, opts ...grpc.CallOption) (*sdk.Account, error)
- func (c *EmulatorClient) GetAccountAtLatestBlock(ctx context.Context, address sdk.Address, opts ...grpc.CallOption) (*sdk.Account, error)
- func (c *EmulatorClient) GetLatestBlock(ctx context.Context, isSealed bool, opts ...grpc.CallOption) (*sdk.Block, error)
- func (c *EmulatorClient) GetTransactionResult(ctx context.Context, txID sdk.Identifier, opts ...grpc.CallOption) (*sdk.TransactionResult, error)
- func (c *EmulatorClient) SendTransaction(ctx context.Context, tx sdk.Transaction, opts ...grpc.CallOption) error
- func (c *EmulatorClient) Submit(tx *sdk.Transaction) (*flow.Block, error)
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 (*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)
Click to show internal directories.
Click to hide internal directories.