import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common"; export declare namespace IAttestation { type StateStruct = { requestCID: BytesLike; responseCID: BytesLike; subgraphDeploymentId: BytesLike; r: BytesLike; s: BytesLike; v: BigNumberish; }; type StateStructOutput = [ requestCID: string, responseCID: string, subgraphDeploymentId: string, r: string, s: string, v: bigint ] & { requestCID: string; responseCID: string; subgraphDeploymentId: string; r: string; s: string; v: bigint; }; type ReceiptStruct = { requestCID: BytesLike; responseCID: BytesLike; subgraphDeploymentId: BytesLike; }; type ReceiptStructOutput = [ requestCID: string, responseCID: string, subgraphDeploymentId: string ] & { requestCID: string; responseCID: string; subgraphDeploymentId: string; }; } export interface IDisputeManagerInterface extends Interface { getFunction(nameOrSignature: "acceptDispute" | "acceptDisputeConflict" | "areConflictingAttestations" | "cancelDispute" | "createAndAcceptLegacyDispute" | "createIndexingDispute" | "createQueryDispute" | "createQueryDisputeConflict" | "drawDispute" | "encodeReceipt" | "getAttestationIndexer" | "getDisputePeriod" | "getFishermanRewardCut" | "getStakeSnapshot" | "initialize" | "isDisputeCreated" | "rejectDispute" | "setArbitrator" | "setDisputeDeposit" | "setDisputePeriod" | "setFishermanRewardCut" | "setMaxSlashingCut" | "setSubgraphService"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "ArbitratorSet" | "DisputeAccepted" | "DisputeCancelled" | "DisputeDepositSet" | "DisputeDrawn" | "DisputeLinked" | "DisputePeriodSet" | "DisputeRejected" | "FishermanRewardCutSet" | "IndexingDisputeCreated" | "LegacyDisputeCreated" | "MaxSlashingCutSet" | "QueryDisputeCreated" | "SubgraphServiceSet"): EventFragment; encodeFunctionData(functionFragment: "acceptDispute", values: [BytesLike, BigNumberish]): string; encodeFunctionData(functionFragment: "acceptDisputeConflict", values: [BytesLike, BigNumberish, boolean, BigNumberish]): string; encodeFunctionData(functionFragment: "areConflictingAttestations", values: [IAttestation.StateStruct, IAttestation.StateStruct]): string; encodeFunctionData(functionFragment: "cancelDispute", values: [BytesLike]): string; encodeFunctionData(functionFragment: "createAndAcceptLegacyDispute", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string; encodeFunctionData(functionFragment: "createIndexingDispute", values: [AddressLike, BytesLike, BigNumberish]): string; encodeFunctionData(functionFragment: "createQueryDispute", values: [BytesLike]): string; encodeFunctionData(functionFragment: "createQueryDisputeConflict", values: [BytesLike, BytesLike]): string; encodeFunctionData(functionFragment: "drawDispute", values: [BytesLike]): string; encodeFunctionData(functionFragment: "encodeReceipt", values: [IAttestation.ReceiptStruct]): string; encodeFunctionData(functionFragment: "getAttestationIndexer", values: [IAttestation.StateStruct]): string; encodeFunctionData(functionFragment: "getDisputePeriod", values?: undefined): string; encodeFunctionData(functionFragment: "getFishermanRewardCut", values?: undefined): string; encodeFunctionData(functionFragment: "getStakeSnapshot", values: [AddressLike]): string; encodeFunctionData(functionFragment: "initialize", values: [ AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BigNumberish ]): string; encodeFunctionData(functionFragment: "isDisputeCreated", values: [BytesLike]): string; encodeFunctionData(functionFragment: "rejectDispute", values: [BytesLike]): string; encodeFunctionData(functionFragment: "setArbitrator", values: [AddressLike]): string; encodeFunctionData(functionFragment: "setDisputeDeposit", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "setDisputePeriod", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "setFishermanRewardCut", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "setMaxSlashingCut", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "setSubgraphService", values: [AddressLike]): string; decodeFunctionResult(functionFragment: "acceptDispute", data: BytesLike): Result; decodeFunctionResult(functionFragment: "acceptDisputeConflict", data: BytesLike): Result; decodeFunctionResult(functionFragment: "areConflictingAttestations", data: BytesLike): Result; decodeFunctionResult(functionFragment: "cancelDispute", data: BytesLike): Result; decodeFunctionResult(functionFragment: "createAndAcceptLegacyDispute", data: BytesLike): Result; decodeFunctionResult(functionFragment: "createIndexingDispute", data: BytesLike): Result; decodeFunctionResult(functionFragment: "createQueryDispute", data: BytesLike): Result; decodeFunctionResult(functionFragment: "createQueryDisputeConflict", data: BytesLike): Result; decodeFunctionResult(functionFragment: "drawDispute", data: BytesLike): Result; decodeFunctionResult(functionFragment: "encodeReceipt", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getAttestationIndexer", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getDisputePeriod", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getFishermanRewardCut", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getStakeSnapshot", data: BytesLike): Result; decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isDisputeCreated", data: BytesLike): Result; decodeFunctionResult(functionFragment: "rejectDispute", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setArbitrator", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setDisputeDeposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setDisputePeriod", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setFishermanRewardCut", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setMaxSlashingCut", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setSubgraphService", data: BytesLike): Result; } export declare namespace ArbitratorSetEvent { type InputTuple = [arbitrator: AddressLike]; type OutputTuple = [arbitrator: string]; interface OutputObject { arbitrator: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace DisputeAcceptedEvent { type InputTuple = [ disputeId: BytesLike, indexer: AddressLike, fisherman: AddressLike, tokens: BigNumberish ]; type OutputTuple = [ disputeId: string, indexer: string, fisherman: string, tokens: bigint ]; interface OutputObject { disputeId: string; indexer: string; fisherman: string; tokens: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace DisputeCancelledEvent { type InputTuple = [ disputeId: BytesLike, indexer: AddressLike, fisherman: AddressLike, tokens: BigNumberish ]; type OutputTuple = [ disputeId: string, indexer: string, fisherman: string, tokens: bigint ]; interface OutputObject { disputeId: string; indexer: string; fisherman: string; tokens: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace DisputeDepositSetEvent { type InputTuple = [disputeDeposit: BigNumberish]; type OutputTuple = [disputeDeposit: bigint]; interface OutputObject { disputeDeposit: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace DisputeDrawnEvent { type InputTuple = [ disputeId: BytesLike, indexer: AddressLike, fisherman: AddressLike, tokens: BigNumberish ]; type OutputTuple = [ disputeId: string, indexer: string, fisherman: string, tokens: bigint ]; interface OutputObject { disputeId: string; indexer: string; fisherman: string; tokens: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace DisputeLinkedEvent { type InputTuple = [disputeId1: BytesLike, disputeId2: BytesLike]; type OutputTuple = [disputeId1: string, disputeId2: string]; interface OutputObject { disputeId1: string; disputeId2: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace DisputePeriodSetEvent { type InputTuple = [disputePeriod: BigNumberish]; type OutputTuple = [disputePeriod: bigint]; interface OutputObject { disputePeriod: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace DisputeRejectedEvent { type InputTuple = [ disputeId: BytesLike, indexer: AddressLike, fisherman: AddressLike, tokens: BigNumberish ]; type OutputTuple = [ disputeId: string, indexer: string, fisherman: string, tokens: bigint ]; interface OutputObject { disputeId: string; indexer: string; fisherman: string; tokens: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace FishermanRewardCutSetEvent { type InputTuple = [fishermanRewardCut: BigNumberish]; type OutputTuple = [fishermanRewardCut: bigint]; interface OutputObject { fishermanRewardCut: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace IndexingDisputeCreatedEvent { type InputTuple = [ disputeId: BytesLike, indexer: AddressLike, fisherman: AddressLike, tokens: BigNumberish, allocationId: AddressLike, poi: BytesLike, blockNumber: BigNumberish, stakeSnapshot: BigNumberish, cancellableAt: BigNumberish ]; type OutputTuple = [ disputeId: string, indexer: string, fisherman: string, tokens: bigint, allocationId: string, poi: string, blockNumber: bigint, stakeSnapshot: bigint, cancellableAt: bigint ]; interface OutputObject { disputeId: string; indexer: string; fisherman: string; tokens: bigint; allocationId: string; poi: string; blockNumber: bigint; stakeSnapshot: bigint; cancellableAt: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace LegacyDisputeCreatedEvent { type InputTuple = [ disputeId: BytesLike, indexer: AddressLike, fisherman: AddressLike, allocationId: AddressLike, tokensSlash: BigNumberish, tokensRewards: BigNumberish ]; type OutputTuple = [ disputeId: string, indexer: string, fisherman: string, allocationId: string, tokensSlash: bigint, tokensRewards: bigint ]; interface OutputObject { disputeId: string; indexer: string; fisherman: string; allocationId: string; tokensSlash: bigint; tokensRewards: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace MaxSlashingCutSetEvent { type InputTuple = [maxSlashingCut: BigNumberish]; type OutputTuple = [maxSlashingCut: bigint]; interface OutputObject { maxSlashingCut: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace QueryDisputeCreatedEvent { type InputTuple = [ disputeId: BytesLike, indexer: AddressLike, fisherman: AddressLike, tokens: BigNumberish, subgraphDeploymentId: BytesLike, attestation: BytesLike, stakeSnapshot: BigNumberish, cancellableAt: BigNumberish ]; type OutputTuple = [ disputeId: string, indexer: string, fisherman: string, tokens: bigint, subgraphDeploymentId: string, attestation: string, stakeSnapshot: bigint, cancellableAt: bigint ]; interface OutputObject { disputeId: string; indexer: string; fisherman: string; tokens: bigint; subgraphDeploymentId: string; attestation: string; stakeSnapshot: bigint; cancellableAt: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SubgraphServiceSetEvent { type InputTuple = [subgraphService: AddressLike]; type OutputTuple = [subgraphService: string]; interface OutputObject { subgraphService: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface IDisputeManager extends BaseContract { connect(runner?: ContractRunner | null): IDisputeManager; waitForDeployment(): Promise; interface: IDisputeManagerInterface; queryFilter(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; queryFilter(filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; on(event: TCEvent, listener: TypedListener): Promise; on(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; once(event: TCEvent, listener: TypedListener): Promise; once(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; listeners(event: TCEvent): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners(event?: TCEvent): Promise; acceptDispute: TypedContractMethod<[ disputeId: BytesLike, tokensSlash: BigNumberish ], [ void ], "nonpayable">; acceptDisputeConflict: TypedContractMethod<[ disputeId: BytesLike, tokensSlash: BigNumberish, acceptDisputeInConflict: boolean, tokensSlashRelated: BigNumberish ], [ void ], "nonpayable">; areConflictingAttestations: TypedContractMethod<[ attestation1: IAttestation.StateStruct, attestation2: IAttestation.StateStruct ], [ boolean ], "view">; cancelDispute: TypedContractMethod<[ disputeId: BytesLike ], [ void ], "nonpayable">; createAndAcceptLegacyDispute: TypedContractMethod<[ allocationId: AddressLike, fisherman: AddressLike, tokensSlash: BigNumberish, tokensRewards: BigNumberish ], [ string ], "nonpayable">; createIndexingDispute: TypedContractMethod<[ allocationId: AddressLike, poi: BytesLike, blockNumber: BigNumberish ], [ string ], "nonpayable">; createQueryDispute: TypedContractMethod<[ attestationData: BytesLike ], [ string ], "nonpayable">; createQueryDisputeConflict: TypedContractMethod<[ attestationData1: BytesLike, attestationData2: BytesLike ], [ [string, string] ], "nonpayable">; drawDispute: TypedContractMethod<[ disputeId: BytesLike ], [ void ], "nonpayable">; encodeReceipt: TypedContractMethod<[ receipt: IAttestation.ReceiptStruct ], [ string ], "view">; getAttestationIndexer: TypedContractMethod<[ attestation: IAttestation.StateStruct ], [ string ], "view">; getDisputePeriod: TypedContractMethod<[], [bigint], "view">; getFishermanRewardCut: TypedContractMethod<[], [bigint], "view">; getStakeSnapshot: TypedContractMethod<[ indexer: AddressLike ], [ bigint ], "view">; initialize: TypedContractMethod<[ owner: AddressLike, arbitrator: AddressLike, disputePeriod: BigNumberish, disputeDeposit: BigNumberish, fishermanRewardCut_: BigNumberish, maxSlashingCut_: BigNumberish ], [ void ], "nonpayable">; isDisputeCreated: TypedContractMethod<[ disputeId: BytesLike ], [ boolean ], "view">; rejectDispute: TypedContractMethod<[ disputeId: BytesLike ], [ void ], "nonpayable">; setArbitrator: TypedContractMethod<[ arbitrator: AddressLike ], [ void ], "nonpayable">; setDisputeDeposit: TypedContractMethod<[ disputeDeposit: BigNumberish ], [ void ], "nonpayable">; setDisputePeriod: TypedContractMethod<[ disputePeriod: BigNumberish ], [ void ], "nonpayable">; setFishermanRewardCut: TypedContractMethod<[ fishermanRewardCut_: BigNumberish ], [ void ], "nonpayable">; setMaxSlashingCut: TypedContractMethod<[ maxSlashingCut_: BigNumberish ], [ void ], "nonpayable">; setSubgraphService: TypedContractMethod<[ subgraphService: AddressLike ], [ void ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "acceptDispute"): TypedContractMethod<[ disputeId: BytesLike, tokensSlash: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "acceptDisputeConflict"): TypedContractMethod<[ disputeId: BytesLike, tokensSlash: BigNumberish, acceptDisputeInConflict: boolean, tokensSlashRelated: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "areConflictingAttestations"): TypedContractMethod<[ attestation1: IAttestation.StateStruct, attestation2: IAttestation.StateStruct ], [ boolean ], "view">; getFunction(nameOrSignature: "cancelDispute"): TypedContractMethod<[disputeId: BytesLike], [void], "nonpayable">; getFunction(nameOrSignature: "createAndAcceptLegacyDispute"): TypedContractMethod<[ allocationId: AddressLike, fisherman: AddressLike, tokensSlash: BigNumberish, tokensRewards: BigNumberish ], [ string ], "nonpayable">; getFunction(nameOrSignature: "createIndexingDispute"): TypedContractMethod<[ allocationId: AddressLike, poi: BytesLike, blockNumber: BigNumberish ], [ string ], "nonpayable">; getFunction(nameOrSignature: "createQueryDispute"): TypedContractMethod<[attestationData: BytesLike], [string], "nonpayable">; getFunction(nameOrSignature: "createQueryDisputeConflict"): TypedContractMethod<[ attestationData1: BytesLike, attestationData2: BytesLike ], [ [string, string] ], "nonpayable">; getFunction(nameOrSignature: "drawDispute"): TypedContractMethod<[disputeId: BytesLike], [void], "nonpayable">; getFunction(nameOrSignature: "encodeReceipt"): TypedContractMethod<[ receipt: IAttestation.ReceiptStruct ], [ string ], "view">; getFunction(nameOrSignature: "getAttestationIndexer"): TypedContractMethod<[ attestation: IAttestation.StateStruct ], [ string ], "view">; getFunction(nameOrSignature: "getDisputePeriod"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "getFishermanRewardCut"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "getStakeSnapshot"): TypedContractMethod<[indexer: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "initialize"): TypedContractMethod<[ owner: AddressLike, arbitrator: AddressLike, disputePeriod: BigNumberish, disputeDeposit: BigNumberish, fishermanRewardCut_: BigNumberish, maxSlashingCut_: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "isDisputeCreated"): TypedContractMethod<[disputeId: BytesLike], [boolean], "view">; getFunction(nameOrSignature: "rejectDispute"): TypedContractMethod<[disputeId: BytesLike], [void], "nonpayable">; getFunction(nameOrSignature: "setArbitrator"): TypedContractMethod<[arbitrator: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "setDisputeDeposit"): TypedContractMethod<[disputeDeposit: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "setDisputePeriod"): TypedContractMethod<[disputePeriod: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "setFishermanRewardCut"): TypedContractMethod<[ fishermanRewardCut_: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "setMaxSlashingCut"): TypedContractMethod<[maxSlashingCut_: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "setSubgraphService"): TypedContractMethod<[subgraphService: AddressLike], [void], "nonpayable">; getEvent(key: "ArbitratorSet"): TypedContractEvent; getEvent(key: "DisputeAccepted"): TypedContractEvent; getEvent(key: "DisputeCancelled"): TypedContractEvent; getEvent(key: "DisputeDepositSet"): TypedContractEvent; getEvent(key: "DisputeDrawn"): TypedContractEvent; getEvent(key: "DisputeLinked"): TypedContractEvent; getEvent(key: "DisputePeriodSet"): TypedContractEvent; getEvent(key: "DisputeRejected"): TypedContractEvent; getEvent(key: "FishermanRewardCutSet"): TypedContractEvent; getEvent(key: "IndexingDisputeCreated"): TypedContractEvent; getEvent(key: "LegacyDisputeCreated"): TypedContractEvent; getEvent(key: "MaxSlashingCutSet"): TypedContractEvent; getEvent(key: "QueryDisputeCreated"): TypedContractEvent; getEvent(key: "SubgraphServiceSet"): TypedContractEvent; filters: { "ArbitratorSet(address)": TypedContractEvent; ArbitratorSet: TypedContractEvent; "DisputeAccepted(bytes32,address,address,uint256)": TypedContractEvent; DisputeAccepted: TypedContractEvent; "DisputeCancelled(bytes32,address,address,uint256)": TypedContractEvent; DisputeCancelled: TypedContractEvent; "DisputeDepositSet(uint256)": TypedContractEvent; DisputeDepositSet: TypedContractEvent; "DisputeDrawn(bytes32,address,address,uint256)": TypedContractEvent; DisputeDrawn: TypedContractEvent; "DisputeLinked(bytes32,bytes32)": TypedContractEvent; DisputeLinked: TypedContractEvent; "DisputePeriodSet(uint64)": TypedContractEvent; DisputePeriodSet: TypedContractEvent; "DisputeRejected(bytes32,address,address,uint256)": TypedContractEvent; DisputeRejected: TypedContractEvent; "FishermanRewardCutSet(uint32)": TypedContractEvent; FishermanRewardCutSet: TypedContractEvent; "IndexingDisputeCreated(bytes32,address,address,uint256,address,bytes32,uint256,uint256,uint256)": TypedContractEvent; IndexingDisputeCreated: TypedContractEvent; "LegacyDisputeCreated(bytes32,address,address,address,uint256,uint256)": TypedContractEvent; LegacyDisputeCreated: TypedContractEvent; "MaxSlashingCutSet(uint32)": TypedContractEvent; MaxSlashingCutSet: TypedContractEvent; "QueryDisputeCreated(bytes32,address,address,uint256,bytes32,bytes,uint256,uint256)": TypedContractEvent; QueryDisputeCreated: TypedContractEvent; "SubgraphServiceSet(address)": TypedContractEvent; SubgraphServiceSet: TypedContractEvent; }; } //# sourceMappingURL=IDisputeManager.d.ts.map