-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add tests, format attrs * feat: parse events * Prestwich/events (#87) * fix: event trait fixes * fix: re-exporting event * refactor: event trait take 2 * refactor: improve topic detokenization * refactor: change events to account for indexed structs not in body * fix: move test to bottom of event * name * chore: cleanup * docs * assign anon variables names in expansion * wip * refactor: implement `SolType` for `{Ui,I}nt<N>` and `FixedBytes<N>` with const-generics * chore: clippy * chore: add more trait bounds * clean up code * cleanups * finish EventTopic impls * fix: impl for empty tuple * chore: clippy * rm unsafe * review * Type only tuple variants, move is_dynamic methods to Type * chore: clippy * docs --------- Co-authored-by: James Prestwich <james@prestwi.ch>
- Loading branch information
Showing
41 changed files
with
1,597 additions
and
383 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/// Calls the given macro with all the tuples. | ||
#[rustfmt::skip] | ||
macro_rules! all_the_tuples { | ||
($name:ident) => { | ||
$name!(T1); | ||
$name!(T1, T2); | ||
$name!(T1, T2, T3); | ||
$name!(T1, T2, T3, T4); | ||
$name!(T1, T2, T3, T4, T5); | ||
$name!(T1, T2, T3, T4, T5, T6); | ||
$name!(T1, T2, T3, T4, T5, T6, T7); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23); | ||
$name!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24); | ||
}; | ||
} |
Oops, something went wrong.