Skip to content

Commit

Permalink
feat: MoneroNetwork enum in Cryptonote, declare strict types
Browse files Browse the repository at this point in the history
  • Loading branch information
recanman committed Jun 1, 2024
1 parent 5d9a8f4 commit 457ab44
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Cryptonote.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
Copyright (c) 2018, Monero Integrations
Expand All @@ -24,10 +26,16 @@
namespace MoneroIntegrations\MoneroCrypto;

use kornrunner\Keccak as keccak;
use MoneroIntegrations\MoneroCrypto\Base58;

use Exception;

enum MoneroNetwork: string
{
case mainnet = "mainnet";
case stagenet = "stagenet";
case testnet = "testnet";
}

class Cryptonote
{
// https://github.com/monero-project/monero/blob/master/src/cryptonote_config.h#L222
Expand Down

0 comments on commit 457ab44

Please sign in to comment.