Documentation ¶
Index ¶
- func CLIVersionRequestHandler(w http.ResponseWriter, r *http.Request)
- func CreateAddr(t *testing.T, name, password string, kb crkeys.Keybase) (addr sdk.AccAddress, seed string)
- func GetConfig() *tmcfg.Config
- func GetKB(t *testing.T) crkeys.Keybase
- func InitializeTestLCD(t *testing.T, nValidators int, initAddrs []sdk.AccAddress) (cleanup func(), validatorsPKs []crypto.PubKey, port string)
- func NodeVersionRequestHandler(cdc *wire.Codec, ctx context.CoreContext) http.HandlerFunc
- func Request(t *testing.T, port, method, path string, payload []byte) (*http.Response, string)
- func ServeCommand(cdc *wire.Codec) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CLIVersionRequestHandler ¶ added in v0.9.0
func CLIVersionRequestHandler(w http.ResponseWriter, r *http.Request)
cli version REST handler endpoint
func CreateAddr ¶ added in v0.2.2
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 GetKB ¶ added in v0.2.2
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.2.2
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.9.0
func NodeVersionRequestHandler(cdc *wire.Codec, ctx context.CoreContext) http.HandlerFunc
connected node version REST handler endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.