Change log
New cli:
devd c dec_2_hex
devd c display_balance
devd c raw_balance
Improvements
- Supply flag
--height for q balance and q erc20
- Improve display balance (raw 10_011_100 with exponent 6 => 10.0111)
c abi_string can now translate error message returned by EVM
q debug_traceTransaction now automatically translate error message returned by EVM if detected. Can be omitted by --no-translate
Breaking change:
- Split
hex_2_dec into dec_2_hex and hex_2_dec, no longer mixed.
- Simply response for some cli.
Support pipe for some cli:
echo 'USDC Token' | devd c abi_string
echo 0xAA | devd c hex_2_dec
echo 170 | devd c dec_2_hex
echo AA | devd c lowercase
echo aa | devd c uppercase
echo 123 | devd c encode_base64
echo TVRJeg== | devd c decode_base64
cat file.txt | devd hash md5
cat file.txt | devd hash keccak256
cat file.txt | devd hash keccak512
Update
go install -v github.com/bcdevtools/devd/v2/cmd/devd@v2.0.3