Skip to content

Conversation

@desamtralized
Copy link

@desamtralized desamtralized commented Jul 2, 2025

Summary

  • Update Mantra DEX adapter to use current schema with max_slippage instead of deprecated max_spread
  • Remove unused cw20 dependency to clean up project structure
  • Add comprehensive build and deployment scripts with deterministic addressing
  • Update admin configuration for proper contract management

Changes

  • Schema Updates: Replace max_spread with max_slippage and spread_amount with slippage_amount throughout adapter
  • Dependency Cleanup: Remove unused cw20 dependency from Cargo.toml and lock file
  • Deployment Scripts: Add build-all.sh and deploy-all.sh with deterministic contract deployment using instantiate2
  • Admin Configuration: Update admin addresses for proper contract governance

  - Change ExecuteSwapOperations max_spread to max_slippage
  - Change Swap max_spread to max_slippage
  - Change ProvideLiquidity slippage_tolerance to liquidity_max_slippage
  - Change ProvideLiquidity max_spread to swap_max_slippage

  Fixes compatibility with updated Mantra DEX pool manager contract
  that uses max_slippage instead of max_spread in message definitions.
…d names

  - Remove cw20 dependency from Cargo.toml as it was unused
  - Fix test field names from max_spread to max_slippage to match API
  - Revert Cargo.lock
  Changes:
  - Add build script for mantra-dex adapter with Docker optimizer support
  - Add build-all script for complete contract suite (entry-point, ibc-hooks, mantra-dex)
  - Add deploy script for individual mantra-dex adapter deployment
  - Add deploy-all script for complete contract deployment workflow
  - Add instantiate scripts for contract setup and configuration
  - Include ARM64 and x86_64 architecture detection for appropriate Docker images
  - Configure Mantra DEX pool manager integration and IBC hooks adapter support
…to use deterministic deployment

  Changes:
  - Remove redundant build.sh, deploy.sh, instantiate.sh, and instantiate-contracts.sh scripts
  - Update deploy-all.sh to use deterministic deployment flow with instantiate2
  - Replace multi-step deployment with pre-generated addresses using salt
  - Remove IBC hooks deployment (not needed for mantra-dex adapter)
  - Simplify script structure to avoid circular dependency issues
  - Add deterministic address generation for Entry Point contract
  - Update configuration with proper admin addresses and salt values
@desamtralized desamtralized changed the title chore: update mantra-dex adapter refactor(mantra-dex): update adapter for current DEX schema and improve deployment Jul 24, 2025
@desamtralized
Copy link
Author

This PR is ready, waiting on deployment and front-end integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant