Skip to content

Commit

Permalink
♻️ added signature and removed unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey committed Dec 23, 2022
1 parent 5b717da commit 79853e9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
8 changes: 8 additions & 0 deletions oracle/src/main.sw
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
contract;
/*
███████╗██╗ ██╗ █████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ██╗ ██████╗
██╔════╝██║ ██║██╔══██╗╚██╗ ██╔╝ ██╔════╝ ██╔══██╗████╗ ██║██╔════╝
███████╗██║ █╗ ██║███████║ ╚████╔╝ ██║ ███╗███████║██╔██╗ ██║██║ ███╗
╚════██║██║███╗██║██╔══██║ ╚██╔╝ ██║ ██║██╔══██║██║╚██╗██║██║ ██║
███████║╚███╔███╔╝██║ ██║ ██║ ╚██████╔╝██║ ██║██║ ╚████║╚██████╔╝
╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝
*/

use std::{
address::Address,
Expand Down
2 changes: 1 addition & 1 deletion oracle/tests/testnet_tests/main_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
16 changes: 8 additions & 8 deletions oracle/tests/utils/local_tests_utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use fuels::prelude::*;
use rand::prelude::{Rng, SeedableRng, StdRng};
use rand::prelude::{Rng};

use crate::utils::number_utils::parse_units;

Expand All @@ -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
Expand Down Expand Up @@ -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);
// }
}
1 change: 0 additions & 1 deletion oracle/tests/utils/testnet_tests_utils.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use dotenv::dotenv;
use fuels::prelude::*;
use std::str::FromStr;

const RPC: &str = "node-beta-2.fuel.network";

Expand Down

0 comments on commit 79853e9

Please sign in to comment.