Skip to content

Commit

Permalink
refactor: update ramp structure (#1251)
Browse files Browse the repository at this point in the history
  • Loading branch information
ookami-kb authored Jan 26, 2024
1 parent 7315868 commit f6699d9
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:injectable/injectable.dart';
import 'package:retrofit/retrofit.dart';

import '../../../../config.dart';
import '../../../../../config.dart';

part 'coinflow_api_client.freezed.dart';
part 'coinflow_api_client.g.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import 'package:injectable/injectable.dart';
import 'package:rxdart/rxdart.dart';
import 'package:solana/encoder.dart';

import '../../../../data/db/db.dart';
import '../../../accounts/models/ec_wallet.dart';
import '../../data/my_database_ext.dart';
import '../../src/models/ramp_watcher.dart';
import '../../../../../data/db/db.dart';
import '../../../../accounts/models/ec_wallet.dart';
import '../../../data/my_database_ext.dart';
import '../../../src/models/ramp_watcher.dart';
import '../data/coinflow_api_client.dart';

@injectable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import '../../../../tokens/token.dart';
import '../../../models/ramp_partner.dart';
import '../../../screens/off_ramp_order_screen.dart';
import '../../../services/off_ramp_order_service.dart';
import '../../models/profile_data.dart';
import '../../../src/models/profile_data.dart';

extension BuildContextExt on BuildContext {
Future<void> launchCoinflowOffRamp({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:flutter/material.dart';

import '../../../../../config.dart';
import '../../../../../ui/web_view_screen.dart';
import '../../models/profile_data.dart';
import '../../../src/models/profile_data.dart';

extension BuildContextExt on BuildContext {
void launchGuardarianOnRamp({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:injectable/injectable.dart';
import 'package:retrofit/http.dart';

import '../../../../../config.dart';
import '../../../../../../config.dart';

part 'kado_api_client.freezed.dart';
part 'kado_api_client.g.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import 'package:drift/drift.dart';
import 'package:injectable/injectable.dart';
import 'package:rxdart/rxdart.dart';

import '../../../../data/db/db.dart';
import '../../data/my_database_ext.dart';
import '../../src/models/ramp_watcher.dart';
import '../../../../../data/db/db.dart';
import '../../../data/my_database_ext.dart';
import '../../../src/models/ramp_watcher.dart';
import '../data/kado_api_client.dart';

@injectable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import 'package:drift/drift.dart';
import 'package:injectable/injectable.dart';
import 'package:rxdart/rxdart.dart';

import '../../../../../core/currency.dart';
import '../../../../../data/db/db.dart';
import '../../data/my_database_ext.dart';
import '../../src/models/ramp_watcher.dart';
import '../../../../../../core/currency.dart';
import '../../../../../../data/db/db.dart';
import '../../../data/my_database_ext.dart';
import '../../../src/models/ramp_watcher.dart';
import '../data/kado_api_client.dart';

@injectable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import '../../../../../core/currency.dart';
import '../../../../../di.dart';
import '../../../../../ui/web_view_screen.dart';
import '../../../data/on_ramp_order_service.dart';
import '../../../kado/data/kado_api_client.dart';
import '../../../models/ramp_partner.dart';
import '../../../screens/off_ramp_order_screen.dart';
import '../../../screens/on_ramp_order_screen.dart';
import '../../../services/off_ramp_order_service.dart';
import '../../models/profile_data.dart';
import '../../models/ramp_type.dart';
import '../../screens/ramp_amount_screen.dart';
import '../../../src/models/profile_data.dart';
import '../../../src/models/ramp_type.dart';
import '../../../src/screens/ramp_amount_screen.dart';
import '../data/kado_api_client.dart';

extension BuildContextExt on BuildContext {
Future<void> launchKadoOnRamp({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:ramp_flutter/ramp_flutter.dart';

import '../../../../../config.dart';
import '../../../../balances/widgets/context_ext.dart';
import '../../models/profile_data.dart';
import '../../../src/models/profile_data.dart';

extension BuildContextExt on BuildContext {
void launchRampNetworkOnRamp({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:espressocash_api/espressocash_api.dart';
import 'package:injectable/injectable.dart';

import '../../../../core/currency.dart';
import '../../../../../core/currency.dart';

@injectable
class ScalexRepository {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import 'package:espressocash_api/espressocash_api.dart';
import 'package:injectable/injectable.dart';
import 'package:rxdart/rxdart.dart';

import '../../../../../data/db/db.dart';
import '../../data/my_database_ext.dart';
import '../../src/models/ramp_watcher.dart';
import '../../../../../../data/db/db.dart';
import '../../../data/my_database_ext.dart';
import '../../../src/models/ramp_watcher.dart';
import '../data/scalex_repository.dart';

@injectable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import 'package:espressocash_api/espressocash_api.dart';
import 'package:injectable/injectable.dart';
import 'package:rxdart/rxdart.dart';

import '../../../../../data/db/db.dart';
import '../../data/my_database_ext.dart';
import '../../src/models/ramp_watcher.dart';
import '../../../../../../data/db/db.dart';
import '../../../data/my_database_ext.dart';
import '../../../src/models/ramp_watcher.dart';
import '../data/scalex_repository.dart';

@injectable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import '../../../../../ui/snackbar.dart';
import '../../../../../ui/web_view_screen.dart';
import '../../../data/on_ramp_order_service.dart';
import '../../../models/ramp_partner.dart';
import '../../../scalex/data/scalex_repository.dart';
import '../../../screens/off_ramp_order_screen.dart';
import '../../../screens/on_ramp_order_screen.dart';
import '../../../services/off_ramp_order_service.dart';
import '../../models/profile_data.dart';
import '../../models/ramp_type.dart';
import '../../screens/ramp_amount_screen.dart';
import '../../../src/models/profile_data.dart';
import '../../../src/models/ramp_type.dart';
import '../../../src/screens/ramp_amount_screen.dart';
import '../data/scalex_repository.dart';

extension BuildContextExt on BuildContext {
Future<void> launchScalexRamp({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import '../../tokens/token_list.dart';
import '../../transactions/models/tx_results.dart';
import '../../transactions/services/resign_tx.dart';
import '../../transactions/services/tx_sender.dart';
import '../coinflow/services/coinflow_off_ramp_order_watcher.dart';
import '../kado/services/kado_off_ramp_order_watcher.dart';
import '../models/ramp_partner.dart';
import '../scalex/services/scalex_off_ramp_order_watcher.dart';
import '../partners/coinflow/services/coinflow_off_ramp_order_watcher.dart';
import '../partners/kado/services/kado_off_ramp_order_watcher.dart';
import '../partners/scalex/services/scalex_off_ramp_order_watcher.dart';
import '../src/models/ramp_watcher.dart';

typedef OffRampOrder = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import 'package:flutter/widgets.dart';

import '../../../di.dart';
import '../data/on_ramp_order_service.dart';
import '../kado/services/kado_on_ramp_order_watcher.dart';
import '../models/ramp_partner.dart';
import '../scalex/services/scalex_on_ramp_order_watcher.dart';
import '../partners/kado/services/kado_on_ramp_order_watcher.dart';
import '../partners/scalex/services/scalex_on_ramp_order_watcher.dart';
import '../src/models/ramp_watcher.dart';

export '../data/on_ramp_order_service.dart' show OnRampOrder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ import '../../accounts/models/account.dart';
import '../../country_picker/models/country.dart';
import '../../profile/data/profile_repository.dart';
import '../models/ramp_partner.dart';
import '../partners/coinflow/widgets/launch.dart';
import '../partners/guardarian/widgets/launch.dart';
import '../partners/kado/widgets/launch.dart';
import '../partners/ramp_network/widgets/launch.dart';
import '../partners/scalex/widgets/launch.dart';
import '../src/models/profile_data.dart';
import '../src/models/ramp_type.dart';
import '../src/screens/ramp_onboarding_screen.dart';
import '../src/screens/ramp_partner_select_screen.dart';
import '../src/widgets/off_ramp_bottom_sheet.dart';
import '../src/widgets/partners/coinflow.dart';
import '../src/widgets/partners/guardarian.dart';
import '../src/widgets/partners/kado.dart';
import '../src/widgets/partners/ramp_network.dart';
import '../src/widgets/partners/scalex.dart';

class AddCashButton extends StatelessWidget {
const AddCashButton({
Expand Down

0 comments on commit f6699d9

Please sign in to comment.