lthn.io/app/Mod/Chain/ChainService.php

39 lines
869 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
namespace Mod\Chain;
/**
* Chain service definition for the CorePHP service registry.
*
* $service = ChainService::definition();
* echo $service['code']; // 'chain'
*/
class ChainService
{
public static function definition(): array
{
return [
'code' => 'chain',
'module' => 'Mod\\Chain',
'name' => 'Blockchain',
'tagline' => 'Lethean blockchain daemon and wallet RPC',
'description' => 'Core chain infrastructure — daemon, wallet, alias management, PoW+PoS consensus.',
'icon' => 'link',
'color' => '#34d399',
'sort_order' => 10,
];
}
public static function version(): string
{
return '1.0.0';
}
public static function dependencies(): array
{
return [];
}
}