From 21af46351ffe639a3b5bcb13ee50b7b051e7bf7a Mon Sep 17 00:00:00 2001 From: volodymyr-basiuk <31999965+volodymyr-basiuk@users.noreply.github.com> Date: Thu, 9 Nov 2023 14:12:04 +0200 Subject: [PATCH] add version to validator contracts (#189) --- contracts/validators/CredentialAtomicQueryMTPValidator.sol | 5 +++++ contracts/validators/CredentialAtomicQuerySigValidator.sol | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/contracts/validators/CredentialAtomicQueryMTPValidator.sol b/contracts/validators/CredentialAtomicQueryMTPValidator.sol index b6acc115..ed166186 100644 --- a/contracts/validators/CredentialAtomicQueryMTPValidator.sol +++ b/contracts/validators/CredentialAtomicQueryMTPValidator.sol @@ -5,6 +5,11 @@ import {CredentialAtomicQueryValidator} from "./CredentialAtomicQueryValidator.s import {IVerifier} from "../interfaces/IVerifier.sol"; contract CredentialAtomicQueryMTPValidator is CredentialAtomicQueryValidator { + /** + * @dev Version of contract + */ + string public constant VERSION = "1.0.0"; + string internal constant CIRCUIT_ID = "credentialAtomicQueryMTPV2OnChain"; // This empty reserved space is put in place to allow future versions diff --git a/contracts/validators/CredentialAtomicQuerySigValidator.sol b/contracts/validators/CredentialAtomicQuerySigValidator.sol index 3ec13903..16a99bf0 100644 --- a/contracts/validators/CredentialAtomicQuerySigValidator.sol +++ b/contracts/validators/CredentialAtomicQuerySigValidator.sol @@ -5,6 +5,11 @@ import {CredentialAtomicQueryValidator} from "./CredentialAtomicQueryValidator.s import {IVerifier} from "../interfaces/IVerifier.sol"; contract CredentialAtomicQuerySigValidator is CredentialAtomicQueryValidator { + /** + * @dev Version of contract + */ + string public constant VERSION = "1.0.0"; + string internal constant CIRCUIT_ID = "credentialAtomicQuerySigV2OnChain"; // This empty reserved space is put in place to allow future versions