/** * This file was automatically generated by @oraichain/ts-codegen@0.35.9. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @oraichain/ts-codegen generate command to regenerate this file. */ import { CosmWasmClient, SigningCosmWasmClient, ExecuteResult } from "@cosmjs/cosmwasm-stargate"; import { Coin, StdFee } from "@cosmjs/amino"; import { AssetInfo, Addr, Uint128, Decimal, Binary } from "./types"; import { ArrayOfBid, Bid, ArrayOfBidPool, BidPool, BiddingInfoResponse, ArrayOfUint64, Config, EstimateAmountReceiveOfBidResponse, Uint64 } from "./CoharvestBidPool.types"; export interface CoharvestBidPoolReadOnlyInterface { contractAddress: string; config: () => Promise; bid: ({ idx }: { idx: number; }) => Promise; biddingInfo: ({ round }: { round: number; }) => Promise; lastRoundId: () => Promise; bidPool: ({ round, slot }: { round: number; slot: number; }) => Promise; allBidPoolInRound: ({ round }: { round: number; }) => Promise; allBidInRound: ({ limit, orderBy, round, startAfter }: { limit?: number; orderBy?: number; round: number; startAfter?: number; }) => Promise; bidsIdxByUser: ({ round, user }: { round: number; user: Addr; }) => Promise; bidsByUser: ({ round, user }: { round: number; user: Addr; }) => Promise; estimateAmountReceiveOfBid: ({ exchangeRate, idx, round }: { exchangeRate: Decimal; idx: number; round: number; }) => Promise; estimateAmountReceive: ({ bidAmount, exchangeRate, round, slot }: { bidAmount: Uint128; exchangeRate: Decimal; round: number; slot: number; }) => Promise; numbersBidInRound: ({ round }: { round: number; }) => Promise; } export declare class CoharvestBidPoolQueryClient implements CoharvestBidPoolReadOnlyInterface { client: CosmWasmClient; contractAddress: string; constructor(client: CosmWasmClient, contractAddress: string); config: () => Promise; bid: ({ idx }: { idx: number; }) => Promise; biddingInfo: ({ round }: { round: number; }) => Promise; lastRoundId: () => Promise; bidPool: ({ round, slot }: { round: number; slot: number; }) => Promise; allBidPoolInRound: ({ round }: { round: number; }) => Promise; allBidInRound: ({ limit, orderBy, round, startAfter }: { limit?: number; orderBy?: number; round: number; startAfter?: number; }) => Promise; bidsIdxByUser: ({ round, user }: { round: number; user: Addr; }) => Promise; bidsByUser: ({ round, user }: { round: number; user: Addr; }) => Promise; estimateAmountReceiveOfBid: ({ exchangeRate, idx, round }: { exchangeRate: Decimal; idx: number; round: number; }) => Promise; estimateAmountReceive: ({ bidAmount, exchangeRate, round, slot }: { bidAmount: Uint128; exchangeRate: Decimal; round: number; slot: number; }) => Promise; numbersBidInRound: ({ round }: { round: number; }) => Promise; } export interface CoharvestBidPoolInterface extends CoharvestBidPoolReadOnlyInterface { contractAddress: string; sender: string; receive: ({ amount, msg, sender }: { amount: Uint128; msg: Binary; sender: string; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; updateConfig: ({ biddingDuration, distributionToken, maxSlot, minDepositAmount, owner, premiumRatePerSlot, treasury, underlyingToken }: { biddingDuration?: number; distributionToken?: AssetInfo; maxSlot?: number; minDepositAmount?: Uint128; owner?: Addr; premiumRatePerSlot?: Decimal; treasury?: Addr; underlyingToken?: AssetInfo; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; createNewRound: ({ endTime, startTime, totalDistribution }: { endTime: number; startTime: number; totalDistribution: Uint128; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; finalizeBiddingRoundResult: ({ exchangeRate, round }: { exchangeRate: Decimal; round: number; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; distribute: ({ limit, round, startAfter }: { limit?: number; round: number; startAfter?: number; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; submitBid: ({ premiumSlot, round }: { premiumSlot: number; round: number; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; createNewRoundFromTreasury: (_fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; updateRound: ({ endTime, idx, startTime, totalDistribution }: { endTime?: number; idx: number; startTime?: number; totalDistribution?: Uint128; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; } export declare class CoharvestBidPoolClient extends CoharvestBidPoolQueryClient implements CoharvestBidPoolInterface { client: SigningCosmWasmClient; sender: string; contractAddress: string; constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string); receive: ({ amount, msg, sender }: { amount: Uint128; msg: Binary; sender: string; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; updateConfig: ({ biddingDuration, distributionToken, maxSlot, minDepositAmount, owner, premiumRatePerSlot, treasury, underlyingToken }: { biddingDuration?: number; distributionToken?: AssetInfo; maxSlot?: number; minDepositAmount?: Uint128; owner?: Addr; premiumRatePerSlot?: Decimal; treasury?: Addr; underlyingToken?: AssetInfo; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; createNewRound: ({ endTime, startTime, totalDistribution }: { endTime: number; startTime: number; totalDistribution: Uint128; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; finalizeBiddingRoundResult: ({ exchangeRate, round }: { exchangeRate: Decimal; round: number; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; distribute: ({ limit, round, startAfter }: { limit?: number; round: number; startAfter?: number; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; submitBid: ({ premiumSlot, round }: { premiumSlot: number; round: number; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; createNewRoundFromTreasury: (_fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; updateRound: ({ endTime, idx, startTime, totalDistribution }: { endTime?: number; idx: number; startTime?: number; totalDistribution?: Uint128; }, _fee?: number | StdFee | "auto", _memo?: string, _funds?: Coin[]) => Promise; }