Move.

Beitrag

Teile dein Wissen.

Noro4774.
Feb 05, 2025
Experten Q&A

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
Teilen
Kommentare
.

Antworten

1
Caplec.
Feb 5 2025, 11:02

Derzeit können Sie einen einzigen bereitgestellten Vertrag verwenden, um mithilfe von WASM mehrere Arten von Münzen zu erstellen. Du kannst dir diesen Ansatz hier ansehen: https://docs.sui.io/guides/developer/nft/asset-tokenization. Dies könnte bei Ihrem Ziel helfen, Münzen auf vielseitigere und erlaubnisfreie Weise herzustellen.

1
Beste Antwort
Kommentare
.

Weißt du die Antwort?

Bitte melde dich an und teile sie.

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

148Beiträge231Antworten
Sui.X.Peera.

Verdiene deinen Anteil an 1000 Sui

Sammle Reputationspunkte und erhalte Belohnungen für deine Hilfe beim Wachstum der Sui-Community.

BelohnungskampagneJuli