import 'package:dartz/dartz.dart';
import '../../../core/error/failures.dart';
import '../../entities/global_state.dart';
import '../../repositories/mining_repository.dart';

class GetGlobalState {
  final MiningRepository repository;

  GetGlobalState(this.repository);

  Future<Either<Failure, GlobalState>> call() async {
    return await repository.getGlobalState();
  }
}
