From 410e741bea145321bc890c3a57f922de7c60e668 Mon Sep 17 00:00:00 2001 From: Alfonso Bribiesca Date: Tue, 12 Nov 2024 11:01:10 -0600 Subject: [PATCH] removes fees stuff --- src/Configuration/Fee.php | 40 ---------------------------- src/Enums/Fees.php | 26 ------------------ src/Enums/Types.php | 15 ----------- tests/Unit/Configuration/FeeTest.php | 34 ----------------------- 4 files changed, 115 deletions(-) delete mode 100644 src/Configuration/Fee.php delete mode 100644 src/Enums/Fees.php delete mode 100644 tests/Unit/Configuration/FeeTest.php 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); - } -}