ethclient

package
v0.0.0-...-041d6b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 16 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL