Releases: bcdevtools/devd
v3.0.0-stalking2
Support view unvested token for Vesting accounts when using devd q account ...
Won't merge to main branch
go install -v github.com/bcdevtools/devd/v3/cmd/devd@v3.0.0-stalking2
v3.0.0
CHANGELOG
Breaking changes
- Module renamed from v2 into v3
- Rename flag
--rpcto--evm-rpc - Commands with name format like
devd x_yrenamed todevd x-y(except EVM RPC methods likeeth_*,debug_*,...) - Merged
devd convert encode-base64 [input]anddevd convert decode-base64 [input]into new cmddevd convert base64 [input] [--decode] - Merged
devd convert lowercase [input]anddevd convert uppercase [input]into new cmddevd convert case [input] [--upper] - Merged
devd convert dec-2-hex [dec]anddevd convert hex-2-dec [hex]into new cmddevd convert hex [0xHex or Dec] - Moved
devd convert decode-raw-tx [input]intodevd debug raw-tx [input] - Removed previously deprecated cmd
devd tx deploy-erc20, instead usedevd tx deploy-contract erc20 - Removed some commands alias:
(ofdevd q txdevd q eth_getTransactionByHash, new alias:evm-tx)(ofdevd q blockdevd q eth_getBlockByNumber, new alias:evm-block)(ofdevd q receiptdevd q eth_getTransactionReceipt, new alias:evm-receipt)(ofdevd q tracedevd q debug_traceTransaction, new alias:evm-trace)
- Output of some commands are adjusted either.
New queries:
New EVM-RPC queries:
devd q eth_call 0xContractAddr 0xCallData [--from 0xFromAddr/Bech32] [--height 5m/0xHex/latest] [--gas 500k/0xHex] [--gas-prices 20e9/0xHex] [--value 1e18/0xHex]devd q eth_getAccount [0xAddress/Bech32]devd q eth_chainId
Improvements:
- Support flag
--raw-txin some tx commands to print RLP-encoded tx, for debugging purpose. - Output of some queries will have more information injected:
devd q eth_getAccountanddevd q accountwill have_isContractand_sentTxinfo.devd q evm-receiptwill have some duplicated log fields removed to increase readability
- Add more usage of short integer for input/flag
- Increase waiting time for EVM-tx to be included in a block, to 16s (~3 blocks), previously 6s.
Update
go install -v github.com/bcdevtools/devd/v3/cmd/devd@v3.0.0Full Changelog: v2.5.3...v3.0.0
v2.5.5 with **Breaking Change**
CHANGELOG
*** Breaking change
to 2 queries: devd q eth_getBlockByNumber and devd q debug_traceTransaction now try to print only the inner object instead of the entire RPC-response wrapped object.
Before:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"main": true
}
}Now:
{
"main": true
}Additionally from v2.5.4, added some deprecation notice to some commands to provide breaking change information on v3.
New CLI
devd convert decode_raw_tx [raw RLP-encoded EVM tx hex]to view inner tx information, including sender address
Improvement to queries
to 4 existing queries: devd q eth_getBlockByNumber/eth_getTransactionByHash/eth_getTransactionReceipt/debug_traceTransaction
Now devd will try to inject translated value of some fields into the output, with '_' prefix, like
Before:
{
"type": "0x2",
"status": "0x1",
"gas": "0xf"
}Now:
{
"_type": "Dynamic Fee (EIP-1559)",
"_status": "Success",
"_gas": "16",
"type": "0x2",
"status": "0x1",
"gas": "0xf"
}Other improvements
- Support custom integer input for some commands. You can pass number with format like
10e18,1k(thousand),2m(million),3b(billion),4kb(trillion),5mb(million billion),6bb,... Decimal point also supported fork,m,bsuffixes like1.5k,2.5m,3.5bb,... - Support 2 new flags
--gas(gas limit) and--gas-pricesfor some tx commands, allow custom gas config. Eg:devd tx deploy-contract ... --gas 30m --gas-prices 30b
Update
go install -v github.com/bcdevtools/devd/v2/cmd/devd@v2.5.5Full Changelog: v2.4.3...v2.5.5
v2.4.3
CHANGELOG
New CLIs
devd q events [height/tx hash] [--filter one] [--filter of_] [--filter these] [--tm-rpc http://localhost:26657](filter contains, or)
Improvement
--secret-keyor envDEVD_SECRET_KEYnow accept mnemonic (previously private key only)
Update
go install -v github.com/bcdevtools/devd/v2/cmd/devd@v2.4.3Full Changelog: v2.3.4...v2.4.3
v2.3.4
CHANGELOG
New CLIs
devd tx deploy-contract [bytecode](ordevd tx deploy-contract erc20to use pre-defined deployment bytecode for an ERC-20 contract)devd q txs-in-block [number]
Improved CLIs
- Enhanced
devd tx send [to] [amount], add flag--erc20 [contract address]to send ERC-20 token instead of native coin.
Update
go install -v github.com/bcdevtools/devd/v2/cmd/devd@v2.3.4Full Changelog: v2.2.0...v2.3.4
v2.2.0
CHANGELOG
New cli
devd tx send [to] [amount]
Update
go install -v github.com/bcdevtools/devd/v2/cmd/devd@v2.2.0Full Changelog: v2.1.2...v2.2.0
v2.1.2
CHANGELOG
New cli
devd check port [?port]
Improvement
- Add flag
--erc20todevd query balance, attempt to fetchx/erc20token pairs andvfbccontracts, then fetch balance from those, zero balance are ignored.
Update
go install -v github.com/bcdevtools/devd/v2/cmd/devd@v2.1.2Full Changelog: v2.0.4...v2.1.2
v2.0.4
CHANGELOG
Bug fixes
- Fix bug
convert addressto print full bytes when convert bech32 into bytes address, instead of just last 20 bytes.
Update
go install -v github.com/bcdevtools/devd/v2/cmd/devd@v2.0.4Full Changelog: v2.0.3...v2.0.4
v2.0.3
Change log
New cli:
devd c dec_2_hexdevd c display_balancedevd c raw_balance
Improvements
- Supply flag
--heightforq balanceandq erc20 - Improve display balance (raw 10_011_100 with exponent 6 => 10.0111)
c abi_stringcan now translate error message returned by EVMq debug_traceTransactionnow automatically translate error message returned by EVM if detected. Can be omitted by--no-translate
Breaking change:
- Split
hex_2_decintodec_2_hexandhex_2_dec, no longer mixed. - Simply response for some cli.
Support pipe for some cli:
echo 'USDC Token' | devd c abi_stringecho 0xAA | devd c hex_2_dececho 170 | devd c dec_2_hexecho AA | devd c lowercaseecho aa | devd c uppercaseecho 123 | devd c encode_base64echo TVRJeg== | devd c decode_base64cat file.txt | devd hash md5cat file.txt | devd hash keccak256cat file.txt | devd hash keccak512
Update
go install -v github.com/bcdevtools/devd/v2/cmd/devd@v2.0.3