/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumber,
  BigNumberish,
  BytesLike,
  CallOverrides,
  ContractTransaction,
  Overrides,
  PopulatedTransaction,
  Signer,
  utils,
} from "ethers";
import type {
  FunctionFragment,
  Result,
  EventFragment,
} from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
  TypedEventFilter,
  TypedEvent,
  TypedListener,
  OnEvent,
  PromiseOrValue,
} from "../../../common";

export declare namespace PolicyProposals {
  export type PropMetadataStruct = {
    proposer: PromiseOrValue<string>;
    proposal: PromiseOrValue<string>;
    totalStake: PromiseOrValue<BigNumberish>;
    feeWaived: PromiseOrValue<boolean>;
  };

  export type PropMetadataStructOutput = [
    string,
    string,
    BigNumber,
    boolean
  ] & {
    proposer: string;
    proposal: string;
    totalStake: BigNumber;
    feeWaived: boolean;
  };
}

export interface PolicyProposalsInterface extends utils.Interface {
  functions: {
    "COST_REGISTER()": FunctionFragment;
    "GENERATION_START()": FunctionFragment;
    "MIN_GENERATION_DURATION()": FunctionFragment;
    "PROPOSAL_TIME()": FunctionFragment;
    "REFUND_IF_LOST()": FunctionFragment;
    "SUPPORT_THRESHOLD()": FunctionFragment;
    "SUPPORT_THRESHOLD_DIVISOR()": FunctionFragment;
    "blockNumber()": FunctionFragment;
    "canImplementInterfaceForAddress(bytes32,address)": FunctionFragment;
    "clone()": FunctionFragment;
    "configure(uint256,uint256)": FunctionFragment;
    "deployProposalVoting()": FunctionFragment;
    "destruct()": FunctionFragment;
    "ecoToken()": FunctionFragment;
    "excludedVotingPower()": FunctionFragment;
    "implementation()": FunctionFragment;
    "initialize(address)": FunctionFragment;
    "policy()": FunctionFragment;
    "policyCommand(address,bytes)": FunctionFragment;
    "policyVotesImpl()": FunctionFragment;
    "proposalEnds()": FunctionFragment;
    "proposalSelected()": FunctionFragment;
    "proposalToConfigure()": FunctionFragment;
    "proposals(address)": FunctionFragment;
    "refund(address)": FunctionFragment;
    "registerProposal(address)": FunctionFragment;
    "setExpectedInterfaceSet(address)": FunctionFragment;
    "support(address)": FunctionFragment;
    "totalECOxSnapshot()": FunctionFragment;
    "totalProposals()": FunctionFragment;
    "totalVotingPower(uint256)": FunctionFragment;
    "totalVotingThreshold()": FunctionFragment;
    "unsupport(address)": FunctionFragment;
    "votingPower(address,uint256)": FunctionFragment;
  };

  getFunction(
    nameOrSignatureOrTopic:
      | "COST_REGISTER"
      | "GENERATION_START"
      | "MIN_GENERATION_DURATION"
      | "PROPOSAL_TIME"
      | "REFUND_IF_LOST"
      | "SUPPORT_THRESHOLD"
      | "SUPPORT_THRESHOLD_DIVISOR"
      | "blockNumber"
      | "canImplementInterfaceForAddress"
      | "clone"
      | "configure"
      | "deployProposalVoting"
      | "destruct"
      | "ecoToken"
      | "excludedVotingPower"
      | "implementation"
      | "initialize"
      | "policy"
      | "policyCommand"
      | "policyVotesImpl"
      | "proposalEnds"
      | "proposalSelected"
      | "proposalToConfigure"
      | "proposals"
      | "refund"
      | "registerProposal"
      | "setExpectedInterfaceSet"
      | "support"
      | "totalECOxSnapshot"
      | "totalProposals"
      | "totalVotingPower"
      | "totalVotingThreshold"
      | "unsupport"
      | "votingPower"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "COST_REGISTER",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "GENERATION_START",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "MIN_GENERATION_DURATION",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "PROPOSAL_TIME",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "REFUND_IF_LOST",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "SUPPORT_THRESHOLD",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "SUPPORT_THRESHOLD_DIVISOR",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "blockNumber",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "canImplementInterfaceForAddress",
    values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]
  ): string;
  encodeFunctionData(functionFragment: "clone", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "configure",
    values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>]
  ): string;
  encodeFunctionData(
    functionFragment: "deployProposalVoting",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "destruct", values?: undefined): string;
  encodeFunctionData(functionFragment: "ecoToken", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "excludedVotingPower",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "implementation",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(functionFragment: "policy", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "policyCommand",
    values: [PromiseOrValue<string>, PromiseOrValue<BytesLike>]
  ): string;
  encodeFunctionData(
    functionFragment: "policyVotesImpl",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "proposalEnds",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "proposalSelected",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "proposalToConfigure",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "proposals",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "refund",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "registerProposal",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "setExpectedInterfaceSet",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "support",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "totalECOxSnapshot",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "totalProposals",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "totalVotingPower",
    values: [PromiseOrValue<BigNumberish>]
  ): string;
  encodeFunctionData(
    functionFragment: "totalVotingThreshold",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "unsupport",
    values: [PromiseOrValue<string>]
  ): string;
  encodeFunctionData(
    functionFragment: "votingPower",
    values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
  ): string;

  decodeFunctionResult(
    functionFragment: "COST_REGISTER",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "GENERATION_START",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "MIN_GENERATION_DURATION",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "PROPOSAL_TIME",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "REFUND_IF_LOST",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "SUPPORT_THRESHOLD",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "SUPPORT_THRESHOLD_DIVISOR",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "blockNumber",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "canImplementInterfaceForAddress",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "clone", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "configure", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "deployProposalVoting",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "destruct", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "ecoToken", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "excludedVotingPower",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "implementation",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "policy", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "policyCommand",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "policyVotesImpl",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "proposalEnds",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "proposalSelected",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "proposalToConfigure",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "proposals", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "refund", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "registerProposal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setExpectedInterfaceSet",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "support", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "totalECOxSnapshot",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "totalProposals",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "totalVotingPower",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "totalVotingThreshold",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "unsupport", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "votingPower",
    data: BytesLike
  ): Result;

  events: {
    "ProposalRefund(address,address)": EventFragment;
    "Register(address,address)": EventFragment;
    "Support(address,address)": EventFragment;
    "SupportThresholdReached(address)": EventFragment;
    "Unsupport(address,address)": EventFragment;
    "VoteStart(address)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "ProposalRefund"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "Register"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "Support"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "SupportThresholdReached"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "Unsupport"): EventFragment;
  getEvent(nameOrSignatureOrTopic: "VoteStart"): EventFragment;
}

export interface ProposalRefundEventObject {
  proposer: string;
  proposalAddress: string;
}
export type ProposalRefundEvent = TypedEvent<
  [string, string],
  ProposalRefundEventObject
>;

export type ProposalRefundEventFilter = TypedEventFilter<ProposalRefundEvent>;

export interface RegisterEventObject {
  proposer: string;
  proposalAddress: string;
}
export type RegisterEvent = TypedEvent<[string, string], RegisterEventObject>;

export type RegisterEventFilter = TypedEventFilter<RegisterEvent>;

export interface SupportEventObject {
  supporter: string;
  proposalAddress: string;
}
export type SupportEvent = TypedEvent<[string, string], SupportEventObject>;

export type SupportEventFilter = TypedEventFilter<SupportEvent>;

export interface SupportThresholdReachedEventObject {
  proposalAddress: string;
}
export type SupportThresholdReachedEvent = TypedEvent<
  [string],
  SupportThresholdReachedEventObject
>;

export type SupportThresholdReachedEventFilter =
  TypedEventFilter<SupportThresholdReachedEvent>;

export interface UnsupportEventObject {
  unsupporter: string;
  proposalAddress: string;
}
export type UnsupportEvent = TypedEvent<[string, string], UnsupportEventObject>;

export type UnsupportEventFilter = TypedEventFilter<UnsupportEvent>;

export interface VoteStartEventObject {
  contractAddress: string;
}
export type VoteStartEvent = TypedEvent<[string], VoteStartEventObject>;

export type VoteStartEventFilter = TypedEventFilter<VoteStartEvent>;

export interface PolicyProposals extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  interface: PolicyProposalsInterface;

  queryFilter<TEvent extends TypedEvent>(
    event: TypedEventFilter<TEvent>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TEvent>>;

  listeners<TEvent extends TypedEvent>(
    eventFilter?: TypedEventFilter<TEvent>
  ): Array<TypedListener<TEvent>>;
  listeners(eventName?: string): Array<Listener>;
  removeAllListeners<TEvent extends TypedEvent>(
    eventFilter: TypedEventFilter<TEvent>
  ): this;
  removeAllListeners(eventName?: string): this;
  off: OnEvent<this>;
  on: OnEvent<this>;
  once: OnEvent<this>;
  removeListener: OnEvent<this>;

  functions: {
    COST_REGISTER(overrides?: CallOverrides): Promise<[BigNumber]>;

    GENERATION_START(overrides?: CallOverrides): Promise<[BigNumber]>;

    MIN_GENERATION_DURATION(overrides?: CallOverrides): Promise<[BigNumber]>;

    PROPOSAL_TIME(overrides?: CallOverrides): Promise<[BigNumber]>;

    REFUND_IF_LOST(overrides?: CallOverrides): Promise<[BigNumber]>;

    SUPPORT_THRESHOLD(overrides?: CallOverrides): Promise<[BigNumber]>;

    SUPPORT_THRESHOLD_DIVISOR(overrides?: CallOverrides): Promise<[BigNumber]>;

    blockNumber(overrides?: CallOverrides): Promise<[BigNumber]>;

    canImplementInterfaceForAddress(
      arg0: PromiseOrValue<BytesLike>,
      _addr: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<[string]>;

    clone(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    configure(
      _totalECOxSnapshot: PromiseOrValue<BigNumberish>,
      _excludedVotingPower: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    deployProposalVoting(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    destruct(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    ecoToken(overrides?: CallOverrides): Promise<[string]>;

    excludedVotingPower(overrides?: CallOverrides): Promise<[BigNumber]>;

    implementation(
      overrides?: CallOverrides
    ): Promise<[string] & { _impl: string }>;

    initialize(
      _self: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    policy(overrides?: CallOverrides): Promise<[string]>;

    policyCommand(
      _delegate: PromiseOrValue<string>,
      _data: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    policyVotesImpl(overrides?: CallOverrides): Promise<[string]>;

    proposalEnds(overrides?: CallOverrides): Promise<[BigNumber]>;

    proposalSelected(overrides?: CallOverrides): Promise<[boolean]>;

    proposalToConfigure(overrides?: CallOverrides): Promise<[string]>;

    proposals(
      arg0: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<
      [PolicyProposals.PropMetadataStructOutput] & {
        metadata: PolicyProposals.PropMetadataStructOutput;
      }
    >;

    refund(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    registerProposal(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    setExpectedInterfaceSet(
      _addr: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    support(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    totalECOxSnapshot(overrides?: CallOverrides): Promise<[BigNumber]>;

    totalProposals(overrides?: CallOverrides): Promise<[BigNumber]>;

    totalVotingPower(
      _blockNumber: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    totalVotingThreshold(overrides?: CallOverrides): Promise<[BigNumber]>;

    unsupport(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<ContractTransaction>;

    votingPower(
      _who: PromiseOrValue<string>,
      _blockNumber: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;
  };

  COST_REGISTER(overrides?: CallOverrides): Promise<BigNumber>;

  GENERATION_START(overrides?: CallOverrides): Promise<BigNumber>;

  MIN_GENERATION_DURATION(overrides?: CallOverrides): Promise<BigNumber>;

  PROPOSAL_TIME(overrides?: CallOverrides): Promise<BigNumber>;

  REFUND_IF_LOST(overrides?: CallOverrides): Promise<BigNumber>;

  SUPPORT_THRESHOLD(overrides?: CallOverrides): Promise<BigNumber>;

  SUPPORT_THRESHOLD_DIVISOR(overrides?: CallOverrides): Promise<BigNumber>;

  blockNumber(overrides?: CallOverrides): Promise<BigNumber>;

  canImplementInterfaceForAddress(
    arg0: PromiseOrValue<BytesLike>,
    _addr: PromiseOrValue<string>,
    overrides?: CallOverrides
  ): Promise<string>;

  clone(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  configure(
    _totalECOxSnapshot: PromiseOrValue<BigNumberish>,
    _excludedVotingPower: PromiseOrValue<BigNumberish>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  deployProposalVoting(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  destruct(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  ecoToken(overrides?: CallOverrides): Promise<string>;

  excludedVotingPower(overrides?: CallOverrides): Promise<BigNumber>;

  implementation(overrides?: CallOverrides): Promise<string>;

  initialize(
    _self: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  policy(overrides?: CallOverrides): Promise<string>;

  policyCommand(
    _delegate: PromiseOrValue<string>,
    _data: PromiseOrValue<BytesLike>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  policyVotesImpl(overrides?: CallOverrides): Promise<string>;

  proposalEnds(overrides?: CallOverrides): Promise<BigNumber>;

  proposalSelected(overrides?: CallOverrides): Promise<boolean>;

  proposalToConfigure(overrides?: CallOverrides): Promise<string>;

  proposals(
    arg0: PromiseOrValue<string>,
    overrides?: CallOverrides
  ): Promise<PolicyProposals.PropMetadataStructOutput>;

  refund(
    _prop: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  registerProposal(
    _prop: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  setExpectedInterfaceSet(
    _addr: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  support(
    _prop: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  totalECOxSnapshot(overrides?: CallOverrides): Promise<BigNumber>;

  totalProposals(overrides?: CallOverrides): Promise<BigNumber>;

  totalVotingPower(
    _blockNumber: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  totalVotingThreshold(overrides?: CallOverrides): Promise<BigNumber>;

  unsupport(
    _prop: PromiseOrValue<string>,
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<ContractTransaction>;

  votingPower(
    _who: PromiseOrValue<string>,
    _blockNumber: PromiseOrValue<BigNumberish>,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  callStatic: {
    COST_REGISTER(overrides?: CallOverrides): Promise<BigNumber>;

    GENERATION_START(overrides?: CallOverrides): Promise<BigNumber>;

    MIN_GENERATION_DURATION(overrides?: CallOverrides): Promise<BigNumber>;

    PROPOSAL_TIME(overrides?: CallOverrides): Promise<BigNumber>;

    REFUND_IF_LOST(overrides?: CallOverrides): Promise<BigNumber>;

    SUPPORT_THRESHOLD(overrides?: CallOverrides): Promise<BigNumber>;

    SUPPORT_THRESHOLD_DIVISOR(overrides?: CallOverrides): Promise<BigNumber>;

    blockNumber(overrides?: CallOverrides): Promise<BigNumber>;

    canImplementInterfaceForAddress(
      arg0: PromiseOrValue<BytesLike>,
      _addr: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<string>;

    clone(overrides?: CallOverrides): Promise<string>;

    configure(
      _totalECOxSnapshot: PromiseOrValue<BigNumberish>,
      _excludedVotingPower: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<void>;

    deployProposalVoting(overrides?: CallOverrides): Promise<void>;

    destruct(overrides?: CallOverrides): Promise<void>;

    ecoToken(overrides?: CallOverrides): Promise<string>;

    excludedVotingPower(overrides?: CallOverrides): Promise<BigNumber>;

    implementation(overrides?: CallOverrides): Promise<string>;

    initialize(
      _self: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    policy(overrides?: CallOverrides): Promise<string>;

    policyCommand(
      _delegate: PromiseOrValue<string>,
      _data: PromiseOrValue<BytesLike>,
      overrides?: CallOverrides
    ): Promise<void>;

    policyVotesImpl(overrides?: CallOverrides): Promise<string>;

    proposalEnds(overrides?: CallOverrides): Promise<BigNumber>;

    proposalSelected(overrides?: CallOverrides): Promise<boolean>;

    proposalToConfigure(overrides?: CallOverrides): Promise<string>;

    proposals(
      arg0: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<PolicyProposals.PropMetadataStructOutput>;

    refund(
      _prop: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    registerProposal(
      _prop: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    setExpectedInterfaceSet(
      _addr: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    support(
      _prop: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    totalECOxSnapshot(overrides?: CallOverrides): Promise<BigNumber>;

    totalProposals(overrides?: CallOverrides): Promise<BigNumber>;

    totalVotingPower(
      _blockNumber: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    totalVotingThreshold(overrides?: CallOverrides): Promise<BigNumber>;

    unsupport(
      _prop: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<void>;

    votingPower(
      _who: PromiseOrValue<string>,
      _blockNumber: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

  filters: {
    "ProposalRefund(address,address)"(
      proposer?: PromiseOrValue<string> | null,
      proposalAddress?: PromiseOrValue<string> | null
    ): ProposalRefundEventFilter;
    ProposalRefund(
      proposer?: PromiseOrValue<string> | null,
      proposalAddress?: PromiseOrValue<string> | null
    ): ProposalRefundEventFilter;

    "Register(address,address)"(
      proposer?: PromiseOrValue<string> | null,
      proposalAddress?: PromiseOrValue<string> | null
    ): RegisterEventFilter;
    Register(
      proposer?: PromiseOrValue<string> | null,
      proposalAddress?: PromiseOrValue<string> | null
    ): RegisterEventFilter;

    "Support(address,address)"(
      supporter?: PromiseOrValue<string> | null,
      proposalAddress?: PromiseOrValue<string> | null
    ): SupportEventFilter;
    Support(
      supporter?: PromiseOrValue<string> | null,
      proposalAddress?: PromiseOrValue<string> | null
    ): SupportEventFilter;

    "SupportThresholdReached(address)"(
      proposalAddress?: PromiseOrValue<string> | null
    ): SupportThresholdReachedEventFilter;
    SupportThresholdReached(
      proposalAddress?: PromiseOrValue<string> | null
    ): SupportThresholdReachedEventFilter;

    "Unsupport(address,address)"(
      unsupporter?: PromiseOrValue<string> | null,
      proposalAddress?: PromiseOrValue<string> | null
    ): UnsupportEventFilter;
    Unsupport(
      unsupporter?: PromiseOrValue<string> | null,
      proposalAddress?: PromiseOrValue<string> | null
    ): UnsupportEventFilter;

    "VoteStart(address)"(
      contractAddress?: PromiseOrValue<string> | null
    ): VoteStartEventFilter;
    VoteStart(
      contractAddress?: PromiseOrValue<string> | null
    ): VoteStartEventFilter;
  };

  estimateGas: {
    COST_REGISTER(overrides?: CallOverrides): Promise<BigNumber>;

    GENERATION_START(overrides?: CallOverrides): Promise<BigNumber>;

    MIN_GENERATION_DURATION(overrides?: CallOverrides): Promise<BigNumber>;

    PROPOSAL_TIME(overrides?: CallOverrides): Promise<BigNumber>;

    REFUND_IF_LOST(overrides?: CallOverrides): Promise<BigNumber>;

    SUPPORT_THRESHOLD(overrides?: CallOverrides): Promise<BigNumber>;

    SUPPORT_THRESHOLD_DIVISOR(overrides?: CallOverrides): Promise<BigNumber>;

    blockNumber(overrides?: CallOverrides): Promise<BigNumber>;

    canImplementInterfaceForAddress(
      arg0: PromiseOrValue<BytesLike>,
      _addr: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    clone(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    configure(
      _totalECOxSnapshot: PromiseOrValue<BigNumberish>,
      _excludedVotingPower: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    deployProposalVoting(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    destruct(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    ecoToken(overrides?: CallOverrides): Promise<BigNumber>;

    excludedVotingPower(overrides?: CallOverrides): Promise<BigNumber>;

    implementation(overrides?: CallOverrides): Promise<BigNumber>;

    initialize(
      _self: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    policy(overrides?: CallOverrides): Promise<BigNumber>;

    policyCommand(
      _delegate: PromiseOrValue<string>,
      _data: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    policyVotesImpl(overrides?: CallOverrides): Promise<BigNumber>;

    proposalEnds(overrides?: CallOverrides): Promise<BigNumber>;

    proposalSelected(overrides?: CallOverrides): Promise<BigNumber>;

    proposalToConfigure(overrides?: CallOverrides): Promise<BigNumber>;

    proposals(
      arg0: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    refund(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    registerProposal(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    setExpectedInterfaceSet(
      _addr: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    support(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    totalECOxSnapshot(overrides?: CallOverrides): Promise<BigNumber>;

    totalProposals(overrides?: CallOverrides): Promise<BigNumber>;

    totalVotingPower(
      _blockNumber: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    totalVotingThreshold(overrides?: CallOverrides): Promise<BigNumber>;

    unsupport(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<BigNumber>;

    votingPower(
      _who: PromiseOrValue<string>,
      _blockNumber: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    COST_REGISTER(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    GENERATION_START(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    MIN_GENERATION_DURATION(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    PROPOSAL_TIME(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    REFUND_IF_LOST(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    SUPPORT_THRESHOLD(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    SUPPORT_THRESHOLD_DIVISOR(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    blockNumber(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    canImplementInterfaceForAddress(
      arg0: PromiseOrValue<BytesLike>,
      _addr: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    clone(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    configure(
      _totalECOxSnapshot: PromiseOrValue<BigNumberish>,
      _excludedVotingPower: PromiseOrValue<BigNumberish>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    deployProposalVoting(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    destruct(
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    ecoToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    excludedVotingPower(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    implementation(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    initialize(
      _self: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    policy(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    policyCommand(
      _delegate: PromiseOrValue<string>,
      _data: PromiseOrValue<BytesLike>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    policyVotesImpl(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    proposalEnds(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    proposalSelected(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    proposalToConfigure(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    proposals(
      arg0: PromiseOrValue<string>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    refund(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    registerProposal(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    setExpectedInterfaceSet(
      _addr: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    support(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    totalECOxSnapshot(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    totalProposals(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    totalVotingPower(
      _blockNumber: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    totalVotingThreshold(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    unsupport(
      _prop: PromiseOrValue<string>,
      overrides?: Overrides & { from?: PromiseOrValue<string> }
    ): Promise<PopulatedTransaction>;

    votingPower(
      _who: PromiseOrValue<string>,
      _blockNumber: PromiseOrValue<BigNumberish>,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
