intermediate

package
v1.0.120 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeployProcessor

func NewDeployProcessor(arg ArgDeployProcessor) (*deployProcessor, error)

NewDeployProcessor returns a new instance of deploy processor able to deploy SC

func NewNodesListSplitter

func NewNodesListSplitter(
	initialNodesSetup genesis.InitialNodesHandler,
	accountsParser genesis.AccountsParser,
) (*nodesListSplitter, error)

NewNodesListSplitter returns an instance able to split the nodes by some criterias

func NewStandardDelegationProcessor added in v1.0.116

func NewStandardDelegationProcessor(arg ArgStandardDelegationProcessor) (*standardDelegationProcessor, error)

NewStandardDelegationProcessor returns a new standard delegation processor instance

func NewTxExecutionProcessor

func NewTxExecutionProcessor(
	txProcessor process.TransactionProcessor,
	accounts state.AccountsAdapter,
) (*txExecutionProcessor, error)

NewTxExecutionProcessor is able to execute a transaction

Types

type ArgDeployProcessor added in v1.0.116

type ArgDeployProcessor struct {
	Executor       genesis.TxExecutionProcessor
	PubkeyConv     core.PubkeyConverter
	BlockchainHook process.BlockChainHookHandler
	QueryService   external.SCQueryService
}

ArgDeployProcessor is the argument used to create a deployProcessor instance

type ArgStandardDelegationProcessor added in v1.0.116

type ArgStandardDelegationProcessor struct {
	Executor            genesis.TxExecutionProcessor
	ShardCoordinator    sharding.Coordinator
	AccountsParser      genesis.AccountsParser
	SmartContractParser genesis.InitialSmartContractParser
	NodesListSplitter   genesis.NodesListSplitter
	QueryService        external.SCQueryService
	NodePrice           *big.Int
}

ArgStandardDelegationProcessor is the argument used to construct a standard delegation processor

Jump to

Keyboard shortcuts

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