-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add inbound queue #4
Conversation
bridges/snowbridge/pallets/inbound-queue/src/xcm_message_processor.rs
Outdated
Show resolved
Hide resolved
use snowbridge_router_primitives::inbound::{MessageProcessor, VersionedXcmMessage}; | ||
use sp_runtime::DispatchError; | ||
|
||
pub struct XcmMessageProcessor<T>(PhantomData<T>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would probably call it some other thing but it is likely that snowbridge will tell you how to name it. So for me this is good enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reason why I named it XcmMessageProcessor
as it expects incoming message to be converted to xcm. :) But, let's see what snowbridge thinks.
use alloy_primitives::B256; | ||
use alloy_sol_types::{sol, SolEvent}; | ||
|
||
sol! { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this macro?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sol!
macro takes an event declaration in solidity and provides helper functions and also struct to work with that event data. Like encoding/decoding etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for me it looks good, but please can you investigate what sol!
does?
4e6395c
into
tanssi-polkadot-stable2407
* modify inbound queue to support custom message processing * passively test tuple trait implementation * rename XCM to Xcm everywhere * add comment explaining MessageProcessor
* modify inbound queue to support custom message processing * passively test tuple trait implementation * rename XCM to Xcm everywhere * add comment explaining MessageProcessor
* modify inbound queue to support custom message processing * passively test tuple trait implementation * rename XCM to Xcm everywhere * add comment explaining MessageProcessor
No description provided.