Skip to content

Conversation

@samholmes
Copy link
Contributor

@samholmes samholmes commented Aug 26, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)


Note

Introduces the Infinite ramp plugin with full auth/KYC/TOS/bank workflows and new UI scenes, adds a vault for user/bank data, updates deep links/navigation, and enhances shared utilities & inputs.

  • Ramps:
    • Add infinite ramp plugin (src/plugins/ramps/infinite/*) with API client, normalized currency mapping, and workflows: authenticate, KYC (webview/polling), TOS, bank account add, confirmation, transfer status.
    • Register in allRampPlugins.ts; env config supports RAMP_PLUGIN_INITS.infinite.
  • New Scenes (Buy/Sell flow):
    • RampKycFormScene, RampPendingScene, RampBankFormScene, RampBankRoutingDetailsScene, RampConfirmationScene with navigation wiring in Main.tsx and DevTest hooks.
  • Deep Linking & Actions:
    • Add ramp link type handling in DeepLinkTypes, parser, and DeepLinkingActions (including legacy fiatProvider passthrough).
    • WebView utils support deeplink registration callbacks.
  • Vault:
    • New Edge Vault (util/vault/*) to create/update/get personalInfo, addressInfo, bankAccountInfo records; comprehensive tests added.
  • UI Components:
    • FilledTextInput: add minLength, improved message styling (danger/warn), snapshot updates.
    • Minor: deprecate SectionHeading, tweak Paragraph props typing.
  • Utilities/Infra:
    • cleanFetch: switch to URL, add asSearchParams codec; PeriodicTask: setDelay, numeric wait.
    • CurrencyInfoHelpers: add getContractAddress.
    • Ionia provider: migrate to new fetch/URL utils.
  • Locales & Config:
    • Add ramp/KYC/bank/pending/confirmation strings; rename debug flag to DEBUG_VERBOSE_LOGGING.
  • Dependencies:
    • Add @noble/curves and @noble/hashes for signing; lockfile updated.

Written by Cursor Bugbot for commit 28a711f. This will update automatically on new commits. Configure here.

@samholmes samholmes marked this pull request as draft August 26, 2025 18:01
cursor[bot]

This comment was marked as outdated.

@samholmes samholmes force-pushed the sam/infinite-ramp-plugin branch 4 times, most recently from 2311b66 to 9ebe8d3 Compare September 11, 2025 21:47
@Jon-edge Jon-edge force-pushed the sam/infinite-ramp-plugin branch 2 times, most recently from 4a14ce2 to 00f5b8c Compare September 16, 2025 17:27
@samholmes samholmes force-pushed the sam/infinite-ramp-plugin branch 3 times, most recently from 6e2b3b7 to 5cf5c68 Compare October 8, 2025 18:05
@samholmes samholmes marked this pull request as ready for review October 8, 2025 18:43
cursor[bot]

This comment was marked as outdated.

@samholmes samholmes force-pushed the sam/infinite-ramp-plugin branch from 5cf5c68 to 53d9054 Compare October 8, 2025 23:32
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

First round of review. I need to take a closer look at the Infinite API and some other related things.

getAuthState: false, // This is always local, no API call
saveCustomerId: false, // This is always local, no API call
isAuthenticated: false // This is always local, no API call
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I disagree with Cursor on this one. This is critical for development since we don't want to use real funds for testing.

}

resolve({ confirmed: true, transfer })
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Cursor makes a valid point - the funds could come from many utxo's, not necessarily our latest receive address (indeed, this is usually a fresh address for utxo coins). If Infinite.dev is just using this as a refund address, then it's fine. If not, we might need a rethink.

try {
const record = await makeRecord(info)
const json = wasVaultPersonalRecord(record)
await vaultDisklet.setText(`${info.type}/${record.uuid}.json`, json)
Copy link
Contributor

Choose a reason for hiding this comment

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

So we are saving data in edgeVault/{randomHex}.json. Ok, I guess this is fine.

They don't really need to be UUID's - we could do 128 bits of base58 (about 21 characters). This would simplify creating these things, and since we don't really parse them or read into them, it wouldn't affect anybody.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you feel like its worth it to switch from UUID to hex or base58 encoding of random bits, then I'll do it.

Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like we should change the name uuid to recordId or vaultId or such, which says what the ID is used for, not what format it is.

Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

Found a few more things. Now the review is complete.

@samholmes samholmes force-pushed the sam/infinite-ramp-plugin branch from 85e99f7 to 63fa557 Compare October 22, 2025 00:19
Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

All good, aside from renaming uuid to vaultId or something.

@samholmes samholmes force-pushed the sam/infinite-ramp-plugin branch from 63fa557 to 3f584e8 Compare October 22, 2025 20:25
@samholmes samholmes force-pushed the sam/infinite-ramp-plugin branch from 3f584e8 to 28a711f Compare October 22, 2025 20:27
@samholmes samholmes enabled auto-merge October 22, 2025 20:30
@samholmes samholmes merged commit 00f534b into develop Oct 22, 2025
3 checks passed
@samholmes samholmes deleted the sam/infinite-ramp-plugin branch October 22, 2025 21:14
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.

2 participants