When trying to use animeswap modules in sui network, you cannot use it since modules named as defi, not as animeswap:
[dependencies]
Sui = {git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "sui-v1.0.0", override = true}
animeswap = {git = 'https://github.com/AnimeSwap/sui-v1-core.git', subdir = ".", rev = 'v1.0.0'}
Error while using it:
Invalid 'use'. Unbound module: 'animeswap::animeswap_library'
Using as defi solves the issue:
use defi::animeswap_library
How to solve the issue?
By changing the move.toml:
[addresses]
defi = "0x0"
sui = "0x2"
std = "0x1"
to
[addresses]
animeswap = "0x0"
sui = "0x2"
std = "0x1"
And also Readme has an issue, the version should start with v, and animeswap needs to be all lowercase but in readme it looks like this:
[dependencies.animeSwap]
git = 'https://github.com/AnimeSwap/sui-v1-core.git'
rev = '1.0.0'
should be:
[dependencies.animeswap]
git = 'https://github.com/AnimeSwap/sui-v1-core.git'
rev = 'v1.0.0'
When trying to use animeswap modules in sui network, you cannot use it since modules named as defi, not as animeswap:
Error while using it:
Using as defi solves the issue:
How to solve the issue?
By changing the move.toml:
to
And also Readme has an issue, the version should start with v, and animeswap needs to be all lowercase but in readme it looks like this:
should be: