lcd

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: Apache-2.0 Imports: 47 Imported by: 0

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 added in v0.2.0

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