Versions in this module Expand all Collapse all v0 v0.1.0 Oct 11, 2024 Changes in this version + const OnchainConfigVersion + func RawReportContext(repctx types.ReportContext) [3][32]byte + func SplitReport(report types.Report) ([][]byte, error) + type OnchainConfigCodec struct + func (codec OnchainConfigCodec) Decode(ctx context.Context, b []byte) (median.OnchainConfig, error) + func (codec OnchainConfigCodec) DecodeToFelts(b []byte) ([]*big.Int, error) + func (codec OnchainConfigCodec) Encode(ctx context.Context, c median.OnchainConfig) ([]byte, error) + func (codec OnchainConfigCodec) EncodeFromFelt(version, min, max *big.Int) ([]byte, error) + type ReportCodec struct + func (c ReportCodec) BuildReport(ctx context.Context, oo []median.ParsedAttributedObservation) (types.Report, error) + func (c ReportCodec) MaxReportLength(ctx context.Context, n int) (int, error) + func (c ReportCodec) MedianFromReport(ctx context.Context, report types.Report) (*big.Int, error) v0.0.1-beta-test Jun 14, 2023