Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tonic update #78

Merged
merged 10 commits into from
Oct 20, 2023
Prev Previous commit
Next Next commit
Update proto-version
  • Loading branch information
richardpringle committed Oct 20, 2023
commit fce908737cfdc50b9199d3daed228d49e3b35867
2 changes: 1 addition & 1 deletion crates/avalanche-types/scripts/protobuf_codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# protocol version is the version of the gRPC proto definitions
# as defined by the avalanchego rpcchainvm.
# ref. https://github.com/ava-labs/avalanchego/blob/v1.9.11/version/constants.go#L15-L17
PROTOCOL_VERSION='28'
PROTOCOL_VERSION='29'

if ! [[ "$0" =~ scripts/protobuf_codegen.sh ]]; then
echo "must be run from repository root"
Expand Down
1 change: 1 addition & 0 deletions crates/avalanche-types/src/message/chits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ impl Default for Message {
request_id: 0,
preferred_id: Bytes::new(),
accepted_id: Bytes::new(),
preferred_id_at_height: Bytes::new(),
},
gzip_compress: false,
}
Expand Down
1 change: 1 addition & 0 deletions crates/avalanche-types/src/message/pull_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ impl Default for Message {
deadline: 0,
container_id: prost::bytes::Bytes::new(),
engine_type: p2p::EngineType::Unspecified.into(),
requested_height: 0,
},
gzip_compress: false,
}
Expand Down
1 change: 1 addition & 0 deletions crates/avalanche-types/src/message/push_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ impl Default for Message {
deadline: 0,
container: prost::bytes::Bytes::new(),
engine_type: p2p::EngineType::Unspecified.into(),
requested_height: 0,
},
gzip_compress: false,
}
Expand Down
10 changes: 5 additions & 5 deletions crates/avalanche-types/src/proto/pb/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Message {
#[prost(oneof = "message::Message", tags = "1")]
#[prost(oneof="message::Message", tags="1")]
pub message: ::core::option::Option<message::Message>,
}
/// Nested message and enum types in `Message`.
pub mod message {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Message {
#[prost(message, tag = "1")]
#[prost(message, tag="1")]
Tx(super::Tx),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Tx {
/// The byte representation of this transaction.
#[prost(bytes = "bytes", tag = "1")]
#[prost(bytes="bytes", tag="1")]
pub tx: ::prost::bytes::Bytes,
}
/// Encoded file descriptor set for the `message` package
Expand Down Expand Up @@ -53,4 +53,4 @@ pub const FILE_DESCRIPTOR_SET: &[u8] = &[
0x05, 0x04, 0x01, 0x02, 0x00, 0x03, 0x12, 0x03, 0x0e, 0x0d, 0x0e, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
];
// @@protoc_insertion_point(module)
// @@protoc_insertion_point(module)
5 changes: 5 additions & 0 deletions crates/avalanche-types/src/proto/pb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ pub mod rpcdb {
include!("rpcdb.rs");
// @@protoc_insertion_point(rpcdb)
}
// @@protoc_insertion_point(attribute:sdk)
pub mod sdk {
include!("sdk.rs");
// @@protoc_insertion_point(sdk)
}
// @@protoc_insertion_point(attribute:sharedmemory)
pub mod sharedmemory {
include!("sharedmemory.rs");
Expand Down
1,977 changes: 1,001 additions & 976 deletions crates/avalanche-types/src/proto/pb/p2p.rs

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions crates/avalanche-types/src/proto/pb/sdk.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// @generated
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PullGossipRequest {
#[prost(bytes="bytes", tag="1")]
pub filter: ::prost::bytes::Bytes,
#[prost(bytes="bytes", tag="2")]
pub salt: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PullGossipResponse {
#[prost(bytes="bytes", repeated, tag="1")]
pub gossip: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
}
/// Encoded file descriptor set for the `sdk` package
pub const FILE_DESCRIPTOR_SET: &[u8] = &[
0x0a, 0xd2, 0x03, 0x0a, 0x0d, 0x73, 0x64, 0x6b, 0x2f, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x03, 0x73, 0x64, 0x6b, 0x22, 0x3f, 0x0a, 0x11, 0x50, 0x75, 0x6c, 0x6c, 0x47,
0x6f, 0x73, 0x73, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06,
0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x66, 0x69,
0x6c, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x22, 0x2c, 0x0a, 0x12, 0x50, 0x75, 0x6c, 0x6c,
0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16,
0x0a, 0x06, 0x67, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06,
0x67, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76,
0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x70, 0x62, 0x2f, 0x73, 0x64, 0x6b, 0x4a, 0x94, 0x02, 0x0a, 0x06, 0x12, 0x04, 0x00, 0x00, 0x0d,
0x01, 0x0a, 0x08, 0x0a, 0x01, 0x0c, 0x12, 0x03, 0x00, 0x00, 0x12, 0x0a, 0x08, 0x0a, 0x01, 0x02,
0x12, 0x03, 0x02, 0x00, 0x0c, 0x0a, 0x08, 0x0a, 0x01, 0x08, 0x12, 0x03, 0x04, 0x00, 0x43, 0x0a,
0x09, 0x0a, 0x02, 0x08, 0x0b, 0x12, 0x03, 0x04, 0x00, 0x43, 0x0a, 0x0a, 0x0a, 0x02, 0x04, 0x00,
0x12, 0x04, 0x06, 0x00, 0x09, 0x01, 0x0a, 0x0a, 0x0a, 0x03, 0x04, 0x00, 0x01, 0x12, 0x03, 0x06,
0x08, 0x19, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x00, 0x02, 0x00, 0x12, 0x03, 0x07, 0x02, 0x13, 0x0a,
0x0c, 0x0a, 0x05, 0x04, 0x00, 0x02, 0x00, 0x05, 0x12, 0x03, 0x07, 0x02, 0x07, 0x0a, 0x0c, 0x0a,
0x05, 0x04, 0x00, 0x02, 0x00, 0x01, 0x12, 0x03, 0x07, 0x08, 0x0e, 0x0a, 0x0c, 0x0a, 0x05, 0x04,
0x00, 0x02, 0x00, 0x03, 0x12, 0x03, 0x07, 0x11, 0x12, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x00, 0x02,
0x01, 0x12, 0x03, 0x08, 0x02, 0x11, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x00, 0x02, 0x01, 0x05, 0x12,
0x03, 0x08, 0x02, 0x07, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x00, 0x02, 0x01, 0x01, 0x12, 0x03, 0x08,
0x08, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x00, 0x02, 0x01, 0x03, 0x12, 0x03, 0x08, 0x0f, 0x10,
0x0a, 0x0a, 0x0a, 0x02, 0x04, 0x01, 0x12, 0x04, 0x0b, 0x00, 0x0d, 0x01, 0x0a, 0x0a, 0x0a, 0x03,
0x04, 0x01, 0x01, 0x12, 0x03, 0x0b, 0x08, 0x1a, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x01, 0x02, 0x00,
0x12, 0x03, 0x0c, 0x02, 0x1c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x01, 0x02, 0x00, 0x04, 0x12, 0x03,
0x0c, 0x02, 0x0a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x01, 0x02, 0x00, 0x05, 0x12, 0x03, 0x0c, 0x0b,
0x10, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x01, 0x02, 0x00, 0x01, 0x12, 0x03, 0x0c, 0x11, 0x17, 0x0a,
0x0c, 0x0a, 0x05, 0x04, 0x01, 0x02, 0x00, 0x03, 0x12, 0x03, 0x0c, 0x1a, 0x1b, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
];
// @@protoc_insertion_point(module)
Loading