UNPKG

zic-evm-sdk

Version:
66 lines (65 loc) 1.89 kB
/** * Supported chains by zebec instant card sdk. */ export type SupportedChain = "mainnet" | "sepolia" | "base" | "bsc" | "bscTestnet" | "odysseyTestnet" | "odyssey"; /** * Supported chainIds by zebec instant card sdk. */ export type SupportedChainId = 1 | 11155111 | 8453 | 56 | 97 | 131313 | 153153; /** * Id which associated with card type featured by zebec instant card. */ export type CardTypeId = "103253238082" | "103251238082" | "103209238082" | "103156599666" | "103115238587" | "103148496206" | "103173238082" | "103150238082" | "103138238082" | "103168238082" | "103174238082" | "103130509702" | "103178238587" | "103108509702"; /** * Zebec Instant Card configs */ export type CardConfig = { nativeFeePercent: string; nonNativeFeePercent: string; revenueFeePercent: string; totalCardSold: bigint; cardVault: string; revenueVault: string; commissionVault: string; usdcAddress: string; minCardAmount: string; maxCardAmount: string; dailyCardPurchaseLimit: string; }; export type FeeTier = { feePercent: string; minAmount: string; maxAmount: string; }; export type CardPurchaseOfDay = { totalCardPurchased: string; cardPurchasedTimestamp: number; }; /** * A type that hold swap transaction data */ export type SwapData = { dstAmount: string; from: string; to: string; swapParams: { executor: string; description: { srcToken: string; dstToken: string; srcReceiver: string; dstReceiver: string; srcAmount: string; minReturnAmount: string; flags: string; }; routeData: string; }; ether: string; gas: number; gasPrice: string; }; export type SwapAndBuyCardParams = Omit<SwapData, "gas" | "gasPrice"> & { cardTypeId: CardTypeId; buyerEmail: string; };