Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down
8 changes: 3 additions & 5 deletions config/evm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
],
Expand All @@ -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
],
];
3 changes: 2 additions & 1 deletion docs/pages/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Requirements
- PHP >= 8.4
- Laravel >= 12
- GMP PHP extension installed and enabled

## Package Install
Install via Composer:
Expand All @@ -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.

Expand Down