/** * This file was automatically generated by @cosmwasm/ts-codegen@1.10.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 type ActiveThreshold = | { absolute_count: { count: Uint128 } } | { percentage: { percent: Decimal } } export type Uint128 = string export type Decimal = string export type TokenInfo = | { existing: { denom: string } } | { new: NewTokenInfo } | { factory: Binary } export type Binary = string export type Duration = | { height: number } | { time: number } export interface InstantiateMsg { active_threshold?: ActiveThreshold | null token_info: TokenInfo unstaking_duration?: Duration | null } export interface NewTokenInfo { initial_balances: InitialBalance[] initial_dao_balance?: Uint128 | null metadata?: NewDenomMetadata | null subdenom: string token_issuer_code_id: number } export interface InitialBalance { address: string amount: Uint128 } export interface NewDenomMetadata { additional_denom_units?: DenomUnit[] | null description: string display: string name: string symbol: string } export interface DenomUnit { aliases: string[] denom: string // Serialized as string for some reason. exponent: string } export type ExecuteMsg = | { stake: {} } | { unstake: { amount: Uint128 } } | { update_config: { duration?: Duration | null } } | { claim: {} } | { update_active_threshold: { new_threshold?: ActiveThreshold | null } } | { add_hook: { addr: string } } | { remove_hook: { addr: string } } export type QueryMsg = | { get_config: {} } | { claims: { address: string } } | { list_stakers: { limit?: number | null start_after?: string | null } } | { active_threshold: {} } | { get_hooks: {} } | { token_contract: {} } | { denom: {} } | { is_active: {} } | { voting_power_at_height: { address: string height?: number | null } } | { total_power_at_height: { height?: number | null } } | { dao: {} } | { info: {} } export interface MigrateMsg {} export interface ActiveThresholdResponse { active_threshold?: ActiveThreshold | null } export type Expiration = | { at_height: number } | { at_time: Timestamp } | { never: {} } export type Timestamp = Uint64 export type Uint64 = string export interface ClaimsResponse { claims: Claim[] } export interface Claim { amount: Uint128 release_at: Expiration } export type Addr = string export interface DenomResponse { denom: string } export interface Config { unstaking_duration?: Duration | null } export interface GetHooksResponse { hooks: string[] } export interface InfoResponse { info: ContractVersion } export interface ContractVersion { contract: string version: string } export type Boolean = boolean export interface ListStakersResponse { stakers: StakerBalanceResponse[] } export interface StakerBalanceResponse { address: string balance: Uint128 } export type NullableAddr = Addr | null export interface TotalPowerAtHeightResponse { height: number power: Uint128 } export interface VotingPowerAtHeightResponse { height: number power: Uint128 }