mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-26 15:39:56 +00:00
feat: initial Pezkuwi Apps rebrand from polkadot-apps
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
This commit is contained in:
commit
d21bfb1320
5867 files changed
+329019
No files matched your search
@@ -0,0 +1,24 @@
|
||||
// Copyright 2017-2025 @pezkuwi/app-assets authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { StorageKey } from '@pezkuwi/types';
|
||||
import type { StagingXcmV3MultiLocation } from '@pezkuwi/types/lookup';
|
||||
|
||||
import { createNamedHook, useApi, useMapKeys } from '@pezkuwi/react-hooks';
|
||||
|
||||
const EMPTY_PARAMS: unknown[] = [];
|
||||
|
||||
const OPT_KEY = {
|
||||
transform: (keys: StorageKey<[StagingXcmV3MultiLocation]>[]): StagingXcmV3MultiLocation[] =>
|
||||
keys.flatMap(({ args }) => args)
|
||||
};
|
||||
|
||||
function useForeignAssetLocationsImpl () {
|
||||
const { api, isApiReady } = useApi();
|
||||
|
||||
const values = useMapKeys(isApiReady && api.query.foreignAssets?.asset, EMPTY_PARAMS, OPT_KEY) || [];
|
||||
|
||||
return values;
|
||||
}
|
||||
|
||||
export const useForeignAssetLocations = createNamedHook('useForeignAssetLocations', useForeignAssetLocationsImpl);
|
||||
Reference in new issue
Block a user