Skip to content
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

Overledger upgrade #15052

Merged
merged 29 commits into from
Jan 9, 2025
Merged

Conversation

philbuuza
Copy link
Contributor

@philbuuza philbuuza commented Dec 20, 2024

WHY

updated Overledger App with new API Urls from Quant - we have changed from .io urls to .dev. as per the results shown

Overledger API
Staging/sandbox: api.sandbox.overledger.dev
Production: api.overledger.dev

Also - location network upgraded - polygon from mumbai to amoy. We do not use amoi anymore and ethereum goerli removed.

Summary by CodeRabbit

Release Notes

  • Network Updates

    • Removed Ethereum Goerli and Polygon Mumbai testnets
    • Added Polygon Amoy testnet
  • API Endpoint Changes

    • Updated base URLs for sandbox and production environments
  • Version Updates

    • Bumped package version from 0.2.0 to 1.0.0
    • Updated action module versions to 0.0.3
  • Maintenance

    • Minor internal configuration adjustments

P.S - Updated version as well of Overledger app from 0.2.0 -> 0.3.0

philbuuza and others added 23 commits October 6, 2024 14:16
…from-smart-contract.mjs


Success message alteration to align with current context

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…from-smart-contract.mjs


inputParameters is an array of Objects so no need to parseObject

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
… Live Overledger - altered basURL in hook methods create and delete
…ll as component key adjustments to alin with pipedream requirements
…nged polygon network option from mumbai to amoy
Copy link
Contributor

coderabbitai bot commented Dec 20, 2024

Walkthrough

This pull request introduces several updates to the Overledger component in the Pipedream ecosystem. The changes primarily involve updating network constants, modifying API base URLs from ".io" to ".dev" domains, and incrementing version numbers across multiple files. The modifications appear to be preparing the Overledger integration for upcoming infrastructure changes, including network deprecations and URL transitions.

Changes

File Change Summary
components/overledger/common/constants.mjs Removed "ethereum goerli testnet" and "polygon mumbai testnet", added "polygon amoy testnet" to network options
components/overledger/overledger.app.mjs Updated base URLs from ".io" to ".dev" for sandbox and default environments
components/overledger/package.json Bumped package version from 0.2.0 to 1.0.0
components/overledger/actions/* Version increments in multiple action files:
- execute-signed-transaction.mjs: 0.0.20.0.3
- prepare-smart-contract-transaction.mjs: 0.0.20.0.3
- sign-a-transaction.mjs: 0.0.10.0.3

Possibly related issues

  • PipedreamHQ/pipedream#14993: Directly related to the URL changes from ".io" to ".dev" for Overledger, matching the modifications in this PR

Suggested reviewers

  • GTFalcao
  • malexanderlim

Poem

🐰 A Rabbit's Ode to Overledger's Leap

From .io to .dev, we hop with grace,
Networks shift, URLs find their place,
Constants dance, versions climb so high,
Pipedream's magic continues to fly! 🚀
Quantum leaps in our digital space! 🌐


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 76134e6 and c347a81.

📒 Files selected for processing (4)
  • components/overledger/actions/execute-signed-transaction/execute-signed-transaction.mjs (1 hunks)
  • components/overledger/actions/prepare-smart-contract-transaction/prepare-smart-contract-transaction.mjs (1 hunks)
  • components/overledger/actions/sign-a-transaction/sign-a-transaction.mjs (1 hunks)
  • components/overledger/package.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (4)
  • components/overledger/package.json
  • components/overledger/actions/execute-signed-transaction/execute-signed-transaction.mjs
  • components/overledger/actions/prepare-smart-contract-transaction/prepare-smart-contract-transaction.mjs
  • components/overledger/actions/sign-a-transaction/sign-a-transaction.mjs

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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@dylburger dylburger added the User submitted Submitted by a user label Dec 20, 2024
Copy link

vercel bot commented Dec 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
pipedream-docs ⬜️ Ignored (Inspect) Jan 8, 2025 9:17pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jan 8, 2025 9:17pm

Copy link

vercel bot commented Dec 20, 2024

@philbuuza is attempting to deploy a commit to the Pipedreamers Team on Vercel.

A member of the Team first needs to authorize it.

@pipedream-component-development
Copy link
Collaborator

Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified.

@pipedream-component-development
Copy link
Collaborator

Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:

…nged polygon network option from mumbai to amoy
…nged polygon network option from mumbai to amoy - uppdated version
luancazarine
luancazarine previously approved these changes Dec 20, 2024
Copy link
Collaborator

@luancazarine luancazarine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @philbuuza, LGTM! Ready for QA!

@vunguyenhung
Copy link
Collaborator

Hello everyone, I have tested this PR and there're some test cases failed or needed improvement.

Please check the test report below for more information
https://vunguyenhung.notion.site/Overledger-upgrade-162bf548bb5e81faaf00c736be814e9e

@vunguyenhung
Copy link
Collaborator

Hi @philbuuza, I see that you have not bump the component version to have them use the latest code. Could you please bump the version in components then ping us?

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 42acc29 and 76134e6.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (7)
  • components/overledger/actions/execute-signed-transaction/execute-signed-transaction.mjs (1 hunks)
  • components/overledger/actions/prepare-smart-contract-transaction/prepare-smart-contract-transaction.mjs (1 hunks)
  • components/overledger/actions/read-from-a-smart-contract/read-from-a-smart-contract.mjs (1 hunks)
  • components/overledger/actions/sign-a-transaction/sign-a-transaction.mjs (2 hunks)
  • components/overledger/package.json (1 hunks)
  • components/overledger/sources/new-contract-event-instant/new-contract-event-instant.mjs (1 hunks)
  • components/overledger/sources/watch-new-account-event-instant/watch-new-account-event-instant.mjs (1 hunks)
✅ Files skipped from review due to trivial changes (5)
  • components/overledger/sources/new-contract-event-instant/new-contract-event-instant.mjs
  • components/overledger/actions/execute-signed-transaction/execute-signed-transaction.mjs
  • components/overledger/actions/prepare-smart-contract-transaction/prepare-smart-contract-transaction.mjs
  • components/overledger/actions/read-from-a-smart-contract/read-from-a-smart-contract.mjs
  • components/overledger/sources/watch-new-account-event-instant/watch-new-account-event-instant.mjs
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/overledger/package.json
🔇 Additional comments (2)
components/overledger/actions/sign-a-transaction/sign-a-transaction.mjs (2)

2-4: Imports look consistent
No issues found regarding these import statements; they accurately reference the constants in ../../common/constants.mjs and follow typical style conventions.


10-10: Version bump acknowledged
Incrementing from "0.0.1" to "0.0.2" is a valid approach to reflect code changes. Ensure you consistently update and document the new version throughout related files or references as needed.

@@ -51,7 +53,7 @@ export default {
};
// Define DLT Fee and dynamically set the 'unit/symbol' from UNIT_OPTIONS
const dltFee = {
amount: "0.000019897764079968",
amount: "0.0.0.29897764079968",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

⚠️ Potential issue

Decimal format error in fee amount
The revised string "0.0.0.29897764079968" includes multiple decimal points and likely won't parse as a valid numeric value, which could break fee calculations. Restore a standard decimal format to ensure proper handling.

Below is a suggested fix, reverting to a proper decimal representation:

-      amount: "0.0.0.29897764079968",
+      amount: "0.000019897764079968",

Committable suggestion skipped: line range outside the PR's diff.

@philbuuza
Copy link
Contributor Author

philbuuza commented Jan 2, 2025

Hi Pipedream team - I have now updated the versions of the components so this should fix any merge issues we had - the overlesger app version is a major change so this has been set to 1.0.0 as its a new URL for the API - had to firt reverse some changes which were incorrect and so you will see a force push.

@philbuuza
Copy link
Contributor Author

philbuuza commented Jan 3, 2025 via email

@philbuuza
Copy link
Contributor Author

Hi Pipedream Team - I am looking at this PR and I dont understand why the Components Versions Check is still failing - I have bumped up the App version to 1.0.0 as it is a major change with the new URL for the Overledger API - and I had already bumped up the actions as well but only a minor version bump - Can you advise me on how to maybe alter this correctly as relly want this PR to be completed ASAP

@vunguyenhung
Copy link
Collaborator

Hi everyone, all test cases are passed! Ready for release!

Test report
https://vunguyenhung.notion.site/Overledger-upgrade-162bf548bb5e81faaf00c736be814e9e

@michelle0927 michelle0927 merged commit c2ac809 into PipedreamHQ:master Jan 9, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User submitted Submitted by a user
Development

Successfully merging this pull request may close these issues.

6 participants