@@ -4,12 +4,12 @@ use alloy_network::EthereumWallet;
4
4
use alloy_primitives:: Address ;
5
5
use alloy_primitives:: U256 ;
6
6
use anyhow:: Context ;
7
- use godfig:: { backend:: config_file:: ConfigFile , Godfig } ;
7
+ use ffs_environment:: { backend:: config_file:: ConfigFile , ffs_environment} ;
8
+ use mcr_config:: Config ;
8
9
use mcr_settlement_client:: eth_client:: Client ;
9
10
use mcr_settlement_client:: eth_client:: { MOVEToken , MovementStaking , MCR } ;
10
11
use mcr_settlement_client:: McrSettlementClientOperations ;
11
- use mcr_settlement_config:: Config ;
12
- use movement_types:: block:: { BlockCommitment , Commitment , Id } ;
12
+ use mcr_types:: block_commitment:: { BlockCommitment , Commitment , Id } ;
13
13
use std:: str:: FromStr ;
14
14
use tokio_stream:: StreamExt ;
15
15
use tracing:: info;
@@ -219,10 +219,10 @@ pub async fn main() -> Result<(), anyhow::Error> {
219
219
let dot_movement = dot_movement:: DotMovement :: try_from_env ( ) ?;
220
220
let config_file = dot_movement. try_get_or_create_config_file ( ) . await ?;
221
221
222
- // get a matching godfig object
223
- let godfig : Godfig < Config , ConfigFile > =
224
- Godfig :: new ( ConfigFile :: new ( config_file) , vec ! [ "mcr_settlement" . to_string( ) ] ) ;
225
- let config: Config = godfig . try_wait_for_ready ( ) . await ?;
222
+ // get a matching ffs_environment object
223
+ let ffs_environment : ffs_environment < Config , ConfigFile > =
224
+ ffs_environment :: new ( ConfigFile :: new ( config_file) , vec ! [ "mcr_settlement" . to_string( ) ] ) ;
225
+ let config: Config = ffs_environment . try_wait_for_ready ( ) . await ?;
226
226
let rpc_url = config. eth_rpc_connection_url ( ) ;
227
227
228
228
let testing_config = config. testing . as_ref ( ) . context ( "Testing config not defined." ) ?;
@@ -239,7 +239,7 @@ pub async fn main() -> Result<(), anyhow::Error> {
239
239
// Build client 1 and send the first commitment.
240
240
//let settlement_config =
241
241
let config1 = Config {
242
- settle : mcr_settlement_config :: common:: settlement:: Config {
242
+ settle : mcr_config :: common:: settlement:: Config {
243
243
signer_private_key : testing_config
244
244
. well_known_account_private_keys
245
245
. get ( 1 )
@@ -265,7 +265,7 @@ pub async fn main() -> Result<(), anyhow::Error> {
265
265
266
266
// Build client 2 and send the second commitment.
267
267
let config2 = Config {
268
- settle : mcr_settlement_config :: common:: settlement:: Config {
268
+ settle : mcr_config :: common:: settlement:: Config {
269
269
signer_private_key : testing_config
270
270
. well_known_account_private_keys
271
271
. get ( 2 )
0 commit comments