Skip to content

Commit

Permalink
refactor: remove dead endpoints (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Nov 11, 2020
1 parent 1e71cc4 commit 991ba6b
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 315 deletions.
12 changes: 0 additions & 12 deletions src/API/Blocks.php
Expand Up @@ -76,16 +76,4 @@ public function transactions(string $id, array $query = []): ?array
{
return $this->get("blocks/{$id}/transactions", $query);
}

/**
* Filter all blocks by the given parameters.
*
* @param array $parameters
*
* @return array
*/
public function search(array $parameters): ?array
{
return $this->post('blocks/search', $parameters);
}
}
58 changes: 0 additions & 58 deletions src/API/Bridgechains.php

This file was deleted.

71 changes: 0 additions & 71 deletions src/API/Businesses.php

This file was deleted.

12 changes: 0 additions & 12 deletions src/API/Locks.php
Expand Up @@ -44,18 +44,6 @@ public function show(string $id): ?array
return $this->get("locks/{$id}");
}

/**
* Filter all locks by the given parameters.
*
* @param array $parameters
*
* @return array
*/
public function search(array $parameters): ?array
{
return $this->post('locks/search', $parameters);
}

/**
* Filter all unlocked locks by the given parameters.
*
Expand Down
12 changes: 0 additions & 12 deletions src/API/Transactions.php
Expand Up @@ -78,18 +78,6 @@ public function showUnconfirmed(string $id): ?array
return $this->get("transactions/unconfirmed/{$id}");
}

/**
* Filter all transactions by the given parameters.
*
* @param array $parameters
*
* @return array
*/
public function search(array $parameters): ?array
{
return $this->post('transactions/search', $parameters);
}

/**
* Get a list of valid transaction types.
*
Expand Down
12 changes: 0 additions & 12 deletions src/API/Wallets.php
Expand Up @@ -109,18 +109,6 @@ public function votes(string $id, array $query = []): ?array
return $this->get("wallets/{$id}/votes", $query);
}

/**
* Filter all wallets by the given parameters.
*
* @param array $parameters
*
* @return array
*/
public function search(array $parameters): ?array
{
return $this->post('wallets/search', $parameters);
}

/**
* Get all wallets sorted by balance in descending order.
*
Expand Down
8 changes: 0 additions & 8 deletions tests/API/BlocksTest.php
Expand Up @@ -62,12 +62,4 @@ public function transactions_calls_correct_url()
return $connection->blocks()->transactions('dummy');
});
}

/** @test */
public function search_calls_correct_url()
{
$this->assertResponse('POST', 'blocks/search', function ($connection) {
return $connection->blocks()->search(['address' => 'dummy']);
});
}
}
49 changes: 0 additions & 49 deletions tests/API/BridgechainsTest.php

This file was deleted.

57 changes: 0 additions & 57 deletions tests/API/BusinessesTest.php

This file was deleted.

8 changes: 0 additions & 8 deletions tests/API/LocksTest.php
Expand Up @@ -39,14 +39,6 @@ public function show_calls_correct_url()
});
}

/** @test */
public function search_calls_correct_url()
{
$this->assertResponse('POST', 'locks/search', function ($connection) {
return $connection->locks()->search(['address' => 'dummy']);
});
}

/** @test */
public function unlocked_calls_correct_url()
{
Expand Down
8 changes: 0 additions & 8 deletions tests/API/TransactionsTest.php
Expand Up @@ -63,14 +63,6 @@ public function show_unconfirmed_calls_correct_url()
});
}

/** @test */
public function search_calls_correct_url()
{
$this->assertResponse('POST', 'transactions/search', function ($connection) {
return $connection->transactions()->search(['amount' => 1]);
});
}

/** @test */
public function types_calls_correct_url()
{
Expand Down
8 changes: 0 additions & 8 deletions tests/API/WalletsTest.php
Expand Up @@ -87,14 +87,6 @@ public function votes_calls_correct_url()
});
}

/** @test */
public function search_calls_correct_url()
{
$this->assertResponse('POST', 'wallets/search', function ($connection) {
return $connection->wallets()->search(['address' => 'dummy']);
});
}

/**
* @return string
*/
Expand Down

0 comments on commit 991ba6b

Please sign in to comment.