Ki contracts (#143)

* add contracts to keyring

* genesisHash

* requested changes + allPlus option type

* remove duplicate fn

* add contracts to keyring

* genesisHash

* requested changes + allPlus option type

* remove duplicate fn

* changes

* contract key

* prefixes

* remove fallback hell

* errors

* remove breaking api
This commit is contained in:
kwingram25
2019-06-07 14:27:28 +02:00
committed by GitHub
parent 042b0e3f6c
commit c2e3d5fabe
3 changed files with 31 additions and 29 deletions
+2 -8
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { KeyringStruct } from '../types';
import { KeyringItemType, KeyringStruct } from '../types';
export type KeyringSectionOption = {
className?: string,
@@ -17,13 +17,7 @@ export type KeyringSectionOption = {
export type KeyringSectionOptions = Array<KeyringSectionOption>;
export type KeyringOptions = {
account: KeyringSectionOptions,
address: KeyringSectionOptions,
all: KeyringSectionOptions,
allPlus: KeyringSectionOptions,
contract: KeyringSectionOptions,
recent: KeyringSectionOptions,
testing: KeyringSectionOptions
[type in KeyringItemType | 'all' | 'allPlus' | 'recent' | 'testing']: KeyringSectionOptions
};
export type KeyringOption$Type = keyof KeyringOptions;