groups

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: GPL-3.0 Imports: 31 Imported by: 0

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 added in v1.3.29

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 added in v1.3.37

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 added in v1.3.29

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 MultipleTxRequest

type MultipleTxRequest struct {
	Receiver string   `form:"receiver" json:"receiver"`
	Value    *big.Int `form:"value" json:"value"`
	TxCount  int      `form:"txCount" json:"txCount"`
}

MultipleTxRequest represents the structure on which user input for generating a bulk of transactions 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 SendTxRequest

type SendTxRequest struct {
	Sender           string `form:"sender" json:"sender"`
	Receiver         string `form:"receiver" json:"receiver"`
	SenderUsername   []byte `json:"senderUsername,omitempty"`
	ReceiverUsername []byte `json:"receiverUsername,omitempty"`
	Value            string `form:"value" json:"value"`
	Data             []byte `form:"data" json:"data"`
	Nonce            uint64 `form:"nonce" json:"nonce"`
	GasPrice         uint64 `form:"gasPrice" json:"gasPrice"`
	GasLimit         uint64 `form:"gasLimit" json:"gasLimit"`
	Signature        string `form:"signature" json:"signature"`
	ChainID          string `form:"chainID" json:"chainID"`
	Version          uint32 `form:"version" json:"version"`
	Options          uint32 `json:"options,omitempty"`
}

SendTxRequest represents the structure that maps and validates user input for publishing a new transaction

type TxRequest

type TxRequest struct {
	Sender   string   `form:"sender" json:"sender"`
	Receiver string   `form:"receiver" json:"receiver"`
	Value    *big.Int `form:"value" json:"value"`
	Data     string   `form:"data" json:"data"`
}

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

type TxResponse

type TxResponse struct {
	SendTxRequest
	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