MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewTransactionTypeMixin

Function NewTransactionTypeMixin

blockproducer/interfaces/mixins.go:30–35  ·  view source on GitHub ↗

NewTransactionTypeMixin returns new instance.

(txType TransactionType)

Source from the content-addressed store, hash-verified

28
29// NewTransactionTypeMixin returns new instance.
30func 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.
38type ContainsTransactionTypeMixin interface {

Callers 4

NewUpdatePermissionFunction · 0.92
NewIssueKeysFunction · 0.92
NewProvideServiceFunction · 0.92
TestTransactionTypeMixinFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestTransactionTypeMixinFunction · 0.68