@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
20 lines (19 loc) • 823 B
TypeScript
import Web3 from 'web3';
import { BaseProposal } from '../types';
import { ISlashingVoting } from '../web3-contracts/ISlashingVoting';
import { SystemContractInstance } from './SystemContractInstance';
export interface SlashingProposal {
base: BaseProposal;
proposer: string;
candidate: string;
amountToSlash: string;
}
/**
* Slashing interface to interact with Slashing implementation contracts.
* See [onchain documentation](@system-contracts-repo/@network/ISlashingVoting/) for more details.
*/
export declare class SlashingVotingHelper<T extends ISlashingVoting> extends SystemContractInstance<T> {
constructor(web3: Web3, abi: string, address: string);
getSlashingVictim(proposalId: string | number): Promise<string>;
getSlashingProposer(proposalId: string | number): Promise<string>;
}