scToProtocol

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStakingToPeer

func NewStakingToPeer(args ArgStakingToPeer) (*stakingToPeer, error)

NewStakingToPeer creates the component which moves from staking sc state to peer state

Types

type ArgStakingToPeer

type ArgStakingToPeer struct {
	PubkeyConv  core.PubkeyConverter
	Hasher      hashing.Hasher
	Marshalizer marshal.Marshalizer
	PeerState   state.AccountsAdapter
	BaseState   state.AccountsAdapter

	ArgParser   process.ArgumentsParser
	CurrTxs     dataRetriever.TransactionCacher
	ScQuery     external.SCQueryService
	RatingsData process.RatingsInfoHandler
}

ArgStakingToPeer is struct that contain all components that are needed to create a new stakingToPeer object

Jump to

Keyboard shortcuts

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