@kanalabs/kana-widget-v2
Version:
Kana Widget for cross-chain bridging and swap.
109 lines (105 loc) • 2.64 kB
TypeScript
/// <reference types="react" />
import { WidgetConfig as WidgetConfig$1 } from 'utils/types';
declare const Widget: (config: WidgetConfig$1) => JSX.Element;
declare enum AptosDexsFilter {
Pontem = "pontem",
Aptoswap = "aptoswap",
Aux = "aux",
Cetus = "cetus",
AnimeSwap = "animeSwap",
ThalaSwap = "thalaSwap",
PancakeSwap = "pancakeSwap"
}
declare enum AptosWalletFilter {
Fewcha = "Fewcha",
Martian = "Martian",
Petra = "Petra",
Pontem = "Pontem",
Rise = "Rise",
DevTwallet = "Dev T wallet",
Twallet = "T wallet",
QaTwallet = "Qa T wallet"
}
declare enum Environment {
local = "local",
production = "production",
development = "development",
test = "test"
}
declare enum Chain {
Solana = 1,
Aptos = 2,
Polygon = 3,
BinanceSmartChain = 4,
Sui = 5,
Ethereum = 6,
Base = 7,
ZkSync = 9,
Avalanche = 10,
Arbitrum = 11
}
declare enum ChainType {
SameChain = 1,
CrossChain = 0
}
declare enum ModeType {
dark = 0,
light = 1
}
declare enum BridgeOption {
LayerZero = "layerzero",
CCTP = "cctp",
Wormhole = "wormhole"
}
interface ChainsConfig {
sourceChain?: Chain[];
targetChain?: Chain[];
}
interface DexsConfig {
aptos?: AptosDexsFilter[];
}
interface WalletConfig {
aptos?: AptosWalletFilter[];
}
interface ProvidersConfig {
aptosProvider?: string;
solanaProvider?: string;
polygonProvider?: string;
binanceProvider?: string;
ethereumProvider?: string;
arbitrumProvider?: string;
avalancheProvider?: string;
baseProvider?: string;
zkSyncProvider?: string;
suiProvider?: string;
}
interface ContainerStyleConfig {
backgroundColor?: string;
primaryColor?: string;
secondaryColor?: string;
buttonColor?: string;
}
interface WidgetConfig {
sdkKey: string;
tokens?: Partial<Record<Chain, string[]>>;
integrator?: string;
environment?: Environment;
chains?: ChainsConfig;
dexs?: DexsConfig;
wallet?: WalletConfig;
bridges?: BridgeOption[];
redeem?: boolean;
tour?: boolean;
Provider?: ProvidersConfig;
containerStyle?: ContainerStyleConfig;
theme?: ModeType;
paymasterApikey?: string;
paymasterUrl?: string;
isPaymaster?: boolean;
googleClientId?: string;
}
declare enum ProductIdList {
KANAWIDGET = 0,
KANATRANSFER = 1
}
export { AptosDexsFilter, AptosWalletFilter, BridgeOption, Chain, ChainType, ChainsConfig, ContainerStyleConfig, DexsConfig, Environment, Widget as KanaWidget, ModeType, ProductIdList, ProvidersConfig, WalletConfig, WidgetConfig };