rest

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 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

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.IrisHash `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"`
	ZenaChainID     string         `json:"zena_chain_id"`
	Data            string         `json:"data"`
}

AddRecordReq add validator request object

type BaseReq

type BaseReq struct {

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

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

type Height

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