ElderJS is a JavaScript library designed to enable front-end integration for Rollapps connected to the Elder Ecosystem. It provides tools to interact with Ethereum and Cosmos-based wallets, facilitating transaction creation, signing, and broadcasting within the Elder framework.
Features
- Ethereum Wallet Support: Create, sign, and broadcast transactions using Ethereum-based keys
- Cosmos Wallet Support: Integrate with Keplr wallet for Cosmos-based transaction signing and broadcasting
- Elder Ecosystem Integration: Seamlessly connect Rollapps to the Elder ecosystem with custom transaction handling
- TypeScript Support: Fully typed codebase for better developer experience
Installation
Prerequisites
- Node.js (v16 or higher recommended)
- npm or yarn
- A modern browser with Web3 support (for Ethereum) or Keplr wallet (for Cosmos)
Install via npm
Install from GitHub
Clone the repository and install dependencies:Usage
Ethereum Wallet Example
Cosmos Wallet Example (with Keplr)
Project Structure
Dependencies
- ethers: Ethereum JavaScript library for transaction handling
- @cosmjs/stargate: Cosmos SDK client for transaction signing and broadcasting
- @cosmjs/proto-signing: Protobuf-based signing utilities for Cosmos
- bech32: Bech32 address encoding/decoding
- @noble/hashes: Cryptographic hash functions
See
package.json for the full list of dependencies.Development
Transpile TypeScript
To transpile TypeScript files (if applicable):Contributing
1
Fork the Repository
Fork the ElderJS repository to your GitHub account.
2
Create Feature Branch
Create a feature branch for your changes:
3
Make Changes
Implement your feature or fix and commit your changes:
4
Push Changes
Push your branch to your fork:
5
Open Pull Request
Open a pull request on the main repository.
License
This project is licensed under the ISC License. See the LICENSE file for details.Issues
Found a bug? Have a suggestion? Open an issue on the GitHub Issues page.Contact
For questions or support, reach out via the GitHub repository.For advanced configuration, troubleshooting, and updates, see the official ElderJS docs.