-
Notifications
You must be signed in to change notification settings - Fork 103
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
feat(permit): load pre generated permit info #3316
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
// TODO: obviously not final | ||
export const PRE_GENERATED_PERMIT_URL = | ||
'https://raw.githubusercontent.com/cowprotocol/token-lists/bd247cad5146da28ff2fb4704e4ae444642a5535/src/public/PermitInfo' |
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.
Waiting on cowprotocol/token-lists#299 to be merged
apps/cowswap-frontend/src/modules/permit/hooks/useIsTokenPermittable.ts
Outdated
Show resolved
Hide resolved
apps/cowswap-frontend/src/modules/permit/hooks/usePreGeneratedPermitInfo.ts
Outdated
Show resolved
Hide resolved
938ef0c
to
7189a16
Compare
apps/cowswap-frontend/src/modules/permit/hooks/usePreGeneratedPermitInfoForToken.ts
Outdated
Show resolved
Hide resolved
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.
Beautiful ❤️, nice to see how all fits together: new token modal, script, permit check, library etc
e9df6b2
to
15ad18f
Compare
Summary
Part of cowprotocol/token-lists#293
Depends on cowprotocol/token-lists#299
Use the pre-generated permit info data.
To Test
PermitInfo
PermitInfo.<chain id>.json
for the current network you are on0x30d20208d987713f46dfd34ef128bb16c404d10f
(SD) on mainnetpermittableTokens:v1
localStorage