Documentation
¶
Index ¶
- func SetGasConfig(price *big.Int, limit uint64)
- type Console
- func (c *Console) GetBalance() (*cm.Balance, error)
- func (c *Console) GetBalanceOnReward() (*cm.RewardBalance, error)
- func (c *Console) GetStatus() (*cm.Status, error)
- func (c *Console) QuitRenew() error
- func (c *Console) StartMining() error
- func (c *Console) StopMining() error
- func (c *Console) SubmitDeposit(value *big.Int) error
- func (c *Console) WantRenew() error
- func (c *Console) Withdraw(value *big.Int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetGasConfig ¶
SetGasConfig set gas price and limit
Types ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
Console manage apis
func NewConsole ¶
func NewConsole(ctx *context.Context, rpc string, keystore string, passwordFile string, output cm.Output) (*Console, error)
NewConsole build a console
func (*Console) GetBalance ¶
GetBalance get balance of user's account
func (*Console) GetBalanceOnReward ¶
func (c *Console) GetBalanceOnReward() (*cm.RewardBalance, error)
GetBalanceOnReward get balance on reward contract
func (*Console) SubmitDeposit ¶
SubmitDeposit submit deposit
Click to show internal directories.
Click to hide internal directories.