Skip to content
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

Merged
merged 39 commits into from
Dec 16, 2024
Merged

Add express relay rust client #280

merged 39 commits into from
Dec 16, 2024

Conversation

danimhr
Copy link
Contributor

@danimhr danimhr commented Dec 3, 2024

This PR aims to add rust sdk for express relay

@danimhr danimhr marked this pull request as draft December 3, 2024 17:38
@danimhr danimhr marked this pull request as ready for review December 4, 2024 18:09
@danimhr danimhr marked this pull request as draft December 4, 2024 18:22
@danimhr danimhr marked this pull request as ready for review December 10, 2024 20:12
@danimhr danimhr marked this pull request as draft December 10, 2024 20:13
@danimhr danimhr closed this Dec 10, 2024
@danimhr danimhr reopened this Dec 10, 2024
@danimhr danimhr marked this pull request as ready for review December 10, 2024 20:17
@danimhr danimhr closed this Dec 10, 2024
@danimhr danimhr reopened this Dec 10, 2024
@danimhr danimhr changed the title [WIP] Add express relay rust client Add express relay rust client Dec 11, 2024
Copy link
Collaborator

@m30m m30m left a 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)?;
Copy link
Collaborator

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?

Copy link
Collaborator

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

auction-server/src/opportunity/api.rs Outdated Show resolved Hide resolved
sdk/rust/src/evm.rs Outdated Show resolved Hide resolved
auction-server/api-types/src/lib.rs Outdated Show resolved Hide resolved
auction-server/api-types/src/opportunity.rs Outdated Show resolved Hide resolved
sdk/rust/src/lib.rs Show resolved Hide resolved
sdk/rust/src/lib.rs Show resolved Hide resolved
sdk/rust/src/lib.rs Show resolved Hide resolved
sdk/rust/src/lib.rs Outdated Show resolved Hide resolved
sdk/rust/abi/ERC20.sol/ERC20.json Show resolved Hide resolved
sdk/rust/simple-searcher/src/main.rs Outdated Show resolved Hide resolved
sdk/rust/src/lib.rs Show resolved Hide resolved
sdk/rust/simple-searcher/src/main.rs Outdated Show resolved Hide resolved
sdk/rust/simple-searcher/src/main.rs Show resolved Hide resolved
sdk/rust/src/lib.rs Outdated Show resolved Hide resolved
.await
.map_err(|e| ClientError::WsConnectFailed(e.to_string()))?;

let (request_sender, request_receiver) = mpsc::unbounded_channel();
Copy link
Collaborator

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?

sdk/rust/abi/ERC20.sol/ERC20.json Show resolved Hide resolved
@@ -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)?;
Copy link
Collaborator

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() {
}
}


Copy link
Collaborator

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
Copy link
Contributor

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

@danimhr danimhr merged commit 9b2320e into main Dec 16, 2024
1 check passed
@danimhr danimhr deleted the feat/rust-sdk branch December 16, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants