UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

17 lines (16 loc) 754 B
import { ProposalWithBaseInfo } from '../types'; import { ISlashingVoting } from '../ethers-contracts/ISlashingVoting'; import { SystemContractInstance } from './SystemContractInstance'; export interface SlashingProposal extends ProposalWithBaseInfo { 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> { getSlashingVictim(proposalId: string | number): Promise<string>; getSlashingProposer(proposalId: string | number): Promise<string>; }