-
Notifications
You must be signed in to change notification settings - Fork 62
fix/fix_manual_tx_generation #296
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
Conversation
WalkthroughThe changes update the transaction handling logic in the chain client. The code now replaces Changes
Possibly related PRs
Suggested reviewers
Poem
🪧 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
Documentation and Community
|
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: 0
🧹 Nitpick comments (1)
.github/workflows/golangci-lint.yml (1)
16-16: Consider Upgrading the Checkout Action VersionStatic analysis indicates that
actions/checkout@v3may be outdated. Upgrading to a newer version (e.g.,actions/checkout@v4) can improve performance and compatibility with GitHub Actions.Apply this diff to update the version:
- - uses: actions/checkout@v3 + - uses: actions/checkout@v4🧰 Tools
🪛 actionlint (1.7.4)
16-16: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro (Legacy)
📒 Files selected for processing (4)
.github/workflows/golangci-lint.yml(1 hunks).github/workflows/pre-commit.yml(0 hunks).golangci.yml(1 hunks).pre-commit-config.yaml(0 hunks)
💤 Files with no reviewable changes (2)
- .github/workflows/pre-commit.yml
- .pre-commit-config.yaml
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/golangci-lint.yml
16-16: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🔇 Additional comments (9)
.github/workflows/golangci-lint.yml (6)
1-5: Workflow Trigger Configuration Looks GoodThe workflow is set to trigger on both pull requests and pushes (to the
masteranddevbranches). This setup aligns well with standard CI practices.
6-10: Permissions Configuration is AppropriateThe permissions for repository contents and pull-requests are correctly set to read. This ensures that the workflow can access the necessary repository information without overprivileging.
11-15: Job and Environment Setup is Well DefinedThe job configuration—including setting the runner to
ubuntu-latestand listing the key steps for setting up Go—is clear and effective for the intended linting process.
17-21: Go Setup Action is Configured CorrectlyThe configuration for
actions/setup-go@v5, including usage of thego-version-fileand checking for the latest version, is correctly implemented.
22-32: Linting Action Configuration is ComprehensiveThe use of
golangci/golangci-lint-action@v6with the provided options (version set to latest, timeout, and verbose logging) ensures a robust linting process.
33-45: Optional Cache and Working Directory Settings are Well DocumentedThe commented-out options for working directory and build-cache configurations provide useful guidelines for future adjustments.
.golangci.yml (3)
1-9: Lint Run Configuration is Clear and EffectiveThe
runsection specifies that tests are disabled and properly lists directories to skip—including the newly addedinjective_data. This looks well aligned with your project’s structure and objectives.
10-32: Linters List is ComprehensiveThe enabled linters list covers a broad spectrum of code quality checks, and disabling the
unusedlinter appears intentional. The list is well-organized and should help maintain code quality effectively.
33-50: Linters Settings are Well TunedThe configuration for linters settings—specifically for
revive(with all rules enabled and customized for variable naming) and forgocritic(with clearly defined enabled tags and disabled checks)—is clear and effective for enforcing quality standards.
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: 0
🧹 Nitpick comments (2)
.github/workflows/golangci-lint.yml (1)
16-16: Update the Checkout Action VersionThe static analysis hint indicates that the runner for
actions/checkout@v3may be outdated. Please consider upgrading this action (for example, to a later v3 release or v4 if available) to ensure compatibility and stability in the workflow.🧰 Tools
🪛 actionlint (1.7.4)
16-16: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
Makefile (1)
154-165: New Lint Targets IntegrationThe newly added lint targets (
lint,lint-last-commit, andlint-master) are well integrated, exportingGOPROXY=directand invokinggolangci-lintwith a 15-minute timeout and the appropriate reference (dev, HEAD~, or master). As a minor improvement, consider centralizing the export ofGOPROXY=directat the top level of the Makefile to adhere to the DRY principle if this variable is intended to be used across multiple targets.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro (Legacy)
📒 Files selected for processing (4)
.github/workflows/golangci-lint.yml(1 hunks).github/workflows/pre-commit.yml(0 hunks).golangci.yml(1 hunks)Makefile(1 hunks)
💤 Files with no reviewable changes (1)
- .github/workflows/pre-commit.yml
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/golangci-lint.yml
16-16: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: lint
🔇 Additional comments (3)
.github/workflows/golangci-lint.yml (1)
1-15: Overall Workflow Configuration Looks SolidThe workflow is well-structured with clear steps for setting up Go and running
golangci-lintwith appropriate arguments (e.g., timeout, verbosity, and new issues filtering). Ensure that the versions for actions (likeactions/setup-go@v5andgolangci/golangci-lint-action@v6) continue to align with our CI requirements across the project.Also applies to: 17-39
.golangci.yml (1)
1-63: Comprehensive GolangCI ConfigurationThe YAML configuration for GolangCI is detailed and covers a wide array of linters with custom settings for both
reviveandgocritic. The update from a JSON to YAML format—with changes such as replacingskip-dirswithexclude-dirs—appears well thought out. Just verify that the selected linters and their respective settings (for example, disabling certain checks ingocritic) continue to align with our project’s coding guidelines.Makefile (1)
166-167: Updated .PHONY DeclarationThe
.PHONYdeclaration now includes the new linting targets, ensuring they are always executed as commands rather than file references. This update is correct and improves command clarity in the Makefile.
* (fix) Applied the fixes for EIP712 JSON unmarshalling to the master branch * fix: update pre-commit/action from v2.0.2 to v3.0.1 to ry to solve the pre-commit validation workflow error * fix: Added configuration in .golangci.yml file to exclude some dirs * fix: updated the oracle stream prices script to send the oracle type always in lowercase * fix: updated the oracle stream prices script to send the oracle type always in lowercase * fix: Added quantization in the functions that convert notional values to chain format * fix/fix_manual_tx_generation (#296) * fix: fixed the manual TX generation and signing to receive the gas price * fix: solve issues in pre-commit workflow caused by using deprecated components * fix: solve issues in pre-commit workflow caused by using deprecated components
* feat: removed the deprecated pre-commit repo pre-commit-golang. Added new CI step to run golangci-lint using the github action * fix: added skip directories into the golanci lint config * fix: fixed lint errors * fix: fixed lint errors * feat: updated proto definitions for the chain upgrade v1.15 * fix: synced go.mod dependecnies with Injective core * fix: fixed lint errors * fix: fixed lint errors * feat: updated all proto definitions for v1.15 chain upgrade. Added an example for the new GetEipBaseFee request in txfees module * feat: updated all examples to query gas price from the chain instead of using the default value * Feat/sync with master v1.56.2 (#298) * (fix) Applied the fixes for EIP712 JSON unmarshalling to the master branch * fix: update pre-commit/action from v2.0.2 to v3.0.1 to ry to solve the pre-commit validation workflow error * fix: Added configuration in .golangci.yml file to exclude some dirs * fix: updated the oracle stream prices script to send the oracle type always in lowercase * fix: updated the oracle stream prices script to send the oracle type always in lowercase * fix: Added quantization in the functions that convert notional values to chain format * fix/fix_manual_tx_generation (#296) * fix: fixed the manual TX generation and signing to receive the gas price * fix: solve issues in pre-commit workflow caused by using deprecated components * fix: solve issues in pre-commit workflow caused by using deprecated components * feat: updated proto definitions for the chain upgrade v1.15 * (fix) Applied the fixes for EIP712 JSON unmarshalling to the master branch * fix: updated the oracle stream prices script to send the oracle type always in lowercase * fix: updated the oracle stream prices script to send the oracle type always in lowercase * fix: synced go.mod dependecnies with Injective core * fix: fixed lint errors * fix: fixed lint errors * feat: updated all proto definitions for v1.15 chain upgrade. Added an example for the new GetEipBaseFee request in txfees module * feat: updated all examples to query gas price from the chain instead of using the default value * fix: fix function parameter type * feat: updated proto definition to v1.15.0-beta.2 and v1.14.48 for Indexer * fix: update ofac.json file * Improve error messaging and enhance documentation in eip712_cosmos.go (#240) This PR improves error handling and enhances documentation in the eip712_cosmos.go file to provide clearer messages and more detailed explanations. Signed-off-by: Hwangjae Lee <meetrick@gmail.com> Co-authored-by: Abel Armoa <30988000+aarmoa@users.noreply.github.com> * fix: fixed array creatin in a unit test (#299) * fix: updated chain version to v1.15 and indexer version to v1.15.6 * fix: removed explicit inclusion of txfees response in the context initialization (not required) --------- Signed-off-by: Hwangjae Lee <meetrick@gmail.com> Co-authored-by: Hwangjae Lee <meetrick@gmail.com>
* feat: removed the deprecated pre-commit repo pre-commit-golang. Added new CI step to run golangci-lint using the github action * fix: added skip directories into the golanci lint config * fix: fixed lint errors * fix: fixed lint errors * feat: updated proto definitions for the chain upgrade v1.15 * fix: synced go.mod dependecnies with Injective core * fix: fixed lint errors * fix: fixed lint errors * feat: updated all proto definitions for v1.15 chain upgrade. Added an example for the new GetEipBaseFee request in txfees module * feat: updated all examples to query gas price from the chain instead of using the default value * Feat/sync with master v1.56.2 (#298) * (fix) Applied the fixes for EIP712 JSON unmarshalling to the master branch * fix: update pre-commit/action from v2.0.2 to v3.0.1 to ry to solve the pre-commit validation workflow error * fix: Added configuration in .golangci.yml file to exclude some dirs * fix: updated the oracle stream prices script to send the oracle type always in lowercase * fix: updated the oracle stream prices script to send the oracle type always in lowercase * fix: Added quantization in the functions that convert notional values to chain format * fix/fix_manual_tx_generation (#296) * fix: fixed the manual TX generation and signing to receive the gas price * fix: solve issues in pre-commit workflow caused by using deprecated components * fix: solve issues in pre-commit workflow caused by using deprecated components * feat: updated proto definitions for the chain upgrade v1.15 * (fix) Applied the fixes for EIP712 JSON unmarshalling to the master branch * fix: updated the oracle stream prices script to send the oracle type always in lowercase * fix: updated the oracle stream prices script to send the oracle type always in lowercase * fix: synced go.mod dependecnies with Injective core * fix: fixed lint errors * fix: fixed lint errors * feat: updated all proto definitions for v1.15 chain upgrade. Added an example for the new GetEipBaseFee request in txfees module * feat: updated all examples to query gas price from the chain instead of using the default value * fix: fix function parameter type * feat: updated proto definition to v1.15.0-beta.2 and v1.14.48 for Indexer * fix: update ofac.json file * Improve error messaging and enhance documentation in eip712_cosmos.go (#240) This PR improves error handling and enhances documentation in the eip712_cosmos.go file to provide clearer messages and more detailed explanations. * fix: fixed array creatin in a unit test (#299) * fix: updated chain version to v1.15 and indexer version to v1.15.6 * fix: removed explicit inclusion of txfees response in the context initialization (not required) --------- Signed-off-by: Hwangjae Lee <meetrick@gmail.com> Co-authored-by: Hwangjae Lee <meetrick@gmail.com>
Summary by CodeRabbit
New Features
Refactor