UNPKG

466 BJavaScriptView Raw
1// Copyright 2017-2022 @polkadot/keyring authors & contributors
2// SPDX-License-Identifier: Apache-2.0
3import { nobody } from "./pair/nobody.js";
4import { createTestKeyring } from "./testing.js";
5export function createTestPairs(options, isDerived = true) {
6 const keyring = createTestKeyring(options, isDerived);
7 const pairs = keyring.getPairs();
8 const map = {
9 nobody: nobody()
10 };
11
12 for (const p of pairs) {
13 map[p.meta.name] = p;
14 }
15
16 return map;
17}
\No newline at end of file