balance

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0, Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryGet = "get"
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper asset.Keeper) sdk.Querier

func RegisterRoutes

func RegisterRoutes(ctx context.CLIContext, r *mux.Router, cdc *codec.Codec, enableFaucet bool)

Types

type GetQueryRequest

type GetQueryRequest struct {
	Address sdk.AccAddress
}

type GetQueryResponse

type GetQueryResponse struct {
	Balances []GetQueryResponseBalance `json:"balances"`
}

type GetQueryResponseBalance

type GetQueryResponseBalance struct {
	AssetID store.EntityID `json:"asset_id"`
	Name    string         `json:"name"`
	Symbol  string         `json:"symbol"`
	Liquid  sdk.Uint       `json:"liquid"`
	AtRisk  sdk.Uint       `json:"at_risk"`
}

type TransferBalanceRequest

type TransferBalanceRequest struct {
	To      sdk.AccAddress `json:"to"`
	AssetID store.EntityID `json:"asset_id"`
	Amount  sdk.Uint       `json:"amount"`
}

type TransferBalanceResponse

type TransferBalanceResponse struct {
	BlockInclusion embedded.BlockInclusion `json:"block_inclusion"`
}

Jump to

Keyboard shortcuts

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