lcd

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2018 License: Apache-2.0 Imports: 47 Imported by: ? 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

func CLIVersionRequestHandler added in v0.20.0

func CLIVersionRequestHandler(w http.ResponseWriter, r *http.Request)

cli version REST handler endpoint

func CreateAddr added in v0.19.0

func CreateAddr(t *testing.T, name, password string, kb crkeys.Keybase) (addr sdk.AccAddress, seed string)

add an address to the store return name and password

func GetConfig

func GetConfig() *tmcfg.Config

GetConfig returns a config for the test cases as a singleton

func GetKB added in v0.19.0

func GetKB(t *testing.T) crkeys.Keybase

get the lcd test keybase note can't use a memdb because the request is expecting to interact with the default location

func InitializeTestLCD added in v0.19.0

func InitializeTestLCD(t *testing.T, nValidators int, initAddrs []sdk.AccAddress) (cleanup func(), validatorsPKs []crypto.PubKey, port string)

strt TM and the LCD in process, listening on their respective sockets

nValidators = number of validators
initAddrs = accounts to initialize with some steaks

func NodeVersionRequestHandler added in v0.20.0

func NodeVersionRequestHandler(ctx context.CoreContext) http.HandlerFunc

connected node version REST handler endpoint

func Request added in v0.19.0

func Request(t *testing.T, port, method, path string, payload []byte) (*http.Response, string)

make a test lcd test request

func ServeCommand

func ServeCommand(cdc *wire.Codec) *cobra.Command

ServeCommand will generate a long-running rest server (aka Light Client Daemon) that exposes functionality similar to the cli, but over rest

Types

This section is empty.

Jump to

Keyboard shortcuts

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