-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore: main to develop #375
Conversation
* revert: cosmos submodule only (#362) * revert: cosmos submodule only * fix: rem * fix: rem * fix: update * feat: add msg client * fix: paths * fix: try chaosnet ibc * fix: path again * fix: try hm * fix: fixes to pass * feat: eth protos (#366) * fix: eth protos * fix: client * fix: fixes * fix: try older nibiru * fix: index * fix: mainnet * fix: import * revert: build change * chore: tests (#367) * fix: all query tests * chore: final tests * fix: buf * fix: fix * fix: pull latest * fix: build * fix: build * refactor(faucet)!: set default tokens (#369) * chore: develop -> main (#368) * revert: cosmos submodule only (#362) * revert: cosmos submodule only * fix: rem * fix: rem * fix: update * feat: add msg client * fix: paths * fix: try chaosnet ibc * fix: path again * fix: try hm * fix: fixes to pass * feat: eth protos (#366) * fix: eth protos * fix: client * fix: fixes * fix: try older nibiru * fix: index * fix: mainnet * fix: import * revert: build change * chore: tests (#367) * fix: all query tests * chore: final tests * fix: buf * fix: fix * fix: pull latest * fix: build * fix: build * chore(release): 4.5.1 ### [4.5.1](v4.5.0...v4.5.1) (2024-08-09) ### Miscellaneous Chores * develop -> main ([#368](#368)) ([c6d6570](c6d6570)), closes [#362](#362) [#366](#366) [#367](#367) [skip ci] * fix(faucet): remove unused tokens from default faucet request * fix: bump test --------- Co-authored-by: Cameron Gilbert <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> --------- Co-authored-by: Kevin Yang <[email protected]> Co-authored-by: semantic-release-bot <[email protected]>
### [4.5.2](v4.5.1...v4.5.2) (2024-09-24) ### Miscellaneous Chores * develop -> main ([#370](#370)) ([ec2a25b](ec2a25b)), closes [#362](#362) [#366](#366) [#367](#367) [#369](#369) [#368](#368) [#362](#362) [#366](#366) [#367](#367) [#362](#362) [#366](#366) [#367](#367) * **github:** Add project automation for https://tinyurl.com/25uty9w5 ([c2c27e5](c2c27e5)) [skip ci]
WalkthroughThis pull request introduces several changes, including a new label configuration for GitHub issues, the addition of a GitHub Actions workflow for automating issue management, and updates to the project version in Changes
Possibly related PRs
Suggested labels
Poem
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Outside diff range and nitpick comments (7)
.github/issue-labeler-config.yml (3)
1-1
: Fix typo in the commentThere's a small typo in the comment. Let's correct it for clarity.
- # Adds the "S-triage" label ot any issue that gets opened. + # Adds the "S-triage" label to any issue that gets opened.
2-3
: Consider style improvements for better readabilityWhile the current indentation is valid YAML, consider using 2 spaces for indentation as it's a common style guide recommendation for YAML files. Also, the regex pattern can be simplified.
S-triage: - - "/.*/" + - "*"This change maintains the functionality while improving readability and adhering to common YAML style practices.
1-3
: Approve implementation with considerations for future enhancementsThe implementation effectively adds the "S-triage" label to all new issues, which is a good practice for issue management. The simplicity of the configuration makes it easy to maintain and understand, ensuring no issues are missed in the triage process.
Consider the following points for potential future enhancements:
- Are there any exceptions where the "S-triage" label should not be applied?
- Are there any other default labels that should be applied to all new issues?
- How does this fit into the overall issue management workflow of the project?
These considerations could help refine the issue labeling process as the project evolves.
src/sdk/utils/faucet.ts (1)
16-16
: Consider using a more explicit representation for the token amountThe hardcoded
coins
array correctly reflects the simplified functionality of sending only 10 NIBI. However, the use of scientific notation (10e6
) for the token amount might be less immediately readable.Consider using a more explicit representation for better readability:
- const coins: string[] = [`${10e6}unibi`] + const coins: string[] = [`${10_000_000}unibi`]This change makes the exact amount clearer at a glance, especially for developers who might not be familiar with the token's decimal places.
.github/workflows/gh-issues.yml (1)
25-38
: Review and update the "not-before" date regularly.The
label-triage
job is well-structured and uses appropriate conditions and configurations. However, the hardcoded "not-before" date might cause issues if not updated regularly.Consider one of the following options:
- Remove the "not-before" condition if it's not necessary.
- Use a relative date instead of an absolute one. For example:
This will allow labeling for issues created after the repository's creation date.not-before: ${{ fromJson(github.event.issue.created_at) > fromJson(format('{0}Z', github.event.repository.created_at)) }}- If you must use an absolute date, add a comment explaining why this specific date was chosen and when it should be reviewed.
Also, there's a small typo in the job name:
- name: "Add GH ticket to project" + name: "Label GH ticket"src/sdk/utils/faucet.test.ts (2)
Line range hint
22-26
: Consider alternative strategies for testing the faucet utility.The test case "faucet utility works" is currently skipped due to the complexity of setting up a fake reCAPTCHA system. While this reasoning is understandable, skipping tests can lead to reduced coverage and potentially miss regressions.
Consider exploring alternative testing strategies that don't rely on reCAPTCHA:
- Mock the reCAPTCHA verification process in the test environment.
- Implement a test-only endpoint that bypasses reCAPTCHA for automated tests.
- Use dependency injection to replace the reCAPTCHA verification with a mock implementation during tests.
These approaches could allow you to test the faucet utility more comprehensively without the need for a complex reCAPTCHA setup.
Line range hint
1-134
: Summary of changes and recommendationsThe changes in this file appear to simplify the faucet functionality and its tests. However, there are a few points that require attention:
The reduction in expected tokens from the faucet may impact test coverage. Verify if this aligns with the current faucet behavior and consider adding separate tests for
unusd
anduusdt
if they are still supported.The removal of the custom amounts feature should be confirmed. If intentional, update the function signature and documentation accordingly.
The skipped test for the faucet utility reduces overall test coverage. Consider implementing alternative testing strategies that don't rely on reCAPTCHA to ensure comprehensive testing of the faucet functionality.
These changes seem to align with the PR objective of addressing and fixing issues related to other pull requests. However, ensure that these modifications don't unintentionally reduce the robustness of the faucet functionality or its test coverage.
Consider creating a separate issue to track the improvement of faucet utility testing, especially for the skipped test case. This will ensure that this important aspect of the system doesn't get overlooked in future development cycles.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (6)
- .github/issue-labeler-config.yml (1 hunks)
- .github/workflows/gh-issues.yml (1 hunks)
- CHANGELOG.md (1 hunks)
- package.json (1 hunks)
- src/sdk/utils/faucet.test.ts (2 hunks)
- src/sdk/utils/faucet.ts (1 hunks)
✅ Files skipped from review due to trivial changes (1)
- package.json
🧰 Additional context used
🪛 Markdownlint
CHANGELOG.md
6-6: null
Bare URL used(MD034, no-bare-urls)
1-1: null
First line in a file should be a top-level heading(MD041, first-line-heading, first-line-h1)
🔇 Additional comments (6)
src/sdk/utils/faucet.ts (2)
5-6
: LGTM: Documentation updated correctlyThe function documentation has been updated to accurately reflect the amount of NIBI sent (10 instead of 11). This change aligns with the actual implementation, improving the accuracy of the documentation.
Line range hint
1-54
: Overall changes simplify the faucet functionalityThe modifications to the
useFaucet
function effectively simplify its functionality by removing the option to send custom amounts of different tokens. Now, it only sends a fixed amount of 10 NIBI. This change aligns with the PR objectives of addressing issues in other pull requests.Key impacts:
- Simplified interface: Removal of the
amts
parameter reduces potential misuse.- Focused functionality: The function now has a single, clear purpose.
- Reduced flexibility: Custom token amounts are no longer supported, which might affect some use cases.
These changes contribute to a more maintainable and focused codebase, which is in line with the "chore" nature of this pull request.
.github/workflows/gh-issues.yml (2)
1-8
: LGTM: Workflow name and trigger are well-defined.The workflow name accurately describes its primary function, and the trigger events (issues being opened or labeled) are appropriate for the intended automation.
10-13
: LGTM: Permissions are correctly set.The permissions are appropriately configured for the workflow's tasks:
- Write access to issues allows for adding labels and modifying issues.
- Read access to contents is sufficient for most operations.
src/sdk/utils/faucet.test.ts (2)
94-96
: Verify the removal of custom amounts feature.The test case for custom amounts has been modified:
- The
amts
parameter has been removed from theuseFaucet
function call.- The expected coins array now matches the default amounts test case.
These changes suggest that the custom amounts feature may have been removed from the faucet implementation.
Please confirm if the removal of the custom amounts feature is intentional and aligns with the current implementation. If this feature has indeed been removed, consider updating the function signature and documentation to reflect this change.
To verify the current faucet implementation, you can run the following script:
✅ Verification successful
Custom amounts feature successfully removed.
The
useFaucet
function no longer accepts theamts
parameter, and the test cases have been updated accordingly. This confirms that the custom amounts feature has been intentionally removed from the faucet implementation.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the current faucet implementation and usage # Test 1: Search for the faucet implementation echo "Faucet Implementation:" rg --type typescript -A 10 'export const useFaucet' # Test 2: Search for usages of useFaucet in the codebase echo "\nFaucet Usage:" rg --type typescript 'useFaucet\('Length of output: 256
Script:
#!/bin/bash # Description: Verify the current faucet implementation and usage with correct file types # Test 1: Search for the faucet implementation echo "Faucet Implementation:" rg --type ts --max-depth 10 'export const useFaucet' # Test 2: Search for usages of useFaucet in the codebase echo "\nFaucet Usage:" rg --type ts 'useFaucet\('Length of output: 467
Script:
#!/bin/bash # Description: Retrieve the useFaucet function definition to verify its parameters # Search for the useFaucet function definition with surrounding lines for context echo "useFaucet Function Definition:" rg --type ts -A 5 'export\s+async\s+function\s+useFaucet' src/sdk/utils/faucet.tsLength of output: 245
81-81
: Verify if the reduced faucet request aligns with current behavior.The expected coins array has been simplified from
["11000000unibi", "100000000unusd", "100000000uusdt"]
to["10000000unibi"]
. While this change streamlines the faucet request, it also reduces the test coverage by no longer checking forunusd
anduusdt
tokens.Please confirm if this change accurately reflects the current behavior of the faucet. If so, consider adding separate test cases for
unusd
anduusdt
to maintain comprehensive test coverage.To verify the current faucet behavior, you can run the following script:
…380) * revert: cosmos submodule only (#362) * revert: cosmos submodule only * fix: rem * fix: rem * fix: update * feat: add msg client * fix: paths * fix: try chaosnet ibc * fix: path again * fix: try hm * fix: fixes to pass * feat: eth protos (#366) * fix: eth protos * fix: client * fix: fixes * fix: try older nibiru * fix: index * fix: mainnet * fix: import * revert: build change * chore: tests (#367) * fix: all query tests * chore: final tests * fix: buf * fix: fix * fix: pull latest * fix: build * fix: build * refactor(faucet)!: set default tokens (#369) * chore: develop -> main (#368) * revert: cosmos submodule only (#362) * revert: cosmos submodule only * fix: rem * fix: rem * fix: update * feat: add msg client * fix: paths * fix: try chaosnet ibc * fix: path again * fix: try hm * fix: fixes to pass * feat: eth protos (#366) * fix: eth protos * fix: client * fix: fixes * fix: try older nibiru * fix: index * fix: mainnet * fix: import * revert: build change * chore: tests (#367) * fix: all query tests * chore: final tests * fix: buf * fix: fix * fix: pull latest * fix: build * fix: build * chore(release): 4.5.1 ### [4.5.1](v4.5.0...v4.5.1) (2024-08-09) ### Miscellaneous Chores * develop -> main ([#368](#368)) ([c6d6570](c6d6570)), closes [#362](#362) [#366](#366) [#367](#367) [skip ci] * fix(faucet): remove unused tokens from default faucet request * fix: bump test --------- Co-authored-by: Cameron Gilbert <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> * chore: main to develop (#375) * chore: develop -> main (#370) * revert: cosmos submodule only (#362) * revert: cosmos submodule only * fix: rem * fix: rem * fix: update * feat: add msg client * fix: paths * fix: try chaosnet ibc * fix: path again * fix: try hm * fix: fixes to pass * feat: eth protos (#366) * fix: eth protos * fix: client * fix: fixes * fix: try older nibiru * fix: index * fix: mainnet * fix: import * revert: build change * chore: tests (#367) * fix: all query tests * chore: final tests * fix: buf * fix: fix * fix: pull latest * fix: build * fix: build * refactor(faucet)!: set default tokens (#369) * chore: develop -> main (#368) * revert: cosmos submodule only (#362) * revert: cosmos submodule only * fix: rem * fix: rem * fix: update * feat: add msg client * fix: paths * fix: try chaosnet ibc * fix: path again * fix: try hm * fix: fixes to pass * feat: eth protos (#366) * fix: eth protos * fix: client * fix: fixes * fix: try older nibiru * fix: index * fix: mainnet * fix: import * revert: build change * chore: tests (#367) * fix: all query tests * chore: final tests * fix: buf * fix: fix * fix: pull latest * fix: build * fix: build * chore(release): 4.5.1 ### [4.5.1](v4.5.0...v4.5.1) (2024-08-09) ### Miscellaneous Chores * develop -> main ([#368](#368)) ([c6d6570](c6d6570)), closes [#362](#362) [#366](#366) [#367](#367) [skip ci] * fix(faucet): remove unused tokens from default faucet request * fix: bump test --------- Co-authored-by: Cameron Gilbert <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> --------- Co-authored-by: Kevin Yang <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> * chore(github): Add project automation for https://tinyurl.com/25uty9w5 * chore(release): 4.5.2 ### [4.5.2](v4.5.1...v4.5.2) (2024-09-24) ### Miscellaneous Chores * develop -> main ([#370](#370)) ([ec2a25b](ec2a25b)), closes [#362](#362) [#366](#366) [#367](#367) [#369](#369) [#368](#368) [#362](#362) [#366](#366) [#367](#367) [#362](#362) [#366](#366) [#367](#367) * **github:** Add project automation for https://tinyurl.com/25uty9w5 ([c2c27e5](c2c27e5)) [skip ci] --------- Co-authored-by: Cameron Gilbert <[email protected]> Co-authored-by: Kevin Yang <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: Unique Divine <[email protected]> * feat: account parser (#374) * chore: develop -> main (#370) * revert: cosmos submodule only (#362) * revert: cosmos submodule only * fix: rem * fix: rem * fix: update * feat: add msg client * fix: paths * fix: try chaosnet ibc * fix: path again * fix: try hm * fix: fixes to pass * feat: eth protos (#366) * fix: eth protos * fix: client * fix: fixes * fix: try older nibiru * fix: index * fix: mainnet * fix: import * revert: build change * chore: tests (#367) * fix: all query tests * chore: final tests * fix: buf * fix: fix * fix: pull latest * fix: build * fix: build * refactor(faucet)!: set default tokens (#369) * chore: develop -> main (#368) * revert: cosmos submodule only (#362) * revert: cosmos submodule only * fix: rem * fix: rem * fix: update * feat: add msg client * fix: paths * fix: try chaosnet ibc * fix: path again * fix: try hm * fix: fixes to pass * feat: eth protos (#366) * fix: eth protos * fix: client * fix: fixes * fix: try older nibiru * fix: index * fix: mainnet * fix: import * revert: build change * chore: tests (#367) * fix: all query tests * chore: final tests * fix: buf * fix: fix * fix: pull latest * fix: build * fix: build * chore(release): 4.5.1 ### [4.5.1](v4.5.0...v4.5.1) (2024-08-09) ### Miscellaneous Chores * develop -> main ([#368](#368)) ([c6d6570](c6d6570)), closes [#362](#362) [#366](#366) [#367](#367) [skip ci] * fix(faucet): remove unused tokens from default faucet request * fix: bump test --------- Co-authored-by: Cameron Gilbert <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> --------- Co-authored-by: Kevin Yang <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> * chore(github): Add project automation for https://tinyurl.com/25uty9w5 * chore(release): 4.5.2 ### [4.5.2](v4.5.1...v4.5.2) (2024-09-24) ### Miscellaneous Chores * develop -> main ([#370](#370)) ([ec2a25b](ec2a25b)), closes [#362](#362) [#366](#366) [#367](#367) [#369](#369) [#368](#368) [#362](#362) [#366](#366) [#367](#367) [#362](#362) [#366](#366) [#367](#367) * **github:** Add project automation for https://tinyurl.com/25uty9w5 ([c2c27e5](c2c27e5)) [skip ci] * feat: nibiru account parser * refactor: throw if baseaccount is undefined * test: fixing tests * chore: removing unnecessary ? * refactor: matching cosmjs implementation * chore: removing t.json * chore: pr comments --------- Co-authored-by: Cameron Gilbert <[email protected]> Co-authored-by: Kevin Yang <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: Unique Divine <[email protected]> * chore: remove stats and update default feature flags * feat: cosmwasmclient extension & signingcosmwasmclient implementation (#379) * feat: nibicosmwasmclient * feat: nibi signing cosm wasm client * refactor: adding nibi account parser to nibi signingcosmwasmclient * test: remove unused test file * test: take signingcosmwasmclient from coverage * chore: fix coverage --------- Co-authored-by: Kevin Yang <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: Calico Nino <[email protected]> Co-authored-by: Unique Divine <[email protected]>
## [5.0.0](v4.5.2...v5.0.0) (2024-10-18) ### ⚠ BREAKING CHANGES * **faucet:** set default tokens (#369) ### Features * account parser ([#374](#374)) ([d7e324d](d7e324d)), closes [#370](#370) [#362](#362) [#366](#366) [#367](#367) [#369](#369) [#368](#368) [#362](#362) [#366](#366) [#367](#367) [#362](#362) [#366](#366) [#367](#367) * add msg client ([32374dd](32374dd)) * cosmwasmclient extension & signingcosmwasmclient implementation ([#379](#379)) ([b89a700](b89a700)) * eth protos ([#366](#366)) ([9d496c7](9d496c7)), closes [#367](#367) ### Bug Fixes * build ([b9b3d74](b9b3d74)) * build ([79fcd49](79fcd49)) * fixes to pass ([0c3f86a](0c3f86a)) * path again ([e5f1ff3](e5f1ff3)) * paths ([c762665](c762665)) * pull latest ([35eb2d8](35eb2d8)) * try chaosnet ibc ([d66c15c](d66c15c)) * try hm ([954f259](954f259)) ### Reverts * cosmos submodule only ([#362](#362)) ([1d09461](1d09461)) ### Code Refactors * **faucet:** set default tokens ([#369](#369)) ([859882a](859882a)), closes [#368](#368) [#362](#362) [#366](#366) [#367](#367) [#362](#362) [#366](#366) [#367](#367) ### Miscellaneous Chores * develop -> main ([5518ddd](5518ddd)) * develop -> main (remove stats + update default feature flags) ([#380](#380)) ([087d569](087d569)), closes [#362](#362) [#366](#366) [#367](#367) [#369](#369) [#368](#368) [#362](#362) [#366](#366) [#367](#367) [#362](#362) [#366](#366) [#367](#367) * main to develop ([#375](#375)) ([49b0766](49b0766)), closes [#370](#370) [#362](#362) [#366](#366) [#367](#367) [#369](#369) [#368](#368) [#362](#362) [#366](#366) [#367](#367) [#362](#362) [#366](#366) [#367](#367) * remove stats and update default feature flags ([56bef2a](56bef2a)) * trigger release ([d89c408](d89c408)) [skip ci]
🎉 This PR is included in version 5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Chore PR to fix other PRs with changes.
Summary by CodeRabbit
New Features
Bug Fixes
Chores