Move.

Bài viết

Chia sẻ kiến thức của bạn.

Noro4774.
Feb 05, 2025
Hỏi đáp Chuyên Gia

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
2
1
Chia sẻ
Bình luận
.

Câu trả lời

1
Caplec.
Feb 5 2025, 11:02

Hiệ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.

1
Câu trả lời hay nhất
Bình luận
.

Bạn có biết câu trả lời không?

Hãy đăng nhập và chia sẻ nó.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Bài viết231Câu trả lời
Sui.X.Peera.

Kiếm phần của bạn từ 1000 Sui

Tích lũy điểm danh tiếng và nhận phần thưởng khi giúp cộng đồng Sui phát triển.

Chiến dịch phần thưởngTháng Bảy