Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Faucet ¶
type Faucet struct {
// contains filtered or unexported fields
}
Faucet is a standard Gno faucet
type Handler ¶
type Handler struct {
HandlerFunc http.HandlerFunc
Pattern string
}
Handler defines a faucet handler
type Middleware ¶
Middleware is the faucet middleware func
type Option ¶
type Option func(f *Faucet)
func WithConfig ¶
WithConfig specifies the config for the faucet
func WithHandlers ¶
WithHandlers specifies the HTTP handlers for the faucet
func WithLogger ¶
WithLogger specifies the logger for the faucet
func WithMiddlewares ¶
func WithMiddlewares(middlewares []Middleware) Option
WithMiddlewares specifies the request middlewares for the faucet
func WithPrepareTxMessageFn ¶
func WithPrepareTxMessageFn(prepareTxMsgFn PrepareTxMessageFn) Option
WithPrepareTxMessageFn specifies the faucet transaction message constructor
type PrepareCfg ¶
type PrepareCfg struct {
SendAmount std.Coins // the amount to be sent
FromAddress crypto.Address // the faucet address
ToAddress crypto.Address // the beneficiary address
}
PrepareCfg specifies the tx prepare configuration
type PrepareTxMessageFn ¶
type PrepareTxMessageFn func(PrepareCfg) std.Msg
PrepareTxMessageFn is the callback method that constructs the faucet fund transaction message
type Request ¶
type Request struct {
To string `json:"to"`
}
Request is a single Faucet transfer request
Source Files
¶
Click to show internal directories.
Click to hide internal directories.