@@ -34,16 +34,16 @@ type LayerDetailsContent = {
3434type NetworkDetails = Partial < Record < Layer , LayerDetailsContent > >
3535type Details = Record < Network , NetworkDetails >
3636const getDetails = ( t : TFunction ) : Details => ( {
37- [ Network . mainnet ] : {
38- [ Layer . emerald ] : {
37+ mainnet : {
38+ emerald : {
3939 description : t ( 'layerPicker.mainnet.emerald' ) ,
4040 rpcHttp : 'https://emerald.oasis.io' ,
4141 rpcWebSockets : 'wss://emerald.oasis.io/ws' ,
4242 chainHexId : '0xa516' ,
4343 chainDecimalId : '42262' ,
4444 docs : docs . emerald ,
4545 } ,
46- [ Layer . sapphire ] : {
46+ sapphire : {
4747 description : t ( 'layerPicker.mainnet.sapphire' ) ,
4848 rpcHttp : 'https://sapphire.oasis.io' ,
4949 rpcWebSockets : 'wss://sapphire.oasis.io/ws' ,
@@ -52,32 +52,32 @@ const getDetails = (t: TFunction): Details => ({
5252 docs : docs . sapphire ,
5353 } ,
5454 } ,
55- [ Network . testnet ] : {
56- [ Layer . emerald ] : {
55+ testnet : {
56+ emerald : {
5757 description : t ( 'layerPicker.testnet.emerald' ) ,
5858 rpcHttp : 'https://testnet.emerald.oasis.io' ,
5959 rpcWebSockets : 'wss://testnet.emerald.oasis.io/ws' ,
6060 chainHexId : '0xa515' ,
6161 chainDecimalId : '42261' ,
6262 docs : docs . emerald ,
6363 } ,
64- [ Layer . sapphire ] : {
64+ sapphire : {
6565 description : t ( 'layerPicker.testnet.sapphire' ) ,
6666 rpcHttp : 'https://testnet.sapphire.oasis.io' ,
6767 rpcWebSockets : 'wss://testnet.sapphire.oasis.io/ws' ,
6868 chainHexId : '0x5aff' ,
6969 chainDecimalId : '23295' ,
7070 docs : docs . sapphire ,
7171 } ,
72- [ Layer . pontusxdev ] : {
72+ pontusxdev : {
7373 description : t ( 'layerPicker.testnet.pontusxdev' ) ,
7474 // See https://docs.pontus-x.eu/docs/Pontus-X%20Testnet/quick_start#setup-metamask
7575 rpcHttp : 'https://rpc.dev.pontus-x.eu' ,
7676 chainHexId : '0x7ec8' ,
7777 chainDecimalId : '32456' ,
7878 docs : docs . pontusx1 ,
7979 } ,
80- [ Layer . pontusxtest ] : {
80+ pontusxtest : {
8181 description : t ( 'layerPicker.testnet.pontusxtest' ) ,
8282 // See https://docs.pontus-x.eu/docs/Pontus-X%20Testnet/quick_start#setup-metamask
8383 rpcHttp : 'https://rpc.test.pontus-x.eu' ,
@@ -86,13 +86,13 @@ const getDetails = (t: TFunction): Details => ({
8686 docs : docs . pontusx1 ,
8787 } ,
8888 } ,
89- [ Network . localnet ] : {
90- [ Layer . sapphire ] : {
89+ localnet : {
90+ sapphire : {
9191 chainHexId : '0x5afd' ,
9292 chainDecimalId : '23293' ,
9393 description : t ( 'layerPicker.localnet.sapphire' ) ,
9494 } ,
95- [ Layer . emerald ] : {
95+ emerald : {
9696 chainHexId : '0xa514' ,
9797 chainDecimalId : '42260' ,
9898 description : t ( 'layerPicker.localnet.emerald' ) ,
@@ -127,7 +127,7 @@ export const LayerDetails: FC<LayerDetailsProps> = ({
127127 selectedScope : { network, layer } ,
128128 ...rest
129129} : LayerDetailsProps ) =>
130- layer === Layer . consensus ? (
130+ layer === ' consensus' ? (
131131 < ConsensusDetails selectedScope = { { network, layer } } { ...rest } />
132132 ) : (
133133 < RuntimeDetails selectedScope = { { network, layer } } { ...rest } />
0 commit comments