eip-7582-utils
v0.2.0
Published
Library for EIP-7582 utilities
Maintainers
Readme
eip-7582-utils
Utility functions for working with EIP-7582 (Modular Accounts with Delegated Validation). It includes functions for converting between different formats and extracting information from nonces.
Installation
You can install this package using npm (or any other package manager of choice):
npm install eip-7582-utils viemImportant: This package requires viem as a peer dependency. Make sure to install it alongside eip-7582-utils if you haven't already done so.
API Reference
getValidatorKey(validator: Address): bigintgetValidatorSettings(validator: Address): ValidatorInfogetKeyFromNonce(nonce: bigint): bigintgetValidatorFromKey(key: bigint): AddressgetValidatorFromNonce(nonce: bigint): Address
For detailed information on each function, please refer to the source code or TypeScript definitions.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
This package is based on the specifications outlined in EIP-7582.
