diff --git a/src/Configuration/Fee.php b/src/Configuration/Fee.php deleted file mode 100644 index fe9b6e7..0000000 --- a/src/Configuration/Fee.php +++ /dev/null @@ -1,40 +0,0 @@ -defaultFee(); - } - - /** - * Set the transaction fee for the given type. - * - * @param int $type - * @param string $fee - */ - public static function set(int $type, string $fee): void - { - static::$customFees[$type] = $fee; - } -} diff --git a/src/Enums/Fees.php b/src/Enums/Fees.php deleted file mode 100644 index 4f2da15..0000000 --- a/src/Enums/Fees.php +++ /dev/null @@ -1,26 +0,0 @@ - Fees::TRANSFER, - Types::VALIDATOR_REGISTRATION => Fees::VALIDATOR_REGISTRATION, - Types::VOTE => Fees::VOTE, - // Types::MULTI_SIGNATURE_REGISTRATION => Fees::MULTI_SIGNATURE_REGISTRATION, - // Types::MULTI_PAYMENT => Fees::MULTI_PAYMENT, - Types::VALIDATOR_RESIGNATION => Fees::VALIDATOR_RESIGNATION, - // Types::USERNAME_REGISTRATION => Fees::USERNAME_REGISTRATION, - // Types::USERNAME_RESIGNATION => Fees::USERNAME_RESIGNATION, - Types::EVM_CALL => Fees::EVM, - }; - } - public static function fromValue(int $value): ?self { $enum = new ReflectionEnum(self::class); diff --git a/tests/Unit/Configuration/FeeTest.php b/tests/Unit/Configuration/FeeTest.php deleted file mode 100644 index 654c833..0000000 --- a/tests/Unit/Configuration/FeeTest.php +++ /dev/null @@ -1,34 +0,0 @@ -assertSame('10000000', $actual); - } - - /** @test */ - public function it_should_set_the_fee() - { - $actual = Fee::get(0); - $this->assertSame('10000000', $actual); - - Fee::set(0, '5'); - - $actual = Fee::get(0); - $this->assertSame('5', $actual); - } -}