Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: delete activation, airdrop flow #1652

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading