Skip to content

Commit 7f7ace4

Browse files
committed
chore: fix docs, improved default values for transaction fee
1 parent f04046c commit 7f7ace4

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
All information on how to use this package can be found on our official documentation website.
2525
[→ Read the Docs](https://laravel-evm.farbcode.net)
2626

27+
## Requirements
28+
- PHP >= 8.4
29+
- Laravel >= 12
30+
- GMP PHP extension installed and enabled
2731

2832
## Installation
2933

@@ -36,7 +40,7 @@ composer require farbcode/laravel-evm
3640
You can publish the config file with:
3741

3842
```bash
39-
php artisan vendor:publish --tag="laravel-evm-config"
43+
php artisan vendor:publish --tag="evm-config"
4044
```
4145

4246
Then set your blockchain RPC URL, chain id and private key in .env:

config/evm.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
// Fee policy for EIP 1559.
2222
'fees' => [
23-
'min_priority_gwei' => env('EVM_MIN_PRIORITY_GWEI', 3),
24-
'min_maxfee_gwei' => env('EVM_MIN_MAXFEE_GWEI', 40),
23+
'min_priority_gwei' => env('EVM_MIN_PRIORITY_GWEI', 50),
24+
'min_maxfee_gwei' => env('EVM_MIN_MAXFEE_GWEI', 120),
2525
'base_multiplier' => env('EVM_BASE_MULTIPLIER', 3),
2626
'replacement_factor' => env('EVM_REPLACEMENT_FACTOR', 1.5),
2727
],
@@ -32,8 +32,6 @@
3232
'confirm_timeout' => env('EVM_CONFIRM_TIMEOUT', 120), // seconds
3333
'max_replacements' => env('EVM_MAX_REPLACEMENTS', 2),
3434
'poll_interval_ms' => env('EVM_POLL_INTERVAL_MS', 800),
35-
36-
// Queue used for sending jobs. Keep concurrency at one per writer address.
37-
'queue' => env('EVM_QUEUE', 'evm-send'),
35+
'queue' => env('EVM_QUEUE', 'evm-send'), // Keep concurrency=1 per signer
3836
],
3937
];

docs/pages/installation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Requirements
44
- PHP >= 8.4
55
- Laravel >= 12
6+
- GMP PHP extension installed and enabled
67

78
## Package Install
89
Install via Composer:
@@ -23,7 +24,7 @@ Multiple RPC URLs provide failover and load distribution.
2324
## Publish Config (Optional)
2425
Publish the configuration file if you want to adjust gas padding, timeouts or fee strategy:
2526
```bash
26-
php artisan vendor:publish --tag=laravel-evm-config
27+
php artisan vendor:publish --tag=evm-config
2728
```
2829
This creates `config/evm.php` with sections for `rpc_urls`, `tx`, `fees`, and signer settings.
2930

0 commit comments

Comments
 (0)