Skip to content

Commit a9ed7d8

Browse files
docs: Add contact resolution, Makefile, contributing to all docs
- README: contact name resolution section, Makefile mention - CHANGELOG: contact resolution, Makefile, contributing, error messages - CLAUDE.md: ResolveAddress in architecture Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4406037 commit a9ed7d8

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ Format based on [Keep a Changelog](https://keepachangelog.com/).
3333
- **`CallContract()`** RPC function — `eth_call` wrapper
3434
- **`DecodeRawOutputs()`** — returns raw Go types (not strings) for programmatic use
3535
- **22 unit tests** for ABI helper functions (ParseCallSignature, ConvertArg, FormatValue, BuildCalldata)
36+
- **Contact name resolution** — all address commands accept names from `contacts.json`
37+
- Case-insensitive partial match: `butler address danial` → resolves to 0xef33...
38+
- Actionable error messages: "address or contact not found" with hint
39+
- **Makefile**`make build`, `make test`, `make vet`, `make clean`, `make run`
40+
- **CONTRIBUTING.md** — development setup, project structure, PR process
41+
- **GitHub templates** — bug report, feature request, PR template
42+
- **Improved error messages** — config loading errors include actionable hints with docs link
3643

3744
## [0.2.0] - 2026-03-27
3845

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ internal/
113113
ResolveConfigDir() cascade: --config > env > ~/.butler/ > CWD
114114
configPath() joins configDir + filename (empty configDir = relative)
115115
GetPrivateKey() reads key from env only at signing time
116+
ResolveAddress() resolves contact names or validates 0x addresses
116117
Wallets hardcoded: Main Wallet + Test Wallet
117118
118119
ethereum/

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@ Global flags:
107107
-h, --help Help for any command
108108
```
109109

110+
### Contact Name Resolution
111+
112+
All address commands support contact names from `contacts.json`:
113+
114+
```bash
115+
butler address danial # resolves to 0xef33...d93c
116+
butler staking kayen # resolves to 0x86d3...8897
117+
butler address 0xC3B2...D2c49 # direct address still works
118+
```
119+
110120
### butler address
111121

112122
Comprehensive address overview — 5 concurrent fetches (3 RPC + 2 Explorer) for fast response.

0 commit comments

Comments
 (0)