Skip to content
Snippets Groups Projects
  • Pavel Orlov's avatar
    XCM Fee Payment Runtime API (#3607) · 3c972fc1
    Pavel Orlov authored
    The PR provides API for obtaining:
    - the weight required to execute an XCM message,
    - a list of acceptable `AssetId`s for message execution payment,
    - the cost of the weight in the specified acceptable `AssetId`.
    
    It is meant to address an issue where one has to guess how much fee to
    pay for execution. Also, at the moment, a client has to guess which
    assets are acceptable for fee execution payment.
    See the related issue
    https://github.com/paritytech/polkadot-sdk/issues/690.
    With this API, a client is supposed to query the list of the supported
    asset IDs (in the XCM version format the client understands), weigh the
    XCM program the client wants to execute and convert the weight into one
    of the acceptable assets. Note that the client is supposed to know what
    program will be executed on what chains. However, having a small
    companion JS library for the pallet-xcm and xtokens should be enough to
    determine what XCM programs will be executed and where (since these
    pallets compo...
    Unverified
    3c972fc1
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
This project manages its dependencies using Cargo. Learn more