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

Working on docs on positions and adapters #194

Merged
merged 11 commits into from
Jul 4, 2024
Merged

Working on docs on positions and adapters #194

merged 11 commits into from
Jul 4, 2024

Conversation

zmanian
Copy link
Contributor

@zmanian zmanian commented Jun 30, 2024

Summary by CodeRabbit

  • Documentation
    • Introduced adapters.md, detailing integration with various DeFi protocols.
    • Introduced positions.md, explaining the setup and management of positions in Cellars.
    • Updated README.md with information on managing positions and adapters in Sommelier Network Cellar contracts.

Copy link
Contributor

coderabbitai bot commented Jun 30, 2024

Warning

Rate limit exceeded

@zmanian has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 48 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 87cecb9 and 3c05f2c.

Walkthrough

This update introduces new documentation for managing positions and adapters within the Sommelier Network Cellar contracts. Specifically, it includes the creation of adapters.md and positions.md, which detail the integration and utilization of various DeFi protocols, and how specific asset positions can be established within these cellars. Additionally, a summary was added to the README.md to reflect these new documentation sections.

Changes

File Change Summary
docs/adapters.md Introduced a catalog of adapters for integrating Cellars with DeFi protocols for asset utilization.
docs/positions.md Introduced the concept of positions, detailing setup within a cellar using trusted adapters.
README.md Added a summary for managing positions and adapters in Sommelier Network Cellar contracts.

Poem

In cellars deep, where assets sleep,
Adapters align, to protocols they bind.
Positions take their trusty stance,
To make the assets twirl and dance.
Sommelier’s charm, a crafted art,
Together, every piece shall play its part.


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.

@zmanian zmanian marked this pull request as ready for review July 4, 2024 20:50
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: 12

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 5c8e5d7 and 015c42a.

Files selected for processing (2)
  • docs/adapters.md (1 hunks)
  • docs/positions.md (1 hunks)
Additional context used
LanguageTool
docs/positions.md

[uncategorized] ~3-~3: The preposition ‘of’ seems more likely in this position.
Context: ...sitions A Position is an instantiation for an adapter for a specific asset. A cell...

(AI_HYDRA_LEO_REPLACE_FOR_OF)


[grammar] ~7-~7: There seems to be a noun/verb agreement error. Did you mean “adds” or “added”?
Context: ... a position is as follows: 1. A cellar add an adapter that has been trusted by Reg...

(SINGULAR_NOUN_VERB_AGREEMENT)


[uncategorized] ~7-~7: Possible missing comma found.
Context: ...apter that has been trusted by Registry with AddAdapterToCatalogue 2. A cellar add...

(AI_HYDRA_LEO_MISSING_COMMA)


[duplication] ~9-~9: Possible typo: you repeated a word
Context: ...terToCatalogue3.AddPosition` places the the position in the internal index and pass...

(ENGLISH_WORD_REPEAT_RULE)

docs/adapters.md

[uncategorized] ~3-~3: Possible missing comma found.
Context: ...ers integrate Cellars with extenal Defi protocols enabling them to use the assets in the ...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~5-~5: This verb may not be in the correct form. Consider using a different form for this context.
Context: ...the assets in the protocol. We have an establish catalogue of adapters that can be used ...

(AI_EN_LECTOR_REPLACEMENT_VERB_FORM)


[uncategorized] ~9-~9: Did you mean “is” or “was”, “were”?
Context: ...he following protocols: ## Aave Thare are adapters for both Aave V2 and V3. The ...

(NNP_VBP_TO_VBZ)

Markdownlint
docs/adapters.md

14-14: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)


15-15: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)


16-16: Expected: 0; Actual: 2
Unordered list indentation

(MD007, ul-indent)


48-48: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


49-49: Expected: 1; Actual: 3
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


54-54: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


69-69: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)


14-14: null
Lists should be surrounded by blank lines

(MD032, blanks-around-lists)

docs/positions.md Outdated Show resolved Hide resolved
docs/positions.md Outdated Show resolved Hide resolved
docs/positions.md Show resolved Hide resolved
docs/positions.md Outdated Show resolved Hide resolved

The adapter supports swaps against both Uniswap V2 and V3. It supports holding multiple NFT LP positions in Uniswap V3.


Copy link
Contributor

Choose a reason for hiding this comment

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

Fix markdown linting issues.

There are multiple consecutive blank lines.

- 
+ 

Committable suggestion was skipped due to low confidence.

Tools
Markdownlint

69-69: Expected: 1; Actual: 2
Multiple consecutive blank lines

(MD012, no-multiple-blanks)

docs/adapters.md Outdated Show resolved Hide resolved
docs/adapters.md Outdated Show resolved Hide resolved
docs/adapters.md Outdated Show resolved Hide resolved
docs/adapters.md Outdated Show resolved Hide resolved
docs/adapters.md Outdated Show resolved Hide resolved
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 015c42a and 87cecb9.

Files selected for processing (1)
  • README.md (1 hunks)
Files skipped from review due to trivial changes (1)
  • README.md

zmanian and others added 8 commits July 4, 2024 23:10
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@zmanian zmanian merged commit 5b3d89a into main Jul 4, 2024
2 checks passed
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.

1 participant