epoch

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureRoutes

func ConfigureRoutes(g *gin.RouterGroup)

func HandleGetEpoch

func HandleGetEpoch(c *gin.Context)

func HandleGetEpochLatest

func HandleGetEpochLatest(c *gin.Context)

func HandleGetEpochList

func HandleGetEpochList(c *gin.Context)

func HandleGetEpochStake

func HandleGetEpochStake(c *gin.Context)

func HandleGetEpochStakeByAccount

func HandleGetEpochStakeByAccount(c *gin.Context)

func HandleGetEpochStakeByPool

func HandleGetEpochStakeByPool(c *gin.Context)

Types

type EpochResponse

type EpochResponse struct {
	OutSum      uint64     `json:"out_sum"`
	Fees        uint64     `json:"fees"`
	TxCount     uint32     `json:"tx_count"`
	BlockCount  uint32     `json:"blk_count"`
	EpochNumber uint32     `json:"no"`
	StartTime   *time.Time `json:"start_time"`
	EndTime     *time.Time `json:"end_time"`
}

func NewEpochResponse

func NewEpochResponse(e *models.Epoch) *EpochResponse

type EpochStakeResponse

type EpochStakeResponse struct {
	Amount uint64 `json:"amount"`
}

func NewEpochStakeResponse

func NewEpochStakeResponse(e *StakeAmount) *EpochStakeResponse

type GetEpochStakeUriParams

type GetEpochStakeUriParams struct {
	Number  uint32 `uri:"number" binding:"required"`
	Account string `uri:"account"`
	Pool    string `uri:"pool"`
}

URI params for GetEpochStake

type GetEpochUriParams

type GetEpochUriParams struct {
	Number uint32 `uri:"number" binding:"required"`
}

URI params for GetEpoch

type StakeAmount

type StakeAmount struct {
	Amount uint64
}

Jump to

Keyboard shortcuts

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