Skip to content

Commit 3a1a16a

Browse files
committed
DO NOT COmmiT
2 parents 85ccd96 + 72cdf98 commit 3a1a16a

482 files changed

Lines changed: 50204 additions & 20036 deletions

File tree

Some content is hidden

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

.depcheckrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ ignores:
1111
- 'babel-plugin-inline-import'
1212
# This is used in index.d.ts
1313
- '@sentry/react'
14+
<<<<<<< HEAD
1415
# These dependencies are needed for react-compiler - https://react.dev/learn/react-compiler#using-react-compiler-with-react-17-or-18
1516
- 'react-compiler-runtime'
17+
=======
18+
>>>>>>> stable
1619
# This is used on the patch for TokenRatesController of Assets controllers, for we to be able to use the last version of it
1720
- cockatiel
1821

.iyarc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# https://github.com/advisories/GHSA-c76h-2ccp-4975 This is temporarily ignored, will be fixed by updating yarn to v3 in this PR: https://github.com/MetaMask/metamask-mobile/pull/14477
2-
GHSA-c76h-2ccp-4975
2+
<<<<<<< HEAD
3+
GHSA-c76h-2ccp-4975
4+
=======
5+
GHSA-c76h-2ccp-4975
6+
>>>>>>> stable

.js.env.example

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ export MM_PERMISSIONS_SETTINGS_V1_ENABLED=""
112112
## Stablecoin Lending
113113
export MM_STABLECOIN_LENDING_UI_ENABLED="true"
114114
export MM_STABLE_COIN_SERVICE_INTERRUPTION_BANNER_ENABLED="true"
115+
<<<<<<< HEAD
115116
### Redesigned stablecoin lending
116117
export MM_STABLECOIN_LENDING_UI_ENABLED_REDESIGNED="true"
118+
=======
119+
>>>>>>> stable
117120
## Pooled-Staking
118121
export MM_POOLED_STAKING_ENABLED="true"
119122
export MM_POOLED_STAKING_SERVICE_INTERRUPTION_BANNER_ENABLED="true"
@@ -122,15 +125,24 @@ export MM_POOLED_STAKING_SERVICE_INTERRUPTION_BANNER_ENABLED="true"
122125
# Remote feature flag values won't be updated,
123126
# and selectors should return their fallback values
124127
export OVERRIDE_REMOTE_FEATURE_FLAGS="false"
128+
<<<<<<< HEAD
129+
=======
130+
# Public key used to validate EIP-7702 contract signatures from LaunchDarkly
131+
export EIP_7702_PUBLIC_KEY=""
132+
>>>>>>> stable
125133

126134
#Bridge flag to toggle between dev and prod API
127135
export BRIDGE_USE_DEV_APIS="false"
128136

137+
<<<<<<< HEAD
129138
export MM_BRIDGE_ENABLED="true"
130139

131140
# Set ramps environment to staging.
132141
# This is required when developing or checking existing ramps tests locally.
133142
export RAMP_INTERNAL_BUILD="true"
134143

135144
# Enable 7702 locally
136-
export MM_SMART_ACCOUNT_UI_ENABLED="true"
145+
export MM_SMART_ACCOUNT_UI_ENABLED="true"
146+
=======
147+
export MM_BRIDGE_ENABLED="true"
148+
>>>>>>> stable

CHANGELOG.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- feat(bridge): add "hardware wallets not supported" error when attempting Solana swap/bridge ([#15743](https://github.com/MetaMask/metamask-mobile/pull/15743))
1111
- feat(bridge): fetch all tokens for bridge input([#15993](https://github.com/MetaMask/metamask-mobile/pull/15993))
1212
- fix(bridge): don't show currency value unless amount is above zero ([#15798](https://github.com/MetaMask/metamask-mobile/pull/15798))
13+
<<<<<<< HEAD
1314
- fix(bridge): prevent crash when viewing Solana asset details ([#16770](https://github.com/MetaMask/metamask-mobile/pull/16770))
15+
=======
16+
17+
## [7.47.2]
18+
19+
### Fixed
20+
- chore(runway): cherry-pick chore: bump pbkdf ([#16629](https://github.com/MetaMask/metamask-mobile/pull/16629))
21+
- chore(runway): cherry-pick fix: cp-7.47.2 migrate caip permission to include sessionProperties value ([#16643](https://github.com/MetaMask/metamask-mobile/pull/16643))
22+
- chore(runway): cherry-pick fix: account address missmatch with identity ([#16683](https://github.com/MetaMask/metamask-mobile/pull/16683))
23+
- chore(runway): cherry-pick fix: Remove delay for dispatch of INIT_BG_STATE_KEY ([#16703](https://github.com/MetaMask/metamask-mobile/pull/16703))
24+
>>>>>>> stable
1425

1526
## [7.47.1]
1627

1728
### Fixed
1829
- fix: ensure inpage provider retries any pending requests sent before BackgroundBridge fully initialized ([#16349](https://github.com/MetaMask/metamask-mobile/pull/16349))
1930

31+
<<<<<<< HEAD
2032
## [7.47.0]
2133

2234
### Added
@@ -136,6 +148,72 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
136148

137149
### Added
138150

151+
=======
152+
## [7.47.0]
153+
154+
### Added
155+
156+
- feat: migrate eth_accounts and permittedChains to CAIP-25 endowment ([#13970](https://github.com/MetaMask/metamask-mobile/pull/13970))
157+
- feat(identity): rebrand "Profile syncing" to "Backup and sync", adding a dedicated settings menu and more ([#15003](https://github.com/MetaMask/metamask-mobile/pull/15003))
158+
- feat(bridge): implement quote expiration handling in Bridge feature ([#14872](https://github.com/MetaMask/metamask-mobile/pull/14872))
159+
- feat(bridge): use dynamic slippage for single-chain Solana swaps ([#14805](https://github.com/MetaMask/metamask-mobile/pull/14805))
160+
- feat(bridge): enhance bridging with network fee estimation and UI improvements ([#14786](https://github.com/MetaMask/metamask-mobile/pull/14786))
161+
- feat(ramp): auto-select region ([#14780](https://github.com/MetaMask/metamask-mobile/pull/14780))
162+
- feat(bridge): add solana chain support and improve bridge state management ([#14713](https://github.com/MetaMask/metamask-mobile/pull/14713))
163+
- feat(bridge): add error handling and input management for bridge quotes ([#14693](https://github.com/MetaMask/metamask-mobile/pull/14693))
164+
- feat(multi-srp): enable multi-srp in main and beta ([#14558](https://github.com/MetaMask/metamask-mobile/pull/14558))
165+
- feat(ramp): Update ramp data flow to fetch cryptos before payment methods ([#14437](https://github.com/MetaMask/metamask-mobile/pull/14437))
166+
- feat(bridge): add destination account picker ([#14656](https://github.com/MetaMask/metamask-mobile/pull/14656))
167+
- feat(bridge): add Solana assets to bridge token pickers ([#14365](https://github.com/MetaMask/metamask-mobile/pull/14365))
168+
- feat: add AppMetadataController controller ([#14513](https://github.com/MetaMask/metamask-mobile/pull/14513))
169+
- feat(bridge): implement bridge quote fetching ([#14413](https://github.com/MetaMask/metamask-mobile/pull/14413))
170+
- feat(multi-srp): add e2e tests ([#14583](https://github.com/MetaMask/metamask-mobile/pull/14583))
171+
- feat(bridge): fetch token metadata for Bridge token pickers if not already available ([#14699](https://github.com/MetaMask/metamask-mobile/pull/14699))
172+
- feat(bridge): use `BridgeStatusController` for EVM and Solana Bridge transaction submission ([#14708](https://github.com/MetaMask/metamask-mobile/pull/14708))
173+
- feat(multi-srp): add discover accounts to MultichainWalletSnapClient ([#14727](https://github.com/MetaMask/metamask-mobile/pull/14727))
174+
- feat: real time dapp scanning BrowserTab ([#14515](https://github.com/MetaMask/metamask-mobile/pull/14515))
175+
- feat(multi-srp): add new srp pills labels ([#14829](https://github.com/MetaMask/metamask-mobile/pull/14829))
176+
- feat(earn): add pooled-staking and stablecoin lending remote feature flags ([#14660](https://github.com/MetaMask/metamask-mobile/pull/14660))
177+
- feat: feat: AccountConnect and AccountApproval use dapp scanning ([#14514](https://github.com/MetaMask/metamask-mobile/pull/14514/))
178+
179+
### Fixed
180+
181+
- fix(bridge): fix default swap destination token when source is USDC ([#15611](https://github.com/MetaMask/metamask-mobile/pull/15611))
182+
- fix(multi-srp): display multichain accounts in SRP list ([#14724](https://github.com/MetaMask/metamask-mobile/pull/14724))
183+
- fix(confirmations): remove transaction simulations from wallet initiated send flow ([#14994](https://github.com/MetaMask/metamask-mobile/pull/14994))
184+
- fix(bridge): add auto slippage option and improve slippage selection UI ([#15159](https://github.com/MetaMask/metamask-mobile/pull/15159))
185+
- fix(bridge): implement dynamic refresh rate in QuoteExpiredModal ([#15157](https://github.com/MetaMask/metamask-mobile/pull/15157))
186+
- fix(bridge): keyboard not appearing when error banner is displayed ([#14862](https://github.com/MetaMask/metamask-mobile/pull/14862))
187+
- fix(bridge): fix not switching networks when selecting source token ([#14712](https://github.com/MetaMask/metamask-mobile/pull/14712))
188+
- fix: update confirmation font sizes ([#14715](https://github.com/MetaMask/metamask-mobile/pull/14715))
189+
- fix(bridge): fix transaction history for EVM and Solana bridge transactions ([#14759](https://github.com/MetaMask/metamask-mobile/pull/14759))
190+
- fix(bridge): change networks properly when user switches between source and destination tokens ([#14812](https://github.com/MetaMask/metamask-mobile/pull/14812))
191+
- fix(bridge): fix(bridge): update quote details card toggle to handle same chain swaps and improve slippage button layout ([#15153](https://github.com/MetaMask/metamask-mobile/pull/15153))
192+
- fix(bridge): show "Auto" slippage for Solana swaps
193+
- fix(bridge): add insufficient balance check for Solana swaps
194+
- fix(bridge): disable Solana as destination network if no Solana account exists
195+
- fix(bridge): prevent quote error during bridge destination account selection
196+
197+
## [7.46.2]
198+
199+
### Fixed
200+
- fix: Json rpc and invalid transaction type envelope errors ([#15538](https://github.com/MetaMask/metamask-mobile/pull/15538)
201+
202+
## [7.46.1]
203+
204+
### Fixed
205+
- fix: capture exception with Sentry instead throwing the error ([#15469](https://github.com/MetaMask/metamask-mobile/pull/15469))
206+
207+
## [7.46.0]
208+
209+
### Added
210+
211+
- fix(bridge): prevent quote polling when "quote expired" modal is open ([#15602](https://github.com/MetaMask/metamask-mobile/issues/15602))
212+
- feat(bridge): improve bridge screen layout and user experience ([#15425](https://github.com/MetaMask/metamask-mobile/pull/15425))
213+
- fix(browser): fix browser PermissionsSummary origin spoofing when browser redirects issue ([#13394](https://github.com/MetaMask/metamask-mobile/pull/13394))
214+
- feat: migrate eth_accounts and permittedChains to CAIP-25 endowment ([#13970](https://github.com/MetaMask/metamask-mobile/pull/13970))
215+
- feat(identity): rebrand "Profile syncing" to "Backup and sync", adding a dedicated settings menu and more ([#15003](https://github.com/MetaMask/metamask-mobile/pull/15003))
216+
>>>>>>> stable
139217
- feat(bridge): implement quote expiration handling in Bridge feature ([#14872](https://github.com/MetaMask/metamask-mobile/pull/14872))
140218
- feat(bridge): use dynamic slippage for single-chain Solana swaps ([#14805](https://github.com/MetaMask/metamask-mobile/pull/14805))
141219
- feat(bridge): enhance bridging with network fee estimation and UI improvements ([#14786](https://github.com/MetaMask/metamask-mobile/pull/14786))
@@ -167,6 +245,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
167245

168246
### Fixed
169247

248+
<<<<<<< HEAD
249+
=======
250+
- fix(bridge): reset state to prevent stale quotes on token switch ([#15571](https://github.com/MetaMask/metamask-mobile/pull/15571))
251+
- fix(multi-srp): display multichain accounts in SRP list ([#14724](https://github.com/MetaMask/metamask-mobile/pull/14724))
252+
- fix(confirmations): remove transaction simulations from wallet initiated send flow ([#14994](https://github.com/MetaMask/metamask-mobile/pull/14994))
253+
- fix(bridge): add auto slippage option and improve slippage selection UI ([#15159](https://github.com/MetaMask/metamask-mobile/pull/15159))
254+
- fix(bridge): implement dynamic refresh rate in QuoteExpiredModal ([#15157](https://github.com/MetaMask/metamask-mobile/pull/15157))
255+
>>>>>>> stable
170256
- fix(bridge): keyboard not appearing when error banner is displayed ([#14862](https://github.com/MetaMask/metamask-mobile/pull/14862))
171257
- fix(bridge): fix not switching networks when selecting source token ([#14712](https://github.com/MetaMask/metamask-mobile/pull/14712))
172258
- fix: updates a padding style specifically for Android devices ([#14725](https://github.com/MetaMask/metamask-mobile/pull/14725))
@@ -187,15 +273,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
187273
## [7.45.1]
188274

189275
### Fixed
276+
<<<<<<< HEAD
277+
=======
278+
279+
>>>>>>> stable
190280
- fix: update patch to use old AccountTrackerController data structures ([dfc076c](https://github.com/MetaMask/metamask-mobile/commit/dfc076cee12aab974720b2dd1e8a145b3fafd484))
191281

192282
## [7.45.0]
193283

284+
<<<<<<< HEAD
194285
### Changed
195286

196287
- fix(multi-srp): display errors only after all the words are have been entered ([#14607](https://github.com/MetaMask/metamask-mobile/pull/14607))
197288
- fix(multi-srp): display alternative text color when in dark mode([#14718](https://github.com/MetaMask/metamask-mobile/pull/14718))
198289

290+
=======
291+
>>>>>>> stable
199292
### Added
200293

201294
- feat(4213-2) update network icons ([#14069](https://github.com/MetaMask/metamask-mobile/pull/14069))
@@ -233,6 +326,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
233326
- feat: add phishing tracking events to PhishingModal component ([#14254](https://github.com/MetaMask/metamask-mobile/pull/14254))
234327
- feat: upgrade to brand evolution colors ([#14218](https://github.com/MetaMask/metamask-mobile/pull/14218))
235328

329+
<<<<<<< HEAD
330+
=======
331+
### Changed
332+
333+
- fix(multi-srp): display errors only after all the words are have been entered ([#14607](https://github.com/MetaMask/metamask-mobile/pull/14607))
334+
- fix(multi-srp): display alternative text color when in dark mode([#14718](https://github.com/MetaMask/metamask-mobile/pull/14718))
335+
336+
>>>>>>> stable
236337
### Fixed
237338

238339
- fix(swaps): set default slippage when source or destination token is not stablecoin ([#14730](https://github.com/MetaMask/metamask-mobile/pull/14730))
@@ -5529,7 +5630,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55295630
- [#957](https://github.com/MetaMask/metamask-mobile/pull/957): fix timeouts (#957)
55305631
- [#954](https://github.com/MetaMask/metamask-mobile/pull/954): Bugfix: onboarding navigation (#954)
55315632

5633+
<<<<<<< HEAD
55325634
[Unreleased]: https://github.com/MetaMask/metamask-mobile/compare/v7.46.2...HEAD
5635+
=======
5636+
[Unreleased]: https://github.com/MetaMask/metamask-mobile/compare/v7.47.0...HEAD
5637+
[7.47.0]: https://github.com/MetaMask/metamask-mobile/compare/v7.46.2...v7.47.0
5638+
>>>>>>> stable
55335639
[7.46.2]: https://github.com/MetaMask/metamask-mobile/compare/v7.46.1...v7.46.2
55345640
[7.46.1]: https://github.com/MetaMask/metamask-mobile/compare/v7.46.0...v7.46.1
55355641
[7.46.0]: https://github.com/MetaMask/metamask-mobile/compare/v7.45.1...v7.46.0

android/app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,13 @@ android {
187187
applicationId "io.metamask"
188188
minSdkVersion rootProject.ext.minSdkVersion
189189
targetSdkVersion rootProject.ext.targetSdkVersion
190+
<<<<<<< HEAD
190191
versionName "7.50.0"
191192
versionCode 2062
193+
=======
194+
versionName "7.47.1"
195+
versionCode 2004
196+
>>>>>>> stable
192197
testBuildType System.getProperty('testBuildType', 'debug')
193198
missingDimensionStrategy 'react-native-camera', 'general'
194199
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

app/actions/multiSrp/index.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ import {
99
import { wordlist } from '@metamask/scure-bip39/dist/wordlists/english';
1010
import { createMockInternalAccount } from '../../util/test/accountsControllerTestUtils';
1111

12+
<<<<<<< HEAD
1213
const testAddress = '0x123';
1314
const mockExpectedAccount = createMockInternalAccount(
1415
testAddress,
1516
'Account 1',
1617
KeyringTypes.hd,
1718
);
1819

20+
=======
21+
>>>>>>> stable
1922
const mockSetSelectedAddress = jest.fn();
2023
const mockAddNewKeyring = jest.fn();
2124
const mockGetKeyringsByType = jest.fn();
@@ -24,7 +27,10 @@ const mockAddAccounts = jest.fn();
2427
const mockSetAccountLabel = jest.fn();
2528
const mockControllerMessenger = jest.fn();
2629
const mockAddDiscoveredAccounts = jest.fn();
30+
<<<<<<< HEAD
2731
const mockGetAccountByAddress = jest.fn().mockReturnValue(mockExpectedAccount);
32+
=======
33+
>>>>>>> stable
2834

2935
const hdKeyring = {
3036
getAccounts: () => {
@@ -59,7 +65,10 @@ jest.mock('../../core/Engine', () => ({
5965
},
6066
AccountsController: {
6167
getNextAvailableAccountName: jest.fn().mockReturnValue('Snap Account 1'),
68+
<<<<<<< HEAD
6269
getAccountByAddress: () => mockGetAccountByAddress(),
70+
=======
71+
>>>>>>> stable
6372
},
6473
},
6574
setSelectedAddress: (address: string) => mockSetSelectedAddress(address),

app/actions/multiSrp/index.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import { wordlist } from '@metamask/scure-bip39/dist/wordlists/english';
33
import ExtendedKeyringTypes from '../../constants/keyringTypes';
44
import Engine from '../../core/Engine';
55
import { KeyringSelector } from '@metamask/keyring-controller';
6+
<<<<<<< HEAD
67
import { InternalAccount } from '@metamask/keyring-internal-api';
8+
=======
9+
>>>>>>> stable
710
///: BEGIN:ONLY_INCLUDE_IF(solana)
811
import {
912
MultichainWalletSnapFactory,
@@ -65,19 +68,29 @@ export async function importNewSecretRecoveryPhrase(mnemonic: string) {
6568
async ({ keyring }) => keyring.getAccounts(),
6669
);
6770

71+
<<<<<<< HEAD
6872
let discoveredAccountsCount = 0;
6973

74+
=======
75+
>>>>>>> stable
7076
///: BEGIN:ONLY_INCLUDE_IF(solana)
7177
const multichainClient = MultichainWalletSnapFactory.createClient(
7278
WalletClientType.Solana,
7379
);
7480

81+
<<<<<<< HEAD
7582
discoveredAccountsCount = await multichainClient.addDiscoveredAccounts(newKeyring.id);
7683
///: END:ONLY_INCLUDE_IF
7784

7885
Engine.setSelectedAddress(newAccountAddress);
7986

8087
return { address: newAccountAddress, discoveredAccountsCount };
88+
=======
89+
await multichainClient.addDiscoveredAccounts(newKeyring.id);
90+
///: END:ONLY_INCLUDE_IF
91+
92+
return Engine.setSelectedAddress(newAccountAddress);
93+
>>>>>>> stable
8194
}
8295

8396
export async function createNewSecretRecoveryPhrase() {
@@ -125,6 +138,7 @@ export async function addNewHdAccount(
125138
Engine.setAccountLabel(addedAccountAddress, name);
126139
}
127140

141+
<<<<<<< HEAD
128142
const account = AccountsController.getAccountByAddress(addedAccountAddress);
129143

130144
// This should always be true. If it's not, we have a bug.
@@ -133,12 +147,17 @@ export async function addNewHdAccount(
133147
throw new Error('Account not found after creation');
134148
}
135149

150+
=======
151+
>>>>>>> stable
136152
// We consider the account to be created once it got selected and renamed.
137153
store.dispatch(
138154
endPerformanceTrace({
139155
eventName: PerformanceEventNames.AddHdAccount,
140156
}),
141157
);
158+
<<<<<<< HEAD
142159

143160
return account;
161+
=======
162+
>>>>>>> stable
144163
}

app/component-library/components-temp/CellSelectWithMenu/CellSelectWithMenu.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const CellSelectWithMenu = ({
6060
) : null}
6161

6262
<View style={styles.cellBaseInfo}>
63+
<<<<<<< HEAD
6364
{title === undefined || typeof title === 'string' ? (
6465
<Text
6566
numberOfLines={1}
@@ -72,6 +73,15 @@ const CellSelectWithMenu = ({
7273
) : (
7374
title
7475
)}
76+
=======
77+
<Text
78+
numberOfLines={1}
79+
variant={DEFAULT_CELLBASE_AVATAR_TITLE_TEXTVARIANT}
80+
testID={CellComponentSelectorsIDs.BASE_TITLE}
81+
>
82+
{title}
83+
</Text>
84+
>>>>>>> stable
7585
{!!secondaryText && (
7686
<TouchableWithoutFeedback>
7787
<TouchableOpacity

0 commit comments

Comments
 (0)