Module 0x1::PriceOracleScripts
use 0x1::PriceOracle;
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);
}