SecretNetwork icon indicating copy to clipboard operation
SecretNetwork copied to clipboard

Add checking of "required features"

Open Cashmaney opened this issue 4 years ago • 1 comments

Add checking of "required features" like they do in cosmwasm_vm

@reuvenpo could you elaborate on this?

Cashmaney avatar Jun 18 '20 13:06 Cashmaney

CosmWasm wanted to support the idea chains providing extensions to the base interfaces that they defined. To allow that in a way that will allow maximum cross-chain compatibility, they defined a standard interface for declaring which extensions a contract requires. The idea, as i understand it, that chains won't run contracts that require extensions that they do not support. Most of the related code is here: https://github.com/CosmWasm/cosmwasm/blob/b971c037a773bf6a5f5d08a88485113d9b9e8e7b/packages/vm/src/features.rs but i recommend checking out and browsing their repositories (cosmwasm and go-cosmwasm) to get the full picture. Maybe even ask Ethan and Simon directly.

reuvenpo avatar Jun 18 '20 13:06 reuvenpo

This is already happening

assafmo avatar Sep 20 '22 09:09 assafmo