alloy-rs / alloy-rs/core

[Feature] Generate enum that represents the selectors of a call

Abierto
#1,031 2 comentarios 0 reacciones 1 asignado Reclamado por @frankudoags Ver en GitHub
enhancement
Lenguaje dominante
Rust
Estrellas
966
Forks
274
Merge medio
1 d 21 h
PR fusionados (30 d)
15

Descripción

### Component

sol! macro

### Describe the feature you would like

we generate a list of all selectors:

https://github.com/alloy-rs/core/blob/f7d4a85a089bdab78f122de18492533589df5254/crates/sol-macro-expander/src/expand/contract.rs#L921-L928

it would be nice to have an enum representation for those as well, that match to the functions, similar to functions

https://github.com/alloy-rs/core/blob/f7d4a85a089bdab78f122de18492533589df5254/crates/sol-macro-expander/src/expand/contract.rs#L187-L194

## TODO
* generate a selector enum that supports try_from[u8; 4] etc..

maybe @frankudoags ?

### Additional context

_No response_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.