Closed cbrit closed 1 month ago
The changes involve significant updates to the integration_tests/happy_path_test.go
and integration_tests/setup_test.go
files. A new test case is added to validate orchestrator behavior after sending a transaction to Ethereum, along with helper functions for orchestrator setup and address conversion. Additionally, a new constant for ERC20 token denomination is introduced, and methods are updated to utilize this constant while enhancing logging for contract deployment and Ethereum key generation. The module/x/gravity/keeper/batch.go
file sees improvements in error handling and transaction management.
File | Change Summary |
---|---|
integration_tests/happy_path_test.go | Added new test case Test orchestrator EthereumTxConfirmation after transaction execution , along with helper functions for orchestrator setup (startOrchestrator1 ) and address conversion (getValOperatorAddress ). |
integration_tests/setup_test.go | Introduced constant testERC20Denom for test ERC20 token denomination, updated methods to utilize it, and enhanced logging for ERC20 contract deployment. Updated initEthereumFromMnemonics method for Ethereum key generation. |
module/x/gravity/keeper/batch.go | Updated error handling by replacing sdkerrors with cosmossdk.io/errors , added checks in CancelBatchTx to prevent cancellation of non-existent batches, and ensured consistency in error management across batch transaction methods. |
module/x/gravity/keeper/batch_test.go | Added new test function TestCancelBatchTx to test cancellation of batch transactions, including scenarios for partially signed batches. |
sequenceDiagram
participant User
participant Orchestrator
participant Ethereum
User->>Orchestrator: Send SendToEthereum message
Orchestrator->>Ethereum: Execute transaction
Ethereum-->>Orchestrator: Confirm transaction completion
Orchestrator->>User: Confirm transaction status
Summary by CodeRabbit
Documentation
Chores
New Features
Bug Fixes