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 would look something like migrate or ibc (See #692), but be a extensible placeholder for any other privledged system callbacks a chain wants to add later. As you start allowing native code to call into contracts, we need some other interface than handle, which assumes an untrusted, external caller. The same way there is a Router and a GovRouter in the sdk - the second one exposes powerful message handlers that can only be reached by trusted code.
I am unsure of a concrete use case of this, but given we just added specific entry points in #691 and #692 I am sure there will be chain-specific extensions coming later, like with CosmosMsg and QueryRequest, so this would be a good extension point to include for 1.0.
It would look something like:
pubfnsystem(deps:DepsMut,env:Env,msg:SystemMsg,) -> Result<SystemResponse,ContractError>{// ...}// or a custom type, but same formattypeSystemResponse = HandleResponse;
The content of SystemMsg is an agreement between the contract and the chain it runs on, and is only interpreted in wasmd or a cosmos sdk app that imports wasmd.
The text was updated successfully, but these errors were encountered:
This would look something like
migrate
oribc
(See #692), but be a extensible placeholder for any other privledged system callbacks a chain wants to add later. As you start allowing native code to call into contracts, we need some other interface thanhandle
, which assumes an untrusted, external caller. The same way there is aRouter
and aGovRouter
in the sdk - the second one exposes powerful message handlers that can only be reached by trusted code.I am unsure of a concrete use case of this, but given we just added specific entry points in #691 and #692 I am sure there will be chain-specific extensions coming later, like with
CosmosMsg
andQueryRequest
, so this would be a good extension point to include for 1.0.It would look something like:
The content of
SystemMsg
is an agreement between the contract and the chain it runs on, and is only interpreted in wasmd or a cosmos sdk app that imports wasmd.The text was updated successfully, but these errors were encountered: