rpc

package
v0.0.0-...-21ace4c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEVMValidators

func GetEVMValidators(cliCtx context.CLIContext) http.HandlerFunc

func GetHealthStatus

func GetHealthStatus(cliCtx context.CLIContext) http.HandlerFunc

func GetProofHandlerFn

func GetProofHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func GetProviderStatus

func GetProviderStatus(cliCtx context.CLIContext) http.HandlerFunc

func LatestBlocksRequestHandlerFn

func LatestBlocksRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func LatestTxsRequestHandlerFn

func LatestTxsRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func RecoverETHAddress

func RecoverETHAddress(msg, sig, signer []byte) ([]byte, uint8, error)

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)

func ServeSwaggerUI

func ServeSwaggerUI() http.Handler

Types

type BlockHeaderMerkleParts

type BlockHeaderMerkleParts struct {
	VersionAndChainIdHash       cmn.HexBytes `json:"versionAndChainIdHash"`
	TimeHash                    cmn.HexBytes `json:"timeHash"`
	TxCountAndLastBlockInfoHash cmn.HexBytes `json:"txCountAndLastBlockInfoHash"`
	ConsensusDataHash           cmn.HexBytes `json:"consensusDataHash"`
	LastResultsHash             cmn.HexBytes `json:"lastResultsHash"`
	EvidenceAndProposerHash     cmn.HexBytes `json:"evidenceAndProposerHash"`
}

type BlockHeaderMerklePartsEthereum

type BlockHeaderMerklePartsEthereum struct {
	VersionAndChainIdHash       common.Hash
	TimeHash                    common.Hash
	TxCountAndLastBlockInfoHash common.Hash
	ConsensusDataHash           common.Hash
	LastResultsHash             common.Hash
	EvidenceAndProposerHash     common.Hash
}

type BlockRelayProof

type BlockRelayProof struct {
	OracleIAVLStateHash    cmn.HexBytes           `json:"oracleIAVLStateHash"`
	OtherStoresMerkleHash  cmn.HexBytes           `json:"otherStoresMerkleHash"`
	SupplyStoresMerkleHash cmn.HexBytes           `json:"supplyStoresMerkleHash"`
	BlockHeaderMerkleParts BlockHeaderMerkleParts `json:"blockHeaderMerkleParts"`
	SignedDataPrefix       cmn.HexBytes           `json:"signedDataPrefix"`
	Signatures             []TMSignature          `json:"signatures"`
}

func GetBlockRelayProof

func GetBlockRelayProof(cliCtx context.CLIContext, blockId uint64) (BlockRelayProof, error)

type IAVLMerklePath

type IAVLMerklePath struct {
	IsDataOnRight  bool         `json:"isDataOnRight"`
	SubtreeHeight  uint8        `json:"subtreeHeight"`
	SubtreeSize    uint64       `json:"subtreeSize"`
	SubtreeVersion uint64       `json:"subtreeVersion"`
	SiblingHash    cmn.HexBytes `json:"siblingHash"`
}

type IAVLMerklePathEthereum

type IAVLMerklePathEthereum struct {
	IsDataOnRight  bool
	SubtreeHeight  uint8
	SubtreeSize    *big.Int
	SubtreeVersion *big.Int
	SiblingHash    common.Hash
}

type JsonProof

type JsonProof struct {
	BlockHeight     uint64          `json:"blockHeight"`
	OracleDataProof OracleDataProof `json:"oracleDataProof"`
	BlockRelayProof BlockRelayProof `json:"blockRelayProof"`
}

type OracleDataProof

type OracleDataProof struct {
	Version        uint64                 `json:"version"`
	RequestID      zoracle.RequestID      `json:"requestID"`
	OracleScriptID zoracle.OracleScriptID `json:"oracleScriptID"`
	Calldata       cmn.HexBytes           `json:"calldata"`
	Data           cmn.HexBytes           `json:"data"`
	MerklePaths    []IAVLMerklePath       `json:"merklePaths"`
}

type Proof

type Proof struct {
	JsonProof     JsonProof    `json:"jsonProof"`
	EVMProofBytes cmn.HexBytes `json:"evmProofBytes"`
}

type TMSignature

type TMSignature struct {
	R                cmn.HexBytes `json:"r"`
	S                cmn.HexBytes `json:"s"`
	V                uint8        `json:"v"`
	SignedDataSuffix cmn.HexBytes `json:"signedDataSuffix"`
}

type TMSignatureEthereum

type TMSignatureEthereum struct {
	R                common.Hash
	S                common.Hash
	V                uint8
	SignedDataSuffix []byte
}

type ValidatorMinimal

type ValidatorMinimal struct {
	Address     string `json:"address"`
	VotingPower int64  `json:"voting_power"`
}

type ValidatorsMinimal

type ValidatorsMinimal struct {
	BlockHeight int64              `json:"block_height"`
	Validators  []ValidatorMinimal `json:"validators"`
}

Directories

Path Synopsis
lcd
statik
Package statik contains static assets.
Package statik contains static assets.

Jump to

Keyboard shortcuts

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