Skip to content

Commit 85cfb68

Browse files
docs: Add contract, holders, logs to all documentation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 39bea13 commit 85cfb68

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ Format based on [Keep a Changelog](https://keepachangelog.com/).
3838
- **`CallContract()`** RPC function — `eth_call` wrapper
3939
- **`DecodeRawOutputs()`** — returns raw Go types (not strings) for programmatic use
4040
- **22 unit tests** for ABI helper functions (ParseCallSignature, ConvertArg, FormatValue, BuildCalldata)
41+
- **`butler contract <address>`** — contract source code, compiler, deployer, verification status via Chiliscan API
42+
- **`butler holders <token>`** — top token holders with balances + total holder count via Chiliscan API
43+
- **`butler logs`** — on-chain event log filtering via RPC `eth_getLogs`
44+
- `--address`, `--event`, `--blocks`, `--from-block`, `--to-block` flags
45+
- Event signature auto-hashed to topic0 via keccak256
46+
- **`butler address` internal transactions** — internal (trace) txns via Chiliscan API
4147
- **Contact name resolution** — all address commands accept names from `contacts.json`
4248
- Case-insensitive partial match: `butler address danial` → resolves to 0xef33...
4349
- Actionable error messages: "address or contact not found" with hint

CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ butler call <contract> <sig> [args] # Generic read-only contract call (eth_call)
5858
butler validators # Chiliz validator set + staking status
5959
butler staking <addr> # Personal staking positions + rewards
6060
butler token <contract> # Token metadata via Chiliscan API
61+
butler contract <addr> # Contract source, compiler, deployer
62+
butler holders <token> # Top token holders + count
63+
butler logs --address --event # On-chain event logs (eth_getLogs)
6164
butler rpc <method> [params] # Raw JSON-RPC escape hatch
6265
butler init # Initialize config in ~/.butler/
6366
butler version # Build version and commit hash

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ butler call <contract> <sig> [args] Read-only contract call (eth_call)
114114
butler validators Chiliz validator set and staking status
115115
butler staking <addr> Personal staking positions and rewards
116116
butler token <contract> Token metadata, price, and social links
117+
butler contract <addr> Contract info: name, compiler, deployer, verified
118+
butler holders <token> Top token holders and total holder count
119+
butler logs --address --event On-chain event log filtering via eth_getLogs (RPC)
117120
butler rpc <method> [params] Raw JSON-RPC escape hatch
118121
butler init Initialize config (~/.butler/)
119122
butler version Print version and build info

0 commit comments

Comments
 (0)