mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-17 00:51:07 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user