@@ -974,7 +974,6 @@ func formatTokenTransaction(gb *gloomberg.Gloomberg, seawa *seawatcher.SeaWatche
974974 //
975975 // 🌈 finally print the sale/listing/whatever 🌈
976976 if ! viper .GetBool ("ui.headless" ) {
977- // terminalPrinterQueue <- out.String()
978977 if ttx .IsListing () && ! isOwnCollection {
979978 return
980979 }
@@ -986,17 +985,14 @@ func formatTokenTransaction(gb *gloomberg.Gloomberg, seawa *seawatcher.SeaWatche
986985 }
987986
988987 // print to terminal
989- // gb.In.PrintToTerminal <- printLine
990988 gloomberg .TerminalPrinterQueue <- printLine
991989
992990 gb .In .ParsedEvents <- & parsedEvent
993991 }
994992
995993 // add to history
996- if isOwn && (! ttx .IsLoan () && ! ttx .IsItemBid ()) { // && ttx.Action != degendb.ItemBid && ttx.Action != degendb.CollectionOffer {
997- if (! ttx .IsListing () || (ttx .IsListing () && isOwnWallet )) && currentCollection .Source != collections .FromConfiguration && gb .Stats != nil {
998- // gb.Stats.EventHistory = append(gb.Stats.EventHistory, ttx.AsHistoryTokenTransaction(currentCollection, fmtTokensHistory))
999-
994+ if isOwn && (! ttx .IsLoan () && ! ttx .IsItemBid () && ! ttx .IsCollectionOffer ()) {
995+ if ! ttx .IsListing () || (isOwnWallet && currentCollection .Source != collections .FromConfiguration ) { // && gb.Stats != nil {
1000996 // TODO: fix/remove this...
1001997 parsedEvent .Other ["fmtTokensHistory" ] = fmtTokensHistory
1002998
@@ -1014,6 +1010,8 @@ func formatTokenTransaction(gb *gloomberg.Gloomberg, seawa *seawatcher.SeaWatche
10141010 }
10151011
10161012 gbl .Log .Debugf ("trapri added event to history: %+v" , gb .RecentOwnEvents .Cardinality ())
1013+ } else {
1014+ gbl .Log .Debugf ("trapri not adding event to history: %+v" , ttx )
10171015 }
10181016 }
10191017}
0 commit comments