groups

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 32 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 NewAddressGroup

func NewAddressGroup(facade addressFacadeHandler) (*addressGroup, error)

NewAddressGroup returns a new instance of addressGroup

func NewBlockGroup

func NewBlockGroup(facade blockFacadeHandler) (*blockGroup, error)

NewBlockGroup returns a new instance of blockGroup

func NewHardforkGroup

func NewHardforkGroup(facade hardforkFacadeHandler) (*hardforkGroup, error)

NewHardforkGroup returns a new instance of hardforkGroup

func NewInternalBlockGroup

func NewInternalBlockGroup(facade internalBlockFacadeHandler) (*internalBlockGroup, error)

NewInternalBlockGroup returns a new instance of rawBlockGroup

func NewNetworkGroup

func NewNetworkGroup(facade networkFacadeHandler) (*networkGroup, error)

NewNetworkGroup returns a new instance of networkGroup

func NewNodeGroup

func NewNodeGroup(facade nodeFacadeHandler) (*nodeGroup, error)

NewNodeGroup returns a new instance of nodeGroup

func NewProofGroup

func NewProofGroup(facade proofFacadeHandler) (*proofGroup, error)

NewProofGroup returns a new instance of proofGroup

func NewTransactionGroup

func NewTransactionGroup(facade transactionFacadeHandler) (*transactionGroup, error)

NewTransactionGroup returns a new instance of transactionGroup

func NewValidatorGroup

func NewValidatorGroup(facade validatorFacadeHandler) (*validatorGroup, error)

NewValidatorGroup returns a new instance of validatorGroup

func NewVmValuesGroup

func NewVmValuesGroup(facade vmValuesFacadeHandler) (*vmValuesGroup, error)

NewVmValuesGroup returns a new instance of vmValuesGroup

Types

type GasConfig

type GasConfig struct {
	BuiltInCost            map[string]uint64 `json:"builtInCost"`
	MetaChainSystemSCsCost map[string]uint64 `json:"metaSystemSCCost"`
}

GasConfig defines the gas config sections to be exposed

type GenesisNodesConfig

type GenesisNodesConfig struct {
	Eligible map[uint32][]string `json:"eligible"`
	Waiting  map[uint32][]string `json:"waiting"`
}

GenesisNodesConfig defines the eligible and waiting nodes configurations

type HardforkRequest

type HardforkRequest struct {
	Epoch               uint32 `form:"epoch" json:"epoch"`
	WithEarlyEndOfEpoch bool   `form:"withEarlyEndOfEpoch" json:"withEarlyEndOfEpoch"`
}

HardforkRequest represents the structure on which user input for triggering a hardfork will validate against

type QueryDebugRequest

type QueryDebugRequest struct {
	Name   string `form:"name" json:"name"`
	Search string `form:"search" json:"search"`
}

QueryDebugRequest represents the structure on which user input for querying a debug info will validate against

type TxResponse

type TxResponse struct {
	transaction.FrontendTransaction
	ShardID     uint32 `json:"shardId"`
	Hash        string `json:"hash"`
	BlockNumber uint64 `json:"blockNumber"`
	BlockHash   string `json:"blockHash"`
	Timestamp   uint64 `json:"timestamp"`
}

TxResponse represents the structure on which the response will be validated against

type VMValueRequest

type VMValueRequest struct {
	ScAddress      string   `json:"scAddress"`
	FuncName       string   `json:"funcName"`
	CallerAddr     string   `json:"caller"`
	CallValue      string   `json:"value"`
	Args           []string `json:"args"`
	SameScState    bool     `json:"sameScState"`
	ShouldBeSynced bool     `json:"shouldBeSynced"`
}

VMValueRequest represents the structure on which user input for generating a new transaction will validate against

type VerifyProofRequest

type VerifyProofRequest struct {
	RootHash string   `json:"roothash"`
	Address  string   `json:"address"`
	Proof    []string `json:"proof"`
}

VerifyProofRequest represents the parameters needed to verify a Merkle proof

Jump to

Keyboard shortcuts

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