deth_worker

package
v0.0.0-...-1a342eb Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSharesToMap

func AddSharesToMap(sharesMap map[uint64]*pb.ShareMap, chainId uint64, strategyAddress common.Address, shares *big.Int)

func GetTotalShares

func GetTotalShares(sharesMap map[uint64]*pb.ShareMap) *big.Int

Types

type WorkerProcessor

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

func NewWorkerProcessor

func NewWorkerProcessor(db *database.DB, bridgeRpcService bridge.BridgeRpcService, shutdown context.CancelCauseFunc) (*WorkerProcessor, error)

func (*WorkerProcessor) TranserL2Shares

func (b *WorkerProcessor) TranserL2Shares() error

func (*WorkerProcessor) TransferL2Shares

func (b *WorkerProcessor) TransferL2Shares(fromAddress, toAddress common.Address,
	shares *big.Int, stakeMessageNonce uint64, txHash common.Hash) error

func (*WorkerProcessor) WorkerStart

func (b *WorkerProcessor) WorkerStart() error

Jump to

Keyboard shortcuts

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