-
Notifications
You must be signed in to change notification settings - Fork 38
Integrating Dflow Declarative Swaps with Helium Wallet #857
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
base: main
Are you sure you want to change the base?
Conversation
* Design tokens (helium#809) * Progress * Fix lint * Fix lint * Remove light theme * Fix some colors * More progress * Bump major and fix fastlane * Fix onboarding and more UI tweaks * Fix service sheet title * Fix hotspot and payment screens * Show wallet service by default * Fix initial wallet balance on load * Fix governance screens * More fixes * Fix more lint * More fixes * More fixes * More fixes * More fixes :) * Fix Account page nav and collectables fetching * Fix lint * Fix HNT keyboard * Fix text transform * Fix scoll boxes on android * Cache tokens * Fix voter screens * More UI fixes * Fix refresh control and transfer assets * Fix address book and lock tokens preview * Fix crash in nft list when no approved collections are present * Fix sheets * Move map ledged up off curve * Add animated balance text * Add VirtualizedLists to ignore log * Fix balance text color and pin screen font * Animate fractionals in balance text * More fixes * Rebase and address comments --------- Co-authored-by: bry <[email protected]>
* fix: fix keystone account assign screen ui * fix: remove unused code when reimport account * fix: fix text color * chore: refactor keystone reimport accounts logic --------- Co-authored-by: ZhenQian <[email protected]>
* bump deps (helium#821) * bump deps 0.9.12 (helium#822) * Fix getPositionKeysForOwner args (helium#823) * Fix bug when claiming all with custom destination --------- Co-authored-by: Bryan <[email protected]>
* Hotspot onboarding v3 * Update IOT onboarding * Fix lint * Remove maplibre patch * Add lat,lng, and elevation when onboarding IOT * Fix lint and fix app structure * Fix lint * Add connect via bluetooth screen * Fix keyboard in iot onboarding * Allow user to skip if wifi is configured * Attempt to fix error showing up by default for scan * Fix delegate screen
* bump deps (helium#821) * bump deps 0.9.12 (helium#822) * Fix getPositionKeysForOwner args (helium#823) * 2.10.1 * update hooks to use prop conditional when fetching new output (helium#824) * Fix bug when claiming all with custom destination (helium#832) * Show jupiter error before tx error --------- Co-authored-by: Bryan <[email protected]>
* New onboarding * Fix lint * Add new splash screen * Disable mobile onboarding * Address comments
* Add missing sequentially (helium#837) * fix (helium#840) * fix * better logic for expired * tweak * bump deps 0.9.18 (helium#841) * Take a refactor pass on SwapScreen (helium#845) --------- Co-authored-by: Noah Prince <[email protected]>
* Add provider method deeplinks * Provider method fixes * Address comments, fix small screen issues, lat,lng, and more :) * fix lint * Rebase * enable mobile onboarding
…ded flow to useSubmitTx
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.
Some concerns here. Please attach a demo for iOS and Android. Thanks! 🙂
@@ -31,6 +31,7 @@ | |||
"@babel/preset-typescript": "7.21.0", | |||
"@bonfida/spl-name-service": "1.1.1", | |||
"@coral-xyz/anchor": "0.28.0", | |||
"@dflow-protocol/swap-api-utils": "^0.1.2", |
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.
All dependencies must be pinned. Please pin 🙂. Thanks!
} from 'react' | ||
import * as Logger from '@utils/logger' | ||
|
||
const AGGREGATOR_API_BASE_URL = 'https://quote-api.dflow.net' |
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.
Can this go into a constants file?
) | ||
|
||
if (!response.ok) { | ||
throw new Error(`Failed to get quote: ${response.statusText}`) |
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.
Can we add this to the en.ts file
const signIntent = useCallback( | ||
async (intentData: Intent): Promise<Transaction> => { | ||
if (!intentData.openTransaction) { | ||
throw new Error('No open transaction found in intent data') |
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.
This should go in the en.ts file
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.
Why was the Jupiter provider deleted?
case ORDER_STATUS.CLOSED: { | ||
if (result.fills.length > 0) { | ||
setSuccess(true) | ||
setTimeout(() => navigation.goBack(), 2000) |
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.
A set timeout seems like it will not always work. Why do we need this?
const solanaPayment = useSelector( | ||
(reduxState: RootState) => reduxState.solana.payment, | ||
) | ||
useEffect(() => { |
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.
Having this monitor in the use effect may lock the UI thread
Integrating Dflow Declarative Swaps with Helium Wallet