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

refactor(fiatExchanges): cleanup types #6293

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

satish-ravi
Copy link
Contributor

Description

Moved types from fiatExchanges/utils to fiatExchanges/types and removed unused types. Left some legacy types that will be removed soon in utils

Test plan

CI

Related issues

Backwards compatibility

Yes

Network scalability

N/A

Comment on lines -21 to -39
export enum FiatExchangeFlow {
CashIn = 'CashIn',
CashOut = 'CashOut',
Spend = 'Spend',
}

export enum CICOFlow {
CashIn = 'CashIn',
CashOut = 'CashOut',
}

export enum PaymentMethod {
Bank = 'Bank',
Card = 'Card',
Coinbase = 'Coinbase',
MobileMoney = 'MobileMoney', // legacy mobile money
FiatConnectMobileMoney = 'FiatConnectMobileMoney',
Airtime = 'Airtime',
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to ./types

url: string
}

export type SimplexQuote = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to ./types

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.01%. Comparing base (8519466) to head (637455a).
Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6293      +/-   ##
==========================================
- Coverage   89.02%   89.01%   -0.01%     
==========================================
  Files         739      739              
  Lines       31610    31607       -3     
  Branches     5571     5879     +308     
==========================================
- Hits        28140    28135       -5     
- Misses       3425     3427       +2     
  Partials       45       45              
Files with missing lines Coverage Δ
src/analytics/Properties.tsx 100.00% <ø> (ø)
src/app/saga.ts 70.61% <100.00%> (ø)
src/earn/EarnConfirmationScreen.tsx 97.54% <100.00%> (ø)
src/earn/EarnEnterAmount.tsx 88.85% <100.00%> (ø)
...c/earn/poolInfoScreen/BeforeDepositBottomSheet.tsx 100.00% <100.00%> (ø)
src/fiatExchanges/ExchangeQR.tsx 77.77% <100.00%> (ø)
src/fiatExchanges/FiatExchangeAmount.tsx 81.89% <100.00%> (+0.15%) ⬆️
.../fiatExchanges/FiatExchangeCurrencyBottomSheet.tsx 93.65% <100.00%> (ø)
src/fiatExchanges/PaymentMethodSection.tsx 96.29% <100.00%> (ø)
src/fiatExchanges/SelectProvider.tsx 92.12% <100.00%> (ø)
... and 20 more

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8519466...637455a. Read the comment docs.

@satish-ravi satish-ravi added this pull request to the merge queue Dec 4, 2024
Merged via the queue into main with commit 673b177 Dec 5, 2024
15 checks passed
@satish-ravi satish-ravi deleted the satish/act-1421-types-cleanup branch December 5, 2024 00:12
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.

2 participants