// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/staking/v1beta1/query.proto (package cosmos.staking.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; import { DelegationResponse, HistoricalInfo, Params, Pool, RedelegationResponse, UnbondingDelegation, Validator } from "./staking_pb.js"; /** * QueryValidatorsRequest is request type for Query/Validators RPC method. * * @generated from message cosmos.staking.v1beta1.QueryValidatorsRequest */ export class QueryValidatorsRequest extends Message { /** * status enables to query for validators matching a given status. * * @generated from field: string status = 1; */ status = ""; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorsRequest { return new QueryValidatorsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorsRequest { return new QueryValidatorsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorsRequest { return new QueryValidatorsRequest().fromJsonString(jsonString, options); } static equals(a: QueryValidatorsRequest | PlainMessage | undefined, b: QueryValidatorsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorsRequest, a, b); } } /** * QueryValidatorsResponse is response type for the Query/Validators RPC method * * @generated from message cosmos.staking.v1beta1.QueryValidatorsResponse */ export class QueryValidatorsResponse extends Message { /** * validators contains all the queried validators. * * @generated from field: repeated cosmos.staking.v1beta1.Validator validators = 1; */ validators: Validator[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validators", kind: "message", T: Validator, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorsResponse { return new QueryValidatorsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorsResponse { return new QueryValidatorsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorsResponse { return new QueryValidatorsResponse().fromJsonString(jsonString, options); } static equals(a: QueryValidatorsResponse | PlainMessage | undefined, b: QueryValidatorsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorsResponse, a, b); } } /** * QueryValidatorRequest is response type for the Query/Validator RPC method * * @generated from message cosmos.staking.v1beta1.QueryValidatorRequest */ export class QueryValidatorRequest extends Message { /** * validator_addr defines the validator address to query for. * * @generated from field: string validator_addr = 1; */ validatorAddr = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorRequest { return new QueryValidatorRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorRequest { return new QueryValidatorRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorRequest { return new QueryValidatorRequest().fromJsonString(jsonString, options); } static equals(a: QueryValidatorRequest | PlainMessage | undefined, b: QueryValidatorRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorRequest, a, b); } } /** * QueryValidatorResponse is response type for the Query/Validator RPC method * * @generated from message cosmos.staking.v1beta1.QueryValidatorResponse */ export class QueryValidatorResponse extends Message { /** * validator defines the validator info. * * @generated from field: cosmos.staking.v1beta1.Validator validator = 1; */ validator?: Validator; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator", kind: "message", T: Validator }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorResponse { return new QueryValidatorResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorResponse { return new QueryValidatorResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorResponse { return new QueryValidatorResponse().fromJsonString(jsonString, options); } static equals(a: QueryValidatorResponse | PlainMessage | undefined, b: QueryValidatorResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorResponse, a, b); } } /** * QueryValidatorDelegationsRequest is request type for the * Query/ValidatorDelegations RPC method * * @generated from message cosmos.staking.v1beta1.QueryValidatorDelegationsRequest */ export class QueryValidatorDelegationsRequest extends Message { /** * validator_addr defines the validator address to query for. * * @generated from field: string validator_addr = 1; */ validatorAddr = ""; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorDelegationsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorDelegationsRequest { return new QueryValidatorDelegationsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorDelegationsRequest { return new QueryValidatorDelegationsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorDelegationsRequest { return new QueryValidatorDelegationsRequest().fromJsonString(jsonString, options); } static equals(a: QueryValidatorDelegationsRequest | PlainMessage | undefined, b: QueryValidatorDelegationsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorDelegationsRequest, a, b); } } /** * QueryValidatorDelegationsResponse is response type for the * Query/ValidatorDelegations RPC method * * @generated from message cosmos.staking.v1beta1.QueryValidatorDelegationsResponse */ export class QueryValidatorDelegationsResponse extends Message { /** * @generated from field: repeated cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1; */ delegationResponses: DelegationResponse[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorDelegationsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegation_responses", kind: "message", T: DelegationResponse, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorDelegationsResponse { return new QueryValidatorDelegationsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorDelegationsResponse { return new QueryValidatorDelegationsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorDelegationsResponse { return new QueryValidatorDelegationsResponse().fromJsonString(jsonString, options); } static equals(a: QueryValidatorDelegationsResponse | PlainMessage | undefined, b: QueryValidatorDelegationsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorDelegationsResponse, a, b); } } /** * QueryValidatorUnbondingDelegationsRequest is required type for the * Query/ValidatorUnbondingDelegations RPC method * * @generated from message cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest */ export class QueryValidatorUnbondingDelegationsRequest extends Message { /** * validator_addr defines the validator address to query for. * * @generated from field: string validator_addr = 1; */ validatorAddr = ""; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorUnbondingDelegationsRequest { return new QueryValidatorUnbondingDelegationsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorUnbondingDelegationsRequest { return new QueryValidatorUnbondingDelegationsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorUnbondingDelegationsRequest { return new QueryValidatorUnbondingDelegationsRequest().fromJsonString(jsonString, options); } static equals(a: QueryValidatorUnbondingDelegationsRequest | PlainMessage | undefined, b: QueryValidatorUnbondingDelegationsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorUnbondingDelegationsRequest, a, b); } } /** * QueryValidatorUnbondingDelegationsResponse is response type for the * Query/ValidatorUnbondingDelegations RPC method. * * @generated from message cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse */ export class QueryValidatorUnbondingDelegationsResponse extends Message { /** * @generated from field: repeated cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1; */ unbondingResponses: UnbondingDelegation[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "unbonding_responses", kind: "message", T: UnbondingDelegation, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorUnbondingDelegationsResponse { return new QueryValidatorUnbondingDelegationsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorUnbondingDelegationsResponse { return new QueryValidatorUnbondingDelegationsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorUnbondingDelegationsResponse { return new QueryValidatorUnbondingDelegationsResponse().fromJsonString(jsonString, options); } static equals(a: QueryValidatorUnbondingDelegationsResponse | PlainMessage | undefined, b: QueryValidatorUnbondingDelegationsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorUnbondingDelegationsResponse, a, b); } } /** * QueryDelegationRequest is request type for the Query/Delegation RPC method. * * @generated from message cosmos.staking.v1beta1.QueryDelegationRequest */ export class QueryDelegationRequest extends Message { /** * delegator_addr defines the delegator address to query for. * * @generated from field: string delegator_addr = 1; */ delegatorAddr = ""; /** * validator_addr defines the validator address to query for. * * @generated from field: string validator_addr = 2; */ validatorAddr = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryDelegationRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationRequest { return new QueryDelegationRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationRequest { return new QueryDelegationRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegationRequest { return new QueryDelegationRequest().fromJsonString(jsonString, options); } static equals(a: QueryDelegationRequest | PlainMessage | undefined, b: QueryDelegationRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegationRequest, a, b); } } /** * QueryDelegationResponse is response type for the Query/Delegation RPC method. * * @generated from message cosmos.staking.v1beta1.QueryDelegationResponse */ export class QueryDelegationResponse extends Message { /** * delegation_responses defines the delegation info of a delegation. * * @generated from field: cosmos.staking.v1beta1.DelegationResponse delegation_response = 1; */ delegationResponse?: DelegationResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryDelegationResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegation_response", kind: "message", T: DelegationResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationResponse { return new QueryDelegationResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationResponse { return new QueryDelegationResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegationResponse { return new QueryDelegationResponse().fromJsonString(jsonString, options); } static equals(a: QueryDelegationResponse | PlainMessage | undefined, b: QueryDelegationResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegationResponse, a, b); } } /** * QueryUnbondingDelegationRequest is request type for the * Query/UnbondingDelegation RPC method. * * @generated from message cosmos.staking.v1beta1.QueryUnbondingDelegationRequest */ export class QueryUnbondingDelegationRequest extends Message { /** * delegator_addr defines the delegator address to query for. * * @generated from field: string delegator_addr = 1; */ delegatorAddr = ""; /** * validator_addr defines the validator address to query for. * * @generated from field: string validator_addr = 2; */ validatorAddr = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryUnbondingDelegationRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnbondingDelegationRequest { return new QueryUnbondingDelegationRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnbondingDelegationRequest { return new QueryUnbondingDelegationRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryUnbondingDelegationRequest { return new QueryUnbondingDelegationRequest().fromJsonString(jsonString, options); } static equals(a: QueryUnbondingDelegationRequest | PlainMessage | undefined, b: QueryUnbondingDelegationRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryUnbondingDelegationRequest, a, b); } } /** * QueryDelegationResponse is response type for the Query/UnbondingDelegation * RPC method. * * @generated from message cosmos.staking.v1beta1.QueryUnbondingDelegationResponse */ export class QueryUnbondingDelegationResponse extends Message { /** * unbond defines the unbonding information of a delegation. * * @generated from field: cosmos.staking.v1beta1.UnbondingDelegation unbond = 1; */ unbond?: UnbondingDelegation; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryUnbondingDelegationResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "unbond", kind: "message", T: UnbondingDelegation }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryUnbondingDelegationResponse { return new QueryUnbondingDelegationResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryUnbondingDelegationResponse { return new QueryUnbondingDelegationResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryUnbondingDelegationResponse { return new QueryUnbondingDelegationResponse().fromJsonString(jsonString, options); } static equals(a: QueryUnbondingDelegationResponse | PlainMessage | undefined, b: QueryUnbondingDelegationResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryUnbondingDelegationResponse, a, b); } } /** * QueryDelegatorDelegationsRequest is request type for the * Query/DelegatorDelegations RPC method. * * @generated from message cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest */ export class QueryDelegatorDelegationsRequest extends Message { /** * delegator_addr defines the delegator address to query for. * * @generated from field: string delegator_addr = 1; */ delegatorAddr = ""; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorDelegationsRequest { return new QueryDelegatorDelegationsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorDelegationsRequest { return new QueryDelegatorDelegationsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorDelegationsRequest { return new QueryDelegatorDelegationsRequest().fromJsonString(jsonString, options); } static equals(a: QueryDelegatorDelegationsRequest | PlainMessage | undefined, b: QueryDelegatorDelegationsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegatorDelegationsRequest, a, b); } } /** * QueryDelegatorDelegationsResponse is response type for the * Query/DelegatorDelegations RPC method. * * @generated from message cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse */ export class QueryDelegatorDelegationsResponse extends Message { /** * delegation_responses defines all the delegations' info of a delegator. * * @generated from field: repeated cosmos.staking.v1beta1.DelegationResponse delegation_responses = 1; */ delegationResponses: DelegationResponse[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegation_responses", kind: "message", T: DelegationResponse, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorDelegationsResponse { return new QueryDelegatorDelegationsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorDelegationsResponse { return new QueryDelegatorDelegationsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorDelegationsResponse { return new QueryDelegatorDelegationsResponse().fromJsonString(jsonString, options); } static equals(a: QueryDelegatorDelegationsResponse | PlainMessage | undefined, b: QueryDelegatorDelegationsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegatorDelegationsResponse, a, b); } } /** * QueryDelegatorUnbondingDelegationsRequest is request type for the * Query/DelegatorUnbondingDelegations RPC method. * * @generated from message cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest */ export class QueryDelegatorUnbondingDelegationsRequest extends Message { /** * delegator_addr defines the delegator address to query for. * * @generated from field: string delegator_addr = 1; */ delegatorAddr = ""; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorUnbondingDelegationsRequest { return new QueryDelegatorUnbondingDelegationsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorUnbondingDelegationsRequest { return new QueryDelegatorUnbondingDelegationsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorUnbondingDelegationsRequest { return new QueryDelegatorUnbondingDelegationsRequest().fromJsonString(jsonString, options); } static equals(a: QueryDelegatorUnbondingDelegationsRequest | PlainMessage | undefined, b: QueryDelegatorUnbondingDelegationsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegatorUnbondingDelegationsRequest, a, b); } } /** * QueryUnbondingDelegatorDelegationsResponse is response type for the * Query/UnbondingDelegatorDelegations RPC method. * * @generated from message cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse */ export class QueryDelegatorUnbondingDelegationsResponse extends Message { /** * @generated from field: repeated cosmos.staking.v1beta1.UnbondingDelegation unbonding_responses = 1; */ unbondingResponses: UnbondingDelegation[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "unbonding_responses", kind: "message", T: UnbondingDelegation, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorUnbondingDelegationsResponse { return new QueryDelegatorUnbondingDelegationsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorUnbondingDelegationsResponse { return new QueryDelegatorUnbondingDelegationsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorUnbondingDelegationsResponse { return new QueryDelegatorUnbondingDelegationsResponse().fromJsonString(jsonString, options); } static equals(a: QueryDelegatorUnbondingDelegationsResponse | PlainMessage | undefined, b: QueryDelegatorUnbondingDelegationsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegatorUnbondingDelegationsResponse, a, b); } } /** * QueryRedelegationsRequest is request type for the Query/Redelegations RPC * method. * * @generated from message cosmos.staking.v1beta1.QueryRedelegationsRequest */ export class QueryRedelegationsRequest extends Message { /** * delegator_addr defines the delegator address to query for. * * @generated from field: string delegator_addr = 1; */ delegatorAddr = ""; /** * src_validator_addr defines the validator address to redelegate from. * * @generated from field: string src_validator_addr = 2; */ srcValidatorAddr = ""; /** * dst_validator_addr defines the validator address to redelegate to. * * @generated from field: string dst_validator_addr = 3; */ dstValidatorAddr = ""; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryRedelegationsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "src_validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "dst_validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryRedelegationsRequest { return new QueryRedelegationsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryRedelegationsRequest { return new QueryRedelegationsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryRedelegationsRequest { return new QueryRedelegationsRequest().fromJsonString(jsonString, options); } static equals(a: QueryRedelegationsRequest | PlainMessage | undefined, b: QueryRedelegationsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryRedelegationsRequest, a, b); } } /** * QueryRedelegationsResponse is response type for the Query/Redelegations RPC * method. * * @generated from message cosmos.staking.v1beta1.QueryRedelegationsResponse */ export class QueryRedelegationsResponse extends Message { /** * @generated from field: repeated cosmos.staking.v1beta1.RedelegationResponse redelegation_responses = 1; */ redelegationResponses: RedelegationResponse[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryRedelegationsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "redelegation_responses", kind: "message", T: RedelegationResponse, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryRedelegationsResponse { return new QueryRedelegationsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryRedelegationsResponse { return new QueryRedelegationsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryRedelegationsResponse { return new QueryRedelegationsResponse().fromJsonString(jsonString, options); } static equals(a: QueryRedelegationsResponse | PlainMessage | undefined, b: QueryRedelegationsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryRedelegationsResponse, a, b); } } /** * QueryDelegatorValidatorsRequest is request type for the * Query/DelegatorValidators RPC method. * * @generated from message cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest */ export class QueryDelegatorValidatorsRequest extends Message { /** * delegator_addr defines the delegator address to query for. * * @generated from field: string delegator_addr = 1; */ delegatorAddr = ""; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorValidatorsRequest { return new QueryDelegatorValidatorsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorValidatorsRequest { return new QueryDelegatorValidatorsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorValidatorsRequest { return new QueryDelegatorValidatorsRequest().fromJsonString(jsonString, options); } static equals(a: QueryDelegatorValidatorsRequest | PlainMessage | undefined, b: QueryDelegatorValidatorsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegatorValidatorsRequest, a, b); } } /** * QueryDelegatorValidatorsResponse is response type for the * Query/DelegatorValidators RPC method. * * @generated from message cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse */ export class QueryDelegatorValidatorsResponse extends Message { /** * validators defines the validators' info of a delegator. * * @generated from field: repeated cosmos.staking.v1beta1.Validator validators = 1; */ validators: Validator[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validators", kind: "message", T: Validator, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorValidatorsResponse { return new QueryDelegatorValidatorsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorValidatorsResponse { return new QueryDelegatorValidatorsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorValidatorsResponse { return new QueryDelegatorValidatorsResponse().fromJsonString(jsonString, options); } static equals(a: QueryDelegatorValidatorsResponse | PlainMessage | undefined, b: QueryDelegatorValidatorsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegatorValidatorsResponse, a, b); } } /** * QueryDelegatorValidatorRequest is request type for the * Query/DelegatorValidator RPC method. * * @generated from message cosmos.staking.v1beta1.QueryDelegatorValidatorRequest */ export class QueryDelegatorValidatorRequest extends Message { /** * delegator_addr defines the delegator address to query for. * * @generated from field: string delegator_addr = 1; */ delegatorAddr = ""; /** * validator_addr defines the validator address to query for. * * @generated from field: string validator_addr = 2; */ validatorAddr = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorValidatorRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "validator_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorValidatorRequest { return new QueryDelegatorValidatorRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorValidatorRequest { return new QueryDelegatorValidatorRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorValidatorRequest { return new QueryDelegatorValidatorRequest().fromJsonString(jsonString, options); } static equals(a: QueryDelegatorValidatorRequest | PlainMessage | undefined, b: QueryDelegatorValidatorRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegatorValidatorRequest, a, b); } } /** * QueryDelegatorValidatorResponse response type for the * Query/DelegatorValidator RPC method. * * @generated from message cosmos.staking.v1beta1.QueryDelegatorValidatorResponse */ export class QueryDelegatorValidatorResponse extends Message { /** * validator defines the validator info. * * @generated from field: cosmos.staking.v1beta1.Validator validator = 1; */ validator?: Validator; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryDelegatorValidatorResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator", kind: "message", T: Validator }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorValidatorResponse { return new QueryDelegatorValidatorResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorValidatorResponse { return new QueryDelegatorValidatorResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorValidatorResponse { return new QueryDelegatorValidatorResponse().fromJsonString(jsonString, options); } static equals(a: QueryDelegatorValidatorResponse | PlainMessage | undefined, b: QueryDelegatorValidatorResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegatorValidatorResponse, a, b); } } /** * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC * method. * * @generated from message cosmos.staking.v1beta1.QueryHistoricalInfoRequest */ export class QueryHistoricalInfoRequest extends Message { /** * height defines at which height to query the historical info. * * @generated from field: int64 height = 1; */ height = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryHistoricalInfoRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryHistoricalInfoRequest { return new QueryHistoricalInfoRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryHistoricalInfoRequest { return new QueryHistoricalInfoRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryHistoricalInfoRequest { return new QueryHistoricalInfoRequest().fromJsonString(jsonString, options); } static equals(a: QueryHistoricalInfoRequest | PlainMessage | undefined, b: QueryHistoricalInfoRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryHistoricalInfoRequest, a, b); } } /** * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC * method. * * @generated from message cosmos.staking.v1beta1.QueryHistoricalInfoResponse */ export class QueryHistoricalInfoResponse extends Message { /** * hist defines the historical info at the given height. * * @generated from field: cosmos.staking.v1beta1.HistoricalInfo hist = 1; */ hist?: HistoricalInfo; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryHistoricalInfoResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "hist", kind: "message", T: HistoricalInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryHistoricalInfoResponse { return new QueryHistoricalInfoResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryHistoricalInfoResponse { return new QueryHistoricalInfoResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryHistoricalInfoResponse { return new QueryHistoricalInfoResponse().fromJsonString(jsonString, options); } static equals(a: QueryHistoricalInfoResponse | PlainMessage | undefined, b: QueryHistoricalInfoResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryHistoricalInfoResponse, a, b); } } /** * QueryPoolRequest is request type for the Query/Pool RPC method. * * @generated from message cosmos.staking.v1beta1.QueryPoolRequest */ export class QueryPoolRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryPoolRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolRequest { return new QueryPoolRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolRequest { return new QueryPoolRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPoolRequest { return new QueryPoolRequest().fromJsonString(jsonString, options); } static equals(a: QueryPoolRequest | PlainMessage | undefined, b: QueryPoolRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPoolRequest, a, b); } } /** * QueryPoolResponse is response type for the Query/Pool RPC method. * * @generated from message cosmos.staking.v1beta1.QueryPoolResponse */ export class QueryPoolResponse extends Message { /** * pool defines the pool info. * * @generated from field: cosmos.staking.v1beta1.Pool pool = 1; */ pool?: Pool; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryPoolResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool", kind: "message", T: Pool }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolResponse { return new QueryPoolResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolResponse { return new QueryPoolResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPoolResponse { return new QueryPoolResponse().fromJsonString(jsonString, options); } static equals(a: QueryPoolResponse | PlainMessage | undefined, b: QueryPoolResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPoolResponse, a, b); } } /** * QueryParamsRequest is request type for the Query/Params RPC method. * * @generated from message cosmos.staking.v1beta1.QueryParamsRequest */ export class QueryParamsRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryParamsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { return new QueryParamsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { return new QueryParamsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { return new QueryParamsRequest().fromJsonString(jsonString, options); } static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryParamsRequest, a, b); } } /** * QueryParamsResponse is response type for the Query/Params RPC method. * * @generated from message cosmos.staking.v1beta1.QueryParamsResponse */ export class QueryParamsResponse extends Message { /** * params holds all the parameters of this module. * * @generated from field: cosmos.staking.v1beta1.Params params = 1; */ params?: Params; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.staking.v1beta1.QueryParamsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "params", kind: "message", T: Params }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { return new QueryParamsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { return new QueryParamsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { return new QueryParamsResponse().fromJsonString(jsonString, options); } static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryParamsResponse, a, b); } }