Documentation
¶
Index ¶
- type ResultInfoForADA
- type ResultLastTxADA
- type ResultLastTxSOL
- type TxRepository
- func (r *TxRepository) ExportData(data interface{}, symbol string) error
- func (r *TxRepository) Get(ctx context.Context, address string) (string, error)
- func (r *TxRepository) InfoByAddress(address string) (ResultInfoForADA, error)
- func (r *TxRepository) Set(ctx context.Context, address, lastTx string, expiration time.Duration) error
- type Txer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResultInfoForADA ¶
type ResultInfoForADA struct { Address string `json:"address,omitempty"` Type string `json:"type,omitempty"` BlockNO int64 `json:"block_no,omitempty"` BlockHash string `json:"block_hash,omitempty"` TxTotal int64 `json:"tx_total,omitempty"` Balance string `json:"balance,omitempty"` TotalIn string `json:"total_in,omitempty"` TotalOut string `json:"total_out,omitempty"` TotalFee string `json:"total_fee,omitempty"` TxList []web3.CATxList `json:"tx_list,omitempty"` }
ResultInfoForADA information for ADA address
func (*ResultInfoForADA) ToMAP ¶
func (rtx *ResultInfoForADA) ToMAP() (toHashMap map[string]interface{}, err error)
ToMAP ...
type ResultLastTxADA ¶
type ResultLastTxADA struct { Addr string `json:"addr,omitempty"` CtbID string `json:"ctbId,omitempty"` CtbTimeIssued string `json:"ctbTimeIssued,omitempty"` FromAddr string `json:"from_addr,omitempty"` ToAddr string `json:"to_addr,omitempty"` Balance string `json:"balance,omitempty"` Ammount string `json:"ammount,omitempty"` TypeTx string `json:"type_tx,omitempty"` Symbol string `json:"symbol,omitempty"` }
ResultLastTxADA return the last TX by ADA symbol (Cardano blockchain)
func (*ResultLastTxADA) ToMAP ¶
func (rtx *ResultLastTxADA) ToMAP() (toHashMap map[string]interface{}, err error)
ToMAP ...
func (*ResultLastTxADA) TruncateAddress ¶
func (rtx *ResultLastTxADA) TruncateAddress(address string) string
TruncateAddress ...
type ResultLastTxSOL ¶
type ResultLastTxSOL struct { Addr string `json:"addr,omitempty"` TxID string `json:"tx_id,omitempty"` Timestamp string `json:"timestamp,omitempty"` FromAddr string `json:"from_addr,omitempty"` ToAddr string `json:"to_addr,omitempty"` Balance string `json:"balance,omitempty"` Ammount string `json:"ammount,omitempty"` TypeTx string `json:"type_tx,omitempty"` Symbol string `json:"symbol,omitempty"` }
ResultLastTxSOL return the last TX by address SOL symbol
func (*ResultLastTxSOL) ToMAP ¶
func (rtx *ResultLastTxSOL) ToMAP() (toHashMap map[string]interface{}, err error)
ToMAP ...
func (*ResultLastTxSOL) TruncateAddress ¶
func (rtx *ResultLastTxSOL) TruncateAddress(address string) string
TruncateAddress ...
type TxRepository ¶
type TxRepository struct {
// contains filtered or unexported fields
}
TxRepository repository
func NewTxRepository ¶
func NewTxRepository(exporterType string, clients ...interface{}) TxRepository
NewTxRepository constructor client
func (*TxRepository) ExportData ¶
func (r *TxRepository) ExportData(data interface{}, symbol string) error
ExportData export data from ADA or SOL symbol
func (*TxRepository) InfoByAddress ¶
func (r *TxRepository) InfoByAddress(address string) (ResultInfoForADA, error)
InfoByAddress get info by address
Click to show internal directories.
Click to hide internal directories.