polkadot-fellows / xcm-format

Polkadot Cross Consensus-system Message format.
Apache License 2.0
181 stars 43 forks source link

[RFC] Execution hints #59

Closed franciscoaguirre closed 4 months ago

franciscoaguirre commented 6 months ago

RFC#37 introduces a SetAssetClaimer instruction. This idea of instructing the XCVM to change some implementation-specific behavior is useful. In order to generalize this mechanism, this RFC introduces a new instruction SetExecutionHints and makes the SetAssetClaimer be just one of many possible execution hints.

xlc commented 6 months ago

Do you have some examples of other potential hints that we may have?

franciscoaguirre commented 6 months ago

@xlc Thinking of the leftover fees in https://github.com/paritytech/xcm-format/pull/53, we could have a LeftoverFeesDestination hint to send all leftover fees to that location.

Another idea could be a PreferredFeeAsset to hint the executor so it can know what asset is going to be used for fees to pay them for example.

franciscoaguirre commented 4 months ago

Closing in favor of https://github.com/polkadot-fellows/RFCs/pull/107