Skip to content

Conversation

@danielgranhao
Copy link
Contributor

@danielgranhao danielgranhao commented Sep 8, 2025

This proposes the use of UniFFI custom types for exposing u128 to our bindings.

TODO:

  • Swift
  • Javascript / Wasm
  • React Native
  • Kotlin
  • Flutter
  • Python
  • Go

@danielgranhao danielgranhao force-pushed the daniel-breez-sdk-token-support branch 3 times, most recently from ba0a2df to f5749cc Compare September 9, 2025 10:49
@danielgranhao danielgranhao force-pushed the daniel-custom-u128-type branch from a2b6199 to 197e635 Compare September 9, 2025 12:36
@danielgranhao danielgranhao force-pushed the daniel-breez-sdk-token-support branch 4 times, most recently from a538481 to 598f73a Compare September 16, 2025 14:34
@dangeross dangeross force-pushed the daniel-breez-sdk-token-support branch from 27dbbe3 to 92dc1cb Compare September 24, 2025 12:21
@dangeross dangeross force-pushed the daniel-custom-u128-type branch 2 times, most recently from 0df0e80 to 95db261 Compare September 24, 2025 13:06
@danielgranhao danielgranhao force-pushed the daniel-breez-sdk-token-support branch 2 times, most recently from 9182f6b to 9c70b27 Compare October 6, 2025 12:08
@danielgranhao danielgranhao force-pushed the daniel-custom-u128-type branch 2 times, most recently from 4f729b4 to a6eb7d7 Compare October 7, 2025 16:12
Base automatically changed from daniel-breez-sdk-token-support to main October 7, 2025 23:34
@danielgranhao danielgranhao force-pushed the daniel-custom-u128-type branch from a6eb7d7 to e1a8ab0 Compare October 7, 2025 23:41
Copy link
Member

@roeierez roeierez left a comment

Choose a reason for hiding this comment

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

LGTM

@danielgranhao danielgranhao requested a review from roeierez October 8, 2025 15:28
@danielgranhao danielgranhao marked this pull request as ready for review October 8, 2025 15:28
Copy link
Member

@roeierez roeierez left a comment

Choose a reason for hiding this comment

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

LGTM


[custom_types.common_u128]
type_name = "BigInteger"
imports = [ "com.ionspin.kotlin.bignum.integer.BigInteger" ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there an issue using java.math.BigInteger in kotlin multiplatform?

Copy link
Contributor Author

@danielgranhao danielgranhao Oct 8, 2025

Choose a reason for hiding this comment

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

IIUC it isn't available on native Kotlin (only in JVM envs) so we can't use it in multiplatform kotlin

Co-authored-by: Ross Savage <[email protected]>
Copy link
Contributor

@dangeross dangeross left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, should help with testing

@danielgranhao danielgranhao merged commit aed6ddd into main Oct 9, 2025
8 checks passed
@danielgranhao danielgranhao deleted the daniel-custom-u128-type branch October 9, 2025 08:29
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.

4 participants