Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(botConf config.BotConfig, locations []string, seedConf *config.TokenConfig, pe PricingEngine, wc WalletClient) *bot
New returns a new instance of bot.
Types ¶
type PricingEngine ¶
type PricingEngine interface {
GetPrice(pricecfg ppconfig.PriceConfig) (ppservice.PriceResponse, error)
}
PricingEngine is the source of price information from the price proxy.
type WalletClient ¶ added in v0.42.0
type WalletClient interface { CreateWallet(ctx context.Context, name, passphrase string) error LoginWallet(ctx context.Context, name, passphrase string) error ListPublicKeys(ctx context.Context) ([]string, error) GenerateKeyPair(ctx context.Context, passphrase string, meta []types.Meta) (*types.Key, error) SignTx(ctx context.Context, req *v1.SubmitTransactionRequest) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.