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 Cw20StakeExternalRewardsQueryClient {
  constructor(client, contractAddress) {
    _defineProperty(this, "client", void 0);
    _defineProperty(this, "contractAddress", void 0);
    _defineProperty(this, "info", async () => {
      return this.client.queryContractSmart(this.contractAddress, {
        info: {}
      });
    });
    _defineProperty(this, "getPendingRewards", async ({
      address
    }) => {
      return this.client.queryContractSmart(this.contractAddress, {
        get_pending_rewards: {
          address
        }
      });
    });
    _defineProperty(this, "ownership", async () => {
      return this.client.queryContractSmart(this.contractAddress, {
        ownership: {}
      });
    });
    this.client = client;
    this.contractAddress = contractAddress;
    this.info = this.info.bind(this);
    this.getPendingRewards = this.getPendingRewards.bind(this);
    this.ownership = this.ownership.bind(this);
  }
}
export class Cw20StakeExternalRewardsClient extends Cw20StakeExternalRewardsQueryClient {
  constructor(client, _sender, contractAddress) {
    super(client, contractAddress);
    _defineProperty(this, "client", void 0);
    _defineProperty(this, "sender", void 0);
    _defineProperty(this, "contractAddress", void 0);
    _defineProperty(this, "stakeChangeHook", async (fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        stake_change_hook: {}
      }, fee, memo, funds);
    });
    _defineProperty(this, "claim", async (fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        claim: {}
      }, fee, memo, funds);
    });
    _defineProperty(this, "receive", async ({
      amount,
      msg,
      sender
    }, fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        receive: {
          amount,
          msg,
          sender
        }
      }, fee, memo, funds);
    });
    _defineProperty(this, "fund", async (fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        fund: {}
      }, fee, memo, funds);
    });
    _defineProperty(this, "updateRewardDuration", async ({
      newDuration
    }, fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        update_reward_duration: {
          new_duration: newDuration
        }
      }, fee, memo, funds);
    });
    _defineProperty(this, "updateOwnership", async (fee = "auto", memo, funds) => {
      return await this.client.execute(this.sender, this.contractAddress, {
        update_ownership: {}
      }, fee, memo, funds);
    });
    this.client = client;
    this.sender = _sender;
    this.contractAddress = contractAddress;
    this.stakeChangeHook = this.stakeChangeHook.bind(this);
    this.claim = this.claim.bind(this);
    this.receive = this.receive.bind(this);
    this.fund = this.fund.bind(this);
    this.updateRewardDuration = this.updateRewardDuration.bind(this);
    this.updateOwnership = this.updateOwnership.bind(this);
  }
}