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)
tokenInfo, _ := d.tokenRepo.RetriveTokenInfo(event.FromChain, event.FromToken)
record := &apiModel.HistoryInfo{
FromChain: fromChain.Chain,
ToChain: toChain.Chain,
TxHash: event.FromChainTxHash,
CreateTime: event.OutTimestamp,
Amount: event.SendAmount,
Token: event.FromToken,
TokenSymbol: tokenInfo.Symbol,
UrlSource: fromChain.Explorer + "/tx/" + event.FromChainTxHash,
FromChain: fromChain.Chain,
ToChain: toChain.Chain,
TxHash: event.FromChainTxHash,
CreateTime: event.OutTimestamp,
Amount: event.SendAmount,
Token: event.FromToken,
TokenSymbol: tokenInfo.Symbol,
UrlSource: fromChain.Explorer + "/tx/" + event.FromChainTxHash,
Status: constant.TransferStatus(event.ToChainStatus).String(),
FeeAmount: event.FeeAmount,
ConfirmCount: len(event.ConfirmedValidators),
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