#abi #parser #generic #variant #type #members #input

sb-starknet-abigen-parser

StarkNet ABI generator macros by gilhm

3 releases

0.1.2 Dec 9, 2023
0.1.1 Dec 9, 2023
0.1.0 Dec 6, 2023

#15 in #members

Download history 3/week @ 2024-07-23 1/week @ 2024-07-30 1/week @ 2024-08-20 7/week @ 2024-08-27 1/week @ 2024-09-10 4/week @ 2024-09-17 34/week @ 2024-09-24 20/week @ 2024-10-01 4/week @ 2024-10-08

63 downloads per month
Used in 2 crates

Apache-2.0

80KB
2K SLoC

This crates is about parsing Cairo types from an ABI. Later, this will also be able to parse Cairo type from Cairo code.

The important consideration are the generic type. Indeed, in the ABI there is no information about a type genericity and how exactly the members/variants are following the generic type as everything is flattened.

abi_types is the low level parsing of the types. It supports nested types.

CairoStruct, CairoEnum and CairoFunction are higher level types to resolve the genericity and manage members/variants/inputs/outputs for simpler expansion.

Dependencies

~13–25MB
~395K SLoC