import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
/**
* This file was automatically generated by @cosmwasm/ts-codegen@0.26.0.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
*/

export class DaoVotingCw4QueryClient {
  constructor(client, contractAddress) {
    _defineProperty(this, "client", void 0);
    _defineProperty(this, "contractAddress", void 0);
    _defineProperty(this, "groupContract", async () => {
      return this.client.queryContractSmart(this.contractAddress, {
        group_contract: {}
      });
    });
    _defineProperty(this, "votingPowerAtHeight", async ({
      address,
      height
    }) => {
      return this.client.queryContractSmart(this.contractAddress, {
        voting_power_at_height: {
          address,
          height
        }
      });
    });
    _defineProperty(this, "totalPowerAtHeight", async ({
      height
    }) => {
      return this.client.queryContractSmart(this.contractAddress, {
        total_power_at_height: {
          height
        }
      });
    });
    _defineProperty(this, "dao", async () => {
      return this.client.queryContractSmart(this.contractAddress, {
        dao: {}
      });
    });
    _defineProperty(this, "info", async () => {
      return this.client.queryContractSmart(this.contractAddress, {
        info: {}
      });
    });
    this.client = client;
    this.contractAddress = contractAddress;
    this.groupContract = this.groupContract.bind(this);
    this.votingPowerAtHeight = this.votingPowerAtHeight.bind(this);
    this.totalPowerAtHeight = this.totalPowerAtHeight.bind(this);
    this.dao = this.dao.bind(this);
    this.info = this.info.bind(this);
  }
}
export class DaoVotingCw4Client extends DaoVotingCw4QueryClient {
  constructor(client, sender, contractAddress) {
    super(client, contractAddress);
    _defineProperty(this, "client", void 0);
    _defineProperty(this, "sender", void 0);
    _defineProperty(this, "contractAddress", void 0);
    _defineProperty(this, "memberChangedHook", async ({
      diffs
    }, fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        member_changed_hook: {
          diffs
        }
      }, fee, memo, funds);
    });
    this.client = client;
    this.sender = sender;
    this.contractAddress = contractAddress;
    this.memberChangedHook = this.memberChangedHook.bind(this);
  }
}