chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
12 lines (11 loc) • 578 B
TypeScript
import { CurrencyModules } from './Currencies/CurrencyModules';
import { ChainGateContext } from './Currencies/CurrencyUtils/ChainGateContext';
type CurrencyKey = keyof typeof CurrencyModules;
type CurrencyUtilsCtor<K extends CurrencyKey> = (typeof CurrencyModules)[K]['utils'];
type CurrencyUtilsInst<K extends CurrencyKey> = InstanceType<CurrencyUtilsCtor<K>>;
export declare class CurrencyUtilsProvider {
private readonly context;
constructor(context: ChainGateContext);
currency<C extends keyof typeof CurrencyModules>(id: C): CurrencyUtilsInst<C>;
}
export {};