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

IGP interaction refactor #101

Merged
merged 7 commits into from
Jan 5, 2024
Merged

IGP interaction refactor #101

merged 7 commits into from
Jan 5, 2024

Conversation

jmrossy
Copy link
Collaborator

@jmrossy jmrossy commented Jan 2, 2024

Ensure review details and balance validation handle all IGP exceptional cases

  • Refactor IGP token selection into useIgpQuote hook
  • Refactor form validation code for legibility
  • DRY up code between useTokenTransfer and other IGP interactions
  • Update to SDK 3.5.1 for cosmos token adapter fix

See #98 for preview build off neutron branch

@jmrossy jmrossy requested a review from yorhodes January 2, 2024 18:00
@jmrossy jmrossy requested a review from nambrot as a code owner January 2, 2024 18:00
Copy link

vercel bot commented Jan 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperlane-warp-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 5, 2024 4:06pm

@@ -27,7 +27,6 @@
"@typescript-eslint/ban-ts-comment": ["off"],
"@typescript-eslint/explicit-module-boundary-types": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-floating-promises": ["error"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed this because the latest formik version makes a bunch of benign form interactions async. They did that to support react ssr/suspense.

@@ -31,7 +31,7 @@
"bignumber.js": "^9.1.1",
"buffer": "^6.0.3",
"cosmjs-types": "^0.9.0",
"formik": "^2.2.9",
"formik": "^2.4.5",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Upgrading to enable async form validation

@@ -506,103 +486,6 @@ function ReviewDetails({ visible, tokenRoutes }: { visible: boolean; tokenRoutes
);
}

function validateFormValues(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved to it's own file and reorganized (see below)

@jmrossy jmrossy merged commit f350144 into main Jan 5, 2024
6 checks passed
@jmrossy jmrossy deleted the igp-refactor branch January 5, 2024 16:07
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.

1 participant