Releases: phpmac/ethers-php
Releases · phpmac/ethers-php
v3.0.0
v3.0.0
修复
- Numbers.php MaxUint256/MaxInt256 引用未定义常量导致 Fatal Error
- Hex::fromInt() 字符串输入被截断, toInt() 大数溢出无提示
- Wallet::cancelTransaction gas 加价返回 0 (PHP 字符串乘浮点 = 0)
- AbiCoder::encodeTuple 用 array_keys 当类型名, 元组编码错误
- RPC 错误映射: replacement underpriced 错误归到 nonce 类
- getFeeData 硬编码 1.5 Gwei, 不调用 eth_maxPriorityFeePerGas
新增
- Signature: recoverAddress/verifyMessage/computeAddress
- EIP-712 TypedDataEncoder: hashTypedData/signTypedData/verifyTypedData
- HD 钱包: BIP-39 助记词 + BIP-32 密钥派生 (HDNodeWallet)
- WebSocketProvider: eth_subscribe 事件订阅
- Keystore V3: encrypt/decrypt 钱包加密存储
- ProviderInterface + AbstractProvider 架构重构
破坏性变更
- Hex::toInt() 对超过 PHP_INT_MAX 的值抛 InvalidArgumentError
- 新增 Hex::toIntSafe() 返回十进制字符串替代