Skip to content

Clean up usage of assetId#4763

Draft
valentunn wants to merge 1 commit intodevfrom
chore/clean_up_assetId
Draft

Clean up usage of assetId#4763
valentunn wants to merge 1 commit intodevfrom
chore/clean_up_assetId

Conversation

@valentunn
Copy link

  • Introduce clean separation between on-chain and local ids by introducingOnChainAsset and using AssetId more
  • Unify asset transaction args by removing assetId from call data decoder. We always use asset now
  • Introduce getOnChainAssetId which is a replacement for getAssetId which was mixing local and on-chain ids
  • Remove getAssetByTypeExtras

NOTE: I have not tested this PR so someone should go through it

@github-actions
Copy link
Contributor

Unit Test Results

  1 files  152 suites   22s ⏱️
648 tests 638 ✅ 10 💤 0 ❌
798 runs  788 ✅ 10 💤 0 ❌

Results for commit c83cf16.

* this asset. Note that this can have different type depending on the type of
* the corresponding asset
*/
export type OnChainAssetId = string | number | 'Native';
Copy link
Author

Choose a reason for hiding this comment

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

Can someone confirm whether storing 'Native' for native in the db is fine in terms of backward compatibility?

@valentunn valentunn marked this pull request as draft September 25, 2025 18:19
@valentunn
Copy link
Author

Drafted untill correctness is verified

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.

1 participant