Skip to content

Commit

Permalink
Merge pull request CosmWasm#4 from aura-nw/cw2_supported_interface
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
ThienLK1 authored Nov 8, 2022
2 parents 884e17b + 1041905 commit 805e43d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/cw2-supported-interface/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ pub struct ContractVersion {
/// the only code that needs to understand the version parsing is code that knows how to
/// migrate from the given contract (and is tied to it's implementation somehow)
pub version: String,
/// supported_interface is an optional parameter returning a vector of string represents interfaces
/// that the contract support The string value is the interface crate names in Rust crate Registry.
/// This parameter is inspired by the EIP-165 from Ethereum.
/// Each string value should follow a common standard such as <Registry Domain>:<Crate Name>
/// e.g ["crates.io:cw721","crates.io:cw2"]
/// NOTE: this is just a hint for the caller to adapt on how to interact with this contract.
/// There is no guarantee that the contract actually implement these interfaces.
pub supported_interface: Option<Vec<String>>,
}
```

Expand All @@ -53,6 +61,7 @@ Thus, an serialized example may looks like:
```json
{
"contract": "crates.io:cw20-base",
"version": "v0.1.0"
"version": "v0.1.0",
"supported_interface": ["crates.io:cw721","crates.io:cw2"]
}
```

0 comments on commit 805e43d

Please sign in to comment.