Skip to content

Conversation

@yiplee
Copy link

@yiplee yiplee commented Nov 18, 2024

No description provided.

@yiplee yiplee marked this pull request as draft November 18, 2024 13:06
…ndling, and network loops for deposits and approvals. Update existing methods to accommodate Solana transactions and enhance error handling.
- Introduced a new configuration field `SolanaPayer` in the observer's interface for Solana transactions.
- Updated the transaction signing process in `solana.go` to utilize the new `SolanaPayer` configuration for signing transactions.

These changes enhance the Solana transaction handling capabilities of the observer.
- Added a new method `RPCGetAsset` to fetch asset details using its address, including mint information and metadata.
- Introduced a new struct `AssetMetadata` to hold asset metadata such as symbol and name.
- Implemented a helper method `getAssetMetadata` to retrieve asset metadata via RPC call.

These changes enhance the asset management capabilities of the Solana RPC client.
- Added a new function `ValidateTransactionSignatures` in `transaction.go` to ensure that the number of signatures matches the required count and that all signatures are valid and non-zero.
- Updated the `processSolanaSafeApproveAccount` method in `solana.go` to correctly set the state to `SafeStateApproved`.
- Enhanced the test coverage for Solana transactions by introducing a new test file `solana_test.go`, which includes comprehensive tests for transaction proposals, approvals, and network status updates.
- Modified existing tests in `keeper_test.go` to accommodate changes related to Solana transaction handling.

These changes improve the robustness and reliability of Solana transaction processing and validation.
- Deleted the `account_test.go` file for Bitcoin, which contained various tests for Bitcoin-related functionalities.
- Introduced a new `account_test.go` file for Solana, implementing tests for public key verification and random key generation.
- Updated the Solana account handling in the codebase to enhance testing and functionality.

These changes streamline the testing framework by focusing on Solana while removing outdated Bitcoin tests.
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