Skip to content

Commit

Permalink
feat!: delete activation, airdrop flow
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangbtmrk committed Apr 26, 2024
1 parent ef0c86e commit bbd4a31
Show file tree
Hide file tree
Showing 60 changed files with 81 additions and 6,401 deletions.
2 changes: 1 addition & 1 deletion assets
6 changes: 0 additions & 6 deletions lib/common/environment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,8 @@ class Environment {

static String get tzktTestnetURL => dotenv.env['TZKT_TESTNET_URL'] ?? '';

static String get autonomyAirdropURL =>
dotenv.env['AUTONOMY_AIRDROP_URL'] ?? '';

static String get autonomyAirDropContractAddress =>
dotenv.env['AUTONOMY_AIRDROP_CONTRACT_ADDRESS'] ?? '';

static String get autonomyActivationURL =>
dotenv.env['AUTONOMY_ACTIVATION_URL'] ?? '';
}

class Secret {
Expand Down
35 changes: 0 additions & 35 deletions lib/common/injector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import 'dart:math';
import 'package:autonomy_flutter/common/environment.dart';
import 'package:autonomy_flutter/database/app_database.dart';
import 'package:autonomy_flutter/database/cloud_database.dart';
import 'package:autonomy_flutter/gateway/activation_api.dart';
import 'package:autonomy_flutter/gateway/airdrop_api.dart';
import 'package:autonomy_flutter/gateway/announcement_api.dart';
import 'package:autonomy_flutter/gateway/autonomy_api.dart';
import 'package:autonomy_flutter/gateway/branch_api.dart';
Expand All @@ -36,9 +34,7 @@ import 'package:autonomy_flutter/screen/playlists/edit_playlist/edit_playlist_bl
import 'package:autonomy_flutter/screen/playlists/view_playlist/view_playlist_bloc.dart';
import 'package:autonomy_flutter/screen/predefined_collection/predefined_collection_bloc.dart';
import 'package:autonomy_flutter/service/account_service.dart';
import 'package:autonomy_flutter/service/activation_service.dart';
import 'package:autonomy_flutter/service/address_service.dart';
import 'package:autonomy_flutter/service/airdrop_service.dart';
import 'package:autonomy_flutter/service/audit_service.dart';
import 'package:autonomy_flutter/service/auth_service.dart';
import 'package:autonomy_flutter/service/autonomy_service.dart';
Expand Down Expand Up @@ -344,36 +340,9 @@ Future<void> setup() async {
injector(),
));

injector.registerLazySingleton<AirdropService>(
() => AirdropService(
injector(),
injector(),
injector(),
injector(),
injector(),
injector(),
injector(),
injector(),
),
);

injector.registerLazySingleton<ActivationService>(() => ActivationService(
injector(),
injector(),
injector(),
));

injector
.registerLazySingleton<NotificationService>(() => NotificationService());

injector.registerLazySingleton<AirdropApi>(() => AirdropApi(
airdropDio(dioOptions.copyWith(followRedirects: true)),
baseUrl: Environment.autonomyAirdropURL));

injector.registerLazySingleton<ActivationApi>(() => ActivationApi(
airdropDio(dioOptions.copyWith(followRedirects: true)),
baseUrl: Environment.autonomyActivationURL));

injector.registerLazySingleton<FeralFileService>(() => FeralFileServiceImpl(
injector(),
injector(),
Expand All @@ -387,10 +356,6 @@ Future<void> setup() async {
injector(),
injector(),
injector(),
injector(),
injector(),
injector(),
injector(),
));

injector.registerLazySingleton<PendingTokenService>(() => PendingTokenService(
Expand Down
80 changes: 0 additions & 80 deletions lib/gateway/activation_api.dart

This file was deleted.

105 changes: 0 additions & 105 deletions lib/gateway/activation_api.g.dart

This file was deleted.

30 changes: 0 additions & 30 deletions lib/gateway/airdrop_api.dart

This file was deleted.

Loading

0 comments on commit bbd4a31

Please sign in to comment.