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 DaoVotingCw721StakedQueryClient {
  constructor(client, contractAddress) {
    _defineProperty(this, "client", void 0);
    _defineProperty(this, "contractAddress", void 0);
    _defineProperty(this, "config", async () => {
      return this.client.queryContractSmart(this.contractAddress, {
        config: {}
      });
    });
    _defineProperty(this, "nftClaims", async ({
      address
    }) => {
      return this.client.queryContractSmart(this.contractAddress, {
        nft_claims: {
          address
        }
      });
    });
    _defineProperty(this, "hooks", async () => {
      return this.client.queryContractSmart(this.contractAddress, {
        hooks: {}
      });
    });
    _defineProperty(this, "stakedNfts", async ({
      address,
      limit,
      startAfter
    }) => {
      return this.client.queryContractSmart(this.contractAddress, {
        staked_nfts: {
          address,
          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.config = this.config.bind(this);
    this.nftClaims = this.nftClaims.bind(this);
    this.hooks = this.hooks.bind(this);
    this.stakedNfts = this.stakedNfts.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 DaoVotingCw721StakedClient extends DaoVotingCw721StakedQueryClient {
  constructor(client, _sender, contractAddress) {
    super(client, contractAddress);
    _defineProperty(this, "client", void 0);
    _defineProperty(this, "sender", void 0);
    _defineProperty(this, "contractAddress", void 0);
    _defineProperty(this, "receiveNft", async ({
      msg,
      sender,
      tokenId
    }, fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        receive_nft: {
          msg,
          sender,
          token_id: tokenId
        }
      }, fee, memo, funds);
    });
    _defineProperty(this, "unstake", async ({
      tokenIds
    }, fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        unstake: {
          token_ids: tokenIds
        }
      }, fee, memo, funds);
    });
    _defineProperty(this, "claimNfts", async (fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        claim_nfts: {}
      }, fee, memo, funds);
    });
    _defineProperty(this, "updateConfig", async ({
      duration,
      owner
    }, fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        update_config: {
          duration,
          owner
        }
      }, fee, memo, funds);
    });
    _defineProperty(this, "addHook", async ({
      addr
    }, fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        add_hook: {
          addr
        }
      }, fee, memo, funds);
    });
    _defineProperty(this, "removeHook", async ({
      addr
    }, fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        remove_hook: {
          addr
        }
      }, fee, memo, funds);
    });
    this.client = client;
    this.sender = _sender;
    this.contractAddress = contractAddress;
    this.receiveNft = this.receiveNft.bind(this);
    this.unstake = this.unstake.bind(this);
    this.claimNfts = this.claimNfts.bind(this);
    this.updateConfig = this.updateConfig.bind(this);
    this.addHook = this.addHook.bind(this);
    this.removeHook = this.removeHook.bind(this);
  }
}