Documentation ¶
Index ¶
- func AddressIdQuery(db *gorm.DB, address string) *gorm.DB
- func ConfigureRoutes(g *gin.RouterGroup)
- func HandleGetAccountAddresses(c *gin.Context)
- func HandleGetAccountAssets(c *gin.Context)
- func HandleGetAccountHistory(c *gin.Context)
- func HandleGetAccountInfo(c *gin.Context)
- func HandleGetAccountList(c *gin.Context)
- func HandleGetAccountRewards(c *gin.Context)
- func HandleGetAccountUpdates(c *gin.Context)
- func LatestWithdrawalEpochQuery(db *gorm.DB, i uint64) *gorm.DB
- func LatestWithdrawalTxQuery(db *gorm.DB, i uint64) *gorm.DB
- func TxOutQuery(db *gorm.DB) *gorm.DB
- type Account
- type AccountId
- type AccountIdResponse
- type AccountResponse
- type Address
- type AddressResponse
- type Asset
- type AssetResponse
- type History
- type HistoryResponse
- type Reward
- type RewardResponse
- type Update
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressIdQuery ¶
Return a query to get the ID of a given address
func ConfigureRoutes ¶
func ConfigureRoutes(g *gin.RouterGroup)
func HandleGetAccountAssets ¶
func HandleGetAccountHistory ¶
func HandleGetAccountInfo ¶
func HandleGetAccountList ¶
func HandleGetAccountRewards ¶
func HandleGetAccountUpdates ¶
func LatestWithdrawalEpochQuery ¶
Returns a query to get the latest withdrawal epoch given a transaction ID
func LatestWithdrawalTxQuery ¶
Returns a query to get the latest withdrawal transaction given an address ID
Types ¶
type Account ¶
type Account struct { Status string `gorm:"column:status"` DelegatedPool string `gorm:"column:delegated_pool"` TotalBalance uint64 `gorm:"column:total_balance"` Utxo uint64 `gorm:"column:utxo"` Rewards uint64 `gorm:"column:rewards"` Withdrawals uint64 `gorm:"column:withdrawals"` RewardsAvailable uint64 `gorm:"column:rewards_available"` Reserves uint64 `gorm:"column:reserves"` Treasury uint64 `gorm:"column:treasury"` }
type AccountIdResponse ¶
type AccountIdResponse struct {
Id string `json:"id"`
}
func NewAccountListResponse ¶
func NewAccountListResponse(a *AccountId) *AccountIdResponse
type AccountResponse ¶
type AccountResponse struct { Status string `json:"status"` DelegatedPool string `json:"delegated_pool"` TotalBalance string `json:"total_balance"` Utxo string `json:"utxo"` Rewards string `json:"rewards"` Withdrawals string `json:"withdrawals"` RewardsAvailable string `json:"rewards_available"` Reserves string `json:"reserves"` Treasury string `json:"treasury"` }
func NewAccountResponse ¶
func NewAccountResponse(a *Account) *AccountResponse
type AddressResponse ¶
type AddressResponse struct {
Address string `json:"address"`
}
func NewAddressResponse ¶
func NewAddressResponse(a *Address) *AddressResponse
type AssetResponse ¶
type AssetResponse struct { AssetPolicy string `json:"asset_policy"` AssetName string `json:"asset_name"` Quantity string `json:"quantity"` }
func NewAssetResponse ¶
func NewAssetResponse(a *Asset) *AssetResponse
type HistoryResponse ¶
type HistoryResponse struct { StakeAddress string `json:"stake_address"` PoolId string `json:"pool_id"` EpochNumber uint64 `json:"epoch_no"` ActiveStake string `json:"active_stake"` }
func NewHistoryResponse ¶
func NewHistoryResponse(h *History) *HistoryResponse
type RewardResponse ¶
type RewardResponse struct { EarnedEpoch uint64 `json:"earned_epoch"` SpendableEpoch uint64 `json:"spendable_epoch"` Amount string `json:"amount"` Type string `json:"type"` PoolId string `json:"pool_id"` }
func NewRewardResponse ¶
func NewRewardResponse(x *Reward) *RewardResponse
type UpdateResponse ¶
type UpdateResponse struct { ActionType string `json:"action_type"` TxHash string `json:"tx_hash"` }
func NewUpdateResponse ¶
func NewUpdateResponse(u *Update) *UpdateResponse
Click to show internal directories.
Click to hide internal directories.