mirror of
https://github.com/pezkuwichain/pezkuwi-sdk-ui.git
synced 2026-04-21 23:47:59 +00:00
d949863789
Comprehensive web interface for interacting with Pezkuwi blockchain. Features: - Blockchain explorer - Wallet management - Staking interface - Governance participation - Developer tools Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
535 B
TypeScript
20 lines
535 B
TypeScript
// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { ApiPromise } from '@pezkuwi/api';
|
|
|
|
import { KUSAMA_GENESIS } from '../constants.js';
|
|
|
|
// 4 * BaseXcmWeight on Dicle
|
|
const KUSAMA_WEIGHT = 4 * 1_000_000_000;
|
|
|
|
const DEFAULT_WEIGHT = KUSAMA_WEIGHT;
|
|
|
|
const KNOWN_WEIGHTS: Record<string, number> = {
|
|
[KUSAMA_GENESIS]: KUSAMA_WEIGHT
|
|
};
|
|
|
|
export function getTeleportWeight (api: ApiPromise): number {
|
|
return KNOWN_WEIGHTS[api.genesisHash.toHex()] || DEFAULT_WEIGHT;
|
|
}
|