https://github.com/deltartificial/inachus
Lightning-fast shell for effortless smart contract interaction on any EVM chain.
https://github.com/deltartificial/inachus
alloy evm rust solidity
Last synced: 3 months ago
JSON representation
Lightning-fast shell for effortless smart contract interaction on any EVM chain.
- Host: GitHub
- URL: https://github.com/deltartificial/inachus
- Owner: deltartificial
- License: mit
- Created: 2025-04-07T21:00:11.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-04-07T22:58:47.000Z (3 months ago)
- Last Synced: 2025-04-07T23:30:34.890Z (3 months ago)
- Topics: alloy, evm, rust, solidity
- Language: Rust
- Homepage:
- Size: 256 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# inachus

## Features
- Load and manage multiple contract ABIs
- Support for both read and write operations
- Interactive command-line interface
- Configurable RPC endpoint and wallet settings
- Support for array and tuple parameters
- Transaction confirmation for write operations
- Automatic parameter validation2. Build the project:
```bash
cargo build --release
```## Configuration
The tool uses two configuration files:
1. `config.json`: Contains RPC URL, private key, chain ID, and wait time settings
2. `contracts.json`: Contains contract names and their deployed addressesThese files are stored in the `~/.inachus` directory.
Example `config.json`:
```json
{
"rpc_url": "https://mainnet.infura.io/v3/your-project-id",
"private_key": "your-private-key",
"chain_id": "1",
"wait_time": "5"
}
```Example `contracts.json`:
```json
[
{
"name": "MyContract.abi",
"address": "0x1234567890123456789012345678901234567890"
}
]
```## Usage
1. Place your contract ABI files in the `~/.inachus/abi` directory with a `.abi` extension.
2. Run the tool:
```bash
cargo run --release
```3. Follow the interactive prompts to:
- Select a contract
- Set contract address
- Choose between read and write methods
- Input method parameters
- Execute transactions## License
This project is licensed under the MIT License - see the LICENSE file for details.