retryinghub

package
v0.0.0-...-04e8804 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	bind.ContractBackend
	NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
}

type RetryingHub

type RetryingHub struct {
	// contains filtered or unexported fields
}

func New

func New(maxGasPrice big.Int, boostInterval time.Duration, txCheckInterval time.Duration,
	backend Backend, privKey ecdsa.PrivateKey, walletAddress common.Address,
	hub *contract.Hub) RetryingHub

func (*RetryingHub) AdaptorPrivKeys

func (h *RetryingHub) AdaptorPrivKeys(adaptorPubKey *big.Int) *big.Int

func (*RetryingHub) BurnAntiSpamFee

func (h *RetryingHub) BurnAntiSpamFee(hashedID [32]byte, value *big.Int, gasLimit uint64)

func (*RetryingHub) CheckAntiSpamConfirmations

func (h *RetryingHub) CheckAntiSpamConfirmations(id *big.Int, fee *big.Int) *big.Int

func (*RetryingHub) CheckDepositConfirmations

func (h *RetryingHub) CheckDepositConfirmations(recipient common.Address,
	adaptorPubKey *big.Int, value *big.Int, hashedAntiSpamID [32]byte) *big.Int

func (*RetryingHub) ClaimDeposit

func (h *RetryingHub) ClaimDeposit(adaptorPrivKey *big.Int, antiSpamID *big.Int,
	value *big.Int, gasLimit uint64)

func (*RetryingHub) DepositEther

func (h *RetryingHub) DepositEther(recipient common.Address,
	adaptorPubKey *big.Int, hashedAntiSpamID [32]byte, value *big.Int, gasLimit uint64)

func (*RetryingHub) Deprecated

func (h *RetryingHub) Deprecated() bool

func (*RetryingHub) FetchServer

func (h *RetryingHub) FetchServer(maxAge *big.Int, offset *big.Int) ServerDetails

func (*RetryingHub) ReclaimDeposit

func (h *RetryingHub) ReclaimDeposit(hashedID [32]byte, value *big.Int, gasLimit uint64)

func (*RetryingHub) RegisterServer

func (h *RetryingHub) RegisterServer(target string, cert []byte, value *big.Int, gasLimit uint64)

func (*RetryingHub) SuggestGasPrice

func (h *RetryingHub) SuggestGasPrice() *big.Int

func (*RetryingHub) Version

func (h *RetryingHub) Version() string

type ServerDetails

type ServerDetails struct {
	OK     bool
	Target string
	Cert   []byte
}

Jump to

Keyboard shortcuts

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