BlockchainServiceBase constructor
BlockchainServiceBase()
Implementation
BlockchainServiceBase() {
$addMethod($grpc.ServiceMethod<$1.GetBlockRequest, $1.GetBlockResponse>(
'GetBlock',
getBlock_Pre,
false,
false,
($core.List<$core.int> value) => $1.GetBlockRequest.fromBuffer(value),
($1.GetBlockResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$1.GetBlockHashRequest, $1.GetBlockHashResponse>(
'GetBlockHash',
getBlockHash_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.GetBlockHashRequest.fromBuffer(value),
($1.GetBlockHashResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.GetBlockHeightRequest,
$1.GetBlockHeightResponse>(
'GetBlockHeight',
getBlockHeight_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.GetBlockHeightRequest.fromBuffer(value),
($1.GetBlockHeightResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.GetBlockchainInfoRequest,
$1.GetBlockchainInfoResponse>(
'GetBlockchainInfo',
getBlockchainInfo_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.GetBlockchainInfoRequest.fromBuffer(value),
($1.GetBlockchainInfoResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.GetConsensusInfoRequest,
$1.GetConsensusInfoResponse>(
'GetConsensusInfo',
getConsensusInfo_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.GetConsensusInfoRequest.fromBuffer(value),
($1.GetConsensusInfoResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.GetAccountRequest, $1.GetAccountResponse>(
'GetAccount',
getAccount_Pre,
false,
false,
($core.List<$core.int> value) => $1.GetAccountRequest.fromBuffer(value),
($1.GetAccountResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$1.GetValidatorRequest, $1.GetValidatorResponse>(
'GetValidator',
getValidator_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.GetValidatorRequest.fromBuffer(value),
($1.GetValidatorResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.GetValidatorByNumberRequest,
$1.GetValidatorResponse>(
'GetValidatorByNumber',
getValidatorByNumber_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.GetValidatorByNumberRequest.fromBuffer(value),
($1.GetValidatorResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.GetValidatorAddressesRequest,
$1.GetValidatorAddressesResponse>(
'GetValidatorAddresses',
getValidatorAddresses_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.GetValidatorAddressesRequest.fromBuffer(value),
($1.GetValidatorAddressesResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$1.GetPublicKeyRequest, $1.GetPublicKeyResponse>(
'GetPublicKey',
getPublicKey_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.GetPublicKeyRequest.fromBuffer(value),
($1.GetPublicKeyResponse value) => value.writeToBuffer()));
}