neo-go/pkg/neorpc/result/block_notifications.go
Roman Khimov 25e2d80363 neorpc: rename BlockNotifications fields to follow triggers exactly
Be more consistent.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2025-02-11 16:06:15 +03:00

16 lines
564 B
Go

package result
import (
"github.com/nspcc-dev/neo-go/pkg/core/state"
)
// BlockNotifications represents notifications from a block organized by
// trigger type.
type BlockNotifications struct {
// Block-level execution _before_ any transactions.
OnPersist []state.ContainedNotificationEvent `json:"onpersist,omitempty"`
// Transaction execution.
Application []state.ContainedNotificationEvent `json:"application,omitempty"`
// Block-level execution _after_ all transactions.
PostPersist []state.ContainedNotificationEvent `json:"postpersist,omitempty"`
}