subscriptions

package
v0.99.1-pre Latest Latest
Warning

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

Go to latest
Published: Jun 3, 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 a P2PNotaryRequest event either added or removed from the 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 a wrapper for a notification from script execution.

func (*NotificationEvent) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface.

func (*NotificationEvent) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface.

Jump to

Keyboard shortcuts

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