UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

40 lines (39 loc) 3.4 kB
import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext'; export declare function isPolymarketCustomer(apiKey: string): apiKey is "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"; export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN"; export declare function isBsxCustomer(apiKey: string): apiKey is "zN1zrkmLQn4oZtLUW9Qt02uuBI3Jvrgj8Ni40Gf1"; export declare function isEtherealCustomer(apiKey: string): apiKey is "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"; export declare function isHyperdashCustomer(apiKey: string): apiKey is "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe"; export declare function isMonadCustomer(apiKey: string): apiKey is "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc"; export declare function isMonkeyTiltCustomer(apiKey: string): apiKey is "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX"; export declare function isBasedCustomer(apiKey: string): apiKey is "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e"; export declare function isHyenaCustomer(apiKey: string): apiKey is "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW"; export declare function isAvantisCustomer(apiKey: string): apiKey is "6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2"; export declare function isPerplCustomer(apiKey: string): apiKey is "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu"; export declare function isLighterxyzCustomer(apiKey: string): apiKey is "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2"; export declare function isFanaticsCustomer(apiKey: string): apiKey is "lI7amueGK94QtGa7sGGVf8n0XhIcn4sHFAZRu5Jj"; export declare function isAaveCustomer(apiKey: string): apiKey is "EWzSv8tWnQ7UcZ2IsDqFw1dYo3Df56FX6KBJ5ztS"; export declare function isNadoCustomer(apiKey: string): apiKey is "iFwbI36PWs6egzqjemCVz8PRmDwaANr51WtaARhV"; export declare function isMallardCustomer(apiKey: string): apiKey is "hxiC33LDFN9BekjyOXfYo597NQ6TdkBG9soUGyW2"; /** * Gates the source-select "Native" fast-path: when the connected wallet * already holds `checkoutConfig.targetAsset`, surface a one-click row * that skips asset-select and lands on InputAmount. Currently Aave-only; * extend by OR-ing additional `is<Customer>Customer` predicates. */ export declare function isCustomerNativeFastPathEnabled(apiKey: string): apiKey is "EWzSv8tWnQ7UcZ2IsDqFw1dYo3Df56FX6KBJ5ztS"; export declare function isLighterEthSpot(apiKey: string, checkoutConfig: FunkitCheckoutConfig | undefined): boolean | undefined; /** * Whether a Lighter checkout targets a spot asset (as opposed to a perps * deposit). Lighter's spot routes encode "SPOT" in their `dynamicRoutingId` * (`LIGHTER_ETH_SPOT`, `LIGHTER_USDC_SPOT_NEW_USER`, …) while perps routes * encode "PERPS" (`LIGHTER_USDC_PERPS`, …). The active `dynamicRoutingId` * tracks the selected target candidate, so this distinguishes spot from perps * even when they share the same target token (the mainnet USDC new-user routes). * * Used to scope the token-entry-by-default treatment to spot deposits only — * perps deposits always open in fiat. A route without a recognisable spot id * is treated as non-spot (the safe, fiat default). */ export declare function isLighterSpot(apiKey: string, checkoutConfig: Pick<FunkitCheckoutConfig, 'dynamicRoutingId'> | undefined): boolean; export declare function isLighterSlowDeposit(apiKey: string, checkoutConfig: Pick<FunkitCheckoutConfig, 'targetChain'> | undefined): boolean;