decode-starknet-calldata
A small utility to decode Starknet's transaction calldata in Rust.
Usage
use decode;
use felt;
Caution
The library hasn't been fully tested on whether it can fully discern a legacy calldata from a new calldata format. If you know for a certain that the format of calldata is legacy or new, directly import decode_legacy or decode_new to decode, instead of using decode, which first tries decode_legacy and then tries decode_new on failure.