mirror of
https://github.com/pezkuwichain/pezkuwi-sdk-ui.git
synced 2026-05-07 00:27:56 +00:00
d949863789
Comprehensive web interface for interacting with Pezkuwi blockchain. Features: - Blockchain explorer - Wallet management - Staking interface - Governance participation - Developer tools Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
// Copyright 2017-2026 @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();
|