Documentation ¶
Overview ¶
Package commands provides all the different command options and logic.
Index ¶
- func Balance(ctx context.Context, converter *currency.Converter, book *book.Book, ...) error
- func Deploy(ctx context.Context, converter *currency.Converter, clt *ethereum.Client) (err error)
- func Deposit(ctx context.Context, converter *currency.Converter, book *book.Book, ...) error
- func Parse() (Flags, Args, error)
- func PrintUsage()
- func Transaction(ctx context.Context, converter *currency.Converter, clt *ethereum.Client, ...) error
- func Wallet(ctx context.Context, converter *currency.Converter, clt *ethereum.Client, ...) error
- func Withdraw(ctx context.Context, converter *currency.Converter, book *book.Book) error
- type Args
- type Flags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Balance ¶
func Balance(ctx context.Context, converter *currency.Converter, book *book.Book, address string) error
Balance returns the current balance of the specified address.
func Deposit ¶
func Deposit(ctx context.Context, converter *currency.Converter, book *book.Book, amountUSD float64) error
Deposit will move money from the wallet into the game contract.
func Parse ¶
Parse will parse the environment variables and command line flags. The command line flags will overwrite environment variables. Validation takes place.
func Transaction ¶
func Transaction(ctx context.Context, converter *currency.Converter, clt *ethereum.Client, tranID string) error
Transaction returns the transaction and receipt information for the specified transaction. The txHex is expected to be in a 0x format.
Types ¶
Click to show internal directories.
Click to hide internal directories.