// Copyright 2017-2025 @pezkuwi/types authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { DefinitionsCall } from '../../types/index.js';

export const runtime: DefinitionsCall = {
  XcmPaymentApi: [
    {
      methods: {
        query_acceptable_payment_assets: {
          description: 'The API to query acceptable payment assets',
          params: [
            {
              name: 'version',
              type: 'u32'
            }
          ],
          type: 'Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>'
        },
        query_weight_to_asset_fee: {
          description: '',
          params: [
            {
              name: 'weight',
              type: 'WeightV2'
            },
            {
              name: 'asset',
              type: 'XcmVersionedAssetId'
            }
          ],
          type: 'Result<u128, XcmPaymentApiError>'
        },
        query_xcm_weight: {
          description: '',
          params: [
            {
              name: 'message',
              type: 'XcmVersionedXcm'
            }
          ],
          type: 'Result<WeightV2, XcmPaymentApiError>'
        }
      },
      version: 1
    }
  ]
};
