You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is based on ideas from CosmWasm/wasmd#584 which have come up in Discord several times from a number of different groups. Basically, people want to:
Check if an address is a contract or an external account
Check what code_id is behind a contract (maybe we only allow unmodified cw20-base for example)
Check on the admin / migratability of a contract
We may also want to allow to see if the contract (actually the linked code_id) is pinned per CosmWasm/wasmd#596
pubstructContractInfoResponse{// these seem essentialpubcode_id:u64,pubcreator:String,pubadmin:Option<String>,// this would be useful info, but maybe not easily available?pubpinned:bool,// TODO: is this covered by other IBC queries already?pubibc_port:Option<String>,// also on gRPC return value, but maybe we drop them?publabel:String,pubcreated:AbsoluteTxPosition,pubextension:Option<Any>,}
I would love feedback from @alpe and @webmaster128 on the API design here. It is a non-breaking addition to the API, and quite useful functionality. We should just review what data and in what format.
The text was updated successfully, but these errors were encountered:
We are not exposing AbsoluteTxPosition to clients and should not do it here as well, IMHO
pub extension: Option<Any>,
I am not sure if we should support this. The extension would be chain agnostic and has impact on contract portability. It could lead to tight coupling with the persistence object.
Custom queries may a be a cleaner way to get the information (when supported) and contracts won't have to deal with protobuf.
pubstructContractInfoResponse{pubcode_id:u64,pubcreator:String,pubadmin:Option<String>,pubpinned:bool,/// block this was created atpubcreated_height:u64,pubibc_port:Option<String>,}
I looked up the IBC query and it only returns the PortID for the current contract. Not for another contract. Not sure if this would be useful until loopback ibc connections are fully enabled (they exist in theory), but may already be interesting as None/Some(_) info. eg. "a token contract that doesn't want to be passed over IBC and thus disallows transferring tokens to any address with ibc_port set"
This is based on ideas from CosmWasm/wasmd#584 which have come up in Discord several times from a number of different groups. Basically, people want to:
We may also want to allow to see if the contract (actually the linked code_id) is pinned per CosmWasm/wasmd#596
We can model it on the existing grpc client response, particularly the ContractInfo type.
Query:
Response:
I would love feedback from @alpe and @webmaster128 on the API design here. It is a non-breaking addition to the API, and quite useful functionality. We should just review what data and in what format.
The text was updated successfully, but these errors were encountered: