Skip to content

Commit 15eb447

Browse files
docs: Update all docs with rpc, staking, token, CI badge
- README: CI badge, rpc/staking/token in CLI usage - CLAUDE.md: new commands in architecture - CHANGELOG: full [Unreleased] section update Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2d7a0fe commit 15eb447

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ Format based on [Keep a Changelog](https://keepachangelog.com/).
1919
- **`butler version`** — displays version and commit hash
2020
- GoReleaser ldflags injection at build time
2121
- Local builds show "dev (none)", releases show "v0.4.0 (abc1234)"
22+
- **`butler rpc <method> [params]`** — raw JSON-RPC escape hatch for arbitrary RPC calls
23+
- **`butler staking <address>`** — personal staking positions per validator via StakingPool (0x...7001)
24+
- Parallel `getStakedAmount` + `claimableRewards` queries for all 13 validators
25+
- Filters to only show validators with active stakes
26+
- **`butler token <contract>`** — token metadata via Chiliscan `tokeninfo` API
27+
- Name, symbol, type, decimals, total supply, price, social links, verification status
28+
- **4byte method decoding** in `butler tx` — auto-resolves method selectors to function names
29+
- OpenChain API + local cache of common ERC-20 selectors
30+
- e.g., `0x0efe6a8b``deposit(address,uint256,uint256)`
31+
- **CI pipeline** — GitHub Actions: build + vet + test on every push/PR
32+
- **MIT LICENSE** file
2233
- **`CallContract()`** RPC function — `eth_call` wrapper
2334
- **`DecodeRawOutputs()`** — returns raw Go types (not strings) for programmatic use
2435
- **22 unit tests** for ABI helper functions (ParseCallSignature, ConvertArg, FormatValue, BuildCalldata)

CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ butler block [number|latest] # Block information
5656
butler chain-info # Chain status: latest block, gas price
5757
butler call <contract> <sig> [args] # Generic read-only contract call (eth_call)
5858
butler validators # Chiliz validator set + staking status
59+
butler staking <addr> # Personal staking positions + rewards
60+
butler token <contract> # Token metadata via Chiliscan API
61+
butler rpc <method> [params] # Raw JSON-RPC escape hatch
5962
butler version # Build version and commit hash
6063
6164
Global flags:

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<a href="https://goreportcard.com/report/github.com/GrapeInTheTree/go-ethereum-butler"><img src="https://goreportcard.com/badge/github.com/GrapeInTheTree/go-ethereum-butler" alt="Go Report Card"></a>
1414
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
1515
<a href="https://github.com/GrapeInTheTree/go-ethereum-butler/releases"><img src="https://img.shields.io/github/downloads/GrapeInTheTree/go-ethereum-butler/total" alt="Downloads"></a>
16+
<a href="https://github.com/GrapeInTheTree/go-ethereum-butler/actions/workflows/ci.yml"><img src="https://github.com/GrapeInTheTree/go-ethereum-butler/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
1617
</p>
1718

1819
---
@@ -94,6 +95,9 @@ butler block [number|latest] Block information
9495
butler chain-info Chain status: latest block, gas price
9596
butler call <contract> <sig> [args] Read-only contract call (eth_call)
9697
butler validators Chiliz validator set and staking status
98+
butler staking <addr> Personal staking positions and rewards
99+
butler token <contract> Token metadata, price, and social links
100+
butler rpc <method> [params] Raw JSON-RPC escape hatch
97101
butler version Print version and build info
98102
99103
Global flags:

0 commit comments

Comments
 (0)