Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module-asset-registry #1574

Closed
xlc opened this issue Nov 2, 2021 · 2 comments · Fixed by #1598
Closed

module-asset-registry #1574

xlc opened this issue Nov 2, 2021 · 2 comments · Fixed by #1598
Assignees

Comments

@xlc
Copy link
Member

xlc commented Nov 2, 2021

Allow to support foreign asset without runtime upgrade

  • Types
    • enum CurrencyId
      • Token(TokenSymbol)
      • DexShare(DexShare, DexShare)
        • Token(TokenSymbol)
        • Erc20(EvmAddress)
        • LiquidCroadloan(Lease)
        • ForeignAsset(ForeignAssetId)
      • Erc20(EvmAddress)
      • StableAssetPoolToken(PoolId)
      • LiquidCroadloan(Lease)
      • ForeignAsset(ForeignAssetId)
    • type ForeignAssetId = u16
  • module-asset-registry
    • types
      • struct AssetMetadata
        • name: Vec<u8>
        • symbol: Vec<u8>
        • decimals: u8
        • minimal_balance: Balance
    • config
      • type RegisterOrigin: EnsureOrigin
        • root or half council
    • storages
      • AssetMetadatas: map MultiLocation => metadata
    • calls
      • fn register_foreign_asset(origin, loc: VersionedMultiLocation, metadata: AssetMetadata)
        • ensure RegisterOrigin
      • fn update_foreign_asset(origin, loc: VersionedMultiLocation, metadata: AssetMetadata)
        • ensure RegisterOrigin

Needs to be merged with evm-manager

@zqhxuyuan
Copy link
Contributor

zqhxuyuan commented Nov 11, 2021

does this feature something like open-web3-stack/orml-token-registry#1 ? or maybe this feature more focus on EVM?

@xlc
Copy link
Member Author

xlc commented Nov 11, 2021

They are mostly unrelated. Token registry is a way for everyone to register & share token information. This is about a pallet that allow governance to specify token information via proposals.

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 a pull request may close this issue.

3 participants