refactor: remove references to Darwinia Crab and associated assets (#12131)
- Removed the Crab parachain endpoint from productionRelayKusama.ts. - Deleted Crab logo files from the nodes directory. - Updated Subscan links to remove Crab references. - Cleaned up translation files in French, Italian, Korean, and Russian to remove Crab-related entries. - Adjusted comments in ChartStake and useSortedTargets to generalize overrides for missing fields. Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0ed64203fd
commit
7b1faa2db3
@ -5,7 +5,7 @@ import type { EndpointOption } from './types.js';
|
||||
|
||||
import { KUSAMA_GENESIS } from '../api/constants.js';
|
||||
import { chainsAbandPNG, chainsAcurastSVG, chainsAltairSVG, chainsAmplitudeSVG, chainsAssethubKusamaSVG, chainsCoretimeKusamaSVG, chainsDorafactoryPNG, chainsGenshiroSVG, chainsGmJPEG, chainsKaruraSVG, chainsKicoPNG, chainsKintsugiPNG, chainsKreivoSVG, chainsKusamaSVG, chainsListenPNG, chainsPeopleKusamaSVG, chainsQpnPNG, chainsRiodefiPNG, chainsShidenPNG, chainsTinkerPNG, chainsTuringPNG, chainsUnorthodoxPNG } from '../ui/logos/chains/index.js';
|
||||
import { nodesApronPNG, nodesAresMarsPNG, nodesBajunPNG, nodesBasiliskPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesBridgeHubBlackSVG, nodesCalamariPNG, nodesCrabSVG, nodesCurioSVG, nodesDatahighwayPNG, nodesEncointerBlueSVG, nodesHyperbridgePNG, nodesImbuePNG, nodesIpciSVG, nodesKabochaSVG, nodesKhalaSVG, nodesKrestPNG, nodesLoomNetworkPNG, nodesMoonriverSVG, nodesParallelSVG, nodesPicassoPNG, nodesPichiuPNG, nodesPolkasmithSVG, nodesQuartzPNG, nodesRegionxPNG, nodesRobonomicsSVG, nodesSakuraSVG, nodesShadowSVG, nodesSnowPNG, nodesSoraSubstrateSVG, nodesSubgameSVG, nodesSubsocialXSVG, nodesT1rnPNG, nodesTrustbasePNG, nodesXodePNG, nodesYerbanetworkPNG, nodesZeroSVG } from '../ui/logos/nodes/index.js';
|
||||
import { nodesApronPNG, nodesAresMarsPNG, nodesBajunPNG, nodesBasiliskPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesBridgeHubBlackSVG, nodesCalamariPNG, nodesCurioSVG, nodesDatahighwayPNG, nodesEncointerBlueSVG, nodesHyperbridgePNG, nodesImbuePNG, nodesIpciSVG, nodesKabochaSVG, nodesKhalaSVG, nodesKrestPNG, nodesLoomNetworkPNG, nodesMoonriverSVG, nodesParallelSVG, nodesPicassoPNG, nodesPichiuPNG, nodesPolkasmithSVG, nodesQuartzPNG, nodesRegionxPNG, nodesRobonomicsSVG, nodesSakuraSVG, nodesShadowSVG, nodesSnowPNG, nodesSoraSubstrateSVG, nodesSubgameSVG, nodesSubsocialXSVG, nodesT1rnPNG, nodesTrustbasePNG, nodesXodePNG, nodesYerbanetworkPNG, nodesZeroSVG } from '../ui/logos/nodes/index.js';
|
||||
import { getTeleports } from './util.js';
|
||||
|
||||
// The available endpoints that will show in the dropdown. For the most part (with the exception of
|
||||
@ -128,21 +128,6 @@ export const prodParasKusama: Omit<EndpointOption, 'teleport'>[] = [
|
||||
logo: nodesCalamariPNG
|
||||
}
|
||||
},
|
||||
{
|
||||
homepage: 'https://crab.network',
|
||||
info: 'crab',
|
||||
paraId: 2105,
|
||||
providers: {
|
||||
Darwinia: 'wss://crab-rpc.darwinia.network/'
|
||||
// Dcdao: 'wss://crab-rpc.dcdao.box', // https://github.com/polkadot-js/apps/issues/11232
|
||||
// Dwellir: 'wss://darwiniacrab-rpc.n.dwellir.com' // https://github.com/polkadot-js/apps/issues/11965
|
||||
},
|
||||
text: 'Crab',
|
||||
ui: {
|
||||
color: '#512DBC',
|
||||
logo: nodesCrabSVG
|
||||
}
|
||||
},
|
||||
{
|
||||
homepage: 'https://crust.network/',
|
||||
info: 'shadow',
|
||||
|
||||
@ -33,7 +33,6 @@ export const Subscan: ExternalDef = {
|
||||
Continuum: 'continuum',
|
||||
'Continuum Network': 'continuum',
|
||||
Coretime: 'coretime-polkadot',
|
||||
Crab2: 'crab',
|
||||
Creditcoin: 'creditcoin',
|
||||
'Creditcoin PoS Testnet': 'cc-enterprise-testnet',
|
||||
'Creditcoin3 Testnet': 'creditcoin3-testnet',
|
||||
|
||||
@ -9,7 +9,6 @@ export const ethereumChains = [
|
||||
'altbeacon-dev',
|
||||
'armonia-eva',
|
||||
'armonia-wall-e',
|
||||
'Crab2',
|
||||
'Darwinia Koi',
|
||||
'Darwinia2',
|
||||
'datahaven-stagenet',
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.8447 18.7861C12.8447 16.2153 14.9288 14.1312 17.4997 14.1312C20.0706 14.1312 22.1547 16.2153 22.1547 18.7861C22.1547 21.357 20.0706 23.4411 17.4997 23.4411C14.9288 23.4411 12.8447 21.357 12.8447 18.7861ZM17.4998 15.2949C19.4279 15.2949 20.991 16.858 20.991 18.7861C20.991 20.7143 19.4279 22.2774 17.4998 22.2774C15.5716 22.2774 14.0085 20.7143 14.0085 18.7861C14.0085 16.858 15.5716 15.2949 17.4998 15.2949Z" fill="#512DBC"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 18V17.9976C0.00132155 8.05741 8.05981 0 18 0C27.9411 0 36 8.05888 36 18C36 27.9411 27.9411 36 18 36C8.05888 36 0 27.9411 0 18ZM21.6113 8.31275L21.5728 8.31244V10.6399L19.9271 8.99414L19.9054 9.01607C19.497 9.43542 19.2454 10.0083 19.2454 10.6399C19.2454 11.9254 20.2874 12.9674 21.5728 12.9674C22.8583 12.9674 23.9003 11.9254 23.9003 10.6399C23.9003 9.36734 22.879 8.3333 21.6113 8.31275ZM28.5553 12.3856C28.5553 11.7429 28.0343 11.2219 27.3915 11.2219C26.7488 11.2219 26.2278 11.7429 26.2278 12.3856C26.2278 12.6098 26.2912 12.8192 26.4011 12.9969L25.0418 15.0359L25.0311 15.0513C24.9257 15.1988 24.7576 15.2888 24.5764 15.2947L24.5576 15.295L22.155 15.2949C21.0935 13.8816 19.4034 12.9675 17.4997 12.9675C15.5961 12.9675 13.906 13.8816 12.8444 15.2949L10.4814 15.295L10.4626 15.2947C10.2752 15.2886 10.1017 15.1925 9.99725 15.0359L8.63795 12.9969C8.74781 12.8192 8.81121 12.6098 8.81121 12.3856C8.81121 11.7429 8.29019 11.2219 7.64747 11.2219C7.00476 11.2219 6.48373 11.7429 6.48373 12.3856C6.48373 13.0148 6.98309 13.5274 7.60712 13.5487L9.02896 15.6814L9.04454 15.7044C9.37002 16.1762 9.90701 16.4587 10.4814 16.4587L12.1652 16.4586C12.0038 16.8281 11.8796 17.2176 11.7974 17.6224L8.17256 17.6225L8.15378 17.6222C7.96637 17.6161 7.79285 17.52 7.68842 17.3634L6.31939 15.3097C6.42375 15.1353 6.48373 14.9312 6.48373 14.7131C6.48373 14.0704 5.96271 13.5494 5.31999 13.5494C4.67727 13.5494 4.15625 14.0704 4.15625 14.7131C4.15625 15.3487 4.66579 15.8653 5.29866 15.8767L6.72013 18.0089L6.73571 18.0319C7.06119 18.5037 7.59818 18.7862 8.17256 18.7862L11.681 18.7862L11.6814 18.8565C11.6859 19.2305 11.7256 19.5961 11.7974 19.95L8.17256 19.95L8.1448 19.9502C7.58091 19.9591 7.05594 20.2401 6.73571 20.7043L6.72013 20.7273L5.29866 22.8595C4.66579 22.8709 4.15625 23.3875 4.15625 24.023C4.15625 24.6658 4.67727 25.1868 5.31999 25.1868C5.96271 25.1868 6.48373 24.6658 6.48373 24.023C6.48373 23.805 6.42375 23.6009 6.31939 23.4265L7.68842 21.3728L7.69909 21.3573C7.80444 21.2098 7.97262 21.1198 8.15378 21.114L8.17256 21.1137L12.1652 21.1138C12.3468 21.5293 12.5754 21.9194 12.8444 22.2775L10.5 22.2774L10.4723 22.2777C9.90839 22.2866 9.38342 22.5676 9.06319 23.0318L9.04761 23.0548L7.62615 25.187C6.99327 25.1984 6.48373 25.7149 6.48373 26.3505C6.48373 26.9932 7.00476 27.5143 7.64747 27.5143C8.29019 27.5143 8.81121 26.9932 8.81121 26.3505C8.81121 26.1325 8.75123 25.9284 8.64687 25.7539L10.0159 23.7003L10.0266 23.6848C10.1319 23.5373 10.3001 23.4473 10.4813 23.4415L10.5 23.4412L14.0081 23.4413C14.9807 24.172 16.1896 24.6049 17.4997 24.6049C18.8098 24.6049 20.0188 24.172 20.9914 23.4413L24.539 23.4412L24.5577 23.4415C24.7452 23.4475 24.9187 23.5436 25.0231 23.7003L26.3922 25.7539C26.2878 25.9284 26.2278 26.1324 26.2278 26.3505C26.2278 26.9932 26.7488 27.5143 27.3915 27.5143C28.0343 27.5143 28.5553 26.9932 28.5553 26.3505C28.5553 25.715 28.0458 25.1984 27.4129 25.187L25.9914 23.0548L25.9758 23.0318C25.6503 22.5599 25.1133 22.2774 24.539 22.2774L22.155 22.2775C22.4241 21.9194 22.6527 21.5293 22.8342 21.1138L26.8664 21.1137L26.8852 21.114C27.0726 21.12 27.2462 21.2161 27.3506 21.3728L28.7197 23.4264C28.6153 23.6009 28.5553 23.805 28.5553 24.023C28.5553 24.6658 29.0763 25.1868 29.719 25.1868C30.3617 25.1868 30.8828 24.6658 30.8828 24.023C30.8828 23.3875 30.3733 22.8709 29.7404 22.8595L28.3189 20.7273L28.3033 20.7043C27.9778 20.2325 27.4408 19.95 26.8664 19.95L23.202 19.95C23.2784 19.574 23.3184 19.1848 23.3184 18.7862L26.8664 18.7862L26.8942 18.786C27.4581 18.7771 27.9831 18.4961 28.3033 18.0319L28.3189 18.0089L29.7404 15.8767C30.3733 15.8653 30.8828 15.3487 30.8828 14.7131C30.8828 14.0704 30.3617 13.5494 29.719 13.5494C29.0763 13.5494 28.5553 14.0704 28.5553 14.7131C28.5553 14.9312 28.6153 15.1353 28.7197 15.3098L27.3506 17.3634L27.3399 17.3788C27.2346 17.5263 27.0664 17.6163 26.8852 17.6222L26.8664 17.6225L23.202 17.6224C23.1199 17.2176 22.9957 16.8281 22.8342 16.4586L24.5576 16.4587L24.5854 16.4585C25.1493 16.4496 25.6742 16.1686 25.9945 15.7044L26.0101 15.6814L27.4319 13.5487C28.0559 13.5274 28.5553 13.0148 28.5553 12.3856ZM13.4266 8.31244V10.6399L15.0724 8.99414C15.4936 9.41533 15.7541 9.99721 15.7541 10.6399C15.7541 11.9254 14.712 12.9674 13.4266 12.9674C12.1412 12.9674 11.0991 11.9254 11.0991 10.6399C11.0991 9.36734 12.1204 8.3333 13.3881 8.31275L13.4266 8.31244Z" fill="#512DBC"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.8 KiB |
File diff suppressed because one or more lines are too long
@ -33,7 +33,6 @@ export { nodesCollectivesSVG } from './generated/collectivesSVG.js';
|
||||
export { nodesCompetitorsClubPNG } from './generated/competitors-clubPNG.js';
|
||||
export { nodesConftiSVG } from './generated/conftiSVG.js';
|
||||
export { nodesContinuumPNG } from './generated/continuumPNG.js';
|
||||
export { nodesCrabSVG } from './generated/crabSVG.js';
|
||||
export { nodesCrownSterlingPNG } from './generated/crown-sterlingPNG.js';
|
||||
export { nodesCrustMaxwellSVG } from './generated/crust-maxwellSVG.js';
|
||||
export { nodesCrustParachainSVG } from './generated/crustParachainSVG.js';
|
||||
|
||||
@ -1308,7 +1308,6 @@
|
||||
"rpc.centrifuge": "Centrifuge",
|
||||
"rpc.chainx": "ChainX",
|
||||
"rpc.clover.finance": "Clover",
|
||||
"rpc.crab": "Darwinia Crab",
|
||||
"rpc.crust.network": "Crust Maxwell",
|
||||
"rpc.custom": "Environment personnalisé",
|
||||
"rpc.custom.entry": "Personalisé {{WS_URL}}",
|
||||
@ -1539,4 +1538,4 @@
|
||||
"{{threshold}}, not passing": "{{seuil} }, ne dépassant pas",
|
||||
"{{threshold}}, passing": "{{seuil}}, passant",
|
||||
"{{value}}x voting balance, locked for {{lock}}x duration ({{period}} days)": "{{value}} x solde de vote, verrouillé pendant {{lock}} x décret ({{period}} jours)"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1754,7 +1754,6 @@
|
||||
"rpc.kusama.bajun": "",
|
||||
"rpc.kusama.basilisk": "",
|
||||
"rpc.kusama.bifrost": "",
|
||||
"rpc.kusama.crab-redirect": "",
|
||||
"rpc.kusama.encointer": "",
|
||||
"rpc.kusama.genshiro": "",
|
||||
"rpc.kusama.integritee": "",
|
||||
@ -1792,7 +1791,6 @@
|
||||
"rpc.prod.centrifuge": "",
|
||||
"rpc.prod.chainx": "",
|
||||
"rpc.prod.continuum": "",
|
||||
"rpc.prod.crab": "",
|
||||
"rpc.prod.crust": "",
|
||||
"rpc.prod.darwinia": "",
|
||||
"rpc.prod.dock-pos-mainnet": "",
|
||||
@ -1821,7 +1819,6 @@
|
||||
"rpc.rococo.chainx": "",
|
||||
"rpc.rococo.clover": "",
|
||||
"rpc.rococo.contracts": "",
|
||||
"rpc.rococo.crab": "",
|
||||
"rpc.rococo.crust": "",
|
||||
"rpc.rococo.darwinia": "",
|
||||
"rpc.rococo.datahighway": "",
|
||||
@ -2148,4 +2145,4 @@
|
||||
"{{threshold}}, passing": "{{threshold}}, approvato",
|
||||
"{{type}} copied": "{{type}} copiato",
|
||||
"{{value}}x voting balance, locked for {{lock}}x duration ({{period}} days)": "{{value}} x moltiplicatore di voto, fondi bloccati per {{lock}}x = {{period}} giorni"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1271,7 +1271,6 @@
|
||||
"rpc.beresheet": "베레시트(Edgware 테스트넷, Commonwealth Labs가 운영함)",
|
||||
"rpc.bifrost": "Bifrost Asgard",
|
||||
"rpc.centrifuge": "센츄러퓨지",
|
||||
"rpc.crab": "다위니아 크랩",
|
||||
"rpc.crust.network": "크러스트 맥스엘 CC2",
|
||||
"rpc.custom": "특수 설정",
|
||||
"rpc.custom.entry": "커스텀 {{WS_URL}}",
|
||||
@ -1495,4 +1494,4 @@
|
||||
"{{threshold}}, not passing": "{{threshold}}, 통과되지 않았습니다",
|
||||
"{{threshold}}, passing": "{{threshold}}, 통과되었습니다",
|
||||
"{{value}}x voting balance, locked for {{lock}}x duration ({{period}} days)": "{{value}}x 투표 발란스, 잠금 {{lock}}x제정 ({{period}} days)"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1245,7 +1245,6 @@
|
||||
"rpc.kusama.bajun": "Bajun Network",
|
||||
"rpc.kusama.basilisk": "Basilisk",
|
||||
"rpc.kusama.bifrost": "Bifrost (Kusama)",
|
||||
"rpc.kusama.crab": "Darwinia Crab",
|
||||
"rpc.kusama.encointer": "Encointer Network",
|
||||
"rpc.kusama.genshiro": "Genshiro",
|
||||
"rpc.kusama.heiko": "Parallel Heiko",
|
||||
@ -1474,4 +1473,4 @@
|
||||
"{{threshold}}, not passing": "{{threshold}}, не проходит",
|
||||
"{{threshold}}, passing": "{{threshold}}, проходит",
|
||||
"{{value}}x voting balance, locked for {{lock}}x duration ({{period}} days)": "{{value}}x баланс голосования, заблокировано на {{lock}}x ({{period}} дней)"
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@ function extractStake (labels: string[], exposures: DeriveOwnExposure[], divisor
|
||||
}, [0, 0]);
|
||||
|
||||
exposures.forEach(({ clipped, era, exposure }): void => {
|
||||
// Darwinia Crab doesn't have the total field
|
||||
// some overrides don't have the total field
|
||||
const cli = balanceToNumber(clipped.total?.unwrap(), divisor);
|
||||
const exp = balanceToNumber(exposure.total?.unwrap(), divisor);
|
||||
const avg = avgCount > 0
|
||||
|
||||
@ -135,7 +135,7 @@ function extractSingle (api: ApiPromise, allAccounts: string[], derive: DeriveSt
|
||||
for (let i = 0; i < derive.info.length; i++) {
|
||||
const { accountId, exposureEraStakers = emptyExposure, stakingLedger, validatorPrefs } = derive.info[i];
|
||||
|
||||
// some overrides (e.g. Darwinia Crab) does not have the own/total field in Exposure
|
||||
// some overrides do not have the own/total field in Exposure
|
||||
let [bondOwn, bondTotal] = exposureEraStakers.total
|
||||
? [exposureEraStakers.own.unwrap(), exposureEraStakers.total.unwrap()]
|
||||
: [BN_ZERO, BN_ZERO];
|
||||
@ -146,7 +146,7 @@ function extractSingle (api: ApiPromise, allAccounts: string[], derive: DeriveSt
|
||||
bondTotal = bondOwn = stakingLedger.total?.unwrap() || BN_ZERO;
|
||||
}
|
||||
|
||||
// some overrides (e.g. Darwinia Crab) does not have the value field in IndividualExposure
|
||||
// some overrides do not have the value field in IndividualExposure
|
||||
const minNominated = (exposureEraStakers.others || []).reduce((min: BN, { value = api.createType('Compact<Balance>') }): BN => {
|
||||
const actual = value.unwrap();
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ function extractStake (labels: string[], exposures: DeriveOwnExposure[], divisor
|
||||
exposures.forEach(({ era, exposureMeta, exposurePaged }): void => {
|
||||
const expPaged = exposurePaged.isSome && exposurePaged.unwrap();
|
||||
const expMeta = exposureMeta.isSome && exposureMeta.unwrap();
|
||||
// Darwinia Crab doesn't have the total field
|
||||
// some overrides don't have the total field
|
||||
const expP = balanceToNumber((expPaged && expPaged.pageTotal?.unwrap()) || BN_ZERO, divisor);
|
||||
const expM = balanceToNumber((expMeta && expMeta.total?.unwrap()) || BN_ZERO, divisor);
|
||||
const avg = avgCount > 0
|
||||
|
||||
@ -139,7 +139,7 @@ function extractSingle (api: ApiPromise, allAccounts: string[], derive: DeriveSt
|
||||
const { accountId, claimedRewardsEras, exposureMeta, exposurePaged, stakingLedger, validatorPrefs } = derive.info[i];
|
||||
const exp = exposurePaged.isSome && exposurePaged.unwrap();
|
||||
const expMeta = exposureMeta.isSome && exposureMeta.unwrap();
|
||||
// some overrides (e.g. Darwinia Crab) does not have the own/total field in Exposure
|
||||
// some overrides do not have the own/total field in Exposure
|
||||
let [bondOwn, bondTotal] = exp && expMeta
|
||||
? [expMeta.own.unwrap(), expMeta.total.unwrap()]
|
||||
: [BN_ZERO, BN_ZERO];
|
||||
@ -150,7 +150,7 @@ function extractSingle (api: ApiPromise, allAccounts: string[], derive: DeriveSt
|
||||
bondTotal = bondOwn = stakingLedger.total?.unwrap() || BN_ZERO;
|
||||
}
|
||||
|
||||
// some overrides (e.g. Darwinia Crab) does not have the value field in IndividualExposure
|
||||
// some overrides do not have the value field in IndividualExposure
|
||||
const minNominated = ((exp && exp.others) || []).reduce((min: BN, { value = api.createType('Compact<Balance>') }): BN => {
|
||||
const actual = value.unwrap();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user