Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sui/cetus_clmm/sources/math/tick_math.move
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module cetusclmm::tick_math {
in_range && (i32::mod(index, i32::from(tick_spacing)) == i32::from(0))
}

#[allow(dead_code)]
public fun get_tick_at_sqrt_price(sqrt_price: u128): i32::I32 {
assert!(sqrt_price >= MIN_SQRT_PRICE_X64 && sqrt_price <= MAX_SQRT_PRICE_X64, EINVALID_SQRT_PRICE);
let r = sqrt_price;
Expand Down
23 changes: 13 additions & 10 deletions sui/clmm_vester/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 3
manifest_digest = "3343C8F9B44CEACE7EC0A5BF8954378CE838D92F78D0AB4796AB6A2B9EE02BD8"
manifest_digest = "25BB8A14D2AFF10C66DCBFDFBFA8C7DCDEF832CD53C67C3B6B345A2A23D2D3BE"
deps_digest = "CAFAD8A7CF51067FB4358215BECB86BD100DD64E57C2AC8A7AE7D74B688F5965"
dependencies = [
{ id = "Bridge", name = "Bridge" },
Expand All @@ -16,7 +16,7 @@ dependencies = [

[[move.package]]
id = "Bridge"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "b5633abb4177", subdir = "crates/sui-framework/packages/bridge" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/bridge" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
Expand All @@ -26,7 +26,7 @@ dependencies = [

[[move.package]]
id = "Cetus"
source = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", rev = "mainnet-v1.48.2", subdir = "sui/token/cetus" }
source = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", rev = "mainnet-v1.50.0", subdir = "sui/token/cetus" }

dependencies = [
{ id = "Bridge", name = "Bridge" },
Expand All @@ -37,7 +37,7 @@ dependencies = [

[[move.package]]
id = "CetusClmm"
source = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", rev = "mainnet-v1.49.0", subdir = "sui/cetus_clmm" }
source = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", rev = "mainnet-v1.50.0", subdir = "sui/cetus_clmm" }

dependencies = [
{ id = "Bridge", name = "Bridge" },
Expand All @@ -50,15 +50,18 @@ dependencies = [

[[move.package]]
id = "IntegerMate"
source = { git = "https://github.com/CetusProtocol/integer-mate.git", rev = "sui-v1.2.0", subdir = "sui" }
source = { git = "https://github.com/CetusProtocol/integer-mate.git", rev = "mainnet-v1.3.0", subdir = "" }

dependencies = [
{ id = "Bridge", name = "Bridge" },
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
{ id = "SuiSystem", name = "SuiSystem" },
]

[[move.package]]
id = "MoveSTL"
source = { git = "https://github.com/CetusProtocol/move-stl.git", rev = "mainnet-v1.48.2", subdir = "sui" }
source = { git = "https://github.com/CetusProtocol/move-stl.git", rev = "mainnet-v1.3.0", subdir = "" }

dependencies = [
{ id = "Bridge", name = "Bridge" },
Expand All @@ -69,27 +72,27 @@ dependencies = [

[[move.package]]
id = "MoveStdlib"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "b5633abb4177", subdir = "crates/sui-framework/packages/move-stdlib" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
id = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "b5633abb4177", subdir = "crates/sui-framework/packages/sui-framework" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
]

[[move.package]]
id = "SuiSystem"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "b5633abb4177", subdir = "crates/sui-framework/packages/sui-system" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/sui-system" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
]

[move.toolchain-version]
compiler-version = "1.49.1"
compiler-version = "1.56.1"
edition = "2024.beta"
flavor = "sui"

Expand Down
8 changes: 3 additions & 5 deletions sui/clmm_vester/Move.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[package]
name = "ClmmVester"
edition = "2024.beta"
published-at = "0x9d2f067d3b9d19ac0f8d2e5c2c393b1760232083e42005b2e5df39c06064d522"

[dependencies]
CetusClmm = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", subdir = "sui/cetus_clmm", rev = "mainnet-v1.49.1", override = true }
CetusClmm = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", subdir = "sui/cetus_clmm", rev = "mainnet-v1.50.0", override = true }
# CetusClmm = { local = "../cetus_clmm", override = true }
IntegerMate = { git = "https://github.com/CetusProtocol/integer-mate.git", subdir = "sui", rev = "sui-v1.2.0", override = true }
Cetus = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", subdir = "sui/token/cetus", rev = "mainnet-v1.48.2", override = true }
IntegerMate = { git = "https://github.com/CetusProtocol/integer-mate.git", rev = "mainnet-v1.3.0", override = true }
Cetus = { git = "https://github.com/CetusProtocol/cetus-clmm-interface.git", subdir = "sui/token/cetus", rev = "mainnet-v1.50.0", override = true }

[addresses]
clmm_vester = "0x9d2f067d3b9d19ac0f8d2e5c2c393b1760232083e42005b2e5df39c06064d522"
cetus = "0x6864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b"
18 changes: 9 additions & 9 deletions sui/dca/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 3
manifest_digest = "38C23E3FDFEE0048CEF856892AF2EDD467D223A82F36AFE575A5DAB4185D53BA"
manifest_digest = "127BFC63D86E5252AF3FC8D19135AF7C87F9FB1A950DF93867C102DB66BB9A9F"
deps_digest = "397E6A9F7A624706DBDFEE056CE88391A15876868FD18A88504DA74EB458D697"
dependencies = [
{ id = "Bridge", name = "Bridge" },
Expand All @@ -14,7 +14,7 @@ dependencies = [

[[move.package]]
id = "Bridge"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "3802482bd4e3", subdir = "crates/sui-framework/packages/bridge" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/bridge" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
Expand All @@ -24,7 +24,7 @@ dependencies = [

[[move.package]]
id = "MoveSTL"
source = { git = "https://github.com/CetusProtocol/move-stl.git", rev = "mainnet-v1.48.2", subdir = "sui" }
source = { git = "https://github.com/CetusProtocol/move-stl.git", rev = "mainnet-v1.3.0", subdir = "" }

dependencies = [
{ id = "Bridge", name = "Bridge" },
Expand All @@ -35,27 +35,27 @@ dependencies = [

[[move.package]]
id = "MoveStdlib"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "3802482bd4e3", subdir = "crates/sui-framework/packages/move-stdlib" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
id = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "3802482bd4e3", subdir = "crates/sui-framework/packages/sui-framework" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
]

[[move.package]]
id = "SuiSystem"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "3802482bd4e3", subdir = "crates/sui-framework/packages/sui-system" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/sui-system" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
]

[move.toolchain-version]
compiler-version = "1.48.2"
compiler-version = "1.56.1"
edition = "2024.beta"
flavor = "sui"

Expand All @@ -64,5 +64,5 @@ flavor = "sui"
[env.mainnet]
chain-id = "35834a8a"
original-published-id = "0x587614620d0d30aed66d86ffd3ba385a661a86aa573a4d579017068f561c6d8f"
latest-published-id = "0x587614620d0d30aed66d86ffd3ba385a661a86aa573a4d579017068f561c6d8f"
published-version = "1"
latest-published-id = "0xbeb32dee947006e0c22374d11af3fec2af862d380dea69488939dc4398d3daa9"
published-version = "2"
2 changes: 1 addition & 1 deletion sui/dca/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "DCA"
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move

[dependencies]
MoveSTL = { git = "https://github.com/CetusProtocol/move-stl.git", subdir = "sui", rev = "mainnet-v1.48.2", override = true }
MoveSTL = { git = "https://github.com/CetusProtocol/move-stl.git", rev = "mainnet-v1.3.0", override = true }

[addresses]
dca = "0x587614620d0d30aed66d86ffd3ba385a661a86aa573a4d579017068f561c6d8f"
23 changes: 13 additions & 10 deletions sui/limit-order/Move.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[move]
version = 3
manifest_digest = "CFCDB106FC4B1533F60AB2D716F1C5D68F269D3D88E2C070C4731148968FD271"
manifest_digest = "E233BB00E616739104DC841CDA07600EF18639E2D5460DF435D8498D0B0BDC54"
deps_digest = "52B406A7A21811BEF51751CF88DA0E76DAEFFEAC888D4F4060B1A72BBE7D8D35"
dependencies = [
{ id = "Bridge", name = "Bridge" },
Expand All @@ -15,7 +15,7 @@ dependencies = [

[[move.package]]
id = "Bridge"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "3802482bd4e3", subdir = "crates/sui-framework/packages/bridge" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/bridge" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
Expand All @@ -25,15 +25,18 @@ dependencies = [

[[move.package]]
id = "IntegerMate"
source = { git = "https://github.com/CetusProtocol/integer-mate.git", rev = "sui-v1.1.2", subdir = "sui" }
source = { git = "https://github.com/CetusProtocol/integer-mate.git", rev = "mainnet-v1.3.0", subdir = "" }

dependencies = [
{ id = "Bridge", name = "Bridge" },
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
{ id = "SuiSystem", name = "SuiSystem" },
]

[[move.package]]
id = "MoveSTL"
source = { git = "https://github.com/CetusProtocol/move-stl.git", rev = "mainnet-v1.48.2", subdir = "sui" }
source = { git = "https://github.com/CetusProtocol/move-stl.git", rev = "mainnet-v1.3.0", subdir = "" }

dependencies = [
{ id = "Bridge", name = "Bridge" },
Expand All @@ -44,27 +47,27 @@ dependencies = [

[[move.package]]
id = "MoveStdlib"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "3802482bd4e3", subdir = "crates/sui-framework/packages/move-stdlib" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
id = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "3802482bd4e3", subdir = "crates/sui-framework/packages/sui-framework" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
]

[[move.package]]
id = "SuiSystem"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "3802482bd4e3", subdir = "crates/sui-framework/packages/sui-system" }
source = { git = "https://github.com/MystenLabs/sui.git", rev = "664b05b3b047c5bb03979d093660176176ea6175", subdir = "crates/sui-framework/packages/sui-system" }

dependencies = [
{ id = "MoveStdlib", name = "MoveStdlib" },
{ id = "Sui", name = "Sui" },
]

[move.toolchain-version]
compiler-version = "1.48.2"
compiler-version = "1.56.1"
edition = "2024"
flavor = "sui"

Expand All @@ -73,5 +76,5 @@ flavor = "sui"
[env.mainnet]
chain-id = "35834a8a"
original-published-id = "0x533fab9a116080e2cb1c87f1832c1bf4231ab4c32318ced041e75cc28604bba9"
latest-published-id = "0x533fab9a116080e2cb1c87f1832c1bf4231ab4c32318ced041e75cc28604bba9"
published-version = "1"
latest-published-id = "0x37d6284f2c6cdeb5663124be7e44016399b1b657bc51564d67ec480bdff15491"
published-version = "3"
4 changes: 2 additions & 2 deletions sui/limit-order/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name = "LimitOrder"
version = "0.1.1"

[dependencies]
MoveSTL = { git = "https://github.com/CetusProtocol/move-stl.git", subdir = "sui", rev = "mainnet-v1.48.2", override = true }
IntegerMate = { git = "https://github.com/CetusProtocol/integer-mate.git", subdir = "sui", rev = "sui-v1.1.2", override = true }
MoveSTL = { git = "https://github.com/CetusProtocol/move-stl.git", rev = "mainnet-v1.3.0", override = true }
IntegerMate = { git = "https://github.com/CetusProtocol/integer-mate.git", rev = "mainnet-v1.3.0", override = true }


[addresses]
Expand Down
5 changes: 5 additions & 0 deletions sui/limit-order/sources/order.move
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ module limit_order::limit_order {
/// - `_rate_orders_indexers`: Reference to the rate orders indexers.
/// - `_clock`: Reference to the clock.
/// - `_ctx`: Reference to the transaction context.
#[allow(lint(public_entry))]
public entry fun create_rate_orders_indexer<PayCoin, TargetCoin>(
_config: &GlobalConfig,
_rate_orders_indexers: &mut RateOrdersIndexers,
Expand All @@ -221,6 +222,7 @@ module limit_order::limit_order {
/// - `_expire_ts`: The expiration timestamp of the order.
/// - `_clock`: Reference to the clock.
/// - `_ctx`: Reference to the transaction context.
#[allow(lint(public_entry))]
public entry fun place_limit_order<PayCoin, TargetCoin>(
_config: &GlobalConfig,
_rate_orders_indexer: &mut RateOrdersIndexer<PayCoin, TargetCoin>,
Expand All @@ -244,6 +246,7 @@ module limit_order::limit_order {
/// - `_expire_ts`: The expiration timestamp of the order.
/// - `_clock`: Reference to the clock.
/// - `_ctx`: Reference to the transaction context.
#[allow(lint(public_entry))]
public entry fun create_indexer_and_place_limit_order<PayCoin, TargetCoin>(
_config: &GlobalConfig,
_rate_orders_indexers: &mut RateOrdersIndexers,
Expand Down Expand Up @@ -327,6 +330,7 @@ module limit_order::limit_order {
/// Parameters:
/// - `_owner`: The owner address.
/// - `_user_orders_indexer`: Reference to the user orders indexer.
#[allow(lint(public_entry))]
public entry fun get_orders_indexer_by_owner(
_owner: address,
_user_orders_indexer: &UserOrdersIndexer
Expand All @@ -338,6 +342,7 @@ module limit_order::limit_order {
/// Parameters:
/// - `_rate`: The rate at which the order is placed.
/// - `_rate_orders_indexer`: Reference to the rate orders indexer.
#[allow(lint(public_entry))]
public entry fun get_orders_indexer_by_rate<PayCoin, TargetCoin>(
_rate: u128,
_rate_orders_indexer: &RateOrdersIndexer<PayCoin, TargetCoin>
Expand Down
Loading