UNPKG

@metamask/snaps-utils

Version:
90 lines 3.82 kB
/** * A struct representing the market data for an asset. */ export declare const PricePercentChangeStruct: import("@metamask/superstruct").Struct<Record<string, number>, null>; /** * A struct representing the market data for an asset. */ export declare const MarketDataStruct: import("@metamask/superstruct").Struct<{ marketCap: string; totalVolume: string; circulatingSupply: string; allTimeHigh: string; allTimeLow: string; pricePercentChange?: Record<string, number> | undefined; }, { marketCap: import("@metamask/superstruct").Struct<string, null>; totalVolume: import("@metamask/superstruct").Struct<string, null>; circulatingSupply: import("@metamask/superstruct").Struct<string, null>; allTimeHigh: import("@metamask/superstruct").Struct<string, null>; allTimeLow: import("@metamask/superstruct").Struct<string, null>; pricePercentChange: import("@metamask/superstruct").Struct<Record<string, number> | undefined, null>; }>; /** * A struct representing the conversion rate between two assets. */ export declare const AssetConversionStruct: import("@metamask/superstruct").Struct<{ rate: string; conversionTime: number; expirationTime?: number | undefined; marketData?: { marketCap: string; totalVolume: string; circulatingSupply: string; allTimeHigh: string; allTimeLow: string; pricePercentChange?: Record<string, number> | undefined; } | undefined; }, { rate: import("@metamask/superstruct").Struct<string, null>; marketData: import("@metamask/superstruct").Struct<{ marketCap: string; totalVolume: string; circulatingSupply: string; allTimeHigh: string; allTimeLow: string; pricePercentChange?: Record<string, number> | undefined; } | undefined, { marketCap: import("@metamask/superstruct").Struct<string, null>; totalVolume: import("@metamask/superstruct").Struct<string, null>; circulatingSupply: import("@metamask/superstruct").Struct<string, null>; allTimeHigh: import("@metamask/superstruct").Struct<string, null>; allTimeLow: import("@metamask/superstruct").Struct<string, null>; pricePercentChange: import("@metamask/superstruct").Struct<Record<string, number> | undefined, null>; }>; conversionTime: import("@metamask/superstruct").Struct<number, null>; expirationTime: import("@metamask/superstruct").Struct<number | undefined, null>; }>; /** * A struct representing the response of the `onAssetsConversion` method. */ export declare const OnAssetsConversionResponseStruct: import("@metamask/superstruct").Struct<{ conversionRates: Record<`${string}:${string}/${string}:${string}`, Record<`${string}:${string}/${string}:${string}`, { rate: string; conversionTime: number; expirationTime?: number | undefined; marketData?: { marketCap: string; totalVolume: string; circulatingSupply: string; allTimeHigh: string; allTimeLow: string; pricePercentChange?: Record<string, number> | undefined; } | undefined; } | null>>; }, { conversionRates: import("@metamask/superstruct").Struct<Record<`${string}:${string}/${string}:${string}`, Record<`${string}:${string}/${string}:${string}`, { rate: string; conversionTime: number; expirationTime?: number | undefined; marketData?: { marketCap: string; totalVolume: string; circulatingSupply: string; allTimeHigh: string; allTimeLow: string; pricePercentChange?: Record<string, number> | undefined; } | undefined; } | null>>, null>; }>; //# sourceMappingURL=assets-conversion.d.cts.map