The dependencies section of your Move.toml allows you to specify packages, such as the Sui package, which needs a pointer to the correct github repository and branch:
And then you would import that package and module into your module like so:
module my_package::my_module {
use sui::object::{Self, ID, UID};
}
Where sui is the imported package, object is the imported module, ID, and UID are structs in the module, and Self allows you to reference the module functions (e.g. object::new())
The dependencies section of your Move.toml allows you to specify packages, such as the Sui package, which needs a pointer to the correct github repository and branch:
And then you would import that package and module into your module like so:
Where
sui
is the imported package, object is the importedmodule
,ID
, andUID
are structs in the module, andSelf
allows you to reference the module functions (e.g.object::new()
)