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

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

export const runtime: DefinitionsCall = {
  DifficultyApi: [
    {
      methods: {
        difficulty: {
          description: 'Return the target difficulty of the next block.',
          params: [],
          // This is Difficulty in the original, however this is chain-specific
          type: 'Raw'
        }
      },
      version: 1
    }
  ],
  TimestampApi: [
    {
      methods: {
        timestamp: {
          description: 'API necessary for timestamp-based difficulty adjustment algorithms.',
          params: [],
          type: 'Moment'
        }
      },
      version: 1
    }
  ]
};
