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

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

export const runtime: DefinitionsCall = {
  TaggedTransactionQueue: [
    {
      methods: {
        validate_transaction: {
          description: 'Validate the transaction.',
          params: [
            {
              name: 'source',
              type: 'TransactionSource'
            },
            {
              name: 'tx',
              type: 'Extrinsic'
            },
            {
              name: 'blockHash',
              type: 'BlockHash'
            }
          ],
          type: 'TransactionValidity'
        }
      },
      version: 3
    },
    {
      methods: {
        validate_transaction: {
          description: 'Validate the transaction.',
          params: [
            {
              name: 'source',
              type: 'TransactionSource'
            },
            {
              name: 'tx',
              type: 'Extrinsic'
            }
          ],
          type: 'TransactionValidity'
        }
      },
      version: 2
    },
    {
      methods: {
        validate_transaction: {
          description: 'Validate the transaction.',
          params: [
            {
              name: 'tx',
              type: 'Extrinsic'
            }
          ],
          type: 'TransactionValidity'
        }
      },
      version: 1
    }
  ]
};
