import { BigNumberish } from "ethers"; import { Signer } from "ethers"; import { CORE_FUNCS } from "../constants"; export type BoxTokenData = { address: string; symbol: string; name: string; decimals: number; chainId: number; balance?: BigNumberish; logo?: string; }; export type TokenData = { amountIn: BigNumberish; amountOut: BigNumberish; tokenIn: string; tokenOut: string; path: string; payload: string; }; export type TheBoxProps = { signer: Signer | null; nftParams: { address: string; chainId: number; paymentToken?: string; mintParams?: { abi: string; params: any[]; cost: BigNumberish; endSupply?: { maxCap?: number; saleEndBlock?: number; sellOutDate?: number; }; }; secondaryParams?: { recipient?: string; tokenId?: number; }; displayCost?: string; title?: string; }; options?: { allowSecondary: boolean; allowPrimary: boolean; allowBridging: boolean; allowSwapping: boolean; }; onTxError?: Function; onTxPending?: Function; onTxReceipt?: Function; apiKey: string; className?: string; }; export type FunctionCallData = { method_name: CORE_FUNCS; contract_address: string; core_abi: any; starting_amount: BigNumberish; starting_token: string; starting_token_decimals: number; src_chain: number; dst_chain: number; params: any[]; stargate_fee: BigNumberish; application_fee: BigNumberish; tx?: any; }; export type FunctionCallReponse = { loading: boolean; data?: FunctionCallData; }; export type LzBridgeData = { _srcPoolId: BigNumberish; _dstPoolId: BigNumberish; _dstChainId: BigNumberish; _bridgeAddress: string; fee: BigNumberish; }; export type LzTxObj = { dstGasForCall: number; dstNativeAmount: number; dstNativeAddr: string; }; export type MintAndBidData = { mintCount: number; bidData: { topBid: { id: string; price: { currency: { contract: string; name: string; symbol: string; decimals: number; }; amount: { raw: string; decimal: number; usd: number; native: number; }; netAmount: { raw: string; decimal: number; usd: number; native: number; }; }; maker: string; validFrom: number; validUntil: number; }; }; };