Bump dev (w/ ts-eslint updates) (#5691)

This commit is contained in:
Jaco
2023-08-16 11:00:52 +03:00
committed by GitHub
parent 319535a1e9
commit d8136a8e61
73 changed files with 358 additions and 268 deletions
+3 -5
View File
@@ -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');
+3 -5
View File
@@ -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> =>