LP-3338
FinalPaymaster Standard
Paymaster Standard for Lux Network
Abstract
Standard interface for paymasters that sponsor gas fees for users.
Specification
Defines paymaster interface for ERC-4337 account abstraction infrastructure.
Motivation
This standard ensures compatibility with the broader EVM ecosystem while enabling Lux-specific optimizations.
Rationale
Mirrors the corresponding Ethereum standard for maximum compatibility.
Backwards Compatibility
Fully compatible with existing ERC implementations.
Reference Implementation
Repository: https://github.com/luxfi/standard
Local Path: /Users/z/work/lux/standard/
Contracts
| Contract | Description |
|---|---|
lib/account-abstraction/contracts/core/BasePaymaster.sol | Base paymaster |
Interfaces
Build and Test
cd /Users/z/work/lux/standard
# Build all contracts
forge build
# Run tests
forge test -vvv
# Gas report
forge test --gas-report
Security Considerations
Implementations should follow established security best practices for the corresponding ERC.
Copyright
Copyright and related rights waived via CC0.