Sui.

Post

Share your knowledge.

deriss.
Jan 15, 2025
Discussion

Should I group Solidity contracts into one Move contract on Sui?

Hey folks! I'm a Solidity developer who is making the switch to Sui and Move. I've got three separate contracts written in Solidity that serve different purposes—A for depositing assets, B for handling some math operations, and C for creating and minting tokens. As I'm migrating to the Sui network, should I consolidate these into a single Move package, or keep them separate? If separate, how do I manage inter-contract calls as I would in Solidity?

  • Sui
  • Architecture
1
1
Share
Comments
.

Answers

1
elfDani.
Jan 16 2025, 11:12

It's generally a good idea to group your contracts into a single Move package on Sui. This approach simplifies management and deployment since Sui Move contracts are packaged with a Move.toml manifest describing the package and its dependencies . Inter-contract calls in Move can be made by including other packages as dependencies in your Move.toml file. Once declared, you can import and call public functions from these modules just like you would in Solidity .

1
Best Answer
Comments
.

Do you know the answer?

Please log in and share it.

Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.

367Posts503Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJuly