Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Cleanup Cetus tx_builder.rs and add tests - #1133

Merged
0xh3rman merged 2 commits into
mainfrom
sui-proto-clean
May 16, 2026
Merged

0xh3rman merged 2 commits into
mainfrom
sui-proto-clean

Conversation

@0xh3rman

Copy link
Copy Markdown
Collaborator

No description provided.

@0xh3rman 0xh3rman changed the title cleanup tx_builder.rs and add tests Cleanup Cetus tx_builder.rs and add tests May 16, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements protobuf varint overflow checks, optimizes byte field encoding, and adds comprehensive tests for SUI RPC message decoding and encoding. It also refactors address handling in the SUI transaction builder to use SuiAddress and standard Rust conversion traits. Review feedback points out a missing FromStr implementation for SuiAddress, identifies inconsistent error handling in address parsing within the swapper crate, and suggests restoring helper functions to improve code modularity and readability.

Comment thread crates/gem_sui/src/address.rs
Comment thread crates/swapper/src/cetus_clmm/tx_builder.rs Outdated
Comment thread crates/swapper/src/cetus_clmm/tx_builder.rs
@0xh3rman
0xh3rman merged commit e7e2de9 into main May 16, 2026
4 checks passed
@0xh3rman
0xh3rman deleted the sui-proto-clean branch May 16, 2026 03:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant