diff --git a/oracle/src/main.sw b/oracle/src/main.sw index 4adaf73..1e6cb52 100644 --- a/oracle/src/main.sw +++ b/oracle/src/main.sw @@ -1,4 +1,12 @@ contract; +/* +███████╗██╗ ██╗ █████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ██╗ ██████╗ +██╔════╝██║ ██║██╔══██╗╚██╗ ██╔╝ ██╔════╝ ██╔══██╗████╗ ██║██╔════╝ +███████╗██║ █╗ ██║███████║ ╚████╔╝ ██║ ███╗███████║██╔██╗ ██║██║ ███╗ +╚════██║██║███╗██║██╔══██║ ╚██╔╝ ██║ ██║██╔══██║██║╚██╗██║██║ ██║ +███████║╚███╔███╔╝██║ ██║ ██║ ╚██████╔╝██║ ██║██║ ╚████║╚██████╔╝ +╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ +*/ use std::{ address::Address, diff --git a/oracle/tests/testnet_tests/main_test.rs b/oracle/tests/testnet_tests/main_test.rs index e48678c..d9cc2b4 100644 --- a/oracle/tests/testnet_tests/main_test.rs +++ b/oracle/tests/testnet_tests/main_test.rs @@ -7,7 +7,7 @@ use fuels::{ use crate::utils::{ local_tests_utils::OracleContract, - number_utils::{format_units, parse_units}, + number_utils::{format_units}, testnet_tests_utils::setup_wallet, }; diff --git a/oracle/tests/utils/local_tests_utils.rs b/oracle/tests/utils/local_tests_utils.rs index 0cb5b87..e8dcef4 100644 --- a/oracle/tests/utils/local_tests_utils.rs +++ b/oracle/tests/utils/local_tests_utils.rs @@ -1,5 +1,5 @@ use fuels::prelude::*; -use rand::prelude::{Rng, SeedableRng, StdRng}; +use rand::prelude::{Rng}; use crate::utils::number_utils::parse_units; @@ -18,9 +18,9 @@ pub mod abi_calls { contract.methods().initialize(owner).call().await.unwrap() } - pub async fn owner(contract: &OracleContract) -> Identity { - contract.methods().owner().call().await.unwrap().value - } + // pub async fn owner(contract: &OracleContract) -> Identity { + // contract.methods().owner().call().await.unwrap().value + // } pub async fn get_price(contract: &OracleContract, asset_id: ContractId) -> Price { contract @@ -126,8 +126,8 @@ pub mod test_helpers { instance } - pub async fn print_balances(wallet: &WalletUnlocked) { - let balances = wallet.get_balances().await.unwrap(); - println!("{:#?}\n", balances); - } + // pub async fn print_balances(wallet: &WalletUnlocked) { + // let balances = wallet.get_balances().await.unwrap(); + // println!("{:#?}\n", balances); + // } } diff --git a/oracle/tests/utils/testnet_tests_utils.rs b/oracle/tests/utils/testnet_tests_utils.rs index bfb4620..34f8612 100644 --- a/oracle/tests/utils/testnet_tests_utils.rs +++ b/oracle/tests/utils/testnet_tests_utils.rs @@ -1,6 +1,5 @@ use dotenv::dotenv; use fuels::prelude::*; -use std::str::FromStr; const RPC: &str = "node-beta-2.fuel.network";