0.2.0 • Published 1 year ago

eip-7582-utils v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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 viem

Important: 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): bigint
  • getValidatorSettings(validator: Address): ValidatorInfo
  • getKeyFromNonce(nonce: bigint): bigint
  • getValidatorFromKey(key: bigint): Address
  • getValidatorFromNonce(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.

0.2.0

1 year ago

0.1.0

1 year ago

0.1.1-alpha.1

1 year ago

0.1.0-alpha.1

1 year ago