/** * 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 declare type Duration = { height: number; } | { time: number; }; export declare type PreProposeInfo = { anyone_may_propose: {}; } | { module_may_propose: { info: ModuleInstantiateInfo; }; }; export declare type Admin = { address: { addr: string; }; } | { core_module: {}; }; export declare type Binary = string; export declare type VotingStrategy = { single_choice: { quorum: PercentageThreshold; }; }; export declare type PercentageThreshold = { majority: {}; } | { percent: Decimal; }; export declare type Decimal = string; export interface InstantiateMsg { allow_revoting: boolean; close_proposal_on_execution_failure: boolean; max_voting_period: Duration; min_voting_period?: Duration | null; only_members_execute: boolean; pre_propose_info: PreProposeInfo; voting_strategy: VotingStrategy; } export interface ModuleInstantiateInfo { admin?: Admin | null; code_id: number; label: string; msg: Binary; } export declare type ExecuteMsg = { propose: { choices: MultipleChoiceOptions; description: string; proposer?: string | null; title: string; }; } | { vote: { proposal_id: number; rationale?: string | null; vote: MultipleChoiceVote; }; } | { execute: { proposal_id: number; }; } | { close: { proposal_id: number; }; } | { update_config: { allow_revoting: boolean; close_proposal_on_execution_failure: boolean; dao: string; max_voting_period: Duration; min_voting_period?: Duration | null; only_members_execute: boolean; voting_strategy: VotingStrategy; }; } | { update_rationale: { proposal_id: number; rationale?: string | null; }; } | { update_pre_propose_info: { info: PreProposeInfo; }; } | { add_proposal_hook: { address: string; }; } | { remove_proposal_hook: { address: string; }; } | { add_vote_hook: { address: string; }; } | { remove_vote_hook: { address: string; }; }; export declare type CosmosMsgForEmpty = { bank: BankMsg; } | { custom: Empty; } | { staking: StakingMsg; } | { distribution: DistributionMsg; } | { stargate: { type_url: string; value: Binary; [k: string]: unknown; }; } | { ibc: IbcMsg; } | { wasm: WasmMsg; } | { gov: GovMsg; }; export declare type BankMsg = { send: { amount: Coin[]; to_address: string; [k: string]: unknown; }; } | { burn: { amount: Coin[]; [k: string]: unknown; }; }; export declare type Uint128 = string; export declare type StakingMsg = { delegate: { amount: Coin; validator: string; [k: string]: unknown; }; } | { undelegate: { amount: Coin; validator: string; [k: string]: unknown; }; } | { redelegate: { amount: Coin; dst_validator: string; src_validator: string; [k: string]: unknown; }; }; export declare type DistributionMsg = { set_withdraw_address: { address: string; [k: string]: unknown; }; } | { withdraw_delegator_reward: { validator: string; [k: string]: unknown; }; }; export declare type IbcMsg = { transfer: { amount: Coin; channel_id: string; timeout: IbcTimeout; to_address: string; [k: string]: unknown; }; } | { send_packet: { channel_id: string; data: Binary; timeout: IbcTimeout; [k: string]: unknown; }; } | { close_channel: { channel_id: string; [k: string]: unknown; }; }; export declare type Timestamp = Uint64; export declare type Uint64 = string; export declare type WasmMsg = { execute: { contract_addr: string; funds: Coin[]; msg: Binary; [k: string]: unknown; }; } | { instantiate: { admin?: string | null; code_id: number; funds: Coin[]; label: string; msg: Binary; [k: string]: unknown; }; } | { migrate: { contract_addr: string; msg: Binary; new_code_id: number; [k: string]: unknown; }; } | { update_admin: { admin: string; contract_addr: string; [k: string]: unknown; }; } | { clear_admin: { contract_addr: string; [k: string]: unknown; }; }; export declare type GovMsg = { vote: { proposal_id: number; vote: VoteOption; [k: string]: unknown; }; }; export declare type VoteOption = "yes" | "no" | "abstain" | "no_with_veto"; export interface MultipleChoiceOptions { options: MultipleChoiceOption[]; } export interface MultipleChoiceOption { description: string; msgs: CosmosMsgForEmpty[]; title: string; } export interface Coin { amount: Uint128; denom: string; [k: string]: unknown; } export interface Empty { [k: string]: unknown; } export interface IbcTimeout { block?: IbcTimeoutBlock | null; timestamp?: Timestamp | null; [k: string]: unknown; } export interface IbcTimeoutBlock { height: number; revision: number; [k: string]: unknown; } export interface MultipleChoiceVote { option_id: number; } export declare type QueryMsg = { config: {}; } | { proposal: { proposal_id: number; }; } | { list_proposals: { limit?: number | null; start_after?: number | null; }; } | { reverse_proposals: { limit?: number | null; start_before?: number | null; }; } | { get_vote: { proposal_id: number; voter: string; }; } | { list_votes: { limit?: number | null; proposal_id: number; start_after?: string | null; }; } | { proposal_count: {}; } | { proposal_creation_policy: {}; } | { proposal_hooks: {}; } | { vote_hooks: {}; } | { dao: {}; } | { info: {}; } | { next_proposal_id: {}; }; export declare type MigrateMsg = { from_v1: { close_proposal_on_execution_failure: boolean; pre_propose_info: PreProposeInfo; }; } | { from_compatible: {}; }; export declare type Addr = string; export interface Config { allow_revoting: boolean; close_proposal_on_execution_failure: boolean; dao: Addr; max_voting_period: Duration; min_voting_period?: Duration | null; only_members_execute: boolean; voting_strategy: VotingStrategy; } export interface VoteResponse { vote?: VoteInfo | null; } export interface VoteInfo { power: Uint128; rationale?: string | null; vote: MultipleChoiceVote; voter: Addr; } export interface InfoResponse { info: ContractVersion; } export interface ContractVersion { contract: string; version: string; } export declare type MultipleChoiceOptionType = "standard" | "none"; export declare type Expiration = { at_height: number; } | { at_time: Timestamp; } | { never: {}; }; export declare type Status = "open" | "rejected" | "passed" | "executed" | "closed" | "execution_failed"; export interface ProposalListResponse { proposals: ProposalResponse[]; } export interface ProposalResponse { id: number; proposal: MultipleChoiceProposal; } export interface MultipleChoiceProposal { allow_revoting: boolean; choices: CheckedMultipleChoiceOption[]; description: string; expiration: Expiration; min_voting_period?: Expiration | null; proposer: Addr; start_height: number; status: Status; title: string; total_power: Uint128; votes: MultipleChoiceVotes; voting_strategy: VotingStrategy; } export interface CheckedMultipleChoiceOption { description: string; index: number; msgs: CosmosMsgForEmpty[]; option_type: MultipleChoiceOptionType; title: string; vote_count: Uint128; } export interface MultipleChoiceVotes { vote_weights: Uint128[]; } export interface VoteListResponse { votes: VoteInfo[]; } export declare type ProposalCreationPolicy = { anyone: {}; } | { module: { addr: Addr; }; }; export interface HooksResponse { hooks: string[]; }