STD Crate Version Query
Closed this issue · 0 comments
crnbarr93 commented
Description
An ADO should be able to expose what andromeda-std
crate version it is using, this will help in maintaining version updates.
Implementation
Add a query to ADOContract
that responds with the contract's current imported version of andromeda-std
:
pub enum AndromedaQuery {
// ...
#[returns(ADOBaseVersionResponse)]
ADOBaseVersion {}
}
This should return a basic struct that contains the version:
pub struct ADOBaseVersion {
// andromeda-std version in semver format
version: String
}
Acceptance Criteria
- Added query to get the ADO's current
andromeda-std
version - Unit testing for the query