1 | import type { KeypairType } from '@polkadot/util-crypto/types';
|
2 | import type { KeyringOptions, KeyringPair } from './types.js';
|
3 | export interface TestKeyringMap {
|
4 | nobody: KeyringPair;
|
5 | [index: string]: KeyringPair;
|
6 | }
|
7 | export interface TestKeyringMapSubstrate extends TestKeyringMap {
|
8 | alice: KeyringPair;
|
9 | bob: KeyringPair;
|
10 | charlie: KeyringPair;
|
11 | dave: KeyringPair;
|
12 | eve: KeyringPair;
|
13 | ferdie: KeyringPair;
|
14 | }
|
15 | export interface TestKeyringMapEthereum extends TestKeyringMap {
|
16 | Alith: KeyringPair;
|
17 | Baltathar: KeyringPair;
|
18 | Charleth: KeyringPair;
|
19 | Dorothy: KeyringPair;
|
20 | Ethan: KeyringPair;
|
21 | Faith: KeyringPair;
|
22 | }
|
23 | export type DetectMap<O extends KeyringOptions | undefined> = DetectPairType<O> extends 'ethereum' ? TestKeyringMapEthereum : TestKeyringMapSubstrate;
|
24 | export type DetectPairType<O extends KeyringOptions | undefined> = O extends KeyringOptions ? O['type'] extends KeypairType ? O['type'] : 'sr25519' : 'sr25519';
|
25 | export declare function createTestPairs<O extends KeyringOptions, M = DetectMap<O>>(options?: O, isDerived?: boolean): M;
|