From 2e9ebd798b29ea4b99f15872f3dcdc9da6d838e8 Mon Sep 17 00:00:00 2001 From: Alex Barnsley <8069294+alexbarnsley@users.noreply.github.com> Date: Thu, 27 Mar 2025 00:06:24 +0000 Subject: [PATCH] remove redundant tx endpoint methods --- src/API/Transactions.php | 30 ------------------------------ tests/API/TransactionsTest.php | 24 ------------------------ 2 files changed, 54 deletions(-) diff --git a/src/API/Transactions.php b/src/API/Transactions.php index d24c144..b7f91d1 100644 --- a/src/API/Transactions.php +++ b/src/API/Transactions.php @@ -64,36 +64,6 @@ public function showUnconfirmed(string $id): ?array return $this->withApi('transactions')->get("transactions/unconfirmed/{$id}"); } - /** - * Get a list of valid transaction types. - * - * @return array - */ - public function types(): ?array - { - return $this->get('transactions/types'); - } - - /** - * Get the list of static transaction fees. - * - * @return array - */ - public function fees(): ?array - { - return $this->get('transactions/fees'); - } - - /** - * Get the list of transaction schemas. - * - * @return array - */ - public function schemas(): ?array - { - return $this->get('transactions/schemas'); - } - /** * Get the pool configuration. * diff --git a/tests/API/TransactionsTest.php b/tests/API/TransactionsTest.php index 7088361..b2361f0 100644 --- a/tests/API/TransactionsTest.php +++ b/tests/API/TransactionsTest.php @@ -66,30 +66,6 @@ public function show_unconfirmed_calls_correct_url() ); } - /** @test */ - public function types_calls_correct_url() - { - $this->assertResponse('GET', 'transactions/types', function ($client) { - return $client->transactions()->types(); - }); - } - - /** @test */ - public function fees_calls_correct_url() - { - $this->assertResponse('GET', 'transactions/fees', function ($client) { - return $client->transactions()->fees(); - }); - } - - /** @test */ - public function schemas_calls_correct_url() - { - $this->assertResponse('GET', 'transactions/schemas', function ($client) { - return $client->transactions()->schemas(); - }); - } - /** @test */ public function configuration_calls_correct_url() {