ServiceBase constructor

ServiceBase()

Implementation

ServiceBase() {
  $addMethod(
      $grpc.ServiceMethod<$0.GetNodeInfoRequest, $0.GetNodeInfoResponse>(
          'GetNodeInfo',
          getNodeInfo_Pre,
          false,
          false,
          ($core.List<$core.int> value) =>
              $0.GetNodeInfoRequest.fromBuffer(value),
          ($0.GetNodeInfoResponse value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.GetSyncingRequest, $0.GetSyncingResponse>(
      'GetSyncing',
      getSyncing_Pre,
      false,
      false,
      ($core.List<$core.int> value) => $0.GetSyncingRequest.fromBuffer(value),
      ($0.GetSyncingResponse value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.GetLatestBlockRequest,
          $0.GetLatestBlockResponse>(
      'GetLatestBlock',
      getLatestBlock_Pre,
      false,
      false,
      ($core.List<$core.int> value) =>
          $0.GetLatestBlockRequest.fromBuffer(value),
      ($0.GetLatestBlockResponse value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.GetBlockByHeightRequest,
          $0.GetBlockByHeightResponse>(
      'GetBlockByHeight',
      getBlockByHeight_Pre,
      false,
      false,
      ($core.List<$core.int> value) =>
          $0.GetBlockByHeightRequest.fromBuffer(value),
      ($0.GetBlockByHeightResponse value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.GetLatestValidatorSetRequest,
          $0.GetLatestValidatorSetResponse>(
      'GetLatestValidatorSet',
      getLatestValidatorSet_Pre,
      false,
      false,
      ($core.List<$core.int> value) =>
          $0.GetLatestValidatorSetRequest.fromBuffer(value),
      ($0.GetLatestValidatorSetResponse value) => value.writeToBuffer()));
  $addMethod($grpc.ServiceMethod<$0.GetValidatorSetByHeightRequest,
          $0.GetValidatorSetByHeightResponse>(
      'GetValidatorSetByHeight',
      getValidatorSetByHeight_Pre,
      false,
      false,
      ($core.List<$core.int> value) =>
          $0.GetValidatorSetByHeightRequest.fromBuffer(value),
      ($0.GetValidatorSetByHeightResponse value) => value.writeToBuffer()));
}