intermediate

package
v1.6.17 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: GPL-3.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateInitialPublicKeys

func GenerateInitialPublicKeys(
	baseAddress []byte,
	isForCurrentShard func(address []byte) bool,
) [][]byte

GenerateInitialPublicKeys will create public keys for given shard or for all shards in case of deployment to common.MaxNumShards

func NewDeployLibrarySC

func NewDeployLibrarySC(arg ArgDeployLibrarySC) (*deployLibrarySC, error)

NewDeployLibrarySC returns a new instance of deploy library SC able to deploy library SC that needs to be present on all shards - same contract is deployed common.MaxNumShards == 256 times with addresses which end with all possibilities of the last byte

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

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 ArgDeployLibrarySC

type ArgDeployLibrarySC struct {
	Executor         genesis.TxExecutionProcessor
	PubkeyConv       core.PubkeyConverter
	BlockchainHook   process.BlockChainHookHandler
	ShardCoordinator sharding.Coordinator
}

ArgDeployLibrarySC is the argument used to create a deployLibrarySC instance

type ArgDeployProcessor

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

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