ElderJS
GitHub access for Elder is currently limited to early partner projects and may not be available to everyone.
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
npm install elderjs
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.
Development
Transpile TypeScript
To transpile TypeScript files (if applicable):
Contributing
Contributions are welcome! Please follow these steps:
Fork the repository.
Create a feature branch (
git checkout -b feature/your-feature).Commit your changes (
git commit -m "Add your feature").Push to the branch (
git push origin feature/your-feature).Open a pull request.
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.
Last updated