UNPKG

691 BTypeScriptView Raw
1/**
2 * @prettier
3 */
4import { BaseCoin as StaticsBaseCoin } from '@bitgo/statics';
5import { BitGo } from '../bitgo';
6import { BaseCoin } from './baseCoin';
7export declare type CoinConstructor = (bitgo: BitGo, staticsCoin?: Readonly<StaticsBaseCoin>) => BaseCoin;
8export declare class CoinFactory {
9 private coinConstructors;
10 /**
11 *
12 * @param bitgo
13 * @param name
14 * @throws CoinNotDefinedError
15 * @throws UnsupportedCoinError
16 */
17 getInstance(bitgo: BitGo, name: string): BaseCoin;
18 registerCoinConstructor(name: string, constructor: CoinConstructor): void;
19}
20export declare const GlobalCoinFactory: CoinFactory;
21//# sourceMappingURL=coinFactory.d.ts.map
\No newline at end of file