Pull in observable API from UI (#175)
* Pull in observable api... * Progress changing stuff... * votingBalance * Update resul types * Expose toBn on Moment * Rework... WIP * ... More type cleanups * Linting passes * BN helpers for UInt * Update api-observable * Add api-observable package.json * Allow Struct/Tuple to create from hex string * Future-proof Length with bitLength (u64/u128 compant encoding PR out) * Make Compact number encoding shareable * Split Api into functional sections * Cleanup types * Additional per-use comments * Remove params/primitives from README * api-format -> api-codec * Whitespace.
This commit is contained in:
Vendored
+5
-4
@@ -12,10 +12,11 @@ export type RxApiInterface$Section = {
|
||||
[index: string]: RxApiInterface$Method
|
||||
};
|
||||
|
||||
type RxApiInterface$Keys = {
|
||||
readonly [key in keyof typeof interfaces]: RxApiInterface$Section;
|
||||
};
|
||||
export type RxApiInterface = {
|
||||
readonly author: RxApiInterface$Section;
|
||||
readonly chain: RxApiInterface$Section;
|
||||
readonly state: RxApiInterface$Section;
|
||||
readonly system: RxApiInterface$Section;
|
||||
|
||||
export type RxApiInterface = RxApiInterface$Keys & {
|
||||
isConnected: () => BehaviorSubject<boolean>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user