foundry-rs / foundry-rs/foundry
meta(cast): tracking issue for Cast improvements
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 18h 20m
- Merged PRs (30d)
- 510
Description
From @Sabnock01:
Currently, `to-dec` and `to-hex` act as specialized versions of `to-base` making them both redundant.
These should probably be deprecated to remove clutter and simplify the tool and leave `to-base` as a catch-all for converting from one radix to another.
From @Evalir:
Cast right now would benefit from a better command structure and more docs. As an starting point:
cast
Commands:
ens
```
resolve-name Perform an ENS lookup
lookup-address Perform an ENS reverse lookup
namehash Calculate the ENS namehash of a name
```
tx
```
build Build a transaction (formerly mktx)
send Sign and publish a transaction
receipt Get the transaction receipt for a transaction
analyze Get information about a transaction (formerly tx)
decode Decode a raw signed EIP 2718 typed transaction (formerly decode-transaction)
```
block
```
get Get information about a block (formerly block)
number Get the latest block number (formerly block-number)
basefee Get the basefee of a block (formerly base-fee)
age Get the timestamp of a block
find Get the block number closest to the provided timestamp (formerly find-block)
```
account
```
balance Get the balance of an account in wei
nonce Get the nonce for an account
code Get the runtime bytecode of a contract
storage Get the raw value of a contract's storage slot
proof Generate a storage proof for a given storage slot
compute-address Compute the contract address from a given nonce and deployer address
implementation Fetch the EIP-1967 implementation account
admin Fetch the EIP-1967 admin account
```
abi
```
encode ABI encode the given function arguments (formerly abi-encode)
decode Decode ABI-encoded input or output data (formerly abi-decode)
calldata ABI-encode a function with arguments
calldata-decode Decode ABI-encoded input data (formerly calldata-decode)
event Get the event signature for a given topic 0 (formerly 4byte-event)
signature Get the function signatures for the given selector (formerly 4byte)
```
Contributor guide
Assessment
This issue has not been assessed yet.