Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotABuiltinAsset is raised when a party try to top up for a non builtin asset. ErrNotABuiltinAsset = errors.New("asset is not a builtin asset") // ErrAssetNotFound is raised when an asset id is not found. ErrAssetNotFound = errors.New("asset was not found") // ErrInvalidMintAmount is raised when the mint amount is too high. ErrInvalidMintAmount = errors.New("mint amount is invalid") HealthCheckResponse = struct { Success bool `json:"success"` }{true} )
View Source
var ErrFaucetConfigAlreadyExists = errors.New("faucet configuration already exists")
View Source
var ErrFaucetHasNoKeyInItsWallet = errors.New("faucet has no key in its wallet")
ErrFaucetHasNoKeyInItsWallet is returned when trying to get the wallet key of the faucet whereas no key has been generated or added to the faucet's wallet.
View Source
var ErrInvalidRequest = newError("invalid request")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Level encoding.LogLevel `long:"level" description:"Log level"` RateLimit vghttp.RateLimitConfig `group:"RateLimit" namespace:"rateLimit"` WalletName string `long:"wallet-name" description:"Name of the wallet to use to sign events"` Port int `long:"port" description:"Listen for connections on port <port>"` IP string `long:"ip" description:"Bind to address <ip>"` Node NodeConfig `group:"Node" namespace:"node"` }
func NewDefaultConfig ¶
func NewDefaultConfig() Config
type ConfigLoader ¶
type ConfigLoader struct {
// contains filtered or unexported fields
}
func InitialiseConfigLoader ¶
func InitialiseConfigLoader(vegaPaths paths.Paths) (*ConfigLoader, error)
func (*ConfigLoader) ConfigExists ¶
func (l *ConfigLoader) ConfigExists() (bool, error)
func (*ConfigLoader) ConfigFilePath ¶
func (l *ConfigLoader) ConfigFilePath() string
func (*ConfigLoader) GetConfig ¶
func (l *ConfigLoader) GetConfig() (*Config, error)
func (*ConfigLoader) RemoveConfig ¶
func (l *ConfigLoader) RemoveConfig()
func (*ConfigLoader) SaveConfig ¶
func (l *ConfigLoader) SaveConfig(cfg *Config) error
type Faucet ¶
type Faucet struct { *httprouter.Router // contains filtered or unexported fields }
func NewService ¶
func (*Faucet) Health ¶
func (f *Faucet) Health(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Faucet) Mint ¶
func (f *Faucet) Mint(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
type InitialisationResult ¶
type InitialisationResult struct { Wallet *WalletGenerationResult ConfigFilePath string }
func Initialise ¶
type MintRequest ¶
type MintResponse ¶
type MintResponse struct {
Success bool `json:"success"`
}
type NodeConfig ¶
type WalletGenerationResult ¶
func GenerateWallet ¶ added in v0.70.4
func GenerateWallet(vegaPaths paths.Paths, passphrase string) (*WalletGenerationResult, error)
Click to show internal directories.
Click to hide internal directories.