OracleRead function

BcsType<Map<String, dynamic>, dynamic> OracleRead(
  1. BcsType t0
)

A source value paired with its source publication time and on-chain recording time. Raw and normalized projections preserve this envelope so consumers can apply one freshness policy. writer_digest is the digest of the transaction that accepted the observation; consumers use it to refuse pricing against an observation written in the same PTB.

Implementation

BcsType<Map<String, dynamic>, dynamic> OracleRead(
        BcsType<dynamic, dynamic> t0) =>
    Bcs.struct('${$moduleName}::OracleRead<${t0.name}>', {
      'source_timestamp_ms': SuiBcs.U64,
      'onchain_timestamp_ms': SuiBcs.U64,
      'writer_digest': Bcs.vector(SuiBcs.U8),
      'value': t0,
    });