Cetus clmmpool contract may undertake version updates periodically. Old versions may be deprecated as it involves continually. For developers who have conducted their integration with Cetus, they can easily update their integration to the latest version following the instructions.
1. For SDK integrations
You can simply update the clmmpool and integrate published_at in cetus config.
Mainnet Testnet
Copy clmm_pool : {
package_id : '...' ,
published_at : '0x70968826ad1b4ba895753f634b0aea68d0672908ca1075a2abdf0fc9e0b2fc6a' ,
config : {
pools_id : '...' ,
global_config_id : '...' ,
global_vault_id : '...' ,
admin_cap_id : '...' ,
partners_id : '...'
}
} ,
integrate : {
package_id : '...' ,
published_at : '0x6f5e582ede61fe5395b50c4a449ec11479a54d7ff8e0158247adfda60d98970b'
} ,
Copy clmm_pool : {
package_id : '...' ,
published_at : '0x084dbc14f8f6b50e4e1d6828ebf1f93fd1b1d2502b121bc787937893793417b0' ,
config : {
pools_id : '...' ,
global_config_id : '...' ,
global_vault_id : '...' ,
admin_cap_id : '...' ,
partners_id : '...'
}
} ,
integrate : {
package_id : '...' ,
published_at : '0xd55d88490e28ef68d83d2fe7862909dfcef6e43a2f50403f3a461c4678e274f1'
} ,
2. For contract integrations
You can update the dependencies in your project's Move.toml
Mainnet Testnet
Copy [package]
name= "cetus_example"
version = "0.0.1"
[dependencies]
CetusClmm = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", subdir = "sui/clmmpool", rev = "mainnet-v1.23.1" }
[address]
cetus_example = "0x0"
// don't need to define cetus_clmm duplicate
Copy [package]
name= "cetus_example"
version = "0.0.1"
[dependencies]
CetusClmm = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", subdir = "sui/clmmpool", rev = "testnet-v1.23.1" }
[address]
cetus_example = "0x0"
// don't need to define cetus_clmm duplicate
Last updated 6 months ago