reputation

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PutNotaryEvent is method name for reputation put operations
	// in `Reputation` contract. Is used as identifier for notary
	// put reputation requests.
	PutNotaryEvent = "put"
)

Variables

This section is empty.

Functions

func ParsePutNotary added in v0.25.0

func ParsePutNotary(ne event.NotaryEvent) (event.Event, error)

ParsePutNotary from NotaryEvent into reputation event structure.

Types

type Put

type Put struct {
	// contains filtered or unexported fields
}

Put structure of reputation.reputationPut notification from morph chain.

func (Put) Epoch

func (p Put) Epoch() uint64

Epoch returns epoch value of reputation data.

func (Put) MorphEvent

func (Put) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Put) NotaryRequest added in v0.25.0

func (p Put) NotaryRequest() *payload.P2PNotaryRequest

NotaryRequest returns raw notary request if notification was received via notary service. Otherwise, returns nil.

func (Put) PeerID

func (p Put) PeerID() reputation.PeerID

PeerID returns peer id of reputation data.

func (Put) Value

func (p Put) Value() reputation.GlobalTrust

Value returns reputation structure.

Jump to

Keyboard shortcuts

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