Bump dev (w/ ts-eslint updates) (#5691)
This commit is contained in:
@@ -17,11 +17,9 @@ type BalanceResult = [Balance, Balance, Balance, Balance];
|
||||
|
||||
type Result = [Index, BalanceResult[]];
|
||||
|
||||
type DeriveCustomAccount = DeriveApi['derive'] & {
|
||||
[custom: string]: {
|
||||
customAccount?: DeriveApi['query']['balances']['account']
|
||||
}
|
||||
}
|
||||
type DeriveCustomAccount = DeriveApi['derive'] & Record<string, {
|
||||
customAccount?: DeriveApi['query']['balances']['account']
|
||||
}>
|
||||
|
||||
function zeroBalance (api: DeriveApi) {
|
||||
return api.registry.createType('Balance');
|
||||
|
||||
@@ -23,11 +23,9 @@ interface AllLocked {
|
||||
vestingLocked: Balance
|
||||
}
|
||||
|
||||
type DeriveCustomLocks = DeriveApi['derive'] & {
|
||||
[custom: string]: {
|
||||
customLocks?: DeriveApi['query']['balances']['locks']
|
||||
}
|
||||
}
|
||||
type DeriveCustomLocks = DeriveApi['derive'] & Record<string, {
|
||||
customLocks?: DeriveApi['query']['balances']['locks']
|
||||
}>
|
||||
|
||||
const VESTING_ID = '0x76657374696e6720';
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import { memo } from '../util/index.js';
|
||||
|
||||
export function votingBalances (instanceId: string, api: DeriveApi): (addresses?: (AccountId | AccountIndex | Address | string)[]) => Observable<DeriveBalancesAccount[]> {
|
||||
return memo(instanceId, (addresses?: (AccountId | AccountIndex | Address | string)[]): Observable<DeriveBalancesAccount[]> =>
|
||||
!addresses || !addresses.length
|
||||
!addresses?.length
|
||||
? of([] as DeriveBalancesAccount[])
|
||||
: combineLatest(
|
||||
addresses.map((accountId): Observable<DeriveBalancesAccount> =>
|
||||
|
||||
Reference in New Issue
Block a user