-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eth-bytecode-db - search event signatures (#698)
* Add event descriptions search * Insertion of the event signatures into database implementation * Add tests * Add BatchSearchEventDescriptions endpoint definition. Add test cases for batch-search * Add BatchSearchEventDescriptions implementation
- Loading branch information
1 parent
d912133
commit ff9c358
Showing
30 changed files
with
1,208 additions
and
87 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
16 changes: 16 additions & 0 deletions
16
eth-bytecode-db/eth-bytecode-db-server/src/types/event_description.rs
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,16 @@ | ||
use crate::proto; | ||
use amplify::{From, Wrapper}; | ||
use eth_bytecode_db::search; | ||
|
||
#[derive(Wrapper, From, Clone, Debug, PartialEq)] | ||
pub struct EventDescriptionWrapper(proto::EventDescription); | ||
|
||
impl From<search::EventDescription> for EventDescriptionWrapper { | ||
fn from(value: search::EventDescription) -> Self { | ||
EventDescriptionWrapper(proto::EventDescription { | ||
r#type: "event".to_string(), | ||
name: value.name, | ||
inputs: value.inputs.to_string(), | ||
}) | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
mod enums; | ||
mod event_description; | ||
mod source; | ||
mod verification_metadata; | ||
mod verify_response; | ||
|
||
pub use enums::{BytecodeTypeWrapper, MatchTypeWrapper, SourceTypeWrapper}; | ||
pub use event_description::EventDescriptionWrapper; | ||
pub use source::SourceWrapper; | ||
pub use verification_metadata::VerificationMetadataWrapper; | ||
pub use verify_response::VerifyResponseWrapper; |
Oops, something went wrong.