-
-
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
25 changed files
with
1,861 additions
and
129 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}', | ||
}, | ||
], | ||
}, | ||
}; |
42 changes: 42 additions & 0 deletions
42
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,42 @@ | ||
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: { | ||
// paddingTop: 24, | ||
marginLeft: 16, | ||
marginRight: 16, | ||
paddingVertical: 16, | ||
}, | ||
buttonsContainer: { | ||
// paddingTop: 24, | ||
marginLeft: 16, | ||
marginRight: 16, | ||
paddingVertical: 16, | ||
}, | ||
spacer: { height: 8 }, | ||
}); | ||
|
||
export default styleSheet; |
Oops, something went wrong.