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: xflow integration #1597

Open
wants to merge 169 commits into
base: master
Choose a base branch
from
Open

feat: xflow integration #1597

wants to merge 169 commits into from

Conversation

Merculiar
Copy link
Contributor

@Merculiar Merculiar commented Oct 24, 2024

Changes

Xflow integration:

  • Email verification
  • Phone verification
  • KYC
  • Orders

Checklist

  • PR is ready for review (if not, it should be a draft).
  • PR title follows Conventional Commits guidelines.
  • Screenshots/video added.
  • Tests added.
  • Self-review done.

@ookami-kb
Copy link
Collaborator

@Merculiar please resolve conflicts

# Conflicts:
#	packages/espressocash_app/lib/features/ramp/screens/ramp_amount_screen.dart
#	packages/espressocash_app/lib/l10n/intl_en.arb
@Merculiar
Copy link
Contributor Author

@ookami-kb resolved

Copy link
Collaborator

@ookami-kb ookami-kb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still in progress, submitting some comments meanwhile.

@@ -71,12 +76,11 @@ dependencies:
shared_preferences: ^2.2.2
sliver_tools: ^0.2.12
smooth_page_indicator: ^1.1.0
solana:
path: ../solana/
solana: ^0.31.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Request" text doesn't fit now, it shouldn't be the case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated


await fetchUserData();

// TODO(vsumin): Currently do not work on test environment
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be working now, just doesn't send the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

},
);

await _kycUserClient.init(walletAddress: _ecWallet.publicKey.toString());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will initialize in background, and if it fails, client will stay in the broken state.

return true;
} on Exception {
if (!mounted) return false;
showCpErrorSnackbar(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not necessarily wrong code, what if it's network exception?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated error handling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants