addresses

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoutes

func ApplyRoutes(r *gin.RouterGroup)

ApplyRoutes applies router to the gin Engine

func GetAddress

func GetAddress(c *gin.Context)

Get address detail

func GetAddresses

func GetAddresses(c *gin.Context)

Get list of addresses

func GetAggregatedRewards

func GetAggregatedRewards(c *gin.Context)

func GetDelegations

func GetDelegations(c *gin.Context)

Get list of delegations by Noah address

func GetRewards

func GetRewards(c *gin.Context)

Get list of rewards by Noah address

func GetRewardsStatistics

func GetRewardsStatistics(c *gin.Context)

Get rewards statistics by noah address

func GetSlashes

func GetSlashes(c *gin.Context)

Get list of slashes by Noah address

func GetTopAddresses added in v0.2.6

func GetTopAddresses(c *gin.Context)

Get list of addresses ranked by balance

func GetTransactions

func GetTransactions(c *gin.Context)

Get list of transactions by noah address

Types

type AggregatedRewardsQueryRequest

type AggregatedRewardsQueryRequest struct {
	StartTime *string `form:"startTime" binding:"omitempty,timestamp"`
	EndTime   *string `form:"endTime"   binding:"omitempty,timestamp"`
}

type FilterQueryRequest

type FilterQueryRequest struct {
	StartBlock *string `form:"startblock" binding:"omitempty,numeric"`
	EndBlock   *string `form:"endblock"   binding:"omitempty,numeric"`
	Page       *string `form:"page"       binding:"omitempty,numeric"`
}

TODO: replace string to int

type GetAddressRequest

type GetAddressRequest struct {
	Address string `uri:"address" binding:"noahAddress"`
}

type GetAddressesRequest

type GetAddressesRequest struct {
	Addresses []string `form:"addresses[]" binding:"required,noahAddress,max=50"`
}

type StatisticsQueryRequest

type StatisticsQueryRequest struct {
	StartTime *string `form:"startTime" binding:"omitempty,timestamp"`
	EndTime   *string `form:"endTime"   binding:"omitempty,timestamp"`
}

Jump to

Keyboard shortcuts

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