diff --git a/README.md b/README.md index 3928dee..719529b 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,10 @@ All information on how to use this package can be found on our official documentation website. [→ Read the Docs](https://laravel-evm.farbcode.net) +## Requirements +- PHP >= 8.4 +- Laravel >= 12 +- GMP PHP extension installed and enabled ## Installation @@ -36,7 +40,7 @@ composer require farbcode/laravel-evm You can publish the config file with: ```bash -php artisan vendor:publish --tag="laravel-evm-config" +php artisan vendor:publish --tag="evm-config" ``` Then set your blockchain RPC URL, chain id and private key in .env: diff --git a/config/evm.php b/config/evm.php index 820443a..65b0506 100644 --- a/config/evm.php +++ b/config/evm.php @@ -20,8 +20,8 @@ // Fee policy for EIP 1559. 'fees' => [ - 'min_priority_gwei' => env('EVM_MIN_PRIORITY_GWEI', 3), - 'min_maxfee_gwei' => env('EVM_MIN_MAXFEE_GWEI', 40), + 'min_priority_gwei' => env('EVM_MIN_PRIORITY_GWEI', 50), + 'min_maxfee_gwei' => env('EVM_MIN_MAXFEE_GWEI', 120), 'base_multiplier' => env('EVM_BASE_MULTIPLIER', 3), 'replacement_factor' => env('EVM_REPLACEMENT_FACTOR', 1.5), ], @@ -32,8 +32,6 @@ 'confirm_timeout' => env('EVM_CONFIRM_TIMEOUT', 120), // seconds 'max_replacements' => env('EVM_MAX_REPLACEMENTS', 2), 'poll_interval_ms' => env('EVM_POLL_INTERVAL_MS', 800), - - // Queue used for sending jobs. Keep concurrency at one per writer address. - 'queue' => env('EVM_QUEUE', 'evm-send'), + 'queue' => env('EVM_QUEUE', 'evm-send'), // Keep concurrency=1 per signer ], ]; diff --git a/docs/pages/installation.md b/docs/pages/installation.md index 21e827b..fea7bed 100644 --- a/docs/pages/installation.md +++ b/docs/pages/installation.md @@ -3,6 +3,7 @@ ## Requirements - PHP >= 8.4 - Laravel >= 12 +- GMP PHP extension installed and enabled ## Package Install Install via Composer: @@ -23,7 +24,7 @@ Multiple RPC URLs provide failover and load distribution. ## Publish Config (Optional) Publish the configuration file if you want to adjust gas padding, timeouts or fee strategy: ```bash -php artisan vendor:publish --tag=laravel-evm-config +php artisan vendor:publish --tag=evm-config ``` This creates `config/evm.php` with sections for `rpc_urls`, `tx`, `fees`, and signer settings.