QueryServiceBase constructor
QueryServiceBase()
Implementation
QueryServiceBase() {
$addMethod(
$grpc.ServiceMethod<$0.QueryProposalRequest, $0.QueryProposalResponse>(
'Proposal',
proposal_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.QueryProposalRequest.fromBuffer(value),
($0.QueryProposalResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.QueryProposalsRequest,
$0.QueryProposalsResponse>(
'Proposals',
proposals_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.QueryProposalsRequest.fromBuffer(value),
($0.QueryProposalsResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.QueryVoteRequest, $0.QueryVoteResponse>(
'Vote',
vote_Pre,
false,
false,
($core.List<$core.int> value) => $0.QueryVoteRequest.fromBuffer(value),
($0.QueryVoteResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.QueryVotesRequest, $0.QueryVotesResponse>(
'Votes',
votes_Pre,
false,
false,
($core.List<$core.int> value) => $0.QueryVotesRequest.fromBuffer(value),
($0.QueryVotesResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$0.QueryParamsRequest, $0.QueryParamsResponse>(
'Params',
params_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.QueryParamsRequest.fromBuffer(value),
($0.QueryParamsResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$0.QueryDepositRequest, $0.QueryDepositResponse>(
'Deposit',
deposit_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.QueryDepositRequest.fromBuffer(value),
($0.QueryDepositResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$0.QueryDepositsRequest, $0.QueryDepositsResponse>(
'Deposits',
deposits_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.QueryDepositsRequest.fromBuffer(value),
($0.QueryDepositsResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.QueryTallyResultRequest,
$0.QueryTallyResultResponse>(
'TallyResult',
tallyResult_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.QueryTallyResultRequest.fromBuffer(value),
($0.QueryTallyResultResponse value) => value.writeToBuffer()));
}