rest

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

nolint

nolint

Index

Constants

This section is empty.

Variables

View Source
var RestLogger tmLog.Logger

RestLogger for staking module logger

Functions

func DepositTxStatusHandlerFn added in v0.1.5

func DepositTxStatusHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

swagger:route GET /clerk/isoldtx clerk clerkIsOldTx It checks for whether the transaction is old or new. responses:

200: clerkIsOldTxResponse

DepositTxStatusHandlerFn returns deposit tx status information

func RegisterRoutes

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

RegisterRoutes registers checkpoint-related REST handlers to a router

Types

type AddRecordReq

type AddRecordReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	TxHash          types.HeimdallHash `json:"tx_hash"`
	LogIndex        uint64             `json:"log_index"`
	BlockNumber     uint64             `json:"block_number" yaml:"block_number"`
	ID              uint64             `json:"id"`
	ContractAddress string             `json:"contract_address" yaml:"contract_address"`
	BorChainID      string             `json:"bor_chain_id"`
	Data            string             `json:"data"`
}

AddRecordReq add validator request object

type BaseReq added in v0.3.2

type BaseReq struct {

	//Address of the sender
	From string `json:"address"`

	//Chain ID of Heimdall
	ChainID string `json:"chain_id"`
}

type Height added in v0.3.2

type Height struct {

	//Block Height
	//in:query
	Height string `json:"height"`
}

Jump to

Keyboard shortcuts

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