-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1398 from oasisprotocol/csillag/named-accounts-on…
…-oasis Add named accounts
- Loading branch information
Showing
25 changed files
with
594 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Initial support for named accounts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Network } from '../../types/network' | ||
import { Account, Layer, Runtime, RuntimeAccount } from '../../oasis-nexus/api' | ||
|
||
export type AccountMetadata = { | ||
address: string | ||
name?: string | ||
description?: string | ||
} | ||
|
||
export type AccountMetadataInfo = { | ||
metadata?: AccountMetadata | ||
isLoading: boolean | ||
isError: boolean | ||
} | ||
|
||
export type AccountMap = Map<string, AccountMetadata> | ||
|
||
export type AccountData = { | ||
map: AccountMap | ||
list: AccountMetadata[] | ||
} | ||
|
||
export type AccountNameSearchMatch = { | ||
network: Network | ||
layer: Layer | ||
address: string | ||
} | ||
|
||
export type AccountNameSearchRuntimeMatch = { | ||
network: Network | ||
layer: Runtime | ||
address: string | ||
} | ||
|
||
export type AccountNameSearchConsensusMatch = { | ||
network: Network | ||
layer: typeof Layer.consensus | ||
address: string | ||
} | ||
|
||
export type AccountNameSearchResults = { | ||
results: (Account | RuntimeAccount)[] | undefined | ||
isLoading: boolean | ||
isError: boolean | ||
} | ||
|
||
export type AccountNameSearchRuntimeResults = { | ||
results: RuntimeAccount[] | undefined | ||
isLoading: boolean | ||
isError: boolean | ||
} |
Oops, something went wrong.