From 569ff61c7df0899e7dd2d7067ea637038c159e3d Mon Sep 17 00:00:00 2001 From: Jaechang Namgoong Date: Thu, 21 Dec 2023 14:33:41 +0900 Subject: [PATCH] Add getVersion interface to bsc2 and btpblock BMVs --- bmv/bsc2/build.gradle | 2 +- .../foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java | 5 +++++ bmv/btpblock/build.gradle | 2 +- .../foundation/icon/btp/bmv/btpblock/BTPMessageVerifier.java | 5 +++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/bmv/bsc2/build.gradle b/bmv/bsc2/build.gradle index 3c6171f7..462393d6 100644 --- a/bmv/bsc2/build.gradle +++ b/bmv/bsc2/build.gradle @@ -1,4 +1,4 @@ -version = '0.1.0' +version = '0.5.0' dependencies { compileOnly("foundation.icon:javaee-api:$javaeeVersion") diff --git a/bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java b/bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java index 4b0e4779..539a7386 100644 --- a/bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java +++ b/bmv/bsc2/src/main/java/foundation/icon/btp/bmv/bsc2/BTPMessageVerifier.java @@ -81,6 +81,11 @@ public BTPMessageVerifier(Address _bmc, BigInteger _chainId, @Optional byte[] _h } } + @External(readonly = true) + public String getVersion() { + return "0.5.0"; + } + @External(readonly = true) public BMVStatus getStatus() { MerkleTreeAccumulator mta = this.mta.get(); diff --git a/bmv/btpblock/build.gradle b/bmv/btpblock/build.gradle index 4225922e..ad0e336d 100644 --- a/bmv/btpblock/build.gradle +++ b/bmv/btpblock/build.gradle @@ -1,4 +1,4 @@ -version = '0.1.0' +version = '0.5.0' dependencies { compileOnly("foundation.icon:javaee-api:$javaeeVersion") diff --git a/bmv/btpblock/src/main/java/foundation/icon/btp/bmv/btpblock/BTPMessageVerifier.java b/bmv/btpblock/src/main/java/foundation/icon/btp/bmv/btpblock/BTPMessageVerifier.java index 1572401a..8b126637 100644 --- a/bmv/btpblock/src/main/java/foundation/icon/btp/bmv/btpblock/BTPMessageVerifier.java +++ b/bmv/btpblock/src/main/java/foundation/icon/btp/bmv/btpblock/BTPMessageVerifier.java @@ -91,6 +91,11 @@ public byte[][] handleRelayMessage(String _bmc, String _prev, BigInteger _seq, b return ret; } + @External(readonly = true) + public String getVersion() { + return "0.5.0"; + } + @External(readonly = true) public BMVStatus getStatus() { var properties = getProperties();