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

fix: update mappings #65

Merged
merged 3 commits into from
Jun 24, 2024
Merged

fix: update mappings #65

merged 3 commits into from
Jun 24, 2024

Conversation

kemuru
Copy link
Contributor

@kemuru kemuru commented Jun 21, 2024

just adds triple curly braces on some variables and switches 'my-transactions' path to just 'transactions'


PR-Codex overview

The focus of this PR is to update GraphQL endpoints and IPFS URIs in the 00-escrow.ts file for the Arbitrum network.

Detailed summary

  • Updated GraphQL endpoint with triple curly braces
  • Updated IPFS URI with triple curly braces

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Bug Fixes
    • Improved stability of URL parsing by correcting placeholder syntax in endpoint URLs.

Copy link
Contributor

coderabbitai bot commented Jun 21, 2024

Walkthrough

The changes in 00-escrow.ts involve updating endpoint URLs by adding extra curly braces around placeholders for graphApiKey and transactionUri. This adjustment ensures that the placeholders are correctly interpreted in the given context.

Changes

File Change Summary
contracts/deploy/00-escrow.ts Added extra curly braces around placeholders for graphApiKey and transactionUri in endpoint URLs.

Poem

In the meadow of code, where the placeholders lie,
Curly braces dance, giving URLs a try.
With graphApiKey and transactionUri in their snug embrace,
APIs call out with precision and grace.
A little tweak, a small change we see,
Making sure our escrow works perfectly! 🚀


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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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 as 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 resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration 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.

@kemuru kemuru requested a review from jaybuidl June 21, 2024 15:09
Copy link

netlify bot commented Jun 21, 2024

Deploy Preview for kleros-escrow-v2 ready!

Name Link
🔨 Latest commit 3466614
🔍 Latest deploy log https://app.netlify.com/sites/kleros-escrow-v2/deploys/6678993360811900080b5e4e
😎 Deploy Preview https://deploy-preview-65--kleros-escrow-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 659d346 and f1bf12a.

Files selected for processing (1)
  • contracts/deploy/00-escrow.ts (2 hunks)
Additional comments not posted (2)
contracts/deploy/00-escrow.ts (2)

51-51: Ensure proper integration of the triple curly braces in the endpoint URL.

The change to use triple curly braces ({{{graphApiKey}}}) is noted. This should ensure that the graphApiKey is correctly handled as a literal string by the templating engine. It's important to verify that this change integrates well with the rest of the system, especially the templating and URL construction logic.


61-61: Ensure proper integration of the triple curly braces in the IPFS URI.

The change to use triple curly braces ({{{transactionUri}}}) in the ipfsUri is noted. This should ensure that the transactionUri is correctly handled as a literal string in IPFS URI constructions. Verify that this change integrates well with the rest of the system, especially where the IPFS URI is constructed and used.

Verification successful

Ensure proper integration of the triple curly braces in the IPFS URI.

The change to use triple curly braces ({{{transactionUri}}}) in the ipfsUri is noted. This should ensure that the transactionUri is correctly handled as a literal string in IPFS URI constructions. Verify that this change integrates well with the rest of the system, especially where the IPFS URI is constructed and used.


Ensure proper integration of the triple curly braces in the IPFS URI.

The change to use triple curly braces ({{{transactionUri}}}) in the ipfsUri is noted. This should ensure that the transactionUri is correctly handled as a literal string in IPFS URI constructions. Verify that this change integrates well with the rest of the system, especially where the IPFS URI is constructed and used.


Ensure proper integration of the triple curly braces in the IPFS URI.

The change to use triple curly braces ({{{transactionUri}}}) in the ipfsUri is noted. This should ensure that the transactionUri is correctly handled as a literal string in IPFS URI constructions. Verify that this change integrates well with the rest of the system, especially where the IPFS URI is constructed and used.


Ensure proper integration of the triple curly braces in the IPFS URI.

The change to use triple curly braces ({{{transactionUri}}}) in the ipfsUri is noted. This should ensure that the transactionUri is correctly handled as a literal string in IPFS URI constructions. Verify that this change integrates well with the rest of the system, especially where the IPFS URI is constructed and used.


Ensure proper integration of the triple curly braces in the IPFS URI.

The change to use triple curly braces ({{{transactionUri}}}) in the ipfsUri is noted. This should ensure that the transactionUri is correctly handled as a literal string in IPFS URI constructions. Verify that this change integrates well with the rest of the system, especially where the IPFS URI is constructed and used.


Ensure proper integration of the triple curly braces in the IPFS URI.

The change to use triple curly braces ({{{transactionUri}}}) in the ipfsUri is noted. This should ensure that the transactionUri is correctly handled as a literal string in IPFS URI constructions. Verify that this change integrates well with the rest of the system, especially where the IPFS URI is constructed and used.


Ensure proper integration of the triple curly braces in the IPFS URI.

The change to use triple curly braces ({{{transactionUri}}}) in the ipfsUri is noted. This should ensure that the transactionUri is correctly handled as a literal string in IPFS URI constructions. Verify that this change integrates well with the rest of the system, especially where the IPFS URI is constructed and used.


Integration of triple curly braces in the IPFS URI is correctly handled.

The use of triple curly braces ({{{transactionUri}}}) in the ipfsUri correctly ensures that the transactionUri is treated as a literal string. The getFormattedPath function processes the URL based on its prefix and will return the transactionUri unchanged if it doesn't match any specific IPFS-related prefixes. The integration is verified and no issues are found.

  • web/src/utils/getIpfsUrl.ts: Implementation of getFormattedPath correctly handles the ipfsUri.
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the integration of triple curly braces with the IPFS URI construction.

# Test: Search for the `ipfsUri` usage in the codebase. Expect: Correct handling of the triple curly braces.
rg --type ts "ipfsUri"

Length of output: 370



Script:

#!/bin/bash
# Description: Verify the handling of triple curly braces in the IPFS URI construction.

# Step 1: Identify the location of `getIpfsUrl` function.
rg --files-with-matches "function getIpfsUrl"

# Step 2: Extract the implementation of `getIpfsUrl` function.
ast-grep --lang typescript --pattern 'function getIpfsUrl($_) { $$$ }'

Length of output: 120



Script:

#!/bin/bash
# Description: Verify the handling of triple curly braces in the IPFS URI construction.

# Step 1: Search for the definition of `getIpfsUrl` function.
rg "function getIpfsUrl" --type ts

Length of output: 36



Script:

#!/bin/bash
# Description: Verify the handling of triple curly braces in the IPFS URI construction.

# Step 1: Search for `getIpfsUrl` across the codebase to identify its origin.
rg "getIpfsUrl" --type ts

Length of output: 489



Script:

#!/bin/bash
# Description: Verify the handling of triple curly braces in the IPFS URI construction.

# Step 1: Extract the implementation of `getIpfsUrl` function from `web/src/utils/getIpfsUrl.ts`.
ast-grep --lang typescript --pattern 'export const getIpfsUrl = ($_: string) => { $$$ }' web/src/utils/getIpfsUrl.ts

Length of output: 383



Script:

#!/bin/bash
# Description: Verify the handling of triple curly braces in the IPFS URI construction.

# Step 1: Search for the definition of `getFormattedPath` function.
rg "function getFormattedPath" --type ts

# Step 2: Extract the implementation of `getFormattedPath` function.
ast-grep --lang typescript --pattern 'function getFormattedPath($_) { $$$ }'

Length of output: 121



Script:

#!/bin/bash
# Description: Verify the handling of triple curly braces in the IPFS URI construction.

# Step 1: Search for `getFormattedPath` across the codebase to identify its origin.
rg "getFormattedPath" --type ts

Length of output: 188



Script:

#!/bin/bash
# Description: Verify the handling of triple curly braces in the IPFS URI construction.

# Step 1: Extract the implementation of `getFormattedPath` function from `web/src/utils/getIpfsUrl.ts`.
ast-grep --lang typescript --pattern 'export const getFormattedPath = ($_: string) => { $$$ }' web/src/utils/getIpfsUrl.ts

Length of output: 553

coderabbitai[bot]
coderabbitai bot previously approved these changes Jun 21, 2024
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: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between f1bf12a and 3466614.

Files selected for processing (1)
  • contracts/deploy/00-escrow.ts (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • contracts/deploy/00-escrow.ts

@jaybuidl jaybuidl merged commit 9a56ba0 into master Jun 24, 2024
6 checks passed
@jaybuidl jaybuidl deleted the fix/template-and-mappings branch June 24, 2024 13:53
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.

2 participants