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

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

export const runtime: DefinitionsCall = {
  OffchainWorkerApi: [
    {
      methods: {
        offchain_worker: {
          description: 'Starts the off-chain task for given block header.',
          params: [
            {
              name: 'header',
              type: 'Header'
            }
          ],
          type: 'Null'
        }
      },
      version: 2
    },
    {
      methods: {
        offchain_worker: {
          description: 'Starts the off-chain task for given block header.',
          params: [
            {
              name: 'number',
              type: 'BlockNumber'
            }
          ],
          type: 'Null'
        }
      },
      version: 1
    }
  ]
};
