/** * 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. */ import { CosmWasmClient, SigningCosmWasmClient, ExecuteResult } from "@cosmjs/cosmwasm-stargate"; import { Coin, StdFee } from "@cosmjs/amino"; import { Duration, Uint128, Binary, ClaimsResponse, Config, GetHooksResponse, ListStakersResponse, OwnershipForAddr, StakedBalanceAtHeightResponse, StakedValueResponse, TotalStakedAtHeightResponse, TotalValueResponse } from "./Cw20Stake.types"; export interface Cw20StakeReadOnlyInterface { contractAddress: string; stakedBalanceAtHeight: ({ address, height }: { address: string; height?: number; }) => Promise; totalStakedAtHeight: ({ height }: { height?: number; }) => Promise; stakedValue: ({ address }: { address: string; }) => Promise; totalValue: () => Promise; getConfig: () => Promise; claims: ({ address }: { address: string; }) => Promise; getHooks: () => Promise; listStakers: ({ limit, startAfter }: { limit?: number; startAfter?: string; }) => Promise; ownership: () => Promise; } export declare class Cw20StakeQueryClient implements Cw20StakeReadOnlyInterface { client: CosmWasmClient; contractAddress: string; constructor(client: CosmWasmClient, contractAddress: string); stakedBalanceAtHeight: ({ address, height }: { address: string; height?: number; }) => Promise; totalStakedAtHeight: ({ height }: { height?: number; }) => Promise; stakedValue: ({ address }: { address: string; }) => Promise; totalValue: () => Promise; getConfig: () => Promise; claims: ({ address }: { address: string; }) => Promise; getHooks: () => Promise; listStakers: ({ limit, startAfter }: { limit?: number; startAfter?: string; }) => Promise; ownership: () => Promise; } export interface Cw20StakeInterface extends Cw20StakeReadOnlyInterface { contractAddress: string; sender: string; receive: ({ amount, msg, sender }: { amount: Uint128; msg: Binary; sender: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; unstake: ({ amount }: { amount: Uint128; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; claim: (fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; updateConfig: ({ duration }: { duration?: Duration; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; addHook: ({ addr }: { addr: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; removeHook: ({ addr }: { addr: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; updateOwnership: (fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; } export declare class Cw20StakeClient extends Cw20StakeQueryClient implements Cw20StakeInterface { 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; unstake: ({ amount }: { amount: Uint128; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; claim: (fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; updateConfig: ({ duration }: { duration?: Duration; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; addHook: ({ addr }: { addr: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; removeHook: ({ addr }: { addr: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; updateOwnership: (fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; }