Skip to content

Commit

Permalink
add node2 config
Browse files Browse the repository at this point in the history
  • Loading branch information
x100111010 committed Nov 21, 2024
1 parent a49ff25 commit 41a6ece
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lib/node_settings/node_types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,28 @@ import '../spectre/spectre.dart';
part 'node_types.freezed.dart';
part 'node_types.g.dart';

const mainnetNodeConfig = NodeConfig(
const mainnetNodeConfig1 = NodeConfig(
id: 'd093b14d-da55-4e49-870d-61d63bf201a3',
name: 'Spectrum Official',
urls: ['node.spectre-network.org'],
isSecure: true,
network: SpectreNetwork.mainnet,
);

const mainnetNodeConfig2 = NodeConfig(
id: '9aee5258-0a32-4731-8a49-360f49c49a72',
name: 'Spectrum Official-2',
urls: ['node2.spectre-network.xyz'],
isSecure: true,
network: SpectreNetwork.mainnet,
);

@freezed
class NodeConfigSettings with _$NodeConfigSettings {
const factory NodeConfigSettings({
@Default(const IListConst([mainnetNodeConfig])) IList<NodeConfig> options,
@Default(mainnetNodeConfig) NodeConfig selected,
@Default(IListConst([mainnetNodeConfig1, mainnetNodeConfig2]))
IList<NodeConfig> options,
@Default(mainnetNodeConfig1) NodeConfig selected,
}) = _NodeConfigSettings;

factory NodeConfigSettings.fromJson(Map<String, dynamic> json) =>
Expand Down

0 comments on commit 41a6ece

Please sign in to comment.