Best Practises
For package authors/maintainers, the following best practises are recommended when saving your source code to make sure that your package is easily usable by other developers.
- Whenever you publish/upgrade a package, you need to use the Automated Address Management (opens in a new tab)
- It's recommended to switch your
Sui
dependency to the correct network you're publishing/upgrading against (e.g.framework/testnet
for testnet,framework/mainnet
for mainnet). - After properly configuring your Automated Address Management, you should commit your changes to your git repository.
- Make sure this commit is also tagged OR is part of your main branch. A good practise is tagging your releases with network/verson (e.g.
mainnet/v1
). - You can then use the commit SHA or the tag to update the source code origin in the
PackageInfo
object.