Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add crosschain and observer operations #3207

Merged
merged 88 commits into from
Jan 10, 2025

Conversation

kingpinXD
Copy link
Contributor

@kingpinXD kingpinXD commented Nov 22, 2024

Description

The pr

  • Adds all the operations for crosschain module except MsgMigrateTssFunds . MigrateTSSFunds expects inbound to be paused and no new pending nonces to be generated, which does not fit in well with how simulation tests run

  • Adds all the operations for the observer module except . MsgRemoveChainParams . Removing or disabling a chain causes a lot of other simulations to fail, I dont think its required to be added into simulation tests

  • Simplifies the init genesis for cross-chain module

Closes
#2973
#2974
#2975
#3100

How Has This Been Tested?

  • Tested CCTX in localnet
  • Tested in development environment
  • Go unit tests
  • Go integration tests
  • Tested via GitHub Actions

Summary by CodeRabbit

Release Notes

  • New Features

    • Added simulation operations for adding, enabling, and disabling observers and cross-chain transactions.
    • Introduced new methods for retrieving policies, all validators, and handling gas price increase flags.
    • New telemetry endpoint /systemtime added to enhance monitoring capabilities.
  • Improvements

    • Enhanced error handling and validation across various simulation operations and methods.
    • Improved clarity in error messages and logging for better debugging and tracking.
  • Bug Fixes

    • Fixed issues related to the handling of outbound trackers and cross-chain transaction states.
  • Documentation

    • Updated comments and documentation for clarity on new features and changes in logic.

@kingpinXD kingpinXD self-assigned this Dec 12, 2024
Copy link
Contributor

@swift1337 swift1337 left a comment

Choose a reason for hiding this comment

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

Did a first round on the PR. Solid work!

x/observer/types/keys.go Show resolved Hide resolved
testutil/sample/crosschain.go Show resolved Hide resolved
testutil/sample/crosschain.go Outdated Show resolved Hide resolved
simulation/simulation_test.go Show resolved Hide resolved
simulation/simulation_test.go Outdated Show resolved Hide resolved
x/crosschain/simulation/operations_test.go Outdated Show resolved Hide resolved
x/observer/keeper/msg_server_update_observer.go Outdated Show resolved Hide resolved
x/observer/keeper/tss.go Outdated Show resolved Hide resolved
x/observer/simulation/operations.go Outdated Show resolved Hide resolved
pkg/chains/chain_filters_test.go Outdated Show resolved Hide resolved
pkg/chains/chain_filters_test.go Outdated Show resolved Hide resolved
pkg/coin/coint_test.go Outdated Show resolved Hide resolved
simulation/state.go Outdated Show resolved Hide resolved
simulation/state.go Outdated Show resolved Hide resolved
x/crosschain/simulation/operation_abort_stuck_cctx.go Outdated Show resolved Hide resolved
x/crosschain/simulation/operation_gas_price_voter.go Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@kingpinXD kingpinXD added this pull request to the merge queue Jan 10, 2025
Merged via the queue into develop with commit 2edfa9c Jan 10, 2025
39 of 40 checks passed
@kingpinXD kingpinXD deleted the crosschain-simulation-outbound branch January 10, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants