Documentation ¶
Index ¶
- func NewAddressGroup(facade addressFacadeHandler) (*addressGroup, error)
- func NewBlockGroup(facade blockFacadeHandler) (*blockGroup, error)
- func NewHardforkGroup(facade hardforkFacadeHandler) (*hardforkGroup, error)
- func NewInternalBlockGroup(facade internalBlockFacadeHandler) (*internalBlockGroup, error)
- func NewNetworkGroup(facade networkFacadeHandler) (*networkGroup, error)
- func NewNodeGroup(facade nodeFacadeHandler) (*nodeGroup, error)
- func NewProofGroup(facade proofFacadeHandler) (*proofGroup, error)
- func NewTransactionGroup(facade transactionFacadeHandler) (*transactionGroup, error)
- func NewValidatorGroup(facade validatorFacadeHandler) (*validatorGroup, error)
- func NewVmValuesGroup(facade vmValuesFacadeHandler) (*vmValuesGroup, error)
- type GasConfig
- type GenesisNodesConfig
- type HardforkRequest
- type MultipleTxRequest
- type QueryDebugRequest
- type SendTxRequest
- type TxRequest
- type TxResponse
- type VMValueRequest
- type VerifyProofRequest
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 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"` GuardianAddr string `json:"guardian,omitempty"` GuardianSignature string `json:"guardianSignature,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