import { BluzelleClient } from '../../core'; import { PageResponse } from '../../curium/lib/generated/cosmos/base/query/v1beta1/pagination'; import { Params } from '../../curium/lib/generated/cosmos/staking/v1beta1/staking'; import { BluzellePageRequest } from '../../shared/pagination'; import { BluzelleCoin } from '../../shared/types'; export type BluzelleDelegatorUnbondingDelegationsResponse = { unbondingDelegations: BluzelleUnbondingDelegation[]; pagination: PageResponse; }; export type BluzelleValidatorUnbondingDelegationsResponse = { unbondingDelegations: BluzelleUnbondingDelegation[]; pagination: PageResponse; }; export type BluzelleUnbondingDelegation = { delegatorAddress: string; validatorAddress: string; entries: BluzelleUnbondingDelegationEntry[]; totalBalance: number; }; export type BluzelleUnbondingDelegationEntry = { creationHeight: number; completionTime: Date; initialBalance: number; balance: number; }; export type BluzelleDelegatorDelegationsResponse = { pagination: PageResponse; delegations: BluzelleDelegationResponse[]; }; export type BluzelleDelegationResponse = { delegation: BluzelleDelegation; balance: BluzelleCoin; }; export type BluzelleDelegation = { validatorAddress: string; delegatorAddress: string; shares: number; }; export type BluzelleValidatorsResponse = { pagination: PageResponse; validators: BluzelleValidator[]; }; export type BluzelleValidator = { operatorAddress: string; description: { moniker: string; details: string; website: string; securityContact: string; }; commission: { commissionRates: { rate: number; maxRate: number; maxChangeRate: number; }; updateTime: Date; }; minSelfDelegation: number; delegatorShares: number; jailed: boolean; }; export type BluzelleValidatorResponse = { validator: BluzelleValidator; }; export type BluzelleValidatorDelegationsResponse = { delegationResponses: BluzelleDelegationResponse[]; pagination: PageResponse; }; export type BluzelleQueryRedelegationResponse = { redelegation: BluzelleRedelegationResponse[]; pagination: PageResponse; }; export type BluzelleRedelegationResponse = { redelegation: BluzelleRedelegation; entries: BluzelleRedelegationEntryResponse[]; }; export type BluzelleRedelegation = { delegatorAddress: string; validatorSrcAddress: string; validatorDstAddress: string; entries: BluzelleRedelegationEntry[]; }; export type BluzelleRedelegationEntryResponse = { redelegationEntry: BluzelleRedelegationEntry; balance: number; }; export type BluzelleRedelegationEntry = { creationHeight: Number; completionTime: Date; initialBalance: number; sharesDst: number; }; export type BluzelleDelegatorValidatorsResponse = { validators: BluzelleValidator[]; pagination: PageResponse; }; export type BluzelleHistoricalInfo = { header: { version: { block: number; app: number; }; chainId: string; height: number; time: Date; lastBlockId: string; lastCommitHash: string; dataHash: string; validatorsHash: string; nextValidatorsHash: string; consensusHash: string; appHash: string; lastResultsHash: string; evidenceHash: string; proposerAddress: string; }; valSet: BluzelleValidator[]; }; export type BluzellePool = { notBondedTokens: number; bondedTokens: number; }; export type BluzelleStakingParams = { unbondingTime: { seconds: number; nanos: number; }; maxValidators: number; maxEntries: number; historicalEntries: number; bondDenom: string; minCommissionRate: string; }; /*************************Query interface funtions */ export declare const getValidatorsInfo: (client: BluzelleClient, status?: "BOND_STATUS_UNBONDED" | "BOND_STATUS_UNBONDING" | "BOND_STATUS_BONDED", options?: BluzellePageRequest) => Promise; export declare const getValidatorInfo: (client: BluzelleClient, validatorAddr: string) => Promise; export declare const getValidatorDelegations: (client: BluzelleClient, validatorAddr: string, options?: BluzellePageRequest) => Promise; export declare const getValidatorUnbondingDelegations: (client: BluzelleClient, validatorAddr: string, options?: BluzellePageRequest) => Promise; export declare const getDelegation: (client: BluzelleClient, delegatorAddress: string, validatorAddress: string) => Promise; export declare const getUnbondingDelegation: (client: BluzelleClient, delegatorAddress: string, validatorAddress: string) => Promise; export declare const getDelegatorDelegations: (client: BluzelleClient, delegatorAddress: string, options?: BluzellePageRequest) => Promise; export declare const getDelegatorUnbondingDelegations: (client: BluzelleClient, delegatorAddress: string, options?: BluzellePageRequest) => Promise; export declare const getRedelegations: (client: BluzelleClient, delegatorAddr: string, srcValidatorAddr: string, dstValidatorAddr: string, options?: BluzellePageRequest) => Promise; export declare const getDelegatorValidatorsInfo: (client: BluzelleClient, delegatorAddr: string, options?: BluzellePageRequest) => Promise; export declare const getDelegatorValidator: (client: BluzelleClient, delegatorAddr: string, validatorAddr: string) => Promise; export declare const getHistoricalInfo: (client: BluzelleClient, height: number) => Promise; export declare const getPoolInfo: (client: BluzelleClient) => Promise; export declare const getStakingParams: (client: BluzelleClient) => Promise; export declare const parseBluzelleStakingParamsToParams: (blzParams: BluzelleStakingParams) => Params; //# sourceMappingURL=query.d.ts.map