// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file cosmos/distribution/v1beta1/query.proto (package cosmos.distribution.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 { DelegationDelegatorReward, Params, ValidatorAccumulatedCommission, ValidatorOutstandingRewards, ValidatorSlashEvent } from "./distribution_pb.js"; import { DecCoin } from "../../base/v1beta1/coin_pb.js"; import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; /** * QueryParamsRequest is the request type for the Query/Params RPC method. * * @generated from message cosmos.distribution.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.distribution.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 the response type for the Query/Params RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryParamsResponse */ export class QueryParamsResponse extends Message { /** * params defines the parameters of the module. * * @generated from field: cosmos.distribution.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.distribution.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); } } /** * QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest */ export class QueryValidatorDistributionInfoRequest extends Message { /** * validator_address defines the validator address to query for. * * @generated from field: string validator_address = 1; */ validatorAddress = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorDistributionInfoRequest { return new QueryValidatorDistributionInfoRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorDistributionInfoRequest { return new QueryValidatorDistributionInfoRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorDistributionInfoRequest { return new QueryValidatorDistributionInfoRequest().fromJsonString(jsonString, options); } static equals(a: QueryValidatorDistributionInfoRequest | PlainMessage | undefined, b: QueryValidatorDistributionInfoRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorDistributionInfoRequest, a, b); } } /** * QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse */ export class QueryValidatorDistributionInfoResponse extends Message { /** * operator_address defines the validator operator address. * * @generated from field: string operator_address = 1; */ operatorAddress = ""; /** * self_bond_rewards defines the self delegations rewards. * * @generated from field: repeated cosmos.base.v1beta1.DecCoin self_bond_rewards = 2; */ selfBondRewards: DecCoin[] = []; /** * commission defines the commission the validator received. * * @generated from field: repeated cosmos.base.v1beta1.DecCoin commission = 3; */ commission: DecCoin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "operator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "self_bond_rewards", kind: "message", T: DecCoin, repeated: true }, { no: 3, name: "commission", kind: "message", T: DecCoin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorDistributionInfoResponse { return new QueryValidatorDistributionInfoResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorDistributionInfoResponse { return new QueryValidatorDistributionInfoResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorDistributionInfoResponse { return new QueryValidatorDistributionInfoResponse().fromJsonString(jsonString, options); } static equals(a: QueryValidatorDistributionInfoResponse | PlainMessage | undefined, b: QueryValidatorDistributionInfoResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorDistributionInfoResponse, a, b); } } /** * QueryValidatorOutstandingRewardsRequest is the request type for the * Query/ValidatorOutstandingRewards RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest */ export class QueryValidatorOutstandingRewardsRequest extends Message { /** * validator_address defines the validator address to query for. * * @generated from field: string validator_address = 1; */ validatorAddress = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorOutstandingRewardsRequest { return new QueryValidatorOutstandingRewardsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorOutstandingRewardsRequest { return new QueryValidatorOutstandingRewardsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorOutstandingRewardsRequest { return new QueryValidatorOutstandingRewardsRequest().fromJsonString(jsonString, options); } static equals(a: QueryValidatorOutstandingRewardsRequest | PlainMessage | undefined, b: QueryValidatorOutstandingRewardsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorOutstandingRewardsRequest, a, b); } } /** * QueryValidatorOutstandingRewardsResponse is the response type for the * Query/ValidatorOutstandingRewards RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse */ export class QueryValidatorOutstandingRewardsResponse extends Message { /** * @generated from field: cosmos.distribution.v1beta1.ValidatorOutstandingRewards rewards = 1; */ rewards?: ValidatorOutstandingRewards; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "rewards", kind: "message", T: ValidatorOutstandingRewards }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorOutstandingRewardsResponse { return new QueryValidatorOutstandingRewardsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorOutstandingRewardsResponse { return new QueryValidatorOutstandingRewardsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorOutstandingRewardsResponse { return new QueryValidatorOutstandingRewardsResponse().fromJsonString(jsonString, options); } static equals(a: QueryValidatorOutstandingRewardsResponse | PlainMessage | undefined, b: QueryValidatorOutstandingRewardsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorOutstandingRewardsResponse, a, b); } } /** * QueryValidatorCommissionRequest is the request type for the * Query/ValidatorCommission RPC method * * @generated from message cosmos.distribution.v1beta1.QueryValidatorCommissionRequest */ export class QueryValidatorCommissionRequest extends Message { /** * validator_address defines the validator address to query for. * * @generated from field: string validator_address = 1; */ validatorAddress = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorCommissionRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorCommissionRequest { return new QueryValidatorCommissionRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorCommissionRequest { return new QueryValidatorCommissionRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorCommissionRequest { return new QueryValidatorCommissionRequest().fromJsonString(jsonString, options); } static equals(a: QueryValidatorCommissionRequest | PlainMessage | undefined, b: QueryValidatorCommissionRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorCommissionRequest, a, b); } } /** * QueryValidatorCommissionResponse is the response type for the * Query/ValidatorCommission RPC method * * @generated from message cosmos.distribution.v1beta1.QueryValidatorCommissionResponse */ export class QueryValidatorCommissionResponse extends Message { /** * commission defines the commission the validator received. * * @generated from field: cosmos.distribution.v1beta1.ValidatorAccumulatedCommission commission = 1; */ commission?: ValidatorAccumulatedCommission; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryValidatorCommissionResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "commission", kind: "message", T: ValidatorAccumulatedCommission }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorCommissionResponse { return new QueryValidatorCommissionResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorCommissionResponse { return new QueryValidatorCommissionResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorCommissionResponse { return new QueryValidatorCommissionResponse().fromJsonString(jsonString, options); } static equals(a: QueryValidatorCommissionResponse | PlainMessage | undefined, b: QueryValidatorCommissionResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorCommissionResponse, a, b); } } /** * QueryValidatorSlashesRequest is the request type for the * Query/ValidatorSlashes RPC method * * @generated from message cosmos.distribution.v1beta1.QueryValidatorSlashesRequest */ export class QueryValidatorSlashesRequest extends Message { /** * validator_address defines the validator address to query for. * * @generated from field: string validator_address = 1; */ validatorAddress = ""; /** * starting_height defines the optional starting height to query the slashes. * * @generated from field: uint64 starting_height = 2; */ startingHeight = protoInt64.zero; /** * starting_height defines the optional ending height to query the slashes. * * @generated from field: uint64 ending_height = 3; */ endingHeight = protoInt64.zero; /** * 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.distribution.v1beta1.QueryValidatorSlashesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "starting_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "ending_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorSlashesRequest { return new QueryValidatorSlashesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorSlashesRequest { return new QueryValidatorSlashesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorSlashesRequest { return new QueryValidatorSlashesRequest().fromJsonString(jsonString, options); } static equals(a: QueryValidatorSlashesRequest | PlainMessage | undefined, b: QueryValidatorSlashesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorSlashesRequest, a, b); } } /** * QueryValidatorSlashesResponse is the response type for the * Query/ValidatorSlashes RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryValidatorSlashesResponse */ export class QueryValidatorSlashesResponse extends Message { /** * slashes defines the slashes the validator received. * * @generated from field: repeated cosmos.distribution.v1beta1.ValidatorSlashEvent slashes = 1; */ slashes: ValidatorSlashEvent[] = []; /** * 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.distribution.v1beta1.QueryValidatorSlashesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "slashes", kind: "message", T: ValidatorSlashEvent, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryValidatorSlashesResponse { return new QueryValidatorSlashesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryValidatorSlashesResponse { return new QueryValidatorSlashesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryValidatorSlashesResponse { return new QueryValidatorSlashesResponse().fromJsonString(jsonString, options); } static equals(a: QueryValidatorSlashesResponse | PlainMessage | undefined, b: QueryValidatorSlashesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryValidatorSlashesResponse, a, b); } } /** * QueryDelegationRewardsRequest is the request type for the * Query/DelegationRewards RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryDelegationRewardsRequest */ export class QueryDelegationRewardsRequest extends Message { /** * delegator_address defines the delegator address to query for. * * @generated from field: string delegator_address = 1; */ delegatorAddress = ""; /** * validator_address defines the validator address to query for. * * @generated from field: string validator_address = 2; */ validatorAddress = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegationRewardsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "validator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationRewardsRequest { return new QueryDelegationRewardsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationRewardsRequest { return new QueryDelegationRewardsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegationRewardsRequest { return new QueryDelegationRewardsRequest().fromJsonString(jsonString, options); } static equals(a: QueryDelegationRewardsRequest | PlainMessage | undefined, b: QueryDelegationRewardsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegationRewardsRequest, a, b); } } /** * QueryDelegationRewardsResponse is the response type for the * Query/DelegationRewards RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryDelegationRewardsResponse */ export class QueryDelegationRewardsResponse extends Message { /** * rewards defines the rewards accrued by a delegation. * * @generated from field: repeated cosmos.base.v1beta1.DecCoin rewards = 1; */ rewards: DecCoin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegationRewardsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "rewards", kind: "message", T: DecCoin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationRewardsResponse { return new QueryDelegationRewardsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationRewardsResponse { return new QueryDelegationRewardsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegationRewardsResponse { return new QueryDelegationRewardsResponse().fromJsonString(jsonString, options); } static equals(a: QueryDelegationRewardsResponse | PlainMessage | undefined, b: QueryDelegationRewardsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegationRewardsResponse, a, b); } } /** * QueryDelegationTotalRewardsRequest is the request type for the * Query/DelegationTotalRewards RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest */ export class QueryDelegationTotalRewardsRequest extends Message { /** * delegator_address defines the delegator address to query for. * * @generated from field: string delegator_address = 1; */ delegatorAddress = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationTotalRewardsRequest { return new QueryDelegationTotalRewardsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationTotalRewardsRequest { return new QueryDelegationTotalRewardsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegationTotalRewardsRequest { return new QueryDelegationTotalRewardsRequest().fromJsonString(jsonString, options); } static equals(a: QueryDelegationTotalRewardsRequest | PlainMessage | undefined, b: QueryDelegationTotalRewardsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegationTotalRewardsRequest, a, b); } } /** * QueryDelegationTotalRewardsResponse is the response type for the * Query/DelegationTotalRewards RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse */ export class QueryDelegationTotalRewardsResponse extends Message { /** * rewards defines all the rewards accrued by a delegator. * * @generated from field: repeated cosmos.distribution.v1beta1.DelegationDelegatorReward rewards = 1; */ rewards: DelegationDelegatorReward[] = []; /** * total defines the sum of all the rewards. * * @generated from field: repeated cosmos.base.v1beta1.DecCoin total = 2; */ total: DecCoin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "rewards", kind: "message", T: DelegationDelegatorReward, repeated: true }, { no: 2, name: "total", kind: "message", T: DecCoin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegationTotalRewardsResponse { return new QueryDelegationTotalRewardsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegationTotalRewardsResponse { return new QueryDelegationTotalRewardsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegationTotalRewardsResponse { return new QueryDelegationTotalRewardsResponse().fromJsonString(jsonString, options); } static equals(a: QueryDelegationTotalRewardsResponse | PlainMessage | undefined, b: QueryDelegationTotalRewardsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegationTotalRewardsResponse, a, b); } } /** * QueryDelegatorValidatorsRequest is the request type for the * Query/DelegatorValidators RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest */ export class QueryDelegatorValidatorsRequest extends Message { /** * delegator_address defines the delegator address to query for. * * @generated from field: string delegator_address = 1; */ delegatorAddress = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); 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 the response type for the * Query/DelegatorValidators RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse */ export class QueryDelegatorValidatorsResponse extends Message { /** * validators defines the validators a delegator is delegating for. * * @generated from field: repeated string validators = 1; */ validators: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "validators", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); 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); } } /** * QueryDelegatorWithdrawAddressRequest is the request type for the * Query/DelegatorWithdrawAddress RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest */ export class QueryDelegatorWithdrawAddressRequest extends Message { /** * delegator_address defines the delegator address to query for. * * @generated from field: string delegator_address = 1; */ delegatorAddress = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "delegator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorWithdrawAddressRequest { return new QueryDelegatorWithdrawAddressRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorWithdrawAddressRequest { return new QueryDelegatorWithdrawAddressRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorWithdrawAddressRequest { return new QueryDelegatorWithdrawAddressRequest().fromJsonString(jsonString, options); } static equals(a: QueryDelegatorWithdrawAddressRequest | PlainMessage | undefined, b: QueryDelegatorWithdrawAddressRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegatorWithdrawAddressRequest, a, b); } } /** * QueryDelegatorWithdrawAddressResponse is the response type for the * Query/DelegatorWithdrawAddress RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse */ export class QueryDelegatorWithdrawAddressResponse extends Message { /** * withdraw_address defines the delegator address to query for. * * @generated from field: string withdraw_address = 1; */ withdrawAddress = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "withdraw_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryDelegatorWithdrawAddressResponse { return new QueryDelegatorWithdrawAddressResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryDelegatorWithdrawAddressResponse { return new QueryDelegatorWithdrawAddressResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryDelegatorWithdrawAddressResponse { return new QueryDelegatorWithdrawAddressResponse().fromJsonString(jsonString, options); } static equals(a: QueryDelegatorWithdrawAddressResponse | PlainMessage | undefined, b: QueryDelegatorWithdrawAddressResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryDelegatorWithdrawAddressResponse, a, b); } } /** * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC * method. * * @generated from message cosmos.distribution.v1beta1.QueryCommunityPoolRequest */ export class QueryCommunityPoolRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryCommunityPoolRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommunityPoolRequest { return new QueryCommunityPoolRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommunityPoolRequest { return new QueryCommunityPoolRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCommunityPoolRequest { return new QueryCommunityPoolRequest().fromJsonString(jsonString, options); } static equals(a: QueryCommunityPoolRequest | PlainMessage | undefined, b: QueryCommunityPoolRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCommunityPoolRequest, a, b); } } /** * QueryCommunityPoolResponse is the response type for the Query/CommunityPool * RPC method. * * @generated from message cosmos.distribution.v1beta1.QueryCommunityPoolResponse */ export class QueryCommunityPoolResponse extends Message { /** * pool defines community pool's coins. * * @generated from field: repeated cosmos.base.v1beta1.DecCoin pool = 1; */ pool: DecCoin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.distribution.v1beta1.QueryCommunityPoolResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool", kind: "message", T: DecCoin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCommunityPoolResponse { return new QueryCommunityPoolResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCommunityPoolResponse { return new QueryCommunityPoolResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCommunityPoolResponse { return new QueryCommunityPoolResponse().fromJsonString(jsonString, options); } static equals(a: QueryCommunityPoolResponse | PlainMessage | undefined, b: QueryCommunityPoolResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCommunityPoolResponse, a, b); } }