import { DecodedLogEntryEvent, DecodedLogEntry, DecodedTransactionReceipt } from "@joincivil/typescript-types"; import "rxjs/add/operator/distinctUntilChanged"; import { TransactionConfig } from "web3-core"; import { EthAddress } from "@joincivil/typescript-types"; import { EthApi } from "@joincivil/ethapi"; import { BaseContract } from "../../basecontract"; declare type BigNumber = string; export declare class CivilParameterizerContract extends BaseContract { static singletonTrusted(ethApi: EthApi): Promise; static atUntrusted(ethApi: EthApi, address: EthAddress): CivilParameterizerContract; static deployTrusted: { sendTransactionAsync(ethApi: EthApi, tokenAddr: string, plcrAddr: string, parameters: string[], options: TransactionConfig): Promise; estimateGasAsync(ethApi: EthApi, tokenAddr: string, plcrAddr: string, parameters: string[]): Promise; }; PROCESSBY: { callAsync(): Promise; }; processProposal: { sendTransactionAsync(_propID: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(_propID: string, txData?: TransactionConfig | undefined): Promise; getRaw(_propID: string, txData?: TransactionConfig | undefined): Promise; }; proposals: { callAsync(index_0: string): Promise<[string, string, string, string, string, string, string]>; }; propExists: { callAsync(_propID: string): Promise; }; challengeWinnerReward: { callAsync(_challengeID: string): Promise; }; claimRewards: { sendTransactionAsync(_challengeIDs: string[], _salts: string[], txData?: TransactionConfig | undefined): Promise; estimateGasAsync(_challengeIDs: string[], _salts: string[], txData?: TransactionConfig | undefined): Promise; getRaw(_challengeIDs: string[], _salts: string[], txData?: TransactionConfig | undefined): Promise; }; get: { callAsync(_name: string): Promise; }; challengeCanBeResolved: { callAsync(_propID: string): Promise; }; challengeReparameterization: { sendTransactionAsync(_propID: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(_propID: string, txData?: TransactionConfig | undefined): Promise; getRaw(_propID: string, txData?: TransactionConfig | undefined): Promise; }; claimReward: { sendTransactionAsync(_challengeID: string, _salt: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(_challengeID: string, _salt: string, txData?: TransactionConfig | undefined): Promise; getRaw(_challengeID: string, _salt: string, txData?: TransactionConfig | undefined): Promise; }; challenges: { callAsync(index_0: string): Promise<[string, string, boolean, string, string]>; }; tokenClaims: { callAsync(_challengeID: string, _voter: string): Promise; }; voterReward: { callAsync(_voter: string, _challengeID: string, _salt: string): Promise; }; proposeReparameterization: { sendTransactionAsync(_name: string, _value: string, txData?: TransactionConfig | undefined): Promise; estimateGasAsync(_name: string, _value: string, txData?: TransactionConfig | undefined): Promise; getRaw(_name: string, _value: string, txData?: TransactionConfig | undefined): Promise; }; canBeSet: { callAsync(_propID: string): Promise; }; params: { callAsync(index_0: string): Promise; }; token: { callAsync(): Promise; }; voting: { callAsync(): Promise; }; _ReparameterizationProposalStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; _NewChallengeStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; _ProposalAcceptedStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; _ProposalExpiredStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; _ChallengeSucceededStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; _ChallengeFailedStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; _RewardClaimedStream: (paramFilters?: import("../../utils/contracts").TypedEventFilter | undefined, filterObject?: import("../../utils/contracts").EventOptions | undefined) => import("rxjs").Observable>; private constructor(); } export declare namespace CivilParameterizer { enum Events { _ReparameterizationProposal = "_ReparameterizationProposal", _NewChallenge = "_NewChallenge", _ProposalAccepted = "_ProposalAccepted", _ProposalExpired = "_ProposalExpired", _ChallengeSucceeded = "_ChallengeSucceeded", _ChallengeFailed = "_ChallengeFailed", _RewardClaimed = "_RewardClaimed" } namespace Args { interface _ReparameterizationProposal { name: string; value: BigNumber; propID: string; deposit: BigNumber; appEndDate: BigNumber; proposer: string; } interface _NewChallenge { propID: string; challengeID: BigNumber; commitEndDate: BigNumber; revealEndDate: BigNumber; challenger: string; } interface _ProposalAccepted { propID: string; name: string; value: BigNumber; } interface _ProposalExpired { propID: string; } interface _ChallengeSucceeded { propID: string; challengeID: BigNumber; rewardPool: BigNumber; totalTokens: BigNumber; } interface _ChallengeFailed { propID: string; challengeID: BigNumber; rewardPool: BigNumber; totalTokens: BigNumber; } interface _RewardClaimed { challengeID: BigNumber; reward: BigNumber; voter: string; } } namespace Logs { type _ReparameterizationProposal = DecodedLogEntry; type _NewChallenge = DecodedLogEntry; type _ProposalAccepted = DecodedLogEntry; type _ProposalExpired = DecodedLogEntry; type _ChallengeSucceeded = DecodedLogEntry; type _ChallengeFailed = DecodedLogEntry; type _RewardClaimed = DecodedLogEntry; type All = Logs._ReparameterizationProposal | Logs._NewChallenge | Logs._ProposalAccepted | Logs._ProposalExpired | Logs._ChallengeSucceeded | Logs._ChallengeFailed | Logs._RewardClaimed; } namespace LogEvents { type _ReparameterizationProposal = DecodedLogEntryEvent; type _NewChallenge = DecodedLogEntryEvent; type _ProposalAccepted = DecodedLogEntryEvent; type _ProposalExpired = DecodedLogEntryEvent; type _ChallengeSucceeded = DecodedLogEntryEvent; type _ChallengeFailed = DecodedLogEntryEvent; type _RewardClaimed = DecodedLogEntryEvent; type All = LogEvents._ReparameterizationProposal | LogEvents._NewChallenge | LogEvents._ProposalAccepted | LogEvents._ProposalExpired | LogEvents._ChallengeSucceeded | LogEvents._ChallengeFailed | LogEvents._RewardClaimed; } type Receipt = DecodedTransactionReceipt; type EventReceipt = DecodedTransactionReceipt; } export {};