Skip to content

Latest commit

 

History

History
83 lines (34 loc) · 2.07 KB

oracle_data.md

File metadata and controls

83 lines (34 loc) · 2.07 KB

Module 0x3::oracle_data

Struct Data

struct Data<T> has copy, drop

Struct Metadata

struct Metadata has copy, drop

Function new

public fun new<T>(value: T, ticker: string::String, sequence_number: u64, timestamp: u64, oracle: address, identifier: string::String): oracle_data::Data<T>

Function value

public fun value<T>(data: &oracle_data::Data<T>): &T

Function oracle_address

public fun oracle_address<T>(data: &oracle_data::Data<T>): &address

Function timestamp

public fun timestamp<T>(data: &oracle_data::Data<T>): u64