-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add migration ui for network controller v21
- Loading branch information
Showing
24 changed files
with
1,856 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
app/components/Views/MultiRpcModal/MultiRpcModal.constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export const SAMPLE_NETWORK_CONFIGURATIONS = { | ||
'0x1': { | ||
blockExplorerUrls: [], | ||
chainId: '0x1', | ||
defaultRpcEndpointIndex: 0, | ||
name: 'Mainnet', | ||
nativeCurrency: 'ETH', | ||
rpcEndpoints: [ | ||
{ | ||
networkClientId: 'mainnet', | ||
type: 'infura', | ||
url: 'https://mainnet.infura.io/v3/{infuraProjectId}', | ||
}, | ||
], | ||
}, | ||
'0x5': { | ||
blockExplorerUrls: [], | ||
chainId: '0x5', | ||
defaultRpcEndpointIndex: 0, | ||
name: 'Goerli', | ||
nativeCurrency: 'GoerliETH', | ||
rpcEndpoints: [ | ||
{ | ||
networkClientId: 'goerli', | ||
type: 'infura', | ||
url: 'https://goerli.infura.io/v3/{infuraProjectId}', | ||
}, | ||
], | ||
}, | ||
}; |
40 changes: 40 additions & 0 deletions
40
app/components/Views/MultiRpcModal/MultiRpcModal.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { StyleSheet } from 'react-native'; | ||
|
||
/** | ||
* Style sheet function for NFT auto detection modal component. | ||
* | ||
* @returns StyleSheet object. | ||
*/ | ||
const styleSheet = () => | ||
StyleSheet.create({ | ||
container: { | ||
alignItems: 'center', | ||
}, | ||
image: { | ||
width: 102.64, | ||
height: 102.64, | ||
}, | ||
description: { | ||
marginLeft: 32, | ||
marginRight: 32, | ||
}, | ||
content: { | ||
height: '80%', | ||
}, | ||
textDescription: { | ||
textAlign: 'center', | ||
}, | ||
textContainer: { | ||
marginLeft: 16, | ||
marginRight: 16, | ||
paddingVertical: 16, | ||
}, | ||
buttonsContainer: { | ||
marginLeft: 16, | ||
marginRight: 16, | ||
paddingVertical: 16, | ||
}, | ||
spacer: { height: 8 }, | ||
}); | ||
|
||
export default styleSheet; |
Oops, something went wrong.