mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-29 17:09:55 +00:00
feat: initial Pezkuwi Apps rebrand from polkadot-apps
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
This commit is contained in:
commit
d21bfb1320
5867 files changed
+329019
No files matched your search
@@ -0,0 +1,41 @@
|
||||
// Copyright 2017-2025 @pezkuwi/test-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Registrar } from '@pezkuwi/react-hooks/types';
|
||||
import type { H256, Multisig, ProxyDefinition, RegistrationJudgement, Voting } from '@pezkuwi/types/interfaces';
|
||||
import type { BN } from '@pezkuwi/util';
|
||||
|
||||
class MockApiHooks {
|
||||
public multisigApprovals: [H256, Multisig][] | undefined = [];
|
||||
public delegations: Voting[] | undefined;
|
||||
public proxies: [ProxyDefinition[], BN][] | undefined = [];
|
||||
public subs: string[] | undefined = [];
|
||||
public judgements: RegistrationJudgement[] | undefined = [];
|
||||
public registrars: Registrar[] = [];
|
||||
|
||||
public setDelegations (delegations: Voting[]) {
|
||||
this.delegations = delegations;
|
||||
}
|
||||
|
||||
public setMultisigApprovals (multisigApprovals: [H256, Multisig][]) {
|
||||
this.multisigApprovals = multisigApprovals;
|
||||
}
|
||||
|
||||
public setProxies (proxies: [ProxyDefinition[], BN][]) {
|
||||
this.proxies = proxies;
|
||||
}
|
||||
|
||||
public setSubs (subs: string[] | undefined) {
|
||||
this.subs = subs;
|
||||
}
|
||||
|
||||
public setJudgements (judgements: RegistrationJudgement[] | undefined) {
|
||||
this.judgements = judgements;
|
||||
}
|
||||
|
||||
public setRegistrars (registrars: Registrar[]) {
|
||||
this.registrars = registrars;
|
||||
}
|
||||
}
|
||||
|
||||
export const mockApiHooks = new MockApiHooks();
|
||||
Reference in new issue
Block a user