service

package
v1.1.8-pre-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubscribeTimeout = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResultBroadcastTx

type ResultBroadcastTx struct {
	Code uint32         `json:"code"`
	Data bytes.HexBytes `json:"data"`
	Log  string         `json:"log"`
	Info string         `json:"-"`
	Hash bytes.HexBytes `json:"hash"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(cdc *amino.Codec, blockchain *minter.Blockchain, client *rpc.Local, node *tmNode.Node, minterCfg *config.Config, version string) *Service

func (*Service) Address

func (s *Service) Address(ctx context.Context, req *pb.AddressRequest) (*pb.AddressResponse, error)

func (*Service) Addresses

func (s *Service) Addresses(ctx context.Context, req *pb.AddressesRequest) (*pb.AddressesResponse, error)

func (*Service) Block

func (s *Service) Block(ctx context.Context, req *pb.BlockRequest) (*pb.BlockResponse, error)

func (*Service) Candidate

func (s *Service) Candidate(ctx context.Context, req *pb.CandidateRequest) (*pb.CandidateResponse, error)

func (*Service) Candidates

func (s *Service) Candidates(ctx context.Context, req *pb.CandidatesRequest) (*pb.CandidatesResponse, error)

func (*Service) CoinInfo

func (s *Service) CoinInfo(ctx context.Context, req *pb.CoinInfoRequest) (*pb.CoinInfoResponse, error)

func (*Service) EstimateCoinBuy

func (s *Service) EstimateCoinBuy(ctx context.Context, req *pb.EstimateCoinBuyRequest) (*pb.EstimateCoinBuyResponse, error)

func (*Service) EstimateCoinSell

func (*Service) EstimateCoinSellAll

func (*Service) EstimateTxCommission

func (*Service) Events

func (s *Service) Events(ctx context.Context, req *pb.EventsRequest) (*pb.EventsResponse, error)

func (*Service) Frozen added in v1.2.0

func (s *Service) Frozen(ctx context.Context, req *pb.FrozenRequest) (*pb.FrozenResponse, error)

func (*Service) Genesis

func (s *Service) Genesis(ctx context.Context, _ *empty.Empty) (*pb.GenesisResponse, error)

func (*Service) Halts added in v1.2.0

func (s *Service) Halts(_ context.Context, req *pb.HaltsRequest) (*pb.HaltsResponse, error)

func (*Service) MaxGas

func (s *Service) MaxGas(ctx context.Context, req *pb.MaxGasRequest) (*pb.MaxGasResponse, error)

func (*Service) MinGasPrice

func (s *Service) MinGasPrice(context.Context, *empty.Empty) (*pb.MinGasPriceResponse, error)

func (*Service) MissedBlocks

func (s *Service) MissedBlocks(ctx context.Context, req *pb.MissedBlocksRequest) (*pb.MissedBlocksResponse, error)

func (*Service) NetInfo

func (s *Service) NetInfo(ctx context.Context, _ *empty.Empty) (*pb.NetInfoResponse, error)

func (*Service) SendTransaction added in v1.2.0

func (s *Service) SendTransaction(ctx context.Context, req *pb.SendTransactionRequest) (*pb.SendTransactionResponse, error)

func (*Service) Stakes

func (s *Service) Stakes(ctx context.Context, req *pb.StakesRequest) (*pb.StakesResponse, error)

func (*Service) Status

func (*Service) Subscribe

func (s *Service) Subscribe(request *pb.SubscribeRequest, stream pb.ApiService_SubscribeServer) error

func (*Service) TimeoutDuration added in v1.2.0

func (s *Service) TimeoutDuration() time.Duration

func (*Service) Transaction

func (s *Service) Transaction(ctx context.Context, req *pb.TransactionRequest) (*pb.TransactionResponse, error)

func (*Service) Transactions

func (s *Service) Transactions(ctx context.Context, req *pb.TransactionsRequest) (*pb.TransactionsResponse, error)

func (*Service) UnconfirmedTxs

func (s *Service) UnconfirmedTxs(ctx context.Context, req *pb.UnconfirmedTxsRequest) (*pb.UnconfirmedTxsResponse, error)

func (*Service) Validators

func (s *Service) Validators(ctx context.Context, req *pb.ValidatorsRequest) (*pb.ValidatorsResponse, error)

type UserStake

type UserStake struct {
	Value    *big.Int
	BipValue *big.Int
}

Jump to

Keyboard shortcuts

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