1 | import { nobody } from './pair/nobody.js';
|
2 | import { createTestKeyring } from './testing.js';
|
3 | export function createTestPairs(options, isDerived = true) {
|
4 | const keyring = createTestKeyring(options, isDerived);
|
5 | const pairs = keyring.getPairs();
|
6 | const map = { nobody: nobody() };
|
7 | for (const p of pairs) {
|
8 | if (p.meta.name) {
|
9 | map[p.meta.name] = p;
|
10 | }
|
11 | }
|
12 | return map;
|
13 | }
|