Releases: bcdevtools/devd
v3.0.0
CHANGELOG
Breaking changes
- Module renamed from v2 into v3
- Rename flag
--rpc
to--evm-rpc
- Commands with name format like
devd x_y
renamed 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 tx
devd q eth_getTransactionByHash
, new alias:evm-tx
)(ofdevd q block
devd q eth_getBlockByNumber
, new alias:evm-block
)(ofdevd q receipt
devd q eth_getTransactionReceipt
, new alias:evm-receipt
)(ofdevd q trace
devd 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-tx
in some tx commands to print RLP-encoded tx, for debugging purpose. - Output of some queries will have more information injected:
devd q eth_getAccount
anddevd q account
will have_isContract
and_sentTx
info.devd q evm-receipt
will 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.0
Full 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
,b
suffixes like1.5k
,2.5m
,3.5bb
,... - Support 2 new flags
--gas
(gas limit) and--gas-prices
for 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.5
Full 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-key
or envDEVD_SECRET_KEY
now accept mnemonic (previously private key only)
Update
go install -v github.com/bcdevtools/devd/v2/cmd/devd@v2.4.3
Full Changelog: v2.3.4...v2.4.3
v2.3.4
CHANGELOG
New CLIs
devd tx deploy-contract [bytecode]
(ordevd tx deploy-contract erc20
to 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.4
Full 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.0
Full Changelog: v2.1.2...v2.2.0
v2.1.2
CHANGELOG
New cli
devd check port [?port]
Improvement
- Add flag
--erc20
todevd query balance
, attempt to fetchx/erc20
token pairs andvfbc
contracts, then fetch balance from those, zero balance are ignored.
Update
go install -v github.com/bcdevtools/devd/v2/cmd/devd@v2.1.2
Full Changelog: v2.0.4...v2.1.2
v2.0.4
CHANGELOG
Bug fixes
- Fix bug
convert address
to 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.4
Full Changelog: v2.0.3...v2.0.4
v2.0.3
Change log
New cli:
devd c dec_2_hex
devd c display_balance
devd c raw_balance
Improvements
- Supply flag
--height
forq balance
andq erc20
- Improve display balance (raw 10_011_100 with exponent 6 => 10.0111)
c abi_string
can now translate error message returned by EVMq debug_traceTransaction
now automatically translate error message returned by EVM if detected. Can be omitted by--no-translate
Breaking change:
- Split
hex_2_dec
intodec_2_hex
andhex_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
v1.3.0
v1.2.1
New cli:
devd query balance [account_address] [optional_erc20_contract_addresses...]
devd convert solc_sig [event/method signature]
devd debug intrinsic_gas [0xdata]
New feature: Lazy RPC setting via environment variable (export DEVD_EVM_RPC='...'
)
Update
go install -v github.com/bcdevtools/devd/cmd/devd@v1.2.1