mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-25 16:27:59 +00:00
Add Kulupu to the network selection list (#254)
* Add Kulupu to the network selection list * Fix trailing space
This commit is contained in:
@@ -6,7 +6,7 @@ import { Option } from '../types';
|
||||
|
||||
import { isPolkadot } from './type';
|
||||
|
||||
type ChainName = 'alexander' | 'edgeware' | 'edgewareTest' | 'flamingFir' | 'kusama';
|
||||
type ChainName = 'alexander' | 'edgeware' | 'edgewareTest' | 'flamingFir' | 'kusama' | 'kulupu';
|
||||
|
||||
interface ChainData {
|
||||
chainDisplay: string;
|
||||
@@ -14,7 +14,7 @@ interface ChainData {
|
||||
type: string;
|
||||
}
|
||||
|
||||
type ProviderName = 'commonwealth' | 'parity' | 'unfrastructure' | 'w3f';
|
||||
type ProviderName = 'commonwealth' | 'parity' | 'unfrastructure' | 'w3f' | 'kulupu';
|
||||
|
||||
interface PoviderData {
|
||||
providerDisplay: string;
|
||||
@@ -22,10 +22,10 @@ interface PoviderData {
|
||||
}
|
||||
|
||||
// we use this to give an ordering to the chains available
|
||||
const ORDER_CHAINS: ChainName[] = ['kusama', 'edgeware', 'alexander', 'edgewareTest', 'flamingFir'];
|
||||
const ORDER_CHAINS: ChainName[] = ['kusama', 'edgeware', 'alexander', 'edgewareTest', 'flamingFir', 'kulupu'];
|
||||
|
||||
// we use this to order the providers inside the chains
|
||||
const ORDER_PROVIDERS: ProviderName[] = ['parity', 'w3f', 'unfrastructure', 'commonwealth'];
|
||||
const ORDER_PROVIDERS: ProviderName[] = ['parity', 'w3f', 'unfrastructure', 'commonwealth', 'kulupu'];
|
||||
|
||||
// some suplementary info on a per-chain basis
|
||||
const CHAIN_INFO: Record<ChainName, ChainData> = {
|
||||
@@ -53,6 +53,11 @@ const CHAIN_INFO: Record<ChainName, ChainData> = {
|
||||
chainDisplay: 'Kusama CC3',
|
||||
logo: 'kusama',
|
||||
type: 'Polkadot Canary'
|
||||
},
|
||||
kulupu: {
|
||||
chainDisplay: 'Kulupu',
|
||||
logo: 'substrate',
|
||||
type: 'Kulupu Mainnet'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -84,6 +89,12 @@ const PROVIDERS: Record<ProviderName, PoviderData> = {
|
||||
nodes: {
|
||||
kusama: 'wss://cc3-5.kusama.network/'
|
||||
}
|
||||
},
|
||||
kulupu: {
|
||||
providerDisplay: 'Kulupu',
|
||||
nodes: {
|
||||
kulupu: 'wss://rpc.kulupu.network/ws'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user