Documentation ¶
Index ¶
Constants ¶
View Source
const (
MinMinerStake = 1000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthereumSideAPI ¶
type EthereumSideAPI interface { SubmitRequestAnswer(reqID *big.Int, data []byte) error BeginDispute(miner common.Address, requestID *big.Int) error VoteDispute(dhash [32]byte, voteStatus bool) error FinishDispute(dhash [32]byte) error SubscribeOnOracleEvents(ctx context.Context) (chan *dioneOracle.DioneOracleNewOracleRequest, event.Subscription, error) SubscribeOnNewDisputes(ctx context.Context) (chan *dioneDispute.DioneDisputeNewDispute, event.Subscription, error) SubscribeOnNewSubmissions(ctx context.Context) (chan *dioneOracle.DioneOracleSubmittedOracleRequest, event.Subscription, error) GetEthAddress() *common.Address GetTotalStake() (*big.Int, error) GetMinerStake(minerAddress common.Address) (*big.Int, error) }
func NewEthereumClient ¶
func NewEthereumClient(cfg *config.Config) (EthereumSideAPI, error)
Click to show internal directories.
Click to hide internal directories.