common

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: LGPL-3.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReportType

func GetReportType(feedID [32]byte) uint16

GetReportType returns the report type sourced from the feedID Notice: Data Stream (Asset DON) feed ID and the Data Stream feed ID are separate type of IDs, with different schemas

func GetSchema

func GetSchema() abi.Arguments

Types

type Report

type Report struct {
	FeedID [32]byte
}

Report represents a simplified Mercury report which only contains the feedID Used to extract the report type, and to choose the correct decoder

func Decode

func Decode(report []byte) (*Report, error)

Decode is made available to external users (i.e. mercury server)

Jump to

Keyboard shortcuts

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