reputation

package
v0.0.0-...-79ba347 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: GPL-3.0 Imports: 6 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 ParsePut

ParsePut from notification into reputation event structure.

func ParsePutNotary

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

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