Skip to content

Commit da3c3f2

Browse files
committed
Format code with scarb fmt
1 parent 9fcc2b0 commit da3c3f2

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

tests/test_dispute.cairo

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use contract::base::events::Events::{ContractPaused, ContractUnpaused, DisputeRaised, StakeRefunded};
1+
use contract::base::events::Events::{
2+
ContractPaused, ContractUnpaused, DisputeRaised, StakeRefunded,
3+
};
24
use contract::base::types::Status;
35
use contract::interfaces::ipredifi::{
46
IPredifiDispatcherTrait, IPredifiDisputeDispatcherTrait, IPredifiValidatorDispatcherTrait,
@@ -9,8 +11,8 @@ use core::serde::Serde;
911
use core::traits::TryInto;
1012
use openzeppelin::token::erc20::interface::{IERC20Dispatcher, IERC20DispatcherTrait};
1113
use snforge_std::{
12-
EventSpyAssertionsTrait, EventSpyTrait, spy_events, start_cheat_block_timestamp, start_cheat_caller_address,
13-
stop_cheat_block_timestamp, stop_cheat_caller_address,
14+
EventSpyAssertionsTrait, EventSpyTrait, spy_events, start_cheat_block_timestamp,
15+
start_cheat_caller_address, stop_cheat_block_timestamp, stop_cheat_caller_address,
1416
};
1517
use starknet::{ContractAddress, get_block_timestamp};
1618
use super::test_utils::{approve_tokens_for_payment, create_default_pool, deploy_predifi};

tests/test_emergency_functions.cairo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use core::integer::u256;
1313
use core::option::OptionTrait;
1414
use core::serde::Serde;
1515
use snforge_std::{
16-
ContractClassTrait, DeclareResultTrait, EventSpyAssertionsTrait, EventSpyTrait, declare, spy_events,
17-
start_cheat_block_timestamp, start_cheat_caller_address, stop_cheat_block_timestamp,
16+
ContractClassTrait, DeclareResultTrait, EventSpyAssertionsTrait, EventSpyTrait, declare,
17+
spy_events, start_cheat_block_timestamp, start_cheat_caller_address, stop_cheat_block_timestamp,
1818
stop_cheat_caller_address,
1919
};
2020
use starknet::{ContractAddress, contract_address_const, get_block_timestamp};

tests/test_pools.cairo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use core::felt252;
77
use core::serde::Serde;
88
use core::traits::TryInto;
99
use snforge_std::{
10-
EventSpyAssertionsTrait, EventSpyTrait, spy_events, start_cheat_block_timestamp, start_cheat_caller_address,
11-
stop_cheat_block_timestamp, stop_cheat_caller_address,
10+
EventSpyAssertionsTrait, EventSpyTrait, spy_events, start_cheat_block_timestamp,
11+
start_cheat_caller_address, stop_cheat_block_timestamp, stop_cheat_caller_address,
1212
};
1313
use starknet::{ContractAddress, get_block_timestamp};
1414

tests/test_user_participation.cairo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use core::array::ArrayTrait;
66
use core::serde::Serde;
77
use openzeppelin::token::erc20::interface::{IERC20Dispatcher, IERC20DispatcherTrait};
88
use snforge_std::{
9-
EventSpyTrait, spy_events, start_cheat_block_timestamp, start_cheat_caller_address, stop_cheat_block_timestamp,
10-
stop_cheat_caller_address, test_address,
9+
EventSpyTrait, spy_events, start_cheat_block_timestamp, start_cheat_caller_address,
10+
stop_cheat_block_timestamp, stop_cheat_caller_address, test_address,
1111
};
1212
use starknet::storage::{StoragePointerReadAccess, StoragePointerWriteAccess};
1313
use starknet::{ContractAddress, get_block_timestamp};

tests/test_validators.cairo

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use contract::base::events::Events::{PoolResolved, ValidatorAdded, ValidatorRemoved, ValidatorResultSubmitted};
1+
use contract::base::events::Events::{
2+
PoolResolved, ValidatorAdded, ValidatorRemoved, ValidatorResultSubmitted,
3+
};
24
use contract::base::types::Status;
35
use contract::interfaces::ipredifi::{
46
IPredifiDispatcherTrait, IPredifiValidator, IPredifiValidatorDispatcherTrait,
@@ -10,8 +12,8 @@ use core::traits::{Into, TryInto};
1012
use openzeppelin::access::accesscontrol::AccessControlComponent::InternalTrait as AccessControlInternalTrait;
1113
use openzeppelin::access::accesscontrol::DEFAULT_ADMIN_ROLE;
1214
use snforge_std::{
13-
EventSpyAssertionsTrait, EventSpyTrait, spy_events, start_cheat_block_timestamp, start_cheat_caller_address,
14-
stop_cheat_block_timestamp, stop_cheat_caller_address, test_address,
15+
EventSpyAssertionsTrait, EventSpyTrait, spy_events, start_cheat_block_timestamp,
16+
start_cheat_caller_address, stop_cheat_block_timestamp, stop_cheat_caller_address, test_address,
1517
};
1618
use starknet::storage::{MutableVecTrait, StoragePointerReadAccess};
1719
use starknet::{ContractAddress, get_block_timestamp};

0 commit comments

Comments
 (0)