Skip to content

Integrating Dflow Declarative Swaps with Helium Wallet#857

Draft
rzalovDflow wants to merge 16 commits into
helium:mainfrom
DFlowProtocol:feat/dflow-integration
Draft

Integrating Dflow Declarative Swaps with Helium Wallet#857
rzalovDflow wants to merge 16 commits into
helium:mainfrom
DFlowProtocol:feat/dflow-integration

Conversation

@rzalovDflow
Copy link
Copy Markdown

Integrating Dflow Declarative Swaps with Helium Wallet

Perronef5 and others added 16 commits October 17, 2024 17:46
* 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 <bryanzettler@gmail.com>
* 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 <zhenqian@keyst.one>
* 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 <bryanzettler@gmail.com>
* 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 <bryanzettler@gmail.com>
* 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 <83885631+ChewingGlass@users.noreply.github.com>
* Add provider method deeplinks

* Provider method fixes

* Address comments, fix small screen issues, lat,lng, and more :)

* fix lint

* Rebase

* enable mobile onboarding
Copy link
Copy Markdown
Contributor

@Perronef5 Perronef5 left a 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! 🙂

Comment thread package.json
"@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",
Copy link
Copy Markdown
Contributor

@Perronef5 Perronef5 Feb 2, 2025

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'
Copy link
Copy Markdown
Contributor

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}`)
Copy link
Copy Markdown
Contributor

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')
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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)
Copy link
Copy Markdown
Contributor

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(() => {
Copy link
Copy Markdown
Contributor

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

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.

6 participants