subscriptions

package
v0.98.3-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotaryRequestEvent

type NotaryRequestEvent struct {
	Type          mempoolevent.Type         `json:"type"`
	NotaryRequest *payload.P2PNotaryRequest `json:"notaryrequest"`
}

NotaryRequestEvent represents P2PNotaryRequest event either added or removed from notary payload pool.

type NotificationEvent

type NotificationEvent struct {
	// Container hash is the hash of script container which is either a block or a transaction.
	Container util.Uint256
	state.NotificationEvent
}

NotificationEvent represents wrapper for notification from script execution.

func (*NotificationEvent) MarshalJSON

func (ne *NotificationEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements implements json.Marshaler interface.

func (*NotificationEvent) UnmarshalJSON

func (ne *NotificationEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements implements json.Unmarshaler interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL