Skip to content

Conversation

@THErealARETE
Copy link
Contributor

…test cases

  • Add 7 new test cases for contract action subscriptions covering edge cases and error scenarios
  • Add getBlockHashFromBlocks() method to testdata-provider to load block hashes from blocks.jsonc
  • Update contract-subscriptions.test.ts with comprehensive test coverage:
    • Stream contract actions from latest block
    • Stream with block hash offset (historical data)
    • Stream with block height offset (historical data)
    • Handle non-existent contract address
    • Handle malformed contract address errors
    • Handle non-existent block hash offset errors
    • Handle invalid block hash format errors
    • Handle invalid block height format errors
    • Handle both height and hash provided errors
  • Load blocks.jsonc data in testdata-provider init method

@GiuseppeSalvatoreShielded GiuseppeSalvatoreShielded changed the title test: Ramp up contractActions subscription tests test: ramp up contractActions subscription tests Oct 21, 2025
@GiuseppeSalvatoreShielded
Copy link
Contributor

As per Heiko's suggestion, I have lowered the case of the first word after test:

@CLAassistant
Copy link

CLAassistant commented Nov 26, 2025

CLA assistant check
All committers have signed the CLA.

@THErealARETE THErealARETE marked this pull request as ready for review December 3, 2025 07:43
@THErealARETE THErealARETE requested a review from a team as a code owner December 3, 2025 07:43
…test cases

- Add 7 new test cases for contract action subscriptions covering edge cases and error scenarios
- Add getBlockHashFromBlocks() method to testdata-provider to load block hashes from blocks.jsonc
- Update contract-subscriptions.test.ts with comprehensive test coverage:
  * Stream contract actions from latest block
  * Stream with block hash offset (historical data)
  * Stream with block height offset (historical data)
  * Handle non-existent contract address
  * Handle malformed contract address errors
  * Handle non-existent block hash offset errors
  * Handle invalid block hash format errors
  * Handle invalid block height format errors
  * Handle both height and hash provided errors
- Load blocks.jsonc data in testdata-provider init method
…cases and error scenarios

Add getBlockHashFromBlocks() method to testdata-provider to load block hashes from blocks.jsonc
Update contract-subscriptions.test.ts with comprehensive test coverage:
Stream contract actions from latest block
Stream with block hash offset (historical data)
Stream with block height offset (historical data)
Handle non-existent contract address
Handle malformed contract address errors
Handle non-existent block hash offset errors
Handle invalid block hash format errors
Handle invalid block height format errors
Handle both height and hash provided errors
Load blocks.jsonc data in testdata-provider init method
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.

4 participants