/** * 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 { StdFee } from "@cosmjs/amino"; import { Duration, PreProposeInfo, Threshold, CosmosMsgForEmpty, Uint64, Vote, Coin, Addr, Config, VoteResponse, InfoResponse, ProposalListResponse, ProposalResponse, VoteListResponse, ProposalCreationPolicy, HooksResponse } from "./DaoProposalSingle.types"; export interface DaoProposalSingleReadOnlyInterface { contractAddress: string; config: () => Promise; proposal: ({ proposalId }: { proposalId: number; }) => Promise; listProposals: ({ limit, startAfter }: { limit?: number; startAfter?: number; }) => Promise; reverseProposals: ({ limit, startBefore }: { limit?: number; startBefore?: number; }) => Promise; getVote: ({ proposalId, voter }: { proposalId: number; voter: string; }) => Promise; listVotes: ({ limit, proposalId, startAfter }: { limit?: number; proposalId: number; startAfter?: string; }) => Promise; proposalCount: () => Promise; proposalCreationPolicy: () => Promise; proposalHooks: () => Promise; voteHooks: () => Promise; dao: () => Promise; info: () => Promise; nextProposalId: () => Promise; } export declare class DaoProposalSingleQueryClient implements DaoProposalSingleReadOnlyInterface { client: CosmWasmClient; contractAddress: string; constructor(client: CosmWasmClient, contractAddress: string); config: () => Promise; proposal: ({ proposalId }: { proposalId: number; }) => Promise; listProposals: ({ limit, startAfter }: { limit?: number; startAfter?: number; }) => Promise; reverseProposals: ({ limit, startBefore }: { limit?: number; startBefore?: number; }) => Promise; getVote: ({ proposalId, voter }: { proposalId: number; voter: string; }) => Promise; listVotes: ({ limit, proposalId, startAfter }: { limit?: number; proposalId: number; startAfter?: string; }) => Promise; proposalCount: () => Promise; proposalCreationPolicy: () => Promise; proposalHooks: () => Promise; voteHooks: () => Promise; dao: () => Promise; info: () => Promise; nextProposalId: () => Promise; } export interface DaoProposalSingleInterface extends DaoProposalSingleReadOnlyInterface { contractAddress: string; sender: string; propose: ({ description, msgs, proposer, title }: { description: string; msgs: CosmosMsgForEmpty[]; proposer?: string; title: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; vote: ({ proposalId, rationale, vote }: { proposalId: number; rationale?: string; vote: Vote; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; updateRationale: ({ proposalId, rationale }: { proposalId: number; rationale?: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; execute: ({ proposalId }: { proposalId: number; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; close: ({ proposalId }: { proposalId: number; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; updateConfig: ({ allowRevoting, closeProposalOnExecutionFailure, dao, maxVotingPeriod, minVotingPeriod, onlyMembersExecute, threshold }: { allowRevoting: boolean; closeProposalOnExecutionFailure: boolean; dao: string; maxVotingPeriod: Duration; minVotingPeriod?: Duration; onlyMembersExecute: boolean; threshold: Threshold; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; updatePreProposeInfo: ({ info }: { info: PreProposeInfo; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; addProposalHook: ({ address }: { address: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; removeProposalHook: ({ address }: { address: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; addVoteHook: ({ address }: { address: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; removeVoteHook: ({ address }: { address: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; } export declare class DaoProposalSingleClient extends DaoProposalSingleQueryClient implements DaoProposalSingleInterface { client: SigningCosmWasmClient; sender: string; contractAddress: string; constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string); propose: ({ description, msgs, proposer, title }: { description: string; msgs: CosmosMsgForEmpty[]; proposer?: string; title: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; vote: ({ proposalId, rationale, vote }: { proposalId: number; rationale?: string; vote: Vote; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; updateRationale: ({ proposalId, rationale }: { proposalId: number; rationale?: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; execute: ({ proposalId }: { proposalId: number; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; close: ({ proposalId }: { proposalId: number; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; updateConfig: ({ allowRevoting, closeProposalOnExecutionFailure, dao, maxVotingPeriod, minVotingPeriod, onlyMembersExecute, threshold }: { allowRevoting: boolean; closeProposalOnExecutionFailure: boolean; dao: string; maxVotingPeriod: Duration; minVotingPeriod?: Duration; onlyMembersExecute: boolean; threshold: Threshold; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; updatePreProposeInfo: ({ info }: { info: PreProposeInfo; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; addProposalHook: ({ address }: { address: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; removeProposalHook: ({ address }: { address: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; addVoteHook: ({ address }: { address: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; removeVoteHook: ({ address }: { address: string; }, fee?: number | StdFee | "auto", memo?: string, funds?: Coin[]) => Promise; }