Cleanup class variable linebreaks (#5422)
This commit is contained in:
@@ -60,65 +60,38 @@ function getAtQueryFn<ApiType extends ApiTypes> (api: ApiDecoration<ApiType>, {
|
||||
|
||||
export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
readonly #instanceId: string;
|
||||
|
||||
#registry: Registry;
|
||||
|
||||
readonly #runtimeLog: Record<string, boolean> = {};
|
||||
|
||||
#registry: Registry;
|
||||
#storageGetQ: [Observable<Codec[]>, [StorageEntry, unknown[]][]][] = [];
|
||||
|
||||
#storageSubQ: [Observable<Codec[]>, [StorageEntry, unknown[]][]][] = [];
|
||||
|
||||
// HACK Use BN import so decorateDerive works... yes, wtf.
|
||||
protected __phantom = new BN(0);
|
||||
|
||||
protected _type: ApiTypes;
|
||||
protected _call: QueryableCalls<ApiType> = {} as QueryableCalls<ApiType>;
|
||||
|
||||
protected _consts: QueryableConsts<ApiType> = {} as QueryableConsts<ApiType>;
|
||||
|
||||
protected _derive?: ReturnType<Decorate<ApiType>['_decorateDerive']>;
|
||||
|
||||
protected _errors: DecoratedErrors<ApiType> = {} as DecoratedErrors<ApiType>;
|
||||
|
||||
protected _events: DecoratedEvents<ApiType> = {} as DecoratedEvents<ApiType>;
|
||||
|
||||
protected _extrinsics?: SubmittableExtrinsics<ApiType>;
|
||||
|
||||
protected _extrinsicType = GenericExtrinsic.LATEST_EXTRINSIC_VERSION;
|
||||
|
||||
protected _genesisHash?: Hash;
|
||||
|
||||
protected _isConnected: BehaviorSubject<boolean>;
|
||||
|
||||
protected _isReady = false;
|
||||
protected _query: QueryableStorage<ApiType> = {} as QueryableStorage<ApiType>;
|
||||
protected _queryMulti?: QueryableStorageMulti<ApiType>;
|
||||
protected _rpc?: DecoratedRpc<ApiType, RpcInterface>;
|
||||
protected _rpcCore: RpcCore & RpcInterface;
|
||||
protected _runtimeMap: Record<HexString, string> = {};
|
||||
protected _runtimeChain?: Text;
|
||||
protected _runtimeMetadata?: Metadata;
|
||||
protected _runtimeVersion?: RuntimeVersion;
|
||||
protected _rx: ApiInterfaceRx = { call: {} as QueryableCalls<'rxjs'>, consts: {} as QueryableConsts<'rxjs'>, query: {} as QueryableStorage<'rxjs'>, tx: {} as SubmittableExtrinsics<'rxjs'> } as ApiInterfaceRx;
|
||||
|
||||
protected readonly _options: ApiOptions;
|
||||
|
||||
protected _query: QueryableStorage<ApiType> = {} as QueryableStorage<ApiType>;
|
||||
|
||||
protected _queryMulti?: QueryableStorageMulti<ApiType>;
|
||||
|
||||
protected _rpc?: DecoratedRpc<ApiType, RpcInterface>;
|
||||
|
||||
protected _rpcCore: RpcCore & RpcInterface;
|
||||
|
||||
protected _runtimeMap: Record<HexString, string> = {};
|
||||
|
||||
protected _runtimeChain?: Text;
|
||||
|
||||
protected _runtimeMetadata?: Metadata;
|
||||
|
||||
protected _runtimeVersion?: RuntimeVersion;
|
||||
|
||||
protected _rx: ApiInterfaceRx = {
|
||||
call: {} as QueryableCalls<'rxjs'>,
|
||||
consts: {} as QueryableConsts<'rxjs'>,
|
||||
query: {} as QueryableStorage<'rxjs'>,
|
||||
tx: {} as SubmittableExtrinsics<'rxjs'>
|
||||
} as ApiInterfaceRx;
|
||||
|
||||
protected _type: ApiTypes;
|
||||
|
||||
/**
|
||||
* This is the one and only method concrete children classes need to implement.
|
||||
* It's a higher-order function, which takes one argument
|
||||
|
||||
@@ -31,13 +31,9 @@ function textToString (t: Text): string {
|
||||
|
||||
export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
#atLast: [string, ApiDecoration<ApiType>] | null = null;
|
||||
|
||||
#healthTimer: ReturnType<typeof setInterval> | null = null;
|
||||
|
||||
#registries: VersionedRegistry<ApiType>[] = [];
|
||||
|
||||
#updateSub?: Subscription | null = null;
|
||||
|
||||
#waitingRegistries: Record<HexString, Promise<VersionedRegistry<ApiType>>> = {};
|
||||
|
||||
constructor (options: ApiOptions, type: ApiTypes, decorateMethod: DecorateMethod<ApiType>) {
|
||||
|
||||
@@ -14,17 +14,11 @@ export interface CombinatorFunction {
|
||||
|
||||
export class Combinator<T extends unknown[] = unknown[]> {
|
||||
#allHasFired = false;
|
||||
|
||||
#callback: CombinatorCallback<T>;
|
||||
|
||||
#fired: boolean[] = [];
|
||||
|
||||
#fns: CombinatorFunction[] = [];
|
||||
|
||||
#isActive = true;
|
||||
|
||||
#results: unknown[] = [];
|
||||
|
||||
#subscriptions: UnsubscribePromise[] = [];
|
||||
|
||||
constructor (fns: (CombinatorFunction | [CombinatorFunction, ...unknown[]])[], callback: CombinatorCallback<T>) {
|
||||
|
||||
@@ -11,9 +11,7 @@ let id = 0;
|
||||
|
||||
export class SingleAccountSigner implements Signer {
|
||||
readonly #keyringPair: KeyringPair;
|
||||
|
||||
readonly #registry: Registry;
|
||||
|
||||
readonly #signDelay: number;
|
||||
|
||||
constructor (registry: Registry, keyringPair: KeyringPair, signDelay = 0) {
|
||||
|
||||
Reference in New Issue
Block a user