Skip to content

Commit a5f28e8

Browse files
authored
Merge branch 'release/7.56.0' into cp-c26469d9-release-7.56.0
2 parents b38a63d + 451f9a3 commit a5f28e8

File tree

65 files changed

+22957
-18021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+22957
-18021
lines changed

.depcheckrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ ignores:
118118
- '@react-native/typescript-config'
119119
- 'react-native-pager-view'
120120
# this dependency can probably be removed, needs investigation
121-
- '@types/react-test-renderer'
121+
- '@types/react-test-renderer'

.github/workflows/create-release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ on:
3838
PR_TOKEN:
3939
required: false
4040
GCP_RLS_SHEET_ACCOUNT_BASE64:
41-
required: false
41+
required: false
4242

4343
jobs:
4444
generate-build-version:

.iyarc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ GHSA-c76h-2ccp-4975
55
# https://github.com/advisories/GHSA-pq67-2wwv-3xjx
66
GHSA-pq67-2wwv-3xjx
77
# https://github.com/advisories/GHSA-8cj5-5rvv-wf4v
8-
GHSA-8cj5-5rvv-wf4v
8+
GHSA-8cj5-5rvv-wf4v

CHANGELOG.md

Lines changed: 571 additions & 1 deletion
Large diffs are not rendered by default.

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ android {
188188
minSdkVersion rootProject.ext.minSdkVersion
189189
targetSdkVersion rootProject.ext.targetSdkVersion
190190
versionName "7.56.0"
191-
versionCode 2522
191+
versionCode 2530
192192
testBuildType System.getProperty('testBuildType', 'debug')
193193
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
194194
manifestPlaceholders.MM_BRANCH_KEY_TEST = "$System.env.MM_BRANCH_KEY_TEST"

app/components/UI/Ramp/Deposit/Views/Root/GetStarted/GetStarted.test.tsx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { fireEvent, screen } from '@testing-library/react-native';
33
import GetStarted from './GetStarted';
44
import { useDepositSDK } from '../../../sdk';
55
import { getDepositNavbarOptions } from '../../../../../Navbar';
6+
import useDepositFeatureFlags from '../../../hooks/useDepositFeatureFlags';
67
import renderWithProvider from '../../../../../../../util/test/renderWithProvider';
78

89
jest.mock('../../../sdk', () => ({
@@ -13,6 +14,8 @@ jest.mock('../../../../../Navbar', () => ({
1314
getDepositNavbarOptions: jest.fn().mockReturnValue({}),
1415
}));
1516

17+
jest.mock('../../../hooks/useDepositFeatureFlags');
18+
1619
const mockSetOptions = jest.fn();
1720
const mockReset = jest.fn();
1821

@@ -37,6 +40,14 @@ describe('GetStarted', () => {
3740
getStarted: false,
3841
setGetStarted: mockSetGetStarted,
3942
});
43+
44+
(
45+
useDepositFeatureFlags as jest.MockedFunction<
46+
typeof useDepositFeatureFlags
47+
>
48+
).mockReturnValue({
49+
metamaskUsdEnabled: false,
50+
});
4051
});
4152

4253
it('render matches snapshot', () => {
@@ -70,4 +81,34 @@ describe('GetStarted', () => {
7081
fireEvent.press(getStartedButton);
7182
expect(mockSetGetStarted).toHaveBeenCalledWith(true);
7283
});
84+
85+
describe('MUSD feature flag', () => {
86+
it('displays USDC content when MUSD feature flag is disabled', () => {
87+
(
88+
useDepositFeatureFlags as jest.MockedFunction<
89+
typeof useDepositFeatureFlags
90+
>
91+
).mockReturnValue({
92+
metamaskUsdEnabled: false,
93+
});
94+
95+
renderWithProvider(<GetStarted />);
96+
97+
expect(screen.getByText('Starting is easy with USDC')).toBeOnTheScreen();
98+
});
99+
100+
it('displays MUSD content when MUSD feature flag is enabled', () => {
101+
(
102+
useDepositFeatureFlags as jest.MockedFunction<
103+
typeof useDepositFeatureFlags
104+
>
105+
).mockReturnValue({
106+
metamaskUsdEnabled: true,
107+
});
108+
109+
renderWithProvider(<GetStarted />);
110+
111+
expect(screen.getByText('Starting is easy with mUSD')).toBeOnTheScreen();
112+
});
113+
});
73114
});

app/components/UI/Ramp/Deposit/Views/Root/GetStarted/GetStarted.tsx

Lines changed: 39 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import ScreenLayout from '../../../../Aggregator/components/ScreenLayout';
1111
import { getDepositNavbarOptions } from '../../../../../Navbar';
1212
import { useStyles } from '../../../../../../../component-library/hooks';
1313
import getStartedIcon from '../../../assets/deposit-get-started-illustration.png';
14+
import getStartedIconMUSD from '../../../assets/deposit-get-started-illustration-musd.png';
15+
import useDepositFeatureFlags from '../../../hooks/useDepositFeatureFlags';
1416

1517
import Button, {
1618
ButtonSize,
@@ -22,27 +24,43 @@ import Icon, {
2224
IconSize,
2325
} from '../../../../../../../component-library/components/Icons/Icon';
2426

25-
const bulletPoints = [
26-
{
27-
title: strings('deposit.get_started.bullet_1_title'),
28-
description: strings('deposit.get_started.bullet_1_description'),
29-
},
30-
{
31-
title: strings('deposit.get_started.bullet_2_title'),
32-
description: strings('deposit.get_started.bullet_2_description'),
33-
},
34-
{
35-
title: strings('deposit.get_started.bullet_3_title'),
36-
description: strings('deposit.get_started.bullet_3_description'),
37-
},
38-
];
39-
4027
const GetStarted: React.FC = () => {
4128
const navigation = useNavigation();
4229

4330
const { styles, theme } = useStyles(styleSheet, {});
4431

4532
const { getStarted, setGetStarted } = useDepositSDK();
33+
const { metamaskUsdEnabled } = useDepositFeatureFlags();
34+
35+
const bulletPoints = metamaskUsdEnabled
36+
? [
37+
{
38+
title: strings('deposit.get_started.bullet_1_title_musd'),
39+
description: strings('deposit.get_started.bullet_1_description_musd'),
40+
},
41+
{
42+
title: strings('deposit.get_started.bullet_2_title_musd'),
43+
description: strings('deposit.get_started.bullet_2_description_musd'),
44+
},
45+
{
46+
title: strings('deposit.get_started.bullet_3_title_musd'),
47+
description: strings('deposit.get_started.bullet_3_description_musd'),
48+
},
49+
]
50+
: [
51+
{
52+
title: strings('deposit.get_started.bullet_1_title'),
53+
description: strings('deposit.get_started.bullet_1_description'),
54+
},
55+
{
56+
title: strings('deposit.get_started.bullet_2_title'),
57+
description: strings('deposit.get_started.bullet_2_description'),
58+
},
59+
{
60+
title: strings('deposit.get_started.bullet_3_title'),
61+
description: strings('deposit.get_started.bullet_3_description'),
62+
},
63+
];
4664

4765
useEffect(() => {
4866
navigation.setOptions(
@@ -70,16 +88,19 @@ const GetStarted: React.FC = () => {
7088
<ScreenLayout.Content>
7189
<View style={styles.getStartedImageWrapper}>
7290
<Image
73-
source={getStartedIcon}
91+
source={
92+
metamaskUsdEnabled ? getStartedIconMUSD : getStartedIcon
93+
}
7494
style={styles.getStartedImage}
7595
resizeMode="contain"
7696
/>
7797
</View>
7898
</ScreenLayout.Content>
79-
8099
<ScreenLayout.Content>
81100
<Text variant={TextVariant.HeadingLG} style={styles.title}>
82-
{strings('deposit.get_started.title')}
101+
{metamaskUsdEnabled
102+
? strings('deposit.get_started.title_musd')
103+
: strings('deposit.get_started.title')}
83104
</Text>
84105
{bulletPoints.map((bulletPoint, index) => (
85106
<View key={index} style={styles.bulletPointContainer}>
81.3 KB
Loading

app/components/UI/Ramp/Deposit/constants/cryptoCurrencies.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ export const CONDITIONALLY_SUPPORTED_DEPOSIT_TOKENS: DepositCryptoCurrency[] = [
157157
USDC_LINEA_TOKEN,
158158
USDC_BASE_TOKEN,
159159
USDC_SOLANA_TOKEN,
160-
USDT_LINEA_TOKEN,
161-
USDT_BASE_TOKEN,
160+
//USDT_LINEA_TOKEN,
161+
//USDT_BASE_TOKEN,
162162
USDT_SOLANA_TOKEN,
163163
];
164164

app/components/UI/Ramp/Deposit/orderProcessor/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ describe('processDepositOrder', () => {
294294
cryptoAmount: 0.012361263,
295295
cryptoCurrency: 'BTC',
296296
fiatCurrency: 'USD',
297-
network: 'ethreum',
297+
network: 'ethereum',
298298
status: 'COMPLETED',
299299
orderType: 'DEPOSIT',
300300
walletAddress: '0x1234',

0 commit comments

Comments
 (0)