Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContractAddress ¶
GetContractAddress get contract address by name
Types ¶
type Balance ¶
type Balance struct { Balance big.Int Reward RewardBalance }
Balance of the cpchain node
type Manager ¶
type Manager interface { GetStatus() (*Status, error) StartMining() error StopMining() error GetBalance() (*Balance, error) GetBalanceOnReward() (*RewardBalance, error) Withdraw() error SubmitDeposit() error WantRenew() error QuitRenew() error }
Manager manage the cpchain node
type Output ¶
type Output interface { Status(status *Status) Balance(balance *Balance) Info(msg string, params ...interface{}) Error(msg string, params ...interface{}) Fatal(msg string, params ...interface{}) Warn(msg string, params ...interface{}) }
Output data
type RewardBalance ¶
RewardBalance is balance of contract namded reward
Click to show internal directories.
Click to hide internal directories.