You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_`--erc20` flag, if provided, will attempt to fetch user balance of contracts on `x/erc20` module and virtual frontier bank contracts. This request additional Rest-API endpoint provided, or use default 1317._
devd convert abi_string [string or ABI encoded string]
132
-
# devd c abi_string 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000045553444300000000000000000000000000000000000000000000000000000000
133
-
# devd c abi_string USDC Token
134
-
# echo 'USDC Token' | devd c abi_string
142
+
devd convert abi-string [string or ABI encoded string]
143
+
# devd c abi-string 000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000045553444300000000000000000000000000000000000000000000000000000000
144
+
# devd c abi-string USDC Token
145
+
# echo 'USDC Token' | devd c abi-string
135
146
```
136
147
137
148
#### Convert hexadecimal to decimal and vice versa
138
149
139
150
***Support pipe***
140
151
```bash
141
-
devd convert hex_2_dec [hexadecimal]
142
-
# devd c h2d 0x16a
143
-
# devd c h2d 16a
144
-
# echo 16a | devd c h2d
145
-
devd convert dec_2_hex [decimal]
146
-
# devd c d2h 170
147
-
# echo 170 | devd c d2h
148
-
# Support custom integer like 1e18, 2k, 3m, 4b, 5kb,...:
149
-
# devd c d2h 20bb
152
+
devd convert hexadecimal [hexadecimal or decimal]
153
+
# devd c hex 0x16a
154
+
# echo 0x16a | devd c hex
155
+
# devd c hex 362
156
+
# echo 362 | devd c hex
150
157
```
151
158
152
159
#### Convert Solidity event/method signature into hashed signature
_to view inner tx information, including sender address_
249
+
240
250
#### Compute EVM transaction intrinsic gas
241
251
242
252
```bash
243
-
devd debug intrinsic_gas [0xCallData]
244
-
# devd d intrinsic_gas 0xCallData
253
+
devd debug intrinsic-gas [0xCallData]
254
+
# devd d intrinsic-gas 0xCallData
245
255
```
246
256
_Assumption: no access list, not contract creation, Homestead, EIP-2028 (Istanbul). If contract creation, plus 32,000 into the output._
247
257
@@ -250,5 +260,13 @@ _Assumption: no access list, not contract creation, Homestead, EIP-2028 (Istanbu
250
260
- Output messages are printed via stdout, while messages with prefixes `INF:``WARN:` and `ERR:` are printed via stderr. So for integration with other tools, to omit stderr, forward stdout only.
251
261
> Eg: `devd c a cosmos1... 1> /tmp/output.txt`
252
262
- When passing arguments into command via both argument and pipe, the argument will be used.
253
-
> Eg: `echo 123 | devd c d2h 456` will convert `456` to hexadecimal, not `123`.
254
-
- For commands those marked `support custom integer`, you can pass number with format like `1e18`, `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`,...
263
+
> Eg: `echo 123 | devd c hex 456` will convert `456` to hexadecimal, not `123`.
264
+
- For commands those marked `support short int`, you can pass number with format like:
265
+
- `2e18` = 2 x 10^18
266
+
- `2k` = 2,000
267
+
- `2.7m` = 2,700,000
268
+
- `3.08b` = 3,080,000,000
269
+
- `4kb` = 4,000,000,000,000
270
+
- `5.555mb` = 5,555,000,000,000,000
271
+
- `6bb` = 6,000,000,000,000,000,000 = 6e18
272
+
- Some queries will try to decode some fields in response data into human-readable format and inject back into the response data with `_` prefix like EVM tx, receipt, block, trace.
0 commit comments