groups

package
v1.2.35 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// AccStateCheckpointsKey is used as a key for the number of account state checkpoints in the api response
	AccStateCheckpointsKey = "erd_num_accounts_state_checkpoints"

	// PeerStateCheckpointsKey is used as a key for the number of peer state checkpoints in the api response
	PeerStateCheckpointsKey = "erd_num_peer_state_checkpoints"
)

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 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 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   `form:"scAddress" json:"scAddress"`
	FuncName   string   `form:"funcName" json:"funcName"`
	CallerAddr string   `form:"caller" json:"caller"`
	CallValue  string   `form:"value" json:"value"`
	Args       []string `form:"args"  json:"args"`
}

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