Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit cfca67d

Browse files
committed
0.0.272: sync
Signed-off-by: Sam Batschelet <[email protected]>
1 parent d0f375c commit cfca67d

23 files changed

+702
-576
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "avalanche-types"
3-
version = "0.0.270" # https://crates.io/crates/avalanche-types
3+
version = "0.0.272" # https://crates.io/crates/avalanche-types
44
edition = "2021"
55
rust-version = "1.67" # use "rustup override set stable" to overwrite current toolchain
66
publish = true
@@ -44,7 +44,7 @@ zerocopy = "0.6.1"
4444
secp256k1 = { version = "0.26.0", features = ["global-context", "rand-std", "recovery"], optional = true } # https://crates.io/crates/secp256k1
4545

4646
# [OPTIONAL] for "kms_aws"
47-
aws-manager = { version = "0.24.16", features = ["kms"], optional = true } # https://github.com/gyuho/aws-manager/tags
47+
aws-manager = { version = "0.24.17", features = ["kms"], optional = true } # https://github.com/gyuho/aws-manager/tags
4848
aws-sdk-kms = { version = "0.24.0", optional = true } # https://crates.io/crates/aws-sdk-kms/versions
4949
aws-smithy-types = { version = "0.54.4", optional = true } # https://github.com/awslabs/smithy-rs/releases
5050

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
| v0.0.134-155 | v1.9.2,v1.9.3 | 19 |
1111
| v0.0.156-176 | v1.9.4 | 20 |
1212
| v0.0.177-200 | v1.9.5 | 21 |
13-
| v0.0.201+ | v1.9.6,v1.9.7 | 22 |
13+
| v0.0.201-271 | v1.9.6,v1.9.7 | 22 |
14+
| v0.0.272+ | v1.9.8,v1.9.9 | 23 |
1415

1516
## Introduction
1617

examples/proto_server.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
use avalanche_types::proto::{
2-
grpcutil,
3-
pb::helloworld::{
1+
use avalanche_types::{
2+
proto::pb::helloworld::{
43
self,
54
greeter_server::{Greeter, GreeterServer},
65
HelloReply, HelloRequest,
76
},
7+
subnet::rpc::utils,
88
};
99
use tonic::{Request, Response, Status};
1010

@@ -39,7 +39,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
3939

4040
let greeter_svc = GreeterServer::new(MyGreeter::default());
4141

42-
grpcutil::default_server()
42+
utils::grpc::default_server()
4343
.add_service(reflection_svc)
4444
.add_service(greeter_svc)
4545
.serve(addr)

scripts/protobuf_codegen.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
# protocol version is the version of the gRPC proto definitions
44
# as defined by the avalanchego rpcchainvm.
5-
# ref. https://github.com/ava-labs/avalanchego/blob/v1.9.5/version/constants.go#L15-L17
6-
PROTOCOL_VERSION='22'
5+
# ref. https://github.com/ava-labs/avalanchego/blob/v1.9.9/version/constants.go#L15-L17
6+
PROTOCOL_VERSION='23'
77

88
if ! [[ "$0" =~ scripts/protobuf_codegen.sh ]]; then
99
echo "must be run from repository root"

src/proto/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
//! Generated protobuf stubs and helpers for Avalanche.
22
//!
33
//! ref. <https://buf.build/ava-labs/avalanche>
4-
pub mod grpcutil;
54
pub mod pb;
65

76
#[doc(hidden)]
87
pub use pb::*;
98

10-
/// ref. <https://github.com/ava-labs/avalanchego/blob/v1.9.7/version/constants.go#L15-L17>
11-
pub const PROTOCOL_VERSION: &str = "22";
9+
/// ref. <https://github.com/ava-labs/avalanchego/blob/v1.9.9/version/constants.go#L15-L17>
10+
pub const PROTOCOL_VERSION: u32 = 23;

src/proto/pb/mod.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ pub mod p2p {
7272
include!("p2p.rs");
7373
// @@protoc_insertion_point(p2p)
7474
}
75-
// @@protoc_insertion_point(attribute:plugin)
76-
pub mod plugin {
77-
include!("plugin.rs");
78-
// @@protoc_insertion_point(plugin)
79-
}
8075
// @@protoc_insertion_point(attribute:rpcdb)
8176
pub mod rpcdb {
8277
include!("rpcdb.rs");
@@ -87,11 +82,6 @@ pub mod sharedmemory {
8782
include!("sharedmemory.rs");
8883
// @@protoc_insertion_point(sharedmemory)
8984
}
90-
// @@protoc_insertion_point(attribute:teleporter)
91-
pub mod teleporter {
92-
include!("teleporter.rs");
93-
// @@protoc_insertion_point(teleporter)
94-
}
9585
// @@protoc_insertion_point(attribute:validatorstate)
9686
pub mod validatorstate {
9787
include!("validatorstate.rs");
@@ -101,4 +91,14 @@ pub mod validatorstate {
10191
pub mod vm {
10292
include!("vm.rs");
10393
// @@protoc_insertion_point(vm)
94+
// @@protoc_insertion_point(attribute:vm.runtime)
95+
pub mod runtime {
96+
include!("vm.runtime.rs");
97+
// @@protoc_insertion_point(vm.runtime)
98+
}
99+
}
100+
// @@protoc_insertion_point(attribute:warp)
101+
pub mod warp {
102+
include!("warp.rs");
103+
// @@protoc_insertion_point(warp)
104104
}

src/proto/pb/plugin.rs

-55
This file was deleted.

0 commit comments

Comments
 (0)