github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/bft/state/eventstore/store.go (about) 1 package eventstore 2 3 import "github.com/gnolang/gno/tm2/pkg/bft/types" 4 5 const ( 6 StatusOn = "on" 7 StatusOff = "off" 8 ) 9 10 // TxEventStore stores transaction events for later processing 11 type TxEventStore interface { 12 // Start starts the transaction event store 13 Start() error 14 15 // Stop stops the transaction event store 16 Stop() error 17 18 // GetType returns the event store type 19 GetType() string 20 21 // Append analyzes and appends a single transaction 22 // to the event store 23 Append(result types.TxResult) error 24 }