Commit 0a37da99 authored by vicotor's avatar vicotor

add new field

parent 10ca32ce
...@@ -156,16 +156,16 @@ func (d *Dao) GetHistoryInfo(user string) (history apiModel.History, err error) ...@@ -156,16 +156,16 @@ func (d *Dao) GetHistoryInfo(user string) (history apiModel.History, err error)
tokenInfo, _ := d.tokenRepo.RetriveTokenInfo(event.FromChain, event.FromToken) tokenInfo, _ := d.tokenRepo.RetriveTokenInfo(event.FromChain, event.FromToken)
record := &apiModel.HistoryInfo{ record := &apiModel.HistoryInfo{
FromChain: fromChain.Chain, FromChain: fromChain.Chain,
ToChain: toChain.Chain, ToChain: toChain.Chain,
TxHash: event.FromChainTxHash, TxHash: event.FromChainTxHash,
CreateTime: event.OutTimestamp, CreateTime: event.OutTimestamp,
Amount: event.SendAmount, Amount: event.SendAmount,
Token: event.FromToken, Token: event.FromToken,
TokenSymbol: tokenInfo.Symbol, TokenSymbol: tokenInfo.Symbol,
UrlSource: fromChain.Explorer + "/tx/" + event.FromChainTxHash, UrlSource: fromChain.Explorer + "/tx/" + event.FromChainTxHash,
Status: constant.TransferStatus(event.ToChainStatus).String(), Status: constant.TransferStatus(event.ToChainStatus).String(),
FeeAmount: event.FeeAmount,
ConfirmCount: len(event.ConfirmedValidators), ConfirmCount: len(event.ConfirmedValidators),
RejectCount: len(event.RejectedValidators), RejectCount: len(event.RejectedValidators),
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment