mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-21 23:48:05 +00:00
14 lines
413 B
JavaScript
14 lines
413 B
JavaScript
import { nobody } from './pair/nobody.js';
|
|
import { createTestKeyring } from './testing.js';
|
|
export function createTestPairs(options, isDerived = true) {
|
|
const keyring = createTestKeyring(options, isDerived);
|
|
const pairs = keyring.getPairs();
|
|
const map = { nobody: nobody() };
|
|
for (const p of pairs) {
|
|
if (p.meta.name) {
|
|
map[p.meta.name] = p;
|
|
}
|
|
}
|
|
return map;
|
|
}
|