Bài viết
Chia sẻ kiến thức của bạn.
How to create multiple coins onchain via modules?
I'm trying to develop a module that can generate coins for prediction markets. I want these coins to be created by a factory class on-chain in a permissionless, verifiable way. However, I'm facing limitations with modules being unable to publish other modules and the restriction of initializing only one coin per module due to One Time Witness. I've also had to make my equivalent coin standard, which doesn't display as coins in users' wallets. Could there be a way to allow modules to create multiple types of coins on-chain in the next update?
- Move CLI
Câu trả lời
1Hiện tại, bạn có thể sử dụng một hợp đồng triển khai duy nhất để tạo nhiều loại coin bằng WASM. Bạn có thể kiểm tra cách tiếp cận này tại đây: https://docs.sui.io/guides/developer/nft/asset-tokenization. Điều này có thể giúp bạn đạt được mục tiêu tạo ra tiền xu một cách linh hoạt hơn và không cần sự cho phép.
Bạn có biết câu trả lời không?
Hãy đăng nhập và chia sẻ nó.