Benign rust 7,586 installs Download

minotari_wallet_grpc_client 6.1.0-pre.0

“Base node GRPC client”

Release published within seven daysTwenty or more releases
SHA-256b143cd2a47483f7a879cfa5c8d54ba1791f7c65073ee51f19801e2e6d51ae8dc

Evidence

English function-word token "the" lib.rs · lines 1–9
1// Copyright 2022, The Tari Project
2//
3// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
4// following conditions are met:
5//
6// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
7// disclaimer.
8//
9// 2. Redistributions in binary form mus …
English function-word token "for" lib.rs · lines 16–17
16:41… PLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS …
imports tonic::codegen::http::uri::InvalidUri lib.rs · lines 21–42
21:45… THE POSSIBILITY OF SUCH DAMAGE.
22
23use std::ops::{Deref, DerefMut};
24
25use tari_common::MAX_GRPC_MESSAGE_SIZE;
26use tonic::{
27 codegen::{InterceptedService, http::uri::InvalidUri},
28 transport::Endpoint,
29};
30
31pub type Client<TTransport> = grpc::wallet_client::WalletClient<TTransport>;
32
33// Re-export so that users don't have to depend on minotari_app_grpc
34pub use minotari_app_grpc::{
35 authentication::{BasicAuthError, ClientAuthenticationInterceptor},
36 tari_rpc as grpc,
37};
38pub use tari_common_types::grpc_authentication::GrpcAuthentication;
39
40#[derive(Debug, Clone)]
41pub struct WalletGrpcClient<TTransport> {
42 client: Client<Intercep …
English function-word token "the" client.rs · lines 1–9
1// Copyright 2022. The Tari Project
2//
3// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
4// following conditions are met:
5//
6// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
7// disclaimer.
8//
9// 2. Redistributions in binary form m …
imports minotari_wallet_grpc_client::grpc client.rs · lines 21–31
21:65… SUCH DAMAGE.
22
23use minotari_wallet_grpc_client::{WalletGrpcClient, grpc};
24
25#[tokio::test]
26async fn it_works() {
27 // Basic test that only works if a wallet is running on localhost:18143
28 match WalletGrpcClient::connect("http://127.0.0.1:18143").await {
29 Ok(mut client) => {
30 let _res = client.identify(grpc::GetIdentityRequest {}).await;
31 …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.