@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
43 lines (42 loc) • 2.33 kB
TypeScript
import { ASlashingEscrow } from '../../web3-contracts/ASlashingEscrow';
import { BaseContractInstance } from '../BaseContractInstance';
import { QNonPayableTx, uint256, ArbitrationInfo } from '../../types';
import { TransactionReceipt } from 'web3-eth';
/**
* 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: uint256, hash: string | number[], txOptions?: QNonPayableTx): Promise<TransactionReceipt>;
/**
* [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#arbitrationinfos)
*/
arbitrationInfos(id: uint256): Promise<ArbitrationInfo>;
/**
* [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#castobjection)
*/
castObjection(id: uint256, remark: string, txOptions?: QNonPayableTx): Promise<TransactionReceipt>;
/**
* [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#setremark)
*/
setRemark(id: uint256, remark: string, txOptions?: QNonPayableTx): Promise<TransactionReceipt>;
/**
* [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#setproposerremark)
*/
setProposerRemark(id: uint256, proposerRemark: string, appealConfirmed: boolean, txOptions?: QNonPayableTx): Promise<TransactionReceipt>;
/**
* [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#execute)
*/
execute(id: uint256, txOptions?: QNonPayableTx): Promise<TransactionReceipt>;
/**
* [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#proposedecision)
*/
proposeDecision(id: uint256, percentage: uint256, notAppealed: boolean, reference: string, txOptions?: QNonPayableTx): Promise<TransactionReceipt>;
/**
* [External documentation](@system-contracts-repo/@network/ASlashingEscrow/#recallproposeddecision)
*/
recallProposedDecision(id: uint256, txOptions?: QNonPayableTx): Promise<TransactionReceipt>;
}