v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Schema

func Schema() abi.Arguments

Schema returns this data version schema

Types

type Data

type Data struct {
	FeedID                feed.ID `abi:"feedId"`
	ObservationsTimestamp uint32
	BenchmarkPrice        *big.Int
	Bid                   *big.Int
	Ask                   *big.Int
	CurrentBlockNum       uint64
	CurrentBlockHash      [32]byte
	ValidFromBlockNum     uint64
	CurrentBlockTimestamp uint64
}

Data is the container for this schema attributes

func Decode

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

Decode decodes the serialized data bytes

func (Data) Schema

func (Data) Schema() abi.Arguments

Schema returns this data version schema

Jump to

Keyboard shortcuts

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