NewTransactionTypeMixin returns new instance.
(txType TransactionType)
| 28 | |
| 29 | // NewTransactionTypeMixin returns new instance. |
| 30 | func NewTransactionTypeMixin(txType TransactionType) *TransactionTypeMixin { |
| 31 | return &TransactionTypeMixin{ |
| 32 | TxType: txType, |
| 33 | Timestamp: time.Now().UTC(), |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // ContainsTransactionTypeMixin interface defines interface to detect transaction type mixin. |
| 38 | type ContainsTransactionTypeMixin interface { |
no outgoing calls