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 Builder Codes #66

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

Frixoe
Copy link
Contributor

@Frixoe Frixoe commented Nov 28, 2024

I've added the initial builder codes approval code having referenced it from the python sdk and I think I'm missing something in the implementation related to my understanding of the builders code API.

When I tried running it initially I got a 422 and now I get a 403 but that's probably a personal environment issue. But would be great to get some feedback on the current implementation. Please ignore the info! lines.

Copy link
Contributor

@lmlmt lmlmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good. Mostly style nits

src/bin/approve_builder_fee.rs Outdated Show resolved Hide resolved
src/bin/approve_builder_fee.rs Outdated Show resolved Hide resolved
src/bin/approve_builder_fee.rs Outdated Show resolved Hide resolved
@@ -293,3 +293,10 @@ pub struct VaultTransfer {
pub struct SetReferrer {
pub code: String,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#[derive(Serialize, Deserialize, Debug, Clone)]
#[derive(Debug, Clone, Serialize, Deserialize)]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But every other action has the derive attribute traits in that order. Should I still change it?

src/exchange/exchange_client.rs Outdated Show resolved Hide resolved
@Frixoe Frixoe requested a review from lmlmt November 30, 2024 14:08
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.

2 participants