UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

43 lines (42 loc) 2.4 kB
import type { ContractTransaction, BigNumberish } from 'ethers'; import { ASlashingEscrow } from '../../ethers-contracts/ASlashingEscrow'; import { BaseContractInstance } from '../BaseContractInstance'; import { QNonPayableTx, ArbitrationInfo } from '../../types'; /** * Abstract Slashing Escrow instance to interact with Validator and RootNodes slashing escrow contract. * See [onchain documentation](@system-contracts-repo/@network/ASlashingEscrow/) for more details. */ export declare class BaseSlashingEscrowInstance<T extends ASlashingEscrow> extends BaseContractInstance<T> { /** * [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#confirmdecision) */ confirmDecision(id: BigNumberish, hash: string | number[], txOptions?: QNonPayableTx): Promise<ContractTransaction>; /** * [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#arbitrationinfos) */ arbitrationInfos(id: BigNumberish): Promise<ArbitrationInfo>; /** * [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#castobjection) */ castObjection(id: BigNumberish, remark: string, txOptions?: QNonPayableTx): Promise<ContractTransaction>; /** * [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#setremark) */ setRemark(id: BigNumberish, remark: string, txOptions?: QNonPayableTx): Promise<ContractTransaction>; /** * [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#setproposerremark) */ setProposerRemark(id: BigNumberish, proposerRemark: string, appealConfirmed: boolean, txOptions?: QNonPayableTx): Promise<ContractTransaction>; /** * [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#execute) */ execute(id: BigNumberish, txOptions?: QNonPayableTx): Promise<ContractTransaction>; /** * [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#proposedecision) */ proposeDecision(id: BigNumberish, percentage: BigNumberish, notAppealed: boolean, reference: string, txOptions?: QNonPayableTx): Promise<ContractTransaction>; /** * [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#recallproposeddecision) */ recallProposedDecision(id: BigNumberish, txOptions?: QNonPayableTx): Promise<ContractTransaction>; }