-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Network selection * progress * format * .. * working * fix style * lint fixes * width * fix * linting errors * working but a mess * cleanup * more cleanup * .. * small fixes * merge fix * fix issue
- Loading branch information
Showing
20 changed files
with
239 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
WS_CORETIME_CHAIN="WSS endpoint of the coretime chain" | ||
WS_RELAY_CHAIN="WSS endpoint of the coretime relay chain" | ||
WS_ROCOCO_CORETIME_CHAIN="WSS endpoint of the coretime chain" | ||
WS_KUSAMA_CORETIME_CHAIN="WSS endpoint of the coretime chain" | ||
WS_ROCOCO_RELAY_CHAIN="WSS endpoint of the coretime relay chain" | ||
WS_KUSAMA_RELAY_CHAIN="WSS endpoint of the coretime relay chain" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { FormControl, InputLabel, MenuItem, Select } from '@mui/material'; | ||
import { useRouter } from 'next/router'; | ||
|
||
const RelaySelect = () => { | ||
const router = useRouter(); | ||
const { network } = router.query; | ||
|
||
const handleChange = (e: any) => { | ||
router.push( | ||
{ | ||
pathname: router.pathname, | ||
query: { ...router.query, network: e.target.value }, | ||
}, | ||
undefined, | ||
{ shallow: false } | ||
); | ||
}; | ||
|
||
return ( | ||
<FormControl sx={{ m: 2, minWidth: 150 }} fullWidth> | ||
<InputLabel>Network</InputLabel> | ||
<Select | ||
id='network-select' | ||
value={network ? network : 'rococo'} | ||
label='Relay chain' | ||
onChange={handleChange} | ||
> | ||
<MenuItem value='rococo'>Rococo</MenuItem> | ||
<MenuItem value='kusama'>Kusama</MenuItem> | ||
</Select> | ||
</FormControl> | ||
); | ||
}; | ||
|
||
export default RelaySelect; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
export const WS_RELAY_CHAIN = process.env.WS_RELAY_CHAIN ?? ''; | ||
export const WS_CORETIME_CHAIN = process.env.WS_CORETIME_CHAIN ?? ''; | ||
export const WS_ROCOCO_RELAY_CHAIN = process.env.WS_ROCOCO_RELAY_CHAIN ?? ''; | ||
export const WS_KUSAMA_RELAY_CHAIN = process.env.WS_KUSAMA_RELAY_CHAIN ?? ''; | ||
export const WS_ROCOCO_CORETIME_CHAIN = | ||
process.env.WS_ROCOCO_CORETIME_CHAIN ?? ''; | ||
export const WS_KUSAMA_CORETIME_CHAIN = | ||
process.env.WS_KUSAMA_CORETIME_CHAIN ?? ''; |
Oops, something went wrong.