Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Commit 1adab7d

Browse files
committed
Export default_token_rank from gemstone
Expose AssetScore::default().rank as a uniffi function so iOS and Android can pull the default token rank from a single source instead of hardcoding 15 in each platform.
1 parent 4f2e52f commit 1adab7d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎gemstone/src/models/asset.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use primitives::{Asset, AssetId, AssetType, Chain};
1+
use primitives::{Asset, AssetId, AssetScore, AssetType, Chain};
22

33
pub type GemAsset = Asset;
44
pub type GemAssetId = AssetId;
@@ -46,6 +46,11 @@ pub fn asset_default_rank(chain: Chain) -> i32 {
4646
get_default_rank(chain)
4747
}
4848

49+
#[uniffi::export]
50+
pub fn default_token_rank() -> i32 {
51+
AssetScore::default().rank
52+
}
53+
4954
#[uniffi::export]
5055
pub fn asset_wrapper(chain: Chain) -> GemAsset {
5156
get_asset(chain)

0 commit comments

Comments
 (0)