Skip to content

Commit 0c5c84d

Browse files
hexfusionexdx
andauthored
0.0.18: add support for protocol version 28 (#200)
* 0.0.18: add support for protocol version 28 * fix: Bump e2e test version of avalanche-types --------- Signed-off-by: Sam Batschelet <[email protected]> Co-authored-by: Dan Sover <[email protected]>
1 parent 32d4ac1 commit 0c5c84d

File tree

6 files changed

+24
-8
lines changed

6 files changed

+24
-8
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ See [`bin/timestampvm`](timestampvm/src/bin/timestampvm/main.rs) for plugin impl
4646
| v0.0.10 | v1.9.8, v1.9.9 |
4747
| v0.0.11,12 | v1.9.10 - v1.9.16 |
4848
| v0.0.13 | v1.10.0 |
49-
| v0.0.14..17 | v1.10.1+ |
49+
| v0.0.14..17 | v1.10.1 |
50+
| v0.0.18 | v1.10.9+ |
5051

5152
## Example
5253

scripts/tests.e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo VM_PLUGIN_PATH: ${VM_PLUGIN_PATH}
2727
# https://github.com/ava-labs/avalanche-network-runner
2828
# TODO: use "go install -v github.com/ava-labs/avalanche-network-runner/cmd/avalanche-network-runner@v${NETWORK_RUNNER_VERSION}"
2929
GOOS=$(go env GOOS)
30-
NETWORK_RUNNER_VERSION=1.3.9
30+
NETWORK_RUNNER_VERSION=1.7.1
3131
DOWNLOAD_PATH=/tmp/avalanche-network-runner.tar.gz
3232
DOWNLOAD_URL=https://github.com/ava-labs/avalanche-network-runner/releases/download/v${NETWORK_RUNNER_VERSION}/avalanche-network-runner_${NETWORK_RUNNER_VERSION}_linux_amd64.tar.gz
3333
if [[ ${GOOS} == "darwin" ]]; then

tests/e2e/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ homepage = "https://avax.network"
1212

1313
[dev-dependencies]
1414
avalanche-installer = "0.0.77"
15-
avalanche-network-runner-sdk = "0.3.0" # https://crates.io/crates/avalanche-network-runner-sdk
16-
avalanche-types = { version = "0.0.399", features = ["jsonrpc_client", "subnet"] } # https://crates.io/crates/avalanche-types
15+
avalanche-network-runner-sdk = "0.3.3" # https://crates.io/crates/avalanche-network-runner-sdk
16+
avalanche-types = { version = "0.1.3", features = ["jsonrpc_client", "subnet"] } # https://crates.io/crates/avalanche-types
1717
env_logger = "0.10.0"
1818
log = "0.4.19"
1919
random-manager = "0.0.5"

tests/e2e/src/tests/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::{
99
use avalanche_network_runner_sdk::{BlockchainSpec, Client, GlobalConfig, StartRequest};
1010
use avalanche_types::{ids, jsonrpc::client::info as avalanche_sdk_info, subnet};
1111

12-
const AVALANCHEGO_VERSION: &str = "v1.10.4";
12+
const AVALANCHEGO_VERSION: &str = "v1.10.9";
1313

1414
#[tokio::test]
1515
async fn e2e() {
@@ -94,7 +94,7 @@ async fn e2e() {
9494
.start(StartRequest {
9595
exec_path: avalanchego_exec_path,
9696
num_nodes: Some(5),
97-
plugin_dir: Some(plugins_dir),
97+
plugin_dir: plugins_dir,
9898
global_node_config: Some(
9999
serde_json::to_string(&GlobalConfig {
100100
log_level: String::from("info"),

timestampvm/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "timestampvm"
3-
version = "0.0.17" # https://crates.io/crates/timestampvm
3+
version = "0.0.18" # https://crates.io/crates/timestampvm
44
edition = "2021"
55
rust-version = "1.70"
66
publish = true
@@ -11,7 +11,7 @@ repository = "https://github.com/ava-labs/timestampvm-rs"
1111
readme = "../README.md"
1212

1313
[dependencies]
14-
avalanche-types = { version = "0.0.399", features = ["subnet", "codec_base64"] } # https://crates.io/crates/avalanche-types
14+
avalanche-types = { version = "0.1.3", features = ["subnet", "codec_base64"] } # https://crates.io/crates/avalanche-types
1515
base64 = { version = "0.21.2" }
1616
bytes = "1.4.0"
1717
chrono = "0.4.26"

timestampvm/src/vm/mod.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,21 @@ where
394394
"issue_tx not implemented",
395395
))
396396
}
397+
398+
// Passes back ok as a no-op for now.
399+
// TODO: Remove after v1.11.x activates
400+
async fn verify_height_index(&self) -> io::Result<()> {
401+
Ok(())
402+
}
403+
404+
// Returns an error as a no-op for now.
405+
async fn get_block_id_at_height(&self, _height: u64) -> io::Result<ids::Id> {
406+
Err(Error::new(ErrorKind::NotFound, "block id not found"))
407+
}
408+
409+
async fn state_sync_enabled(&self) -> io::Result<bool> {
410+
Ok(false)
411+
}
397412
}
398413

399414
#[tonic::async_trait]

0 commit comments

Comments
 (0)