UNPKG

@renec-foundation/metaplex-js

Version:

Metaplex JavaScript API

19 lines (16 loc) 481 B
// We are keeping an organized enum of all currencies to allow for easier refactoring should // we decide to change the way that metaplex names currencies internally export enum Currency { USD = 'usd', EUR = 'eur', AR = 'ar', SOL = 'sol', } export type ConversionRatePair = { from: Currency; to: Currency; rate: number; }; export interface ConversionRateProvider { getRate(from: Currency | Currency[], to: Currency | Currency[]): Promise<ConversionRatePair[]>; }