@hyperlane-xyz/widgets
Version:
Common react components for Hyperlane projects
11 lines • 798 B
TypeScript
import type { MinimalProviderRegistry } from '@hyperlane-xyz/sdk/providers/MinimalProviderRegistry';
import type { ChainName } from '@hyperlane-xyz/sdk/types';
import { type Address, type KnownProtocolType } from '@hyperlane-xyz/utils';
import { type AccountInfo } from './types.js';
export declare function useAccounts(multiProvider: MinimalProviderRegistry, blacklistedAddresses?: Address[]): {
accounts: Record<KnownProtocolType, AccountInfo>;
readyAccounts: Array<AccountInfo>;
};
export declare function useAccountForChain(multiProvider: MinimalProviderRegistry, chainName?: ChainName): AccountInfo | undefined;
export declare function useAccountAddressForChain(multiProvider: MinimalProviderRegistry, chainName?: ChainName): Address | undefined;
//# sourceMappingURL=accounts.d.ts.map