Documentation ¶
Index ¶
- Constants
- Variables
- func Bootstrap(abisFileContent []byte, stateClient pbstatedb.StateClient, ...) (tokens []*pbtokenmeta.Token, balances []*pbtokenmeta.AccountBalance, ...)
- func TokenToEOSSymbol(e *pbtokenmeta.Token) *eos.Symbol
- type EOSStakeDbRow
- type Server
- func (s *Server) Check(ctx context.Context, in *pbhealth.HealthCheckRequest) (*pbhealth.HealthCheckResponse, error)
- func (s *Server) Close()
- func (s *Server) GetAccountBalances(ctx context.Context, in *pbtokenmeta.GetAccountBalancesRequest) (*pbtokenmeta.AccountBalancesResponse, error)
- func (s *Server) GetTokenBalances(ctx context.Context, in *pbtokenmeta.GetTokenBalancesRequest) (*pbtokenmeta.TokenBalancesResponse, error)
- func (s *Server) GetTokens(ctx context.Context, in *pbtokenmeta.GetTokensRequest) (*pbtokenmeta.TokensResponse, error)
- func (s *Server) Serve(listenAddr string)
- type TokenMeta
Constants ¶
View Source
const AccountsTable eos.TableName = eos.TableName("accounts")
View Source
const EOSStakeTable eos.TableName = eos.TableName("delband")
View Source
const StatTable eos.TableName = eos.TableName("stat")
Variables ¶
View Source
var MetricsSet = dmetrics.NewSet()
Functions ¶
func Bootstrap ¶
func Bootstrap(abisFileContent []byte, stateClient pbstatedb.StateClient, bootstrapblockOffset uint64) (tokens []*pbtokenmeta.Token, balances []*pbtokenmeta.AccountBalance, stakeds []*cache.EOSStakeEntry, startBlock bstream.BlockRef, err error)
func TokenToEOSSymbol ¶
func TokenToEOSSymbol(e *pbtokenmeta.Token) *eos.Symbol
Types ¶
type EOSStakeDbRow ¶
type EOSStakeDbRow struct { CPUWeight eos.Asset `json:"cpu_weight"` NetWeight eos.Asset `json:"net_weight"` To eos.AccountName `json:"to"` From eos.AccountName `json:"from"` }
type Server ¶
func (*Server) Check ¶
func (s *Server) Check(ctx context.Context, in *pbhealth.HealthCheckRequest) (*pbhealth.HealthCheckResponse, error)
func (*Server) GetAccountBalances ¶
func (s *Server) GetAccountBalances(ctx context.Context, in *pbtokenmeta.GetAccountBalancesRequest) (*pbtokenmeta.AccountBalancesResponse, error)
func (*Server) GetTokenBalances ¶
func (s *Server) GetTokenBalances(ctx context.Context, in *pbtokenmeta.GetTokenBalancesRequest) (*pbtokenmeta.TokenBalancesResponse, error)
func (*Server) GetTokens ¶
func (s *Server) GetTokens(ctx context.Context, in *pbtokenmeta.GetTokensRequest) (*pbtokenmeta.TokensResponse, error)
type TokenMeta ¶
func NewTokenMeta ¶
func NewTokenMeta(cache cache.Cache, abiCodecCli pbabicodec.DecoderClient, saveEveryNBlock uint32) *TokenMeta
func (*TokenMeta) ProcessBlock ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.