Documentation ¶
Index ¶
- func TransformTxData(tx models.Transaction) resource.Interface
- type Check
- type CheckData
- type RedeemCheck
- type Service
- func (s *Service) BalanceChannel() chan []*models.Balance
- func (s *Service) BlockChannel() chan models.Block
- func (s *Service) CommissionsChannel() chan api.Event
- func (s *Service) Manager()
- func (s *Service) PublishBalances(balances []*models.Balance)
- func (s *Service) PublishBlock(b models.Block)
- func (s *Service) PublishCommissions(data api.Event)
- func (s *Service) PublishStake(tx *api_pb.TransactionResponse)
- func (s *Service) PublishStatus()
- func (s *Service) PublishTransactions(transactions []*models.Transaction)
- func (s *Service) SetChasingMode(chasingMode bool)
- func (s *Service) StakeChannel() chan *api_pb.TransactionResponse
- func (s *Service) TransactionsChannel() chan []*models.Transaction
- type TransactionResource
- type TransformTxConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransformTxData ¶
func TransformTxData(tx models.Transaction) resource.Interface
Types ¶
type RedeemCheck ¶
type RedeemCheck struct { RawCheck string `json:"raw_check"` Proof string `json:"proof"` Check CheckData `json:"check"` }
func (RedeemCheck) Transform ¶
func (RedeemCheck) Transform(txData resource.ItemInterface, params ...resource.ParamInterface) resource.Interface
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(env *env.ExtenderEnvironment, addressRepository *address.Repository, coinRepository *coin.Repository, nodeClient *grpc_client.Client, logger *logrus.Entry) *Service
func (*Service) BalanceChannel ¶ added in v2.12.0
func (*Service) BlockChannel ¶ added in v2.12.0
func (*Service) CommissionsChannel ¶ added in v2.12.0
func (*Service) PublishBalances ¶
func (*Service) PublishBlock ¶
func (*Service) PublishCommissions ¶ added in v2.12.0
func (*Service) PublishStake ¶ added in v2.12.0
func (s *Service) PublishStake(tx *api_pb.TransactionResponse)
func (*Service) PublishStatus ¶
func (s *Service) PublishStatus()
func (*Service) PublishTransactions ¶
func (s *Service) PublishTransactions(transactions []*models.Transaction)
func (*Service) SetChasingMode ¶
func (*Service) StakeChannel ¶ added in v2.12.0
func (s *Service) StakeChannel() chan *api_pb.TransactionResponse
func (*Service) TransactionsChannel ¶ added in v2.12.0
func (s *Service) TransactionsChannel() chan []*models.Transaction
type TransactionResource ¶
type TransactionResource struct { Txn uint64 `json:"txn"` Hash string `json:"hash"` Nonce uint64 `json:"nonce"` Block uint64 `json:"height"` Timestamp string `json:"timestamp"` Gas string `json:"gas"` GasPrice uint64 `json:"gas_price"` Fee string `json:"fee"` Type uint8 `json:"type"` Payload string `json:"payload"` From string `json:"from"` Data resource.ItemInterface `json:"data"` RawTx string `json:"raw_tx"` }
func (TransactionResource) Transform ¶
func (TransactionResource) Transform(model resource.ItemInterface, params ...resource.ParamInterface) resource.Interface
type TransformTxConfig ¶
type TransformTxConfig struct { Model resource.ItemInterface Resource resource.Interface }
Click to show internal directories.
Click to hide internal directories.