@pushchain/ui-kit
Version:
Push Chain is a true universal L1 that is 100% EVM compatible. It allows developers to deploy once and make their apps instantly compatible with users from all other L1s (Ethereum, Solana, etc) with zero on-chain code change.
12 lines (11 loc) • 469 B
TypeScript
import { ChainType } from '../../../types/wallet.types';
export declare const chainToNamespace: {
EVM: string;
SOL: string;
};
export declare function fromCAIPFormat(caipAddress: string): {
chain: ChainType.ETHEREUM | ChainType.SOLANA | ChainType.BINANCE | ChainType.ARBITRUM | ChainType.AVALANCHE;
chainId: string;
rawAddress: string;
};
export declare function toCAIPFormat(rawAddress: string, chain: ChainType, chainId: number | string): string;