From bc67045aaa60897cb0e3e863d9fb3c311bf4f730 Mon Sep 17 00:00:00 2001 From: Alex Barnsley <8069294+alexbarnsley@users.noreply.github.com> Date: Thu, 12 Mar 2026 20:40:18 +0000 Subject: [PATCH 1/2] refactor: base instance name --- src/{ArkClient.php => Client.php} | 2 +- tests/API/ApiNodesTest.php | 4 +- tests/API/BlockchainTest.php | 4 +- tests/API/BlocksTest.php | 12 ++--- tests/API/CommitsTest.php | 4 +- tests/API/ContractsTest.php | 6 +-- tests/API/EVMTest.php | 4 +- tests/API/NodeTest.php | 18 ++++--- tests/API/PeersTest.php | 6 +-- tests/API/ReceiptsTest.php | 8 +-- tests/API/RoundsTest.php | 8 +-- tests/API/TokensTest.php | 20 ++++---- tests/API/TransactionsTest.php | 14 +++--- tests/API/ValidatorsTest.php | 10 ++-- tests/API/VotesTest.php | 6 +-- tests/API/WalletsTest.php | 55 ++++++++++++++++----- tests/{ArkClientTest.php => ClientTest.php} | 10 ++-- tests/TestCase.php | 4 +- 18 files changed, 116 insertions(+), 79 deletions(-) rename src/{ArkClient.php => Client.php} (99%) rename tests/{ArkClientTest.php => ClientTest.php} (83%) diff --git a/src/ArkClient.php b/src/Client.php similarity index 99% rename from src/ArkClient.php rename to src/Client.php index 043fee9..6a0457e 100644 --- a/src/ArkClient.php +++ b/src/Client.php @@ -21,7 +21,7 @@ use ArkEcosystem\Client\API\Wallets; use GuzzleHttp\HandlerStack; -class ArkClient +class Client { public Connection $connection; diff --git a/tests/API/ApiNodesTest.php b/tests/API/ApiNodesTest.php index 4b46de6..b04ac8f 100644 --- a/tests/API/ApiNodesTest.php +++ b/tests/API/ApiNodesTest.php @@ -4,10 +4,10 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls the correct url for api nodes', function () { - $this->assertResponse('GET', 'api-nodes', function (ArkClient $client) { + $this->assertResponse('GET', 'api-nodes', function (Client $client) { return $client->apiNodes()->all(); }); }); diff --git a/tests/API/BlockchainTest.php b/tests/API/BlockchainTest.php index 6b32c81..d3864ee 100644 --- a/tests/API/BlockchainTest.php +++ b/tests/API/BlockchainTest.php @@ -4,10 +4,10 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls the correct blockchain url', function () { - $this->assertResponse('GET', 'blockchain', function (ArkClient $client) { + $this->assertResponse('GET', 'blockchain', function (Client $client) { return $client->blockchain()->blockchain(); }); }); diff --git a/tests/API/BlocksTest.php b/tests/API/BlocksTest.php index b851c8e..0018443 100644 --- a/tests/API/BlocksTest.php +++ b/tests/API/BlocksTest.php @@ -4,34 +4,34 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls correct url for all', function () { - $this->assertResponse('GET', 'blocks', function (ArkClient $client) { + $this->assertResponse('GET', 'blocks', function (Client $client) { return $client->blocks()->all(); }); }); it('calls correct url for get', function () { - $this->assertResponse('GET', 'blocks/dummy', function (ArkClient $client) { + $this->assertResponse('GET', 'blocks/dummy', function (Client $client) { return $client->blocks()->get('dummy'); }); }); it('calls correct url for first', function () { - $this->assertResponse('GET', 'blocks/first', function (ArkClient $client) { + $this->assertResponse('GET', 'blocks/first', function (Client $client) { return $client->blocks()->first(); }); }); it('calls correct url for last', function () { - $this->assertResponse('GET', 'blocks/last', function (ArkClient $client) { + $this->assertResponse('GET', 'blocks/last', function (Client $client) { return $client->blocks()->last(); }); }); it('calls correct url for transactions', function () { - $this->assertResponse('GET', 'blocks/dummy/transactions', function (ArkClient $client) { + $this->assertResponse('GET', 'blocks/dummy/transactions', function (Client $client) { return $client->blocks()->transactions('dummy'); }); }); diff --git a/tests/API/CommitsTest.php b/tests/API/CommitsTest.php index aa3653d..a0b911a 100644 --- a/tests/API/CommitsTest.php +++ b/tests/API/CommitsTest.php @@ -4,10 +4,10 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls the correct URL for get', function () { - $this->assertResponse('GET', 'commits/1', function (ArkClient $client) { + $this->assertResponse('GET', 'commits/1', function (Client $client) { return $client->commits()->get(1); }); }); diff --git a/tests/API/ContractsTest.php b/tests/API/ContractsTest.php index bf4ad7e..7454caa 100644 --- a/tests/API/ContractsTest.php +++ b/tests/API/ContractsTest.php @@ -4,16 +4,16 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls the correct url for all contracts', function () { - $this->assertResponse('GET', 'contracts', function (ArkClient $client) { + $this->assertResponse('GET', 'contracts', function (Client $client) { return $client->contracts()->all(); }); }); it('calls the correct url for abi', function () { - $this->assertResponse('GET', 'contracts/consensus/some-wallet/abi', function (ArkClient $client) { + $this->assertResponse('GET', 'contracts/consensus/some-wallet/abi', function (Client $client) { return $client->contracts()->abi('consensus', 'some-wallet'); }); }); diff --git a/tests/API/EVMTest.php b/tests/API/EVMTest.php index ee91940..7d44a1a 100644 --- a/tests/API/EVMTest.php +++ b/tests/API/EVMTest.php @@ -4,13 +4,13 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls the correct URL for eth_call', function () { $this->assertResponse( method: 'POST', path: 'api/', - callback: function (ArkClient $client) { + callback: function (Client $client) { return $client->evm()->call([ 'method' => 'eth_call', 'params' => [[ diff --git a/tests/API/NodeTest.php b/tests/API/NodeTest.php index cc06608..e4ff6bf 100644 --- a/tests/API/NodeTest.php +++ b/tests/API/NodeTest.php @@ -4,34 +4,40 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls the correct url for status', function () { - $this->assertResponse('GET', 'node/status', function (ArkClient $client) { + $this->assertResponse('GET', 'node/status', function (Client $client) { return $client->node()->status(); }); }); it('calls the correct url for syncing', function () { - $this->assertResponse('GET', 'node/syncing', function (ArkClient $client) { + $this->assertResponse('GET', 'node/syncing', function (Client $client) { return $client->node()->syncing(); }); }); it('calls the correct url for configuration', function () { - $this->assertResponse('GET', 'node/configuration', function (ArkClient $client) { + $this->assertResponse('GET', 'node/configuration', function (Client $client) { return $client->node()->configuration(); }); }); it('calls the correct url for crypto', function () { - $this->assertResponse('GET', 'node/configuration/crypto', function (ArkClient $client) { + $this->assertResponse('GET', 'node/configuration/crypto', function (Client $client) { return $client->node()->crypto(); }); }); it('calls the correct url for fees', function () { - $this->assertResponse('GET', 'node/fees', function (ArkClient $client) { + $this->assertResponse('GET', 'node/fees', function (Client $client) { return $client->node()->fees(); }); }); + +it('calls the correct url for fees with query', function () { + $this->assertResponse('GET', 'node/fees?days=7', function (Client $client) { + return $client->node()->fees(7); + }); +}); diff --git a/tests/API/PeersTest.php b/tests/API/PeersTest.php index b9a40ab..beb6aa2 100644 --- a/tests/API/PeersTest.php +++ b/tests/API/PeersTest.php @@ -4,16 +4,16 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls correct url for all', function () { - $this->assertResponse('GET', 'peers', function (ArkClient $client) { + $this->assertResponse('GET', 'peers', function (Client $client) { return $client->peers()->all(); }); }); it('calls correct url for get', function () { - $this->assertResponse('GET', 'peers/dummy', function (ArkClient $client) { + $this->assertResponse('GET', 'peers/dummy', function (Client $client) { return $client->peers()->get('dummy'); }); }); diff --git a/tests/API/ReceiptsTest.php b/tests/API/ReceiptsTest.php index b356c1b..c7dcce0 100644 --- a/tests/API/ReceiptsTest.php +++ b/tests/API/ReceiptsTest.php @@ -4,11 +4,11 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; use Exception; it('calls the correct url for all', function () { - $this->assertResponse('GET', 'receipts', function (ArkClient $client) { + $this->assertResponse('GET', 'receipts', function (Client $client) { return $client->receipts()->all(); }); }); @@ -17,7 +17,7 @@ $this->assertResponse( method: 'GET', path: 'receipts/dummyTxHash', - callback: function (ArkClient $client) { + callback: function (Client $client) { return $client->receipts()->get('dummyTxHash'); }, response: ['data' => [['id' => 'dummyTxHash']]], @@ -31,7 +31,7 @@ $this->assertResponse( method: 'GET', path: 'receipts/dummyTxHash', - callback: function (ArkClient $client) { + callback: function (Client $client) { return $client->receipts()->get('dummyTxHash'); }, response: ['data' => []], diff --git a/tests/API/RoundsTest.php b/tests/API/RoundsTest.php index 0edeb6c..79e4682 100644 --- a/tests/API/RoundsTest.php +++ b/tests/API/RoundsTest.php @@ -4,22 +4,22 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls correct url for all', function () { - $this->assertResponse('GET', 'rounds', function (ArkClient $client) { + $this->assertResponse('GET', 'rounds', function (Client $client) { return $client->rounds()->all(); }); }); it('calls correct url for view', function () { - $this->assertResponse('GET', 'rounds/12345', function (ArkClient $client) { + $this->assertResponse('GET', 'rounds/12345', function (Client $client) { return $client->rounds()->get(12345); }); }); it('calls correct url for validators', function () { - $this->assertResponse('GET', 'rounds/12345/validators', function (ArkClient $client) { + $this->assertResponse('GET', 'rounds/12345/validators', function (Client $client) { return $client->rounds()->validators(12345); }); }); diff --git a/tests/API/TokensTest.php b/tests/API/TokensTest.php index d9b7b40..ade488e 100644 --- a/tests/API/TokensTest.php +++ b/tests/API/TokensTest.php @@ -4,10 +4,10 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls correct url for all', function () { - $this->assertResponse('GET', 'tokens', function (ArkClient $client) { + $this->assertResponse('GET', 'tokens', function (Client $client) { return $client->tokens()->all(); }); }); @@ -16,7 +16,7 @@ $this->assertResponse( 'POST', 'tokens', - function (ArkClient $client) { + function (Client $client) { return $client->tokens()->all([ 'whitelist' => ['0x1234567890abcdef1234567890abcdef12345678'], ]); @@ -31,7 +31,7 @@ function (ArkClient $client) { $this->assertResponse( 'POST', 'tokens', - function (ArkClient $client) { + function (Client $client) { return $client->tokens()->all([ 'whitelist' => [ '0x1234567890abcdef1234567890abcdef12345678', @@ -49,7 +49,7 @@ function (ArkClient $client) { }); it('calls correct url for whitelist with query', function () { - $this->assertResponse('GET', 'tokens/whitelist?page=2&limit=10', function (ArkClient $client) { + $this->assertResponse('GET', 'tokens/whitelist?page=2&limit=10', function (Client $client) { return $client->tokens()->whitelist([ 'page' => 2, 'limit' => 10, @@ -58,31 +58,31 @@ function (ArkClient $client) { }); it('calls correct url for get', function () { - $this->assertResponse('GET', 'tokens/dummy', function (ArkClient $client) { + $this->assertResponse('GET', 'tokens/dummy', function (Client $client) { return $client->tokens()->get('dummy'); }); }); it('calls correct url for holders', function () { - $this->assertResponse('GET', 'tokens/dummy/holders', function (ArkClient $client) { + $this->assertResponse('GET', 'tokens/dummy/holders', function (Client $client) { return $client->tokens()->holders('dummy'); }); }); it('calls correct url for transfers by token', function () { - $this->assertResponse('GET', 'tokens/dummy/transfers', function (ArkClient $client) { + $this->assertResponse('GET', 'tokens/dummy/transfers', function (Client $client) { return $client->tokens()->transfersByToken('dummy'); }); }); it('calls correct url for all transfers', function () { - $this->assertResponse('GET', 'tokens/transfers', function (ArkClient $client) { + $this->assertResponse('GET', 'tokens/transfers', function (Client $client) { return $client->tokens()->transfers(); }); }); it('calls correct url for whitelist', function () { - $this->assertResponse('GET', 'tokens/whitelist', function (ArkClient $client) { + $this->assertResponse('GET', 'tokens/whitelist', function (Client $client) { return $client->tokens()->whitelist(); }); }); diff --git a/tests/API/TransactionsTest.php b/tests/API/TransactionsTest.php index 761c25e..6f562da 100644 --- a/tests/API/TransactionsTest.php +++ b/tests/API/TransactionsTest.php @@ -4,10 +4,10 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls correct url for all', function () { - $this->assertResponse('GET', 'transactions', function (ArkClient $client) { + $this->assertResponse('GET', 'transactions', function (Client $client) { return $client->transactions()->all(); }); }); @@ -16,7 +16,7 @@ $this->assertResponse( method: 'POST', path: 'transactions', - callback: function (ArkClient $client) { + callback: function (Client $client) { return $client->transactions()->create(['transactions' => []]); }, expectedApi: 'transactions' @@ -24,7 +24,7 @@ }); it('calls correct url for get', function () { - $this->assertResponse('GET', 'transactions/dummy', function (ArkClient $client) { + $this->assertResponse('GET', 'transactions/dummy', function (Client $client) { return $client->transactions()->get('dummy'); }); }); @@ -33,7 +33,7 @@ $this->assertResponse( method: 'GET', path: 'transactions/unconfirmed', - callback: function (ArkClient $client) { + callback: function (Client $client) { return $client->transactions()->allUnconfirmed(); }, expectedApi: 'transactions' @@ -44,7 +44,7 @@ $this->assertResponse( method: 'GET', path: 'transactions/unconfirmed/dummy', - callback: function (ArkClient $client) { + callback: function (Client $client) { return $client->transactions()->getUnconfirmed('dummy'); }, expectedApi: 'transactions' @@ -55,7 +55,7 @@ $this->assertResponse( method: 'GET', path: 'configuration', - callback: function (ArkClient $client) { + callback: function (Client $client) { return $client->transactions()->configuration(); }, expectedApi: 'transactions' diff --git a/tests/API/ValidatorsTest.php b/tests/API/ValidatorsTest.php index e1d87b4..ee91c7d 100644 --- a/tests/API/ValidatorsTest.php +++ b/tests/API/ValidatorsTest.php @@ -4,28 +4,28 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls correct url for all', function () { - $this->assertResponse('GET', 'validators', function (ArkClient $client) { + $this->assertResponse('GET', 'validators', function (Client $client) { return $client->validators()->all(); }); }); it('calls correct url for get', function () { - $this->assertResponse('GET', 'validators/dummy', function (ArkClient $client) { + $this->assertResponse('GET', 'validators/dummy', function (Client $client) { return $client->validators()->get('dummy'); }); }); it('calls correct url for blocks', function () { - $this->assertResponse('GET', 'validators/dummy/blocks', function (ArkClient $client) { + $this->assertResponse('GET', 'validators/dummy/blocks', function (Client $client) { return $client->validators()->blocks('dummy'); }); }); it('calls correct url for voters', function () { - $this->assertResponse('GET', 'validators/dummy/voters', function (ArkClient $client) { + $this->assertResponse('GET', 'validators/dummy/voters', function (Client $client) { return $client->validators()->voters('dummy'); }); }); diff --git a/tests/API/VotesTest.php b/tests/API/VotesTest.php index d9d064d..c30dc27 100644 --- a/tests/API/VotesTest.php +++ b/tests/API/VotesTest.php @@ -4,16 +4,16 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls correct url for all', function () { - $this->assertResponse('GET', 'votes', function (ArkClient $client) { + $this->assertResponse('GET', 'votes', function (Client $client) { return $client->votes()->all(); }); }); it('calls correct url for get', function () { - $this->assertResponse('GET', 'votes/dummy', function (ArkClient $client) { + $this->assertResponse('GET', 'votes/dummy', function (Client $client) { return $client->votes()->get('dummy'); }); }); diff --git a/tests/API/WalletsTest.php b/tests/API/WalletsTest.php index bbd8849..748e5ec 100644 --- a/tests/API/WalletsTest.php +++ b/tests/API/WalletsTest.php @@ -4,58 +4,58 @@ namespace ArkEcosystem\Tests\Client\API; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; it('calls correct url for all', function () { - $this->assertResponse('GET', 'wallets', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets', function (Client $client) { return $client->wallets()->all(); }); }); it('calls correct url for top', function () { - $this->assertResponse('GET', 'wallets/top', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets/top', function (Client $client) { return $client->wallets()->top(); }); }); it('calls correct url for get', function () { - $this->assertResponse('GET', 'wallets/dummy', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets/dummy', function (Client $client) { return $client->wallets()->get('dummy'); }); }); it('calls correct url for transactions', function () { - $this->assertResponse('GET', 'wallets/dummy/transactions', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets/dummy/transactions', function (Client $client) { return $client->wallets()->transactions('dummy'); }); }); it('calls correct url for sent transactions', function () { - $this->assertResponse('GET', 'wallets/dummy/transactions/sent', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets/dummy/transactions/sent', function (Client $client) { return $client->wallets()->sentTransactions('dummy'); }); }); it('calls correct url for received transactions', function () { - $this->assertResponse('GET', 'wallets/dummy/transactions/received', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets/dummy/transactions/received', function (Client $client) { return $client->wallets()->receivedTransactions('dummy'); }); }); it('calls correct url for votes', function () { - $this->assertResponse('GET', 'wallets/dummy/votes', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets/dummy/votes', function (Client $client) { return $client->wallets()->votes('dummy'); }); }); it('calls correct url for all wallet tokens', function () { - $this->assertResponse('GET', 'wallets/tokens', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets/tokens', function (Client $client) { return $client->wallets()->tokens(); }); }); it('calls correct url for all wallet tokens with query', function () { - $this->assertResponse('GET', 'wallets/tokens?limit=10', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets/tokens?limit=10', function (Client $client) { return $client->wallets()->tokens([ 'limit' => 10, ]); @@ -63,15 +63,46 @@ }); it('calls correct url for a wallet tokens', function () { - $this->assertResponse('GET', 'wallets/dummy/tokens', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets/dummy/tokens', function (Client $client) { return $client->wallets()->tokensFor('dummy'); }); }); it('calls correct url for a wallet tokens with query', function () { - $this->assertResponse('GET', 'wallets/dummy/tokens?limit=10', function (ArkClient $client) { + $this->assertResponse('GET', 'wallets/dummy/tokens?limit=10', function (Client $client) { return $client->wallets()->tokensFor('dummy', [ 'limit' => 10, ]); }); }); + +it('calls correct url for a wallet tokens with whitelist', function () { + $this->assertResponse( + 'POST', + 'wallets/dummy/tokens', + function (Client $client) { + + return $client->wallets()->tokensFor('dummy', [ + 'whitelist' => ['0x1234567890abcdef1234567890abcdef12345678'], + ]); + }, + expectedRequestBody: [ + 'whitelist' => ['0x1234567890abcdef1234567890abcdef12345678'], + ] + ); +}); + +it('calls correct url for all wallet tokens with whitelist', function () { + $this->assertResponse( + 'POST', + 'wallets/tokens', + function (Client $client) { + return $client->wallets()->tokens([ + 'whitelist' => ['0x1234567890abcdef1234567890abcdef12345678'], + ]); + }, + expectedRequestBody: [ + 'whitelist' => ['0x1234567890abcdef1234567890abcdef12345678'], + ] + ); +}); diff --git a/tests/ArkClientTest.php b/tests/ClientTest.php similarity index 83% rename from tests/ArkClientTest.php rename to tests/ClientTest.php index 8194892..b9c1ac4 100644 --- a/tests/ArkClientTest.php +++ b/tests/ClientTest.php @@ -5,7 +5,7 @@ namespace ArkEcosystem\Tests\Client; use ArkEcosystem\Client\API\Blocks; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; use GuzzleHttp\HandlerStack; beforeEach(function () { @@ -13,7 +13,7 @@ }); it('calls an api if exists', function () { - $client = new ArkClient(['api' => $this->host]); + $client = new Client(['api' => $this->host]); $actual = $client->blocks(); expect($actual)->toBeInstanceOf(Blocks::class); }); @@ -24,7 +24,7 @@ 'transactions' => 'https://dwallets-evm.mainsailhq.com/tx/api', 'evm' => 'https://dwallets-evm.mainsailhq.com/evm', ]; - $client = new ArkClient($hosts); + $client = new Client($hosts); expect($client->connection->getHosts())->toBe($hosts); }); @@ -33,11 +33,11 @@ 'transactions' => 'https://dwallets-evm.mainsailhq.com/tx/api', 'evm' => 'https://dwallets-evm.mainsailhq.com/evm', ]; - new ArkClient($hosts); + new Client($hosts); })->throws(\InvalidArgumentException::class); it('accepts custom handler', function () { $handler = HandlerStack::create(); - $client = new ArkClient(hostOrHosts: $this->host, handler: $handler); + $client = new Client(hostOrHosts: $this->host, handler: $handler); expect($client->connection->getHttpClient()->getConfig('handler'))->toBe($handler); }); diff --git a/tests/TestCase.php b/tests/TestCase.php index 64cc507..c88dd07 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -4,7 +4,7 @@ namespace ArkEcosystem\Tests\Client; -use ArkEcosystem\Client\ArkClient; +use ArkEcosystem\Client\Client; use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\Request; @@ -56,7 +56,7 @@ function (Request $request) use ($method, $path, $response, $hosts, $expectedApi }, ]); - $client = new ArkClient( + $client = new Client( hostOrHosts: $hosts, handler: HandlerStack::create($mockHandler) ); From 7f3ba949afa1da1d489b09faed1f379c5d5c5a8e Mon Sep 17 00:00:00 2001 From: alexbarnsley Date: Thu, 12 Mar 2026 20:41:06 +0000 Subject: [PATCH 2/2] style: resolve style guide violations --- tests/API/WalletsTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/API/WalletsTest.php b/tests/API/WalletsTest.php index 748e5ec..ce31d94 100644 --- a/tests/API/WalletsTest.php +++ b/tests/API/WalletsTest.php @@ -81,7 +81,6 @@ 'POST', 'wallets/dummy/tokens', function (Client $client) { - return $client->wallets()->tokensFor('dummy', [ 'whitelist' => ['0x1234567890abcdef1234567890abcdef12345678'], ]);