UNPKG

@shogun-sdk/money-legos

Version:

Shogun Money Legos: clients and types for quotes, memes, prices, balances, fees, validations, etc.

28 lines 1.68 kB
import type { Token } from '../types/index.js'; import { QuoteParams } from '../index.js'; import { NATIVE_TOKEN, type NativeTokenKey } from '../config/addresses.js'; /** * Truncates an Ethereum or Sui address for better readability. * @param address - The address to truncate. * @param length - Number of characters to preserve at the start and end. Default is 6. * @returns A truncated address string. */ export declare function truncateAddress(address: string, length?: number): string; export declare const isMatchingTokens: (tokenA: string, tokenB: string) => boolean; export declare const normalizeNativeAddresses: (tokenAddress: string, networkId: number) => string | undefined; export declare function isNativeToken(address: string): address is (typeof NATIVE_TOKEN)[NativeTokenKey]; export declare const isValidEVMAddress: (address: string) => boolean; export declare const isValidSolanaOrEVMAddress: (address: string) => boolean; export declare const compareAddresses: (firstAddress?: string, secondAddress?: string) => boolean; export declare const compareChains: (firstChain: number | string, secondChain: number | string) => boolean; export declare const dummyAddressForQuote: { EVM: string; SOL: string; }; export declare const getDummyAddress: (chainId: number) => string; export declare function isMatchingDummyAddress(address: string): boolean; export declare const areTokensEqual: (tokenA: Token, tokenB: Token) => boolean; export declare const WRAPPED_ADDRESSES: string[]; export declare const isWrappedAddress: (tokenAddress: string) => boolean; export declare const isBscSwap: (params: QuoteParams) => boolean; //# sourceMappingURL=address.d.ts.map