@moonsong-labs/moonwall-util
Version:
Testing framework for the Moon family of projects
10 lines (7 loc) • 419 B
TypeScript
import { ApiPromise } from '@polkadot/api';
import Debug from 'debug';
declare function setupLogger(name: string): Debug.Debugger;
declare function log(...msg: any[]): void;
declare const printTokens: (api: ApiPromise, tokens: bigint, decimals?: number, pad?: number) => string;
declare const printEvents: (api: ApiPromise, blockHash?: string) => Promise<void>;
export { log, printEvents, printTokens, setupLogger };