-
Notifications
You must be signed in to change notification settings - Fork 43
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
support transfer with auth #1341
base: swap-endpoint
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Looks great! Just a few remarks and questions
api/relay/_utils.ts
Outdated
depositData: DepositDataSchema, | ||
validAfter: positiveIntStr(), | ||
validBefore: positiveIntStr(), | ||
nonce: hexString(), |
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 we need to enforce a certain length here?
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.
yes probably a good idea! will add a modifier for this validator
scripts/tests/swap-auth.ts
Outdated
|
||
type AuthPayload = Awaited<ReturnType<typeof buildAuthTxPayload>>; | ||
|
||
async function swapWithPermit() { |
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.
Did you test a relay via auth already? Just out of curiosity
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.
Not yet, got rate limited by CG on first attempt. will address your comments and try again. 👍
No description provided.