-
Notifications
You must be signed in to change notification settings - Fork 5
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 express relay rust client #280
Conversation
aa6a452
to
af6d342
Compare
0e66242
to
de939a9
Compare
cfada1c
to
de9d8dd
Compare
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.
very nice implementation.
@@ -71,7 +72,10 @@ pub mod nullable_datetime { | |||
S: Serializer, | |||
{ | |||
match b { | |||
Some(b) => s.serialize_str(b.to_string().as_str()), | |||
Some(b) => { | |||
let formatted = b.format(&Rfc3339).map_err(ser::Error::custom)?; |
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.
can you add some comment on why this is needed?
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 I meant was what is the difference of this and the previous logic we used
17cff85
to
8eff822
Compare
.await | ||
.map_err(|e| ClientError::WsConnectFailed(e.to_string()))?; | ||
|
||
let (request_sender, request_receiver) = mpsc::unbounded_channel(); |
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.
do you know why they made that decision? Which variant do you think makes more sense in our usecase?
@@ -71,7 +72,10 @@ pub mod nullable_datetime { | |||
S: Serializer, | |||
{ | |||
match b { | |||
Some(b) => s.serialize_str(b.to_string().as_str()), | |||
Some(b) => { | |||
let formatted = b.format(&Rfc3339).map_err(ser::Error::custom)?; |
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 I meant was what is the difference of this and the previous logic we used
@@ -36,7 +36,6 @@ fn build_evm_contracts() { | |||
} | |||
} | |||
|
|||
|
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.
we can simplify this build script as well since we have committed the json files
@@ -0,0 +1,17 @@ | |||
name: Publish Express Relay Client to crates.io |
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.
Seems weird that both github workflows have the same name and job name
This PR aims to add rust sdk for express relay