Expand description
CW22 defines a way for a contract to declare which interfaces do the contract implement This standard is inspired by the EIP-165 from Ethereum. Originally it was proposed to be merged into CW2: Contract Info, then it is splitted to a separated cargo to keep CW2 being backward compatible. Each supported interface contains a string value pointing to the corresponding cargo package and a specific release of the package. There is also a function to check whether the contract support a specific version of an interface or not. The version string for each interface follows Semantic Versioning standard. More info is in: https://docs.rs/semver/latest/semver/
Structs§
Constants§
Functions§
- minimum_
version - query_
supported_ interface_ version - require_
version - query_supported_interface show if contract supports an interface with version following SemVer query query example“>=1.2.3, <1.8.0“
- set_
contract_ supported_ interface - set_contract_supported_interface should be used in instantiate to store the original version of supported interfaces. It should also be used after every migration.