export interface ProtobufAny { "@type"?: string; } export interface RpcStatus { /** @format int32 */ code?: number; message?: string; details?: ProtobufAny[]; } /** * Coin defines a token with a denomination and an amount. NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. */ export interface V1Beta1Coin { denom?: string; amount?: string; } /** * LiquidValidatorState is type LiquidValidator with state added to return to query results. */ export interface V1Beta1LiquidValidatorState { /** operator_address defines the address of the validator's operator; bech encoded in JSON. */ operatorAddress?: string; /** * @format sdk.Int * @example 10 */ weight?: string; /** * ValidatorStatus enumerates the status of a liquid validator. * * - VALIDATOR_STATUS_UNSPECIFIED: VALIDATOR_STATUS_UNSPECIFIED defines the unspecified invalid status. * - VALIDATOR_STATUS_ACTIVE: VALIDATOR_STATUS_ACTIVE defines the active, valid status * - VALIDATOR_STATUS_INACTIVE: VALIDATOR_STATUS_INACTIVE defines the inactive, invalid status */ status?: V1Beta1ValidatorStatus; delShares?: string; liquidTokens?: string; } /** * MsgLiquidStakeResponse defines the Msg/LiquidStake response type. */ export declare type V1Beta1MsgLiquidStakeResponse = object; /** * MsgLiquidUnstakeResponse defines the Msg/LiquidUnstake response type. */ export interface V1Beta1MsgLiquidUnstakeResponse { /** @format date-time */ completionTime?: string; } /** * NetAmountState is type for net amount raw data and mint rate, This is a value that depends on the several module state every time, so it is used only for calculation and query and is not stored in kv. */ export interface V1Beta1NetAmountState { mintRate?: string; btokenTotalSupply?: string; netAmount?: string; totalDelShares?: string; totalLiquidTokens?: string; totalRemainingRewards?: string; totalUnbondingBalance?: string; proxyAccBalance?: string; } /** * Params defines the set of params for the liquidstaking module. */ export interface V1Beta1Params { /** * LiquidBondDenom specifies the denomination of the token receiving after LiquidStaking, The value is calculated * through NetAmount. */ liquidBondDenom?: string; /** WhitelistedValidators specifies the validators elected to become Active Liquid Validators. */ whitelistedValidators?: V1Beta1WhitelistedValidator[]; unstakeFeeRate?: string; /** * MinLiquidStakingAmount specifies the minimum number of coins to be staked to the active liquid validators on liquid * staking to minimize decimal loss and consider gas efficiency. * @format sdk.Int * @example 1000000 */ minLiquidStakingAmount?: string; } /** * QueryLiquidValidatorsResponse is the response type for the Query/LiquidValidators RPC method. */ export interface V1Beta1QueryLiquidValidatorsResponse { liquidValidators?: V1Beta1LiquidValidatorState[]; } /** * QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface V1Beta1QueryParamsResponse { /** Params defines the set of params for the liquidstaking module. */ params?: V1Beta1Params; } /** * QueryStatesResponse is the response type for the Query/States RPC method. */ export interface V1Beta1QueryStatesResponse { /** * NetAmountState is type for net amount raw data and mint rate, This is a value that depends on the several module * state every time, so it is used only for calculation and query and is not stored in kv. */ netAmountState?: V1Beta1NetAmountState; } /** * QueryVotingPowerResponse is the response type for the Query/States RPC method. */ export interface V1Beta1QueryVotingPowerResponse { /** * VotingPower is type for current voting power of the voter including staking module's voting power and liquid staking * module's voting power, It depends on the amount of delegation of staking module, the bonded state of the delegated * validator, the value of btoken(liquid_bond_denom), and the pool coin and farming position containing btoken.. */ votingPower?: V1Beta1VotingPower; } /** * ValidatorStatus enumerates the status of a liquid validator. - VALIDATOR_STATUS_UNSPECIFIED: VALIDATOR_STATUS_UNSPECIFIED defines the unspecified invalid status. - VALIDATOR_STATUS_ACTIVE: VALIDATOR_STATUS_ACTIVE defines the active, valid status - VALIDATOR_STATUS_INACTIVE: VALIDATOR_STATUS_INACTIVE defines the inactive, invalid status */ export declare enum V1Beta1ValidatorStatus { VALIDATOR_STATUS_UNSPECIFIED = "VALIDATOR_STATUS_UNSPECIFIED", VALIDATOR_STATUS_ACTIVE = "VALIDATOR_STATUS_ACTIVE", VALIDATOR_STATUS_INACTIVE = "VALIDATOR_STATUS_INACTIVE" } /** * VotingPower is type for current voting power of the voter including staking module's voting power and liquid staking module's voting power, It depends on the amount of delegation of staking module, the bonded state of the delegated validator, the value of btoken(liquid_bond_denom), and the pool coin and farming position containing btoken.. */ export interface V1Beta1VotingPower { /** voter defines the address of the voter; bech encoded in JSON. */ voter?: string; /** staking_voting_power return the voting power of staking that can be exercised. */ stakingVotingPower?: string; /** liquid_staking_voting_power return the voting power of liquid staking that can be exercised. */ liquidStakingVotingPower?: string; /** * validator_voting_power return the voting power of the validator if the voter is the validator operator that can be * exercised. */ validatorVotingPower?: string; } /** * WhitelistedValidator consists of the validator operator address and the target weight, which is a value for calculating the real weight to be derived according to the active status. In the case of inactive, it is calculated as zero. */ export interface V1Beta1WhitelistedValidator { validatorAddress?: string; /** * @format sdk.Int * @example 10 */ targetWeight?: string; } export declare type QueryParamsType = Record; export declare type ResponseFormat = keyof Omit; export interface FullRequestParams extends Omit { /** set parameter to `true` for call `securityWorker` for this request */ secure?: boolean; /** request path */ path: string; /** content type of request body */ type?: ContentType; /** query params */ query?: QueryParamsType; /** format of response (i.e. response.json() -> format: "json") */ format?: keyof Omit; /** request body */ body?: unknown; /** base url */ baseUrl?: string; /** request cancellation token */ cancelToken?: CancelToken; } export declare type RequestParams = Omit; export interface ApiConfig { baseUrl?: string; baseApiParams?: Omit; securityWorker?: (securityData: SecurityDataType) => RequestParams | void; } export interface HttpResponse extends Response { data: D; error: E; } declare type CancelToken = Symbol | string | number; export declare enum ContentType { Json = "application/json", FormData = "multipart/form-data", UrlEncoded = "application/x-www-form-urlencoded" } export declare class HttpClient { baseUrl: string; private securityData; private securityWorker; private abortControllers; private baseApiParams; constructor(apiConfig?: ApiConfig); setSecurityData: (data: SecurityDataType) => void; private addQueryParam; protected toQueryString(rawQuery?: QueryParamsType): string; protected addQueryParams(rawQuery?: QueryParamsType): string; private contentFormatters; private mergeRequestParams; private createAbortSignal; abortRequest: (cancelToken: CancelToken) => void; request: ({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise>; } /** * @title crescent/liquidstaking/v1beta1/genesis.proto * @version version not set */ export declare class Api extends HttpClient { /** * @description Returns all parameters of the liquid staking module. * * @tags Query * @name QueryParams * @summary Params returns parameters of the liquidstaking module. * @request GET:/crescent/liquidstaking/v1beta1/params */ queryParams: (params?: RequestParams) => Promise>; /** * @description Returns states of the liquid staking module. * * @tags Query * @name QueryStates * @summary States returns states of the liquidstaking module. * @request GET:/crescent/liquidstaking/v1beta1/states */ queryStates: (params?: RequestParams) => Promise>; /** * @description Returns all liquid validators of the liquid staking module. * * @tags Query * @name QueryLiquidValidators * @summary LiquidValidators returns liquid validators with states of the liquidstaking module. * @request GET:/crescent/liquidstaking/v1beta1/validators */ queryLiquidValidators: (params?: RequestParams) => Promise>; /** * @description Returns voting power of staking and liquid staking module's of the voter that can be exercised. * * @tags Query * @name QueryVotingPower * @summary VotingPower returns voting power of staking and liquid staking module's of the voter that can be exercised. * @request GET:/crescent/liquidstaking/v1beta1/voting_power/{voter} */ queryVotingPower: (voter: string, params?: RequestParams) => Promise>; } export {};