mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-01 14:11:07 +00:00
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
// Copyright 2017-2026 @pezkuwi/test-supports authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { DeriveBalancesAll, DeriveStakingAccount } from '@pezkuwi/api-derive/types';
|
|
import type { UseAccountInfo } from '@pezkuwi/react-hooks/types';
|
|
import type { KeyringJson$Meta } from '@pezkuwi/ui-keyring/types';
|
|
import type { AccountOverrides, Override } from '../types.js';
|
|
|
|
export const anAccount = (): AccountOverrides => ({});
|
|
|
|
export const anAccountWithBalance = (balance: Override<DeriveBalancesAll>): AccountOverrides => ({
|
|
balance
|
|
});
|
|
|
|
export const anAccountWithInfo = (info: Override<UseAccountInfo>): AccountOverrides => ({
|
|
info
|
|
});
|
|
|
|
export const anAccountWithMeta = (meta: Override<KeyringJson$Meta>): AccountOverrides => ({
|
|
meta
|
|
});
|
|
|
|
export const anAccountWithStaking = (staking: Override<DeriveStakingAccount>): AccountOverrides => ({
|
|
staking
|
|
});
|
|
|
|
export const anAccountWithBalanceAndMeta = (balance: Override<DeriveBalancesAll>, meta: Override<KeyringJson$Meta>): AccountOverrides => ({
|
|
balance,
|
|
meta
|
|
});
|
|
|
|
export const anAccountWithInfoAndMeta = (info: Override<UseAccountInfo>, meta: Override<KeyringJson$Meta>): AccountOverrides => ({
|
|
info,
|
|
meta
|
|
});
|