UNPKG

based-auth

Version:

A Next.js/Node.js authentication and wallet API kit for Ethereum and Solana, with utilities for serialization and contract interaction, designed for serverless and API route usage.

283 lines (282 loc) 6.53 kB
import { ChainSymbols } from '../../basedauth/src/chains'; export declare const isMainnet: boolean; export declare const currencies: { native: string; usd: string; }; export declare const maxUint8: bigint; export declare const maxUint24: bigint; export declare const maxUint64: bigint; export declare const maxUint40: bigint; export declare const ITEMS_PER_PAGE = 12; export declare const CONTENT_HASH_ALGORITHM = "sha256"; export declare const IPFS_PARAMETER_LIMIT = 10; export declare const IPFS_SIZE_LIMIT = "1500kb"; export declare const SUB_BOARD_TITLE_LIMIT = 10; export declare const LOGO_SIZE = 128; export declare const SEO_IMAGE_SIZE = 1024; export declare const BANNER_WIDTH = 900; export declare const BANNER_HEIGHT = 200; export declare const LOGO_FILE_LIMIT: number; export declare const BANNER_FILE_LIMIT: number; export declare const PERCENT_DECIMALS = 4; export declare const NATIVE_PRICE_DECIMALS = 9; export declare const HOT_PERCENT = "85"; export declare const DESCRIPTION_LIMIT = 2500; export declare const FIFTEEN_MINUTES: number; export declare const ONE_DAY: number; export declare const SEED_LENGTH = 25; export declare const COPIED_TIEMOUT = 800; export declare const CDN_URL: string; export declare const ORIGINAL_IPFS_URL = "https://ipfs.io/ipfs"; export declare const IPFS_URI: string; export declare const PATH_IPFS: string; export declare const HOST_URL: string; export declare const SOCKET_URL: string; export declare const WAIT_FOR_RPC: number; export declare const allowedDomains: string[]; export declare const tokenMetadataProgramAddress = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"; export declare const wSolMintAddress = "So11111111111111111111111111111111111111112"; export declare const adminAddresses: { eth: string; tsol: string; sol: string; bsc: string; tbsc: string; sui: string; tsui: string; ton: string; tton: string; base: string; uni: string; }; export declare const KEEP_ALIVE_INTERVAL: { tbsc: number; tsol: number; eth: number; sol: number; base: number; uni: number; bsc: number; ton: number; tton: number; sui: number; tsui: number; }; export declare const stateValues: { stopStatusAccount: string; lock: string; tokenAccountSeed: string; platformSeed: string; metadataSeed: string; buyerSeed: string; tokenSeed: string; mintSeed: string; wSolMint: string; metadataProgramId: string; }; export declare const constValues: { [key: string]: { maxUint: bigint; zeroAddress: string; functionNames: Record<string, string>; }; }; export declare const solAccounts: Record<ChainSymbols.sol | ChainSymbols.solDevnet, { appStorage: string; admin: string; raydiumV5: string; raydiumFee: string; }>; export declare const contractInfo: Record<ChainSymbols, { address: string; versions: { abi: any; block: number; }[]; }>; export declare const rpcs: { tbsc: { url: string; block: number; }[]; bsc: { url: string; block: number; }[]; eth: { url: string; block: number; }[]; base: { url: string; block: number; }[]; uni: { url: string; block: number; }[]; sui: { url: string; block: number; }[]; tsol: { url: string; block: number; }[]; sol: { url: string; block: number; }[]; tsui: never[]; ton: never[]; tton: never[]; }; export declare const RAISE_TOKENS: { tbsc: { address: string; symbol: string; decimals: number; }[]; eth: { address: string; symbol: string; decimals: number; }[]; bsc: { address: string; symbol: string; decimals: number; }[]; uni: { address: string; symbol: string; decimals: number; }[]; base: { address: string; symbol: string; decimals: number; }[]; tsol: { address: string; symbol: string; decimals: number; }[]; sol: { address: string; symbol: string; decimals: number; }[]; }; export declare const SWAP_ROUTERS: { tbsc: { id: string; label: string; url: string; v2: { router: string; factory: string; }; v3: { positionManager: string; router: string; factory: string; fee: number[]; }; }[]; eth: { id: string; label: string; url: string; v2: { router: string; factory: string; }; v3: { positionManager: string; router: string; factory: string; fee: number[]; }; }[]; bsc: ({ id: string; label: string; url: string; v2: { router: string; factory: string; }; v3: { positionManager: string; router: string; factory: string; fee: number[]; }; } | { id: string; label: string; url: string; v2: { router: string; factory: string; }; v3?: undefined; })[]; base: ({ id: string; label: string; url: string; v2: { router: string; factory: string; }; v3: { positionManager: string; router: string; factory: string; fee: number[]; }; } | { id: string; label: string; url: string; v2: { router: string; factory: string; }; v3?: undefined; })[]; uni: { id: string; label: string; url: string; v2: { router: string; factory: string; }; v3: { positionManager: string; router: string; factory: string; fee: number[]; }; }[]; sol: { id: string; label: string; url: string; v3: { router: string; }; }[]; tsol: { id: string; label: string; url: string; v3: { router: string; }; }[]; };