feat: add Native HEZ support for pool creation

assetConversion pallet requires pools to pair with Native token.

Changes:
- Added NATIVE_TOKEN_ID (-1) constant for relay chain HEZ
- Updated CreatePoolModal to use XCM location format for Native
- Pools can now be created: Native HEZ / PEZ, Native HEZ / wUSDT, etc.
- Fixed balance fetching for Native vs Asset tokens
This commit is contained in:
2026-02-04 14:13:43 +03:00
parent c533d60de0
commit 751bb86ea7
3 changed files with 61 additions and 44 deletions
+14
View File
@@ -46,15 +46,29 @@ export const KURDISTAN_COLORS = {
res: '#000000', // Black (Reş)
} as const;
/**
* Special ID for Native token (relay chain HEZ)
* Used in pool creation - pools must pair with Native
*/
export const NATIVE_TOKEN_ID = -1;
/**
* Known tokens on the Pezkuwi blockchain (Asset Hub)
*
* Asset IDs on Asset Hub:
* - Native (-1): HEZ from Relay Chain (for pool pairing)
* - Asset 1: PEZ (Pezkuwi Token)
* - Asset 2: wHEZ (Wrapped HEZ via tokenWrapper)
* - Asset 1000: wUSDT (Wrapped USDT)
*/
export const KNOWN_TOKENS: Record<number, TokenInfo> = {
[NATIVE_TOKEN_ID]: {
id: NATIVE_TOKEN_ID,
symbol: 'HEZ',
name: 'Native HEZ (Relay Chain)',
decimals: 12,
logo: '/shared/images/hez_token_512.png',
},
2: {
id: 2,
symbol: 'wHEZ',