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 DaoVotingNativeStakedQueryClient {
  constructor(client, contractAddress) {
    _defineProperty(this, "client", void 0);
    _defineProperty(this, "contractAddress", void 0);
    _defineProperty(this, "getConfig", async () => {
      return this.client.queryContractSmart(this.contractAddress, {
        get_config: {}
      });
    });
    _defineProperty(this, "claims", async ({
      address
    }) => {
      return this.client.queryContractSmart(this.contractAddress, {
        claims: {
          address
        }
      });
    });
    _defineProperty(this, "listStakers", async ({
      limit,
      startAfter
    }) => {
      return this.client.queryContractSmart(this.contractAddress, {
        list_stakers: {
          limit,
          start_after: startAfter
        }
      });
    });
    _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.getConfig = this.getConfig.bind(this);
    this.claims = this.claims.bind(this);
    this.listStakers = this.listStakers.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 DaoVotingNativeStakedClient extends DaoVotingNativeStakedQueryClient {
  constructor(client, sender, contractAddress) {
    super(client, contractAddress);
    _defineProperty(this, "client", void 0);
    _defineProperty(this, "sender", void 0);
    _defineProperty(this, "contractAddress", void 0);
    _defineProperty(this, "stake", async (fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        stake: {}
      }, fee, memo, funds);
    });
    _defineProperty(this, "unstake", async ({
      amount
    }, fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        unstake: {
          amount
        }
      }, fee, memo, funds);
    });
    _defineProperty(this, "updateConfig", async ({
      duration,
      manager,
      owner
    }, fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        update_config: {
          duration,
          manager,
          owner
        }
      }, fee, memo, funds);
    });
    _defineProperty(this, "claim", async (fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        claim: {}
      }, fee, memo, funds);
    });
    this.client = client;
    this.sender = sender;
    this.contractAddress = contractAddress;
    this.stake = this.stake.bind(this);
    this.unstake = this.unstake.bind(this);
    this.updateConfig = this.updateConfig.bind(this);
    this.claim = this.claim.bind(this);
  }
}