Skip to content

Releases: bcdevtools/devd

v3.0.0

28 Jan 20:51
e190031
Compare
Choose a tag to compare

CHANGELOG

Breaking changes

  • Module renamed from v2 into v3
  • Rename flag --rpc to --evm-rpc
  • Commands with name format like devd x_y renamed to devd x-y (except EVM RPC methods like eth_*, debug_*,...)
  • Merged devd convert encode-base64 [input] and devd convert decode-base64 [input] into new cmd devd convert base64 [input] [--decode]
  • Merged devd convert lowercase [input] and devd convert uppercase [input] into new cmd devd convert case [input] [--upper]
  • Merged devd convert dec-2-hex [dec] and devd convert hex-2-dec [hex] into new cmd devd convert hex [0xHex or Dec]
  • Moved devd convert decode-raw-tx [input] into devd debug raw-tx [input]
  • Removed previously deprecated cmd devd tx deploy-erc20, instead use devd tx deploy-contract erc20
  • Removed some commands alias:
    • devd q tx (of devd q eth_getTransactionByHash, new alias: evm-tx)
    • devd q block (of devd q eth_getBlockByNumber, new alias: evm-block)
    • devd q receipt (of devd q eth_getTransactionReceipt, new alias: evm-receipt)
    • devd q trace (of devd q debug_traceTransaction, new alias: evm-trace)
  • Output of some commands are adjusted either.

New queries:

New EVM-RPC queries:

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 and devd 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**

27 Jan 18:08
Compare
Choose a tag to compare

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 for k, m, b suffixes like 1.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

07 Jan 19:32
fdce1bd
Compare
Choose a tag to compare

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 env DEVD_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

14 Dec 06:54
e9e7a2d
Compare
Choose a tag to compare

CHANGELOG

New CLIs

  • devd tx deploy-contract [bytecode] (or devd 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

02 Jun 22:49
97dd328
Compare
Choose a tag to compare

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

12 Apr 07:12
Compare
Choose a tag to compare

CHANGELOG

New cli

  • devd check port [?port]

Improvement

  • Add flag --erc20 to devd query balance, attempt to fetch x/erc20 token pairs and vfbc 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

11 Apr 17:17
Compare
Choose a tag to compare

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

11 Apr 10:55
Compare
Choose a tag to compare

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

v1.3.0

10 Apr 23:27
Compare
Choose a tag to compare

New cli:

  • devd c lowercase [input]
  • devd c uppercase [input]
  • devd c base64 123
  • devd c decode_base64 TVRJeg==
  • devd hash md5 [input]
  • devd hash keccak256 [input]
  • devd hash keccak512 [input]

Update

go install -v github.com/bcdevtools/devd/cmd/devd@v1.3.0

v1.2.1

10 Apr 22:06
3d13ad0
Compare
Choose a tag to compare

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