Documentation ¶
Index ¶
- func NewGetByHeightHttpHandler(db *psql.Store, c figmentclient.Client) *getByHeightHttpHandler
- func NewGetByHeightUseCase(db *psql.Store, c figmentclient.Client) *getByHeightUseCase
- func NewGetDetailsHttpHandler(db *psql.Store, c figmentclient.Client) *getDetailsHttpHandler
- func NewGetDetailsUseCase(c figmentclient.Client, db *psql.Store) *getDetailsUseCase
- type BalanceDetails
- type DetailsView
- type GetByHeightRequest
- type HeightDetailsView
- type IdentityDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetByHeightHttpHandler ¶
func NewGetByHeightHttpHandler(db *psql.Store, c figmentclient.Client) *getByHeightHttpHandler
func NewGetByHeightUseCase ¶
func NewGetByHeightUseCase(db *psql.Store, c figmentclient.Client) *getByHeightUseCase
func NewGetDetailsHttpHandler ¶ added in v0.1.0
func NewGetDetailsHttpHandler(db *psql.Store, c figmentclient.Client) *getDetailsHttpHandler
func NewGetDetailsUseCase ¶ added in v0.1.0
func NewGetDetailsUseCase(c figmentclient.Client, db *psql.Store) *getDetailsUseCase
Types ¶
type BalanceDetails ¶ added in v0.1.0
type BalanceDetails struct { GoldBalance string `json:"gold_balance"` TotalLockedGold string `json:"total_locked_gold"` TotalNonvotingLockedGold string `json:"total_nonvoting_locked_gold"` StableTokenBalance string `json:"stable_token_balance"` }
func ToBalanceDetails ¶ added in v0.1.0
func ToBalanceDetails(rawAccountInfo *figmentclient.AccountInfo) *BalanceDetails
type DetailsView ¶ added in v0.1.0
type DetailsView struct { Address string `json:"address"` *IdentityDetails *BalanceDetails InternalTransfers []model.AccountActivitySeq `json:"internal_transfers"` Transactions []model.AccountActivitySeq `json:"transactions"` }
func ToDetailsView ¶ added in v0.1.0
func ToDetailsView(address string, rawAccountInfo *figmentclient.AccountInfo, internalTransfers, transactions []model.AccountActivitySeq) (*DetailsView, error)
type GetByHeightRequest ¶
type HeightDetailsView ¶
type HeightDetailsView struct { *IdentityDetails *BalanceDetails Activity []model.AccountActivitySeq `json:"activity"` }
func ToHeightDetailsView ¶
func ToHeightDetailsView(rawAccountInfo *figmentclient.AccountInfo, accountActivitySeqs []model.AccountActivitySeq) *HeightDetailsView
type IdentityDetails ¶ added in v0.1.0
type IdentityDetails struct { Name string `json:"name"` MetadataUrl string `json:"metadata_url"` Type string `json:"type"` Affiliation string `json:"affiliation"` }
func ToIdentityDetails ¶ added in v0.1.0
func ToIdentityDetails(rawAccountInfo *figmentclient.AccountInfo) *IdentityDetails
Click to show internal directories.
Click to hide internal directories.