@bsv/wallet-toolbox
Version:
BRC100 conforming wallet, wallet storage and wallet signer components
24 lines • 960 B
TypeScript
import { Knex } from 'knex';
import { Chain } from '../../../../sdk';
interface Migration {
up: (knex: Knex) => PromiseLike<any>;
down?: (knex: Knex) => PromiseLike<any>;
}
interface MigrationSource<TMigrationSpec> {
getMigrations(loadExtensions: readonly string[]): Promise<TMigrationSpec[]>;
getMigrationName(migration: TMigrationSpec): string;
getMigration(migration: TMigrationSpec): Promise<Migration>;
}
export declare class ChaintracksKnexMigrations implements MigrationSource<string> {
chain: Chain;
migrations: Record<string, Migration>;
constructor(chain: Chain);
getMigrations(): Promise<string[]>;
getMigrationName(migration: string): string;
getMigration(migration: string): Promise<Migration>;
getLatestMigration(): Promise<string>;
static latestMigration(): Promise<string>;
setupMigrations(): Record<string, Migration>;
}
export {};
//# sourceMappingURL=ChaintracksKnexMigrations.d.ts.map