Closed ccamel closed 9 months ago
The recent updates focus on enhancing the predicates block_height
and block_time
by ensuring determinism and adding practical usage scenarios. Additionally, a new feature in the func.go
script template allows for conditional data table rendering, improving the flexibility of output formats. The test features for block_height
and block_time
have been expanded to include comparison operations, and the test suite has seen refinements in structure and query logic, streamlining the testing process for block-related functionalities.
Files | Change Summary |
---|---|
docs/predicate/block_height_1.md ,docs/predicate/block_time_1.md |
Updated predicates to include is det , added usage scenarios. |
scripts/templates/func.go.txt |
Added conditional block for data table rendering. |
x/logic/keeper/features/block_height_1.feature ,x/logic/keeper/features/block_time_1.feature |
Features test block_height/2 and block_time/2 , including retrieval and comparison operations. |
x/logic/keeper/features_test.go |
Improved imports, struct fields, added global variables and functions, updated query client logic. |
x/logic/predicate/block.go |
Removed example comments, added determinism annotations. |
🐇✨
In the realm of code, where logic threads weave,
A rabbit hopped in, new tricks up its sleeve.
With predicates clear, and tests that delight,
It ensures that each block, in the blockchain, is right.
"To the moon!" it exclaims, with a leap and a cheer,
For the code grows more robust, with each passing year.
🌟🚀
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
:tada: This PR is included in version 7.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Following up on issue #579, update the unit tests for the block predicates (
block_height/1
andblock_time/1
) to employ Gherkin testing methodoly.Summary by CodeRabbit
New Features
Documentation
Tests
Refactor