@reservoir0x/relay-kit-ui
Version:
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
13 lines • 638 B
TypeScript
/**
* Ensure that an Ethereum address does not overflow
* by removing the middle characters
* @param address An Ethereum address
* @param shrinkInidicator Visual indicator to show address is only
* partially displayed
* @returns A shrinked version of the Ethereum address
* with the middle characters removed.
*/
declare function truncateAddress(address?: string, shrinkInidicator?: string, firstSectionLength?: number, lastSectionLength?: number): string | undefined;
declare function truncateEns(ensName: string, shrinkInidicator?: string): string;
export { truncateAddress, truncateEns };
//# sourceMappingURL=truncate.d.ts.map