Skip to content

Latest commit

 

History

History
88 lines (40 loc) · 2.27 KB

File metadata and controls

88 lines (40 loc) · 2.27 KB

Module 0x1::PriceOracleScripts

Function register_oracle

public entry fun register_oracle<OracleT: copy, drop, store>(sender: signer, precision: u8)
Implementation
public entry fun register_oracle<OracleT: copy+store+drop>(sender: signer, precision: u8){
    PriceOracle::register_oracle_entry<OracleT>(sender, precision);
}

Function init_data_source

public entry fun init_data_source<OracleT: copy, drop, store>(sender: signer, init_value: u128)
Implementation
public entry fun init_data_source<OracleT: copy+store+drop>(sender: signer, init_value: u128){
    PriceOracle::init_data_source_entry<OracleT>(sender, init_value);
}

Function update

public entry fun update<OracleT: copy, drop, store>(sender: signer, value: u128)
Implementation
public entry fun update<OracleT: copy+store+drop>(sender: signer, value: u128){
    PriceOracle::update_entry<OracleT>(sender, value);
}