UNPKG

@hyperlane-xyz/widgets

Version:

Common react components for Hyperlane projects

11 lines 879 B
import type { MinimalProviderRegistry } from '@hyperlane-xyz/sdk/providers/MinimalProviderRegistry'; import type { ChainName } from '@hyperlane-xyz/sdk/types'; import { type Address, type HexString, type KnownProtocolType } from '@hyperlane-xyz/utils'; import type { AccountInfo } from './types.js'; export declare function getAccountAddressForChain(multiProvider: MinimalProviderRegistry, chainName?: ChainName, accounts?: Record<KnownProtocolType, AccountInfo>): Address | undefined; export declare function getAddressFromAccountAndChain(account?: AccountInfo, chainName?: ChainName): string; export declare function getAccountAddressAndPubKey(multiProvider: MinimalProviderRegistry, chainName?: ChainName, accounts?: Record<KnownProtocolType, AccountInfo>): { address?: Address; publicKey?: Promise<HexString | undefined>; }; //# sourceMappingURL=accountUtils.d.ts.map