Documentation ¶
Index ¶
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) PublishBalances ¶
func (*Service) PublishBlock ¶
func (*Service) PublishStatus ¶
func (s *Service) PublishStatus()
func (*Service) PublishTransactions ¶
func (s *Service) PublishTransactions(transactions []*models.Transaction)
func (*Service) SetChasingMode ¶
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.