Versions in this module Expand all Collapse all v1 v1.0.2 May 13, 2021 v1.0.0 Feb 1, 2021 Changes in this version + func Approve(_spender common.Address, amt *big.Int, ctx context.Context) error + func Balance(ctx context.Context, addr common.Address) error + func Deposit(ctx context.Context) error + func Dispute(requestId *big.Int, timestamp *big.Int, minerIndex *big.Int, ...) error + func List(ctx context.Context) error + func PrepareEthTransaction(ctx context.Context) (*bind.TransactOpts, error) + func RequestStakingWithdraw(ctx context.Context) error + func ShowStatus(ctx context.Context) error + func Transfer(toAddress common.Address, amt *big.Int, ctx context.Context) error + func Vote(_disputeId *big.Int, _supportsDispute bool, ctx context.Context) error + func WithdrawStake(ctx context.Context) error + type DataRequester struct + func CreateDataRequester(exitCh chan os.Signal, submitter berryCommon.TransactionSubmitter, ...) *DataRequester + func (r *DataRequester) IsRunning() bool + func (r *DataRequester) Start(ctx context.Context) error + type DataServerOps struct + Running bool + func CreateDataServerOps(ctx context.Context, exitCh chan os.Signal) (*DataServerOps, error) + func (ops *DataServerOps) Ready() chan bool + func (ops *DataServerOps) Start(ctx context.Context) + type MiningMgr struct + Running bool + func CreateMiningManager(ctx context.Context, exitCh chan os.Signal, ...) (*MiningMgr, error) + func (mgr *MiningMgr) Start(ctx context.Context) + type SolutionSink interface + Submit func(context.Context, *pow.Result) bool + type TxnSubmitter struct + func NewSubmitter() TxnSubmitter + func (s TxnSubmitter) PrepareTransaction(ctx context.Context, proxy db.DataServerProxy, ctxName string, ...) error + type WorkSource interface + GetWork func(input chan *pow.Work) (*pow.Work, bool)