lcd

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAddr added in v0.19.0

func CreateAddr(t *testing.T, name, password string, kb crkeys.Keybase) (addr sdk.Address, 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.Address) (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 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